drm/i915/selftests: Mark GPR checking more hostile
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 19 Feb 2020 12:34:18 +0000 (12:34 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 19 Feb 2020 14:09:19 +0000 (14:09 +0000)
commitbd3d1f867354d0c1c38faadbcc08eb799cb5ea0b
tree5e3b481ba95382e4fe99cd71216a2e65dafed78a
parente7aa531e846ce41877094c1af15148d99aba6cf3
drm/i915/selftests: Mark GPR checking more hostile

Currently, we check that a new context has a clear set of general
purpose registers. Add a little bit of hostility by preempting our new
context and re-poisoning the GPR to ensure that there is no context
leakage from preemption.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Ramalingam C <ramalingam.c@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200219123418.1447428-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/selftest_lrc.c