]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/i915: Only reset seqno if actually idle
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 4 Oct 2018 08:21:19 +0000 (09:21 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 5 Oct 2018 10:49:10 +0000 (11:49 +0100)
commit88a83f3c2d7a87ce7c9c4171dec8e2fb48070288
treed8fdbc4bd237b403a8c3d469d9a05e3880bbb005
parent7a4a2a460458b48c282c017fc83f58b83fad1522
drm/i915: Only reset seqno if actually idle

Before we can reset the seqno, we have to be sure the engines are idle.
In debugfs/i915_drop_caches_set, we do wait_for_idle but allow ourselves
to be interrupted. We should only proceed to reset the seqno then if we
were not interrupted, and so also avoid overwriting the error status.

References: https://bugs.freedesktop.org/show_bug.cgi?id=108133
Fixes: 6b048706f407 ("drm/i915: Forcibly flush unwanted requests in drop-caches")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181004082119.24970-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_debugfs.c