Skip to content

Commit

Permalink
drm/i915/selftest: Add more poison patterns
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Chris Wilson committed Mar 13, 2020
1 parent 175c4d9 commit bb4328f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion drivers/gpu/drm/i915/gt/selftest_lrc.c
Original file line number Diff line number Diff line change
Expand Up @@ -5290,8 +5290,9 @@ static int live_lrc_isolation(void *arg)
const u32 poison[] = {
STACK_MAGIC,
0x3a3a3a3a,
0xc5c5c5c5,
0x5c5c5c5c,
0xffffffff,
0xffff0000,
};

/*
Expand All @@ -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);
Expand Down

0 comments on commit bb4328f

Please sign in to comment.