summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2020-03-13 10:28:12 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2020-03-13 11:36:34 +0000
commitbb4328f6b9cb5ae7e7a59033bd89fc3aead91599 (patch)
treec5707f0886d626fbcfafc9f63aba7e8f3be3d7f1 /drivers/gpu/drm/i915
parent175c4d9b3b9a60b4ea0b8cd034011808c6a03b05 (diff)
drm/i915/selftest: Add more poison patterns
Throw in the inverse patterns to create more examples of poison to use against the LRC state. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com> Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200313102812.30173-1-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915')
-rw-r--r--drivers/gpu/drm/i915/gt/selftest_lrc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/gt/selftest_lrc.c b/drivers/gpu/drm/i915/gt/selftest_lrc.c
index e9e71c52b34d..6f06ba750a0a 100644
--- a/drivers/gpu/drm/i915/gt/selftest_lrc.c
+++ b/drivers/gpu/drm/i915/gt/selftest_lrc.c
@@ -5290,8 +5290,9 @@ static int live_lrc_isolation(void *arg)
const u32 poison[] = {
STACK_MAGIC,
0x3a3a3a3a,
- 0xc5c5c5c5,
+ 0x5c5c5c5c,
0xffffffff,
+ 0xffff0000,
};
/*
@@ -5317,6 +5318,10 @@ static int live_lrc_isolation(void *arg)
err = __lrc_isolation(engine, poison[i]);
if (err)
break;
+
+ err = __lrc_isolation(engine, ~poison[i]);
+ if (err)
+ break;
}
}
intel_engine_pm_put(engine);