mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 09:09:55 -04:00
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>
This commit is contained in:
committed by
Rodrigo Vivi
parent
d945cc8762
commit
1182bc74b3
@@ -781,7 +781,9 @@ void xe_mocs_dump(struct xe_gt *gt, struct drm_printer *p)
|
|||||||
flags = get_mocs_settings(xe, &table);
|
flags = get_mocs_settings(xe, &table);
|
||||||
|
|
||||||
xe_pm_runtime_get_noresume(xe);
|
xe_pm_runtime_get_noresume(xe);
|
||||||
fw_ref = xe_force_wake_get(gt_to_fw(gt), XE_FW_GT);
|
fw_ref = xe_force_wake_get(gt_to_fw(gt),
|
||||||
|
flags & HAS_LNCF_MOCS ?
|
||||||
|
XE_FORCEWAKE_ALL : XE_FW_GT);
|
||||||
if (!fw_ref)
|
if (!fw_ref)
|
||||||
goto err_fw;
|
goto err_fw;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user