drm/i915: Skip an engine reset if it recovered before our preparations
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 16 Dec 2017 00:22:06 +0000 (00:22 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 16 Dec 2017 09:24:47 +0000 (09:24 +0000)
commitf6ba181ada5572304c29cff44f04c15fa295f547
tree8a383019224375199a6a2b4e343ac8bbca305805
parent33aa69ed8aacd92dea12671e52eb3ca6ac2d7a49
drm/i915: Skip an engine reset if it recovered before our preparations

At the beginning of a reset, we disable the submission method and find
the stuck request. We expect to find a stuck request for we have
declared the engine stalled. However, if we find no active request, the
engine must have recovered from its stall before we could issue a reset,
so let the engine continue on without a reset. If the engine is truly
stuck, we will back soon enough with the next reset attempt.

v2: Remove the stale debug message.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Michel Thierry <michel.thierry@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Michel Thierry <michel.thierry@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171216002206.31737-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_drv.c