drm/xe: Add INSTDONE registers to devcoredump
authorJosé Roberto de Souza <jose.souza@intel.com>
Wed, 24 Apr 2024 14:03:03 +0000 (07:03 -0700)
committerJosé Roberto de Souza <jose.souza@intel.com>
Wed, 24 Apr 2024 16:06:39 +0000 (09:06 -0700)
commitc8d4524ecc79f8b5a3bf58c6bd4438127c54a4cd
tree09dbb0aa652c75c0bc2507186b16ee353b783977
parent082a634f608200d569412114fc0ee4d8c9f0f2aa
drm/xe: Add INSTDONE registers to devcoredump

This registers contains important information that can help with debug
of GPU hangs.

While at it also fixing the double line jump at the end of engine
registers for CCS engines.

v2:
- print other INSTDONE registers

v3:
- add for_each_geometry/compute_dss()

v4:
- print one slice_common_instdone per glice in DG2+

v5:
- rename registers prefix from DG2 to XEHPG (Zhanjun)

Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Cc: Zhanjun Dong <zhanjun.dong@intel.com>
Cc: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240424140319.61651-3-jose.souza@intel.com
drivers/gpu/drm/xe/regs/xe_engine_regs.h
drivers/gpu/drm/xe/regs/xe_gt_regs.h
drivers/gpu/drm/xe/xe_hw_engine.c
drivers/gpu/drm/xe/xe_hw_engine_types.h