drm/i915/xehp: Check for faults on primary GAM
authorMatt Roper <matthew.d.roper@intel.com>
Fri, 14 Oct 2022 23:02:31 +0000 (16:02 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Mon, 17 Oct 2022 17:13:46 +0000 (10:13 -0700)
commitab1b2d40d626bfb94d10e182a891fd21154234ef
tree1d3ae40bb645048ed646186d20f41387de813a0c
parent851435ec3686c513b469f8d3d9f8bd405a312412
drm/i915/xehp: Check for faults on primary GAM

On Xe_HP the fault registers are now in a multicast register range.
However as part of the GAM these registers follow special rules and we
need only read from the "primary" GAM's instance to get the information
we need.  So a single intel_gt_mcr_read_any() (which will automatically
steer to the primary GAM) is sufficient; we don't need to loop over each
instance of the MCR register.

v2:
 - Update more instances of fault registers.  (Bala)

Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Balasubramani Vivekanandan <balasubramani.vivekanandan@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221014230239.1023689-7-matthew.d.roper@intel.com
drivers/gpu/drm/i915/gt/intel_gt.c
drivers/gpu/drm/i915/i915_gpu_error.c