drm/i915/selftests: Check for hangs mid context execution tests
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 12 Oct 2018 12:24:04 +0000 (13:24 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 26 Oct 2018 11:36:25 +0000 (12:36 +0100)
commit8dd0f8d37eaec2bcb4c73b840f0390fee88583ac
tree29bc867538c9de4dee390139ef7cf6b37afc204c
parent9213e4f5444469d76fad1430e4b7af582e7877da
drm/i915/selftests: Check for hangs mid context execution tests

Use the live_test struct to record the reset count before and compare it
at the end of the test to assert that no mystery hang occurred during the
test.

v2: Check per-engine resets as well

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/20181012122404.10874-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/i915_gem_context.c