[05/11] drm/i915/gt: Move new timelines to the end of active_list
diff mbox series

Message ID 20191116175139.1790440-5-chris@chris-wilson.co.uk
State New
Headers show
  • [01/11] drm/i915/gt: Close race between engine_park and intel_gt_retire_requests
Related show

Commit Message

Chris Wilson Nov. 16, 2019, 5:51 p.m. UTC
When adding a new active timeline, place it at the end of the list. This
allows for intel_gt_retire_requests() to pick up the newcomer more
quickly and hopefully complete the retirement sooner.

References: 7936a22dd466 ("drm/i915/gt: Wait for new requests in intel_gt_retire_requests()")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
 drivers/gpu/drm/i915/gt/intel_timeline.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff mbox series

diff --git a/drivers/gpu/drm/i915/gt/intel_timeline.c b/drivers/gpu/drm/i915/gt/intel_timeline.c
index b0cdeefb3564..76fec0605606 100644
--- a/drivers/gpu/drm/i915/gt/intel_timeline.c
+++ b/drivers/gpu/drm/i915/gt/intel_timeline.c
@@ -360,7 +360,7 @@  void intel_timeline_enter(struct intel_timeline *tl)
 	if (!atomic_fetch_inc(&tl->active_count))
-		list_add(&tl->link, &timelines->active_list);
+		list_add_tail(&tl->link, &timelines->active_list);