drm/i915/tgl: Adjust the location of RING_MI_MODE in the context image
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 26 Oct 2019 08:22:20 +0000 (09:22 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 26 Oct 2019 08:48:34 +0000 (09:48 +0100)
commit35865aef057ca3e8da69a91679341a11633def92
treeae4ed884ed4238bc674349019e75e2f1445bf71f
parentbabaab2f473817f173a2d08e410c25abf5ed0f6b
drm/i915/tgl: Adjust the location of RING_MI_MODE in the context image

The location of RING_MI_MODE (used to stop the ring across resets) moved
for Tigerlake. Fixup the new location and include a selftest to verify
the location in the default context image.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Acked-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191026082220.32632-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_lrc.c
drivers/gpu/drm/i915/gt/selftest_lrc.c