Skip to content

Commit 298661c

Browse files
Tvrtko Ursulinlucasdemarchi
authored andcommitted
drm/xe: Fix MOCS debugfs LNCF readout
With only XE_FW_GT taken LNCF registers read back as all zeroes, leading to a wild goose chase trying to figure out why is register programming incorrect. Fix it by grabbing XE_FORCEWAKE_ALL for affected platforms. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250307111402.26577-2-tvrtko.ursulin@igalia.com Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> (cherry picked from commit 1182bc7) Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
1 parent cedf238 commit 298661c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/gpu/drm/xe/xe_mocs.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,9 @@ void xe_mocs_dump(struct xe_gt *gt, struct drm_printer *p)
781781
flags = get_mocs_settings(xe, &table);
782782

783783
xe_pm_runtime_get_noresume(xe);
784-
fw_ref = xe_force_wake_get(gt_to_fw(gt), XE_FW_GT);
784+
fw_ref = xe_force_wake_get(gt_to_fw(gt),
785+
flags & HAS_LNCF_MOCS ?
786+
XE_FORCEWAKE_ALL : XE_FW_GT);
785787
if (!fw_ref)
786788
goto err_fw;
787789

0 commit comments

Comments
 (0)