drm/i915: Add extra registers to GPU error dump
authorStuart Summers <stuart.summers@intel.com>
Wed, 1 Jun 2022 21:06:46 +0000 (14:06 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Thu, 2 Jun 2022 16:14:36 +0000 (09:14 -0700)
commitb729cfee705a56c6204647ac486107a1f814af36
tree16cef46018507b874efe7d77c35b1dcf38f92acb
parent5ac342ef84d7dccd1ba43f5fa2dc10a6feda91e2
drm/i915: Add extra registers to GPU error dump

Our internal teams have identified a few additional engine registers
that are worth inspecting in error state dumps during development &
debug.  Let's capture and print them as part of our error dump.

For simplicity we'll just dump these registers on gen11 and beyond.
Most of these registers have existed since earlier platforms (e.g., gen6
or gen7) but were initially introduced only for a subset of the
platforms' engines; gen11 seems to be where they became available on all
engines.

Signed-off-by: Stuart Summers <stuart.summers@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220601210646.615946-1-matthew.d.roper@intel.com
drivers/gpu/drm/i915/gt/intel_engine_regs.h
drivers/gpu/drm/i915/i915_gpu_error.c
drivers/gpu/drm/i915/i915_gpu_error.h