]> 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)
commit374ac7cb9c1ce735921f12d8f0e5ed914da41229
treed49020284e0d934e27eb97e2aaa3dee0088f4ec8
parentc14edfb5d9283a27c11e15c4a150d607587df960
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