drm/i915: Track active timelines
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 28 Jan 2019 18:18:12 +0000 (18:18 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 28 Jan 2019 19:07:13 +0000 (19:07 +0000)
commit9407d3bdb048d52fa0fd45fa624a6c9f00072169
tree14d05921a34ff86736f22440ffef863d626974d9
parent5013eb8cd601c31e6d7d1b9d3291b24e933b77b2
drm/i915: Track active timelines

Now that we pin timelines around use, we have a clearly defined lifetime
and convenient points at which we can track only the active timelines.
This allows us to reduce the list iteration to only consider those
active timelines and not all.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190128181812.22804-6-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_reset.c
drivers/gpu/drm/i915/i915_timeline.c