Skip to content

Commit c19e705

Browse files
committed
drm/xe/vf: Stop applying save-restore MMIOs if VF
Currently we are blocking processing of all save-restore rules by the VFs inside the xe_rtp_process_to_sr() function, but we want to unblock that to allow processing of the LRC WA rules. To avoid hitting WARNs about reading an inaccessible registers by the VFs, stop applying save-restore MMIOs action if VF, without relying that SR list will be always empty for the VF. Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Cc: Matt Roper <matthew.d.roper@intel.com> Reviewed-by: Matt Roper <matthew.d.roper@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250303173522.1822-5-michal.wajdeczko@intel.com
1 parent f2f9098 commit c19e705

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/gpu/drm/xe/xe_reg_sr.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,9 @@ void xe_reg_sr_apply_mmio(struct xe_reg_sr *sr, struct xe_gt *gt)
173173
if (xa_empty(&sr->xa))
174174
return;
175175

176+
if (IS_SRIOV_VF(gt_to_xe(gt)))
177+
return;
178+
176179
xe_gt_dbg(gt, "Applying %s save-restore MMIOs\n", sr->name);
177180

178181
fw_ref = xe_force_wake_get(gt_to_fw(gt), XE_FORCEWAKE_ALL);

0 commit comments

Comments
 (0)