]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Add tests for GT and engine workaround verification
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Mon, 3 Dec 2018 12:50:11 +0000 (12:50 +0000)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Tue, 4 Dec 2018 12:23:19 +0000 (12:23 +0000)
commitd9087e2e947fef0020e94d0c1f9edb7a6c87dd09
tree5d30412ee926742b08c564e8ff1d3436d31794a5
parent41437fb3926b7e3e2f2237a31b166f74f7e47aef
drm/i915/selftests: Add tests for GT and engine workaround verification

Two simple selftests which test that both GT and engine workarounds are
not lost after either a full GPU reset, or after the per-engine ones.

(Including checks that one engine reset is not affecting workarounds not
belonging to itself.)

v2:
 * Rebase for series refactoring.
 * Add spinner for actual engine reset!
 * Add idle reset test as well. (Chris Wilson)
 * Share existing global_reset_lock. (Chris Wilson)

v3:
 * intel_engine_verify_workarounds can be static.
 * API rename. (Chris Wilson)
 * Move global reset lock out of the loop. (Chris Wilson)

v4:
 * Add missing rpm puts. (Chris Wilson)

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20181203125014.3219-5-tvrtko.ursulin@linux.intel.com
drivers/gpu/drm/i915/Makefile
drivers/gpu/drm/i915/intel_workarounds.c
drivers/gpu/drm/i915/selftests/igt_reset.c [new file with mode: 0644]
drivers/gpu/drm/i915/selftests/igt_reset.h [new file with mode: 0644]
drivers/gpu/drm/i915/selftests/intel_hangcheck.c
drivers/gpu/drm/i915/selftests/intel_workarounds.c