drm/i915/selftests: Add a safety net to live_workarounds
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 11 Jul 2018 12:29:52 +0000 (13:29 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 11 Jul 2018 13:13:56 +0000 (14:13 +0100)
commitcb4dc8daf4cb72d7833148a6087b425b5c20e903
tree533b59c971391d1694c445eea3fc5a345d5b1928
parent19bb33c756edee5e3f0fb126895f6ec23e60dd08
drm/i915/selftests: Add a safety net to live_workarounds

Since live_workarounds poke around the w/a registers and checks to see
if they survive across a reset, we are prone to fouling the machine and
leaving it in a non-recoverable state. Wrap the probe inside a timeout
to abort the test if the reset fails.

v2: Include GEM_TRACE on declaring wedged.
v3: Add a few includes to make the header look standalone.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107188
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180711122952.18448-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/igt_wedge_me.h [new file with mode: 0644]
drivers/gpu/drm/i915/selftests/intel_workarounds.c