drm/i915/selftests: Sabotague the RING_HEAD
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 11 Feb 2020 20:56:15 +0000 (20:56 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 12 Feb 2020 10:07:13 +0000 (10:07 +0000)
commit37305ede63c7e5a696b74b64ffb7c62cbe0ecd2f
treed5b629a2e88387023ad9f599f8fe7972d8ad0df8
parent89dd019a8a99e1a08c9c724dc2831c2ec3c050a3
drm/i915/selftests: Sabotague the RING_HEAD

Apply vast quantities of poison and not tell anyone to see if we fall
for the trap of using a stale RING_HEAD.

References: 42827350f75c ("drm/i915/gt: Avoid resetting ring->head outside of its timeline mutex")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Andi Shyti <andi.shyti@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200211205615.1190127-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/selftest_lrc.c