Commit 13670f4c authored by Chris Wilson's avatar Chris Wilson

drm/i915/selftests: Check a few more fixed locations within the context image

As we use hard coded offsets for a few locations within the context
image, include those in the selftests to assert that they are valid.
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: default avatarJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191028121803.29408-1-chris@chris-wilson.co.uk
parent e5df52dc
...@@ -3194,10 +3194,35 @@ static int live_lrc_fixed(void *arg) ...@@ -3194,10 +3194,35 @@ static int live_lrc_fixed(void *arg)
u32 offset; u32 offset;
const char *name; const char *name;
} tbl[] = { } tbl[] = {
{
i915_mmio_reg_offset(RING_START(engine->mmio_base)),
CTX_RING_BUFFER_START - 1,
"RING_START"
},
{
i915_mmio_reg_offset(RING_CTL(engine->mmio_base)),
CTX_RING_BUFFER_CONTROL - 1,
"RING_CTL"
},
{
i915_mmio_reg_offset(RING_HEAD(engine->mmio_base)),
CTX_RING_HEAD - 1,
"RING_HEAD"
},
{
i915_mmio_reg_offset(RING_TAIL(engine->mmio_base)),
CTX_RING_TAIL - 1,
"RING_TAIL"
},
{ {
i915_mmio_reg_offset(RING_MI_MODE(engine->mmio_base)), i915_mmio_reg_offset(RING_MI_MODE(engine->mmio_base)),
lrc_ring_mi_mode(engine), lrc_ring_mi_mode(engine),
"RING_MI_MODE", "RING_MI_MODE"
},
{
engine->mmio_base + 0x110,
CTX_BB_STATE - 1,
"BB_STATE"
}, },
{ }, { },
}, *t; }, *t;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment