Commit 45f63790 authored by Matt Roper's avatar Matt Roper

drm/i915: Check SFC fusing before recording/dumping SFC_DONE

On Xe_HP and beyond the SFC unit may be fused off, even if the
corresponding media engines are present.  Check the SFC-specific fusing
before trying to dump the SFC_DONE instances.

Cc: José Roberto de Souza <jose.souza@intel.com>
Signed-off-by: default avatarMatt Roper <matthew.d.roper@intel.com>
Reviewed-by: default avatarJosé Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210917161203.812251-3-matthew.d.roper@intel.com
parent ff04f8be
...@@ -753,7 +753,8 @@ static void err_print_gt(struct drm_i915_error_state_buf *m, ...@@ -753,7 +753,8 @@ static void err_print_gt(struct drm_i915_error_state_buf *m,
* only exists if the corresponding VCS engine is * only exists if the corresponding VCS engine is
* present. * present.
*/ */
if (!HAS_ENGINE(gt->_gt, _VCS(i * 2))) if ((gt->_gt->info.sfc_mask & BIT(i)) == 0 ||
!HAS_ENGINE(gt->_gt, _VCS(i * 2)))
continue; continue;
err_printf(m, " SFC_DONE[%d]: 0x%08x\n", i, err_printf(m, " SFC_DONE[%d]: 0x%08x\n", i,
...@@ -1632,7 +1633,8 @@ static void gt_record_regs(struct intel_gt_coredump *gt) ...@@ -1632,7 +1633,8 @@ static void gt_record_regs(struct intel_gt_coredump *gt)
* only exists if the corresponding VCS engine is * only exists if the corresponding VCS engine is
* present. * present.
*/ */
if (!HAS_ENGINE(gt->_gt, _VCS(i * 2))) if ((gt->_gt->info.sfc_mask & BIT(i)) == 0 ||
!HAS_ENGINE(gt->_gt, _VCS(i * 2)))
continue; continue;
gt->sfc_done[i] = gt->sfc_done[i] =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment