drm/i915/guc: Correct capture of EIR register on hang
authorJohn Harrison <John.C.Harrison@Intel.com>
Fri, 23 Feb 2024 20:32:04 +0000 (12:32 -0800)
committerJohn Harrison <John.C.Harrison@Intel.com>
Mon, 4 Mar 2024 23:35:22 +0000 (15:35 -0800)
commite45afbeb593476acdb1795bc591cdc89c6d6bc06
tree9f3641b99097d9be08a27e5ca70cb0c3b6e6a7ee
parent3f2f20da79b208d55e2a78fb04cfc7e91201a1d3
drm/i915/guc: Correct capture of EIR register on hang

The EIR register (0x20B0) was being included in the engine class list
for render and compute as the absolute register address. However, it
is actually a ring register available on all engines at an offset of
(base) + 0xB0. As it was included as an RCS engine but with the
absolute address, GuC was adding on another 0x2000 and coming out at
an invalid location. Thus it would reject the register and complain
about only managing a partial capture.

So update the list to use the RING_EIR version of the register and
include it for all engines.

Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Reviewed-by: Alan Previn <alan.previn.teres.alexis@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240223203204.1533410-1-John.C.Harrison@Intel.com
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c