]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Force a preemption hang
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 16 Jul 2018 13:21:54 +0000 (14:21 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 16 Jul 2018 16:17:27 +0000 (17:17 +0100)
commitaf3fc4f5d957c880beef68fda2575039f8c64bd9
treeb7d22fb8f30ba37d2e84ea99cf23913c8f2d291f
parent5a2bdb01158e62f60c14da8066c3a674be7b7d3e
drm/i915/selftests: Force a preemption hang

Inject a failure into preemption completion to pretend as if the HW
didn't successfully handle preemption and we are forced to do a reset in
the middle.

v2: Wait for preemption, to force testing with the missed preemption.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180716132154.12539-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_guc_submission.c
drivers/gpu/drm/i915/intel_lrc.c
drivers/gpu/drm/i915/intel_ringbuffer.h
drivers/gpu/drm/i915/selftests/intel_lrc.c