summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_reset.c
diff options
context:
space:
mode:
authorChris Wilson2019-01-28 19:18:12 +0100
committerChris Wilson2019-01-28 20:07:13 +0100
commit9407d3bdb048d52fa0fd45fa624a6c9f00072169 (patch)
tree14d05921a34ff86736f22440ffef863d626974d9 /drivers/gpu/drm/i915/i915_reset.c
parentdrm/i915: Track the context's seqno in its own timeline HWSP (diff)
downloadkernel-qcow2-linux-9407d3bdb048d52fa0fd45fa624a6c9f00072169.tar.gz
kernel-qcow2-linux-9407d3bdb048d52fa0fd45fa624a6c9f00072169.tar.xz
kernel-qcow2-linux-9407d3bdb048d52fa0fd45fa624a6c9f00072169.zip
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
Diffstat (limited to 'drivers/gpu/drm/i915/i915_reset.c')
-rw-r--r--drivers/gpu/drm/i915/i915_reset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_reset.c b/drivers/gpu/drm/i915/i915_reset.c
index bd82f9b1043f..acf3c777e49d 100644
--- a/drivers/gpu/drm/i915/i915_reset.c
+++ b/drivers/gpu/drm/i915/i915_reset.c
@@ -856,7 +856,7 @@ bool i915_gem_unset_wedged(struct drm_i915_private *i915)
* No more can be submitted until we reset the wedged bit.
*/
mutex_lock(&i915->gt.timelines.mutex);
- list_for_each_entry(tl, &i915->gt.timelines.list, link) {
+ list_for_each_entry(tl, &i915->gt.timelines.active_list, link) {
struct i915_request *rq;
long timeout;