]> 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)
commitcf9aa86c9e2e2a9f490045b72b5be2e1fb6be354
treed49020284e0d934e27eb97e2aaa3dee0088f4ec8
parente276fce40050939d750ebe619edc37f631968937
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