drm/i915/selftests: Check we can recover a wedged device
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 13 Dec 2018 09:15:19 +0000 (09:15 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 13 Dec 2018 10:07:52 +0000 (10:07 +0000)
commit5edd56d394dc30438cb627586eb471f5f339a603
tree823d94d991b79a079ae6c68cca41a1920f9de5f3
parentf3ce44a09a15848c7b3e07c9a937e0562f681489
drm/i915/selftests: Check we can recover a wedged device

After declaring a terminally wedged device, we allow ourselves to
recover on the next GPU reset (manually triggered), or resume. Check
that resetting a wedged device does work.

v2: Add rpm (taken explicitly in the subtest in case we remove the outer
wakeref) and early warning to i915_reset() for missed wakerefs

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181213091522.2926-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/selftests/intel_hangcheck.c