]> Git Repo - linux.git/commitdiff
drm/xe: Restore GT freq on GSC load error
authorVinay Belgaumkar <[email protected]>
Wed, 25 Sep 2024 20:49:18 +0000 (13:49 -0700)
committerRodrigo Vivi <[email protected]>
Thu, 3 Oct 2024 18:12:04 +0000 (14:12 -0400)
As part of a Wa_22019338487, ensure that GT freq is restored
even when GSC reload is not successful.

Fixes: 3b1592fb7835 ("drm/xe/lnl: Apply Wa_22019338487")
Signed-off-by: Vinay Belgaumkar <[email protected]>
Reviewed-by: Rodrigo Vivi <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Rodrigo Vivi <[email protected]>
drivers/gpu/drm/xe/xe_gt.c

index 274737417b0fd4f4b062a48c67a2baee40301f50..c6b6c585c57df0ef729a8d53b126d8fba850bf58 100644 (file)
@@ -907,7 +907,9 @@ int xe_gt_sanitize_freq(struct xe_gt *gt)
        int ret = 0;
 
        if ((!xe_uc_fw_is_available(&gt->uc.gsc.fw) ||
-            xe_uc_fw_is_loaded(&gt->uc.gsc.fw)) && XE_WA(gt, 22019338487))
+            xe_uc_fw_is_loaded(&gt->uc.gsc.fw) ||
+            xe_uc_fw_is_in_error_state(&gt->uc.gsc.fw)) &&
+           XE_WA(gt, 22019338487))
                ret = xe_guc_pc_restore_stashed_freq(&gt->uc.guc.pc);
 
        return ret;
This page took 0.055811 seconds and 4 git commands to generate.