]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Serialise nop reset with retirement
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 26 Jun 2019 13:44:31 +0000 (14:44 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 26 Jun 2019 15:03:13 +0000 (16:03 +0100)
commitd8474795665462dc7888711ae4b8888a4496eda8
treed49020284e0d934e27eb97e2aaa3dee0088f4ec8
parent5ccf2027bb9362f8c4909e980e3856451a55dcb2
drm/i915/selftests: Serialise nop reset with retirement

In order for the reset count to be accurate across our selftest, we need
to prevent the background retire worker from modifying our expected
state. To preserve the intent of symmetry, we apply this to both
i915_reset and i915_reset_engine, even though it strictly only affects
i915_reset_engine currently.

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/20190626134433.6318-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/selftest_hangcheck.c