]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Try to recover from a wedged GPU during reset tests
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 15 Sep 2017 13:09:29 +0000 (14:09 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 26 Sep 2017 13:19:25 +0000 (14:19 +0100)
commit8a01cf95c34f8a668d81b1c3c13bb4fbc79d23ec
tree92a00663fa6963404fd51d1d6f8da500109ba452
parenta4b48240f7207f98c26ac7fe1c631c59490014d3
drm/i915/selftests: Try to recover from a wedged GPU during reset tests

If we see the seqno stop progressing, we abandon the test for fear that
the GPU died following the reset. However, during test teardown we still
wait for the GPU to idle before continuing, but we have already
confirmed that the GPU is dead. Furthermore, since we are inside a reset
test, we have disabled the hangchecker, and so there is no safety net and
we wait indefinitely. Detect the stuck GPU and declare it wedged as a
state of emergency so we can escape.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Jari Tahvanainen <jari.tahvanainen@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170915130929.18892-1-chris@chris-wilson.co.uk
Tested-by: Jari Tahvanainen <jari.tahvanainen@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
drivers/gpu/drm/i915/selftests/intel_hangcheck.c