Skip to content

Commit bb4328f

Browse files
committed
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 <[email protected]> Cc: Mika Kuoppala <[email protected]> Reviewed-by: Mika Kuoppala <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 175c4d9 commit bb4328f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

drivers/gpu/drm/i915/gt/selftest_lrc.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5290,8 +5290,9 @@ static int live_lrc_isolation(void *arg)
52905290
const u32 poison[] = {
52915291
STACK_MAGIC,
52925292
0x3a3a3a3a,
5293-
0xc5c5c5c5,
5293+
0x5c5c5c5c,
52945294
0xffffffff,
5295+
0xffff0000,
52955296
};
52965297

52975298
/*
@@ -5317,6 +5318,10 @@ static int live_lrc_isolation(void *arg)
53175318
err = __lrc_isolation(engine, poison[i]);
53185319
if (err)
53195320
break;
5321+
5322+
err = __lrc_isolation(engine, ~poison[i]);
5323+
if (err)
5324+
break;
53205325
}
53215326
}
53225327
intel_engine_pm_put(engine);

0 commit comments

Comments
 (0)