[Intel-gfx] [PATCH 2/5] drm/i915: Avoid one round-tip through global i915 when getting to gt

Tvrtko Ursulin tvrtko.ursulin at linux.intel.com
Wed Jul 24 10:07:13 UTC 2019


From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>

Go to gt->active_rings via timeline instead of global i915 for more
logical organization.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
---
 drivers/gpu/drm/i915/i915_request.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/i915_request.c b/drivers/gpu/drm/i915/i915_request.c
index 8ac7d14ec8c9..9d4b4f2d1b51 100644
--- a/drivers/gpu/drm/i915/i915_request.c
+++ b/drivers/gpu/drm/i915/i915_request.c
@@ -1182,7 +1182,7 @@ struct i915_request *__i915_request_commit(struct i915_request *rq)
 
 	list_add_tail(&rq->ring_link, &ring->request_list);
 	if (list_is_first(&rq->ring_link, &ring->request_list))
-		list_add(&ring->active_link, &rq->i915->gt.active_rings);
+		list_add(&ring->active_link, &ring->timeline->gt->active_rings);
 	rq->emitted_jiffies = jiffies;
 
 	/*
-- 
2.20.1



More information about the Intel-gfx mailing list