[PATCH 01/12] drm/xe: Fix MOCS debugfs LNCF readout
Rodrigo Vivi
rodrigo.vivi at intel.com
Thu Feb 27 20:21:28 UTC 2025
On Fri, Feb 21, 2025 at 10:17:20AM +0000, Tvrtko Ursulin wrote:
> 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 at igalia.com>
> ---
> drivers/gpu/drm/xe/xe_mocs.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_mocs.c b/drivers/gpu/drm/xe/xe_mocs.c
> index 54d199b5cfb2..31dade91a089 100644
> --- a/drivers/gpu/drm/xe/xe_mocs.c
> +++ b/drivers/gpu/drm/xe/xe_mocs.c
> @@ -781,7 +781,9 @@ void xe_mocs_dump(struct xe_gt *gt, struct drm_printer *p)
> flags = get_mocs_settings(xe, &table);
>
> 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);
we could perhaps just get forcewake_all for every case.
It shouldn't hurt badly on the dump. But well, if there's
already a condition that works, that's fine too..
Reviewed-by: Rodrigo Vivi <rodrigo.vivi at intel.com>
> if (!fw_ref)
> goto err_fw;
>
> --
> 2.48.0
>
More information about the Intel-xe
mailing list