drm/i915/selftests: Improve error detection of reset failure
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 12 Mar 2019 11:11:46 +0000 (11:11 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 12 Mar 2019 12:49:30 +0000 (12:49 +0000)
commit22acf9fc18e6ee2769854366a57bf43e2b1ff704
tree16b55b9d21da81231f4aeef12b4a76d663a07d16
parent4b378c0672cc0b2eb3aadc149bd92e13aa615140
drm/i915/selftests: Improve error detection of reset failure

Use a timedwait to promptly detect if the recovery after reset fails and
provide a meaningful debug dump.

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