]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Wait for a moment before forcibly resetting the device
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 28 Jan 2019 01:02:18 +0000 (01:02 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 28 Jan 2019 09:30:08 +0000 (09:30 +0000)
commit91404c0aa0896f4d5ab0bae86a94d23a922150f1
tree4297bac567d5300aa7b887aa9da1846dbaa12232
parentf20b0bbb2a64fe3fcb213a389b7f7c23c5d0b736
drm/i915: Wait for a moment before forcibly resetting the device

During igt, we ask to reset the device if any requests are still
outstanding at the end of a test, as this quickly kills off any
erroneous hanging request streams that may escape a test. However, since
it may take the device a few milliseconds to flush itself after the end
of a normal test, *cough* guc *cough*, we may accidentally tell the
device to reset itself after it idles. If we wait a moment, our usual
I915_IDLE_ENGINES_TIMEOUT of 200ms (seems a bit high, but still better
than umpteen hangchecks!), we can differentiate better between a stuck
engine and a healthy one, and so avoid prematurely forcing the reset and
any extra complications that may entail.

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