Skip to content

Commit 3fd76be

Browse files
vsbelgaumlucasdemarchi
authored andcommitted
drm/xe: Restore GT freq on GSC load error
As part of a Wa_22019338487, ensure that GT freq is restored even when GSC reload is not successful. Fixes: 3b1592f ("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]> (cherry picked from commit 491418a) Signed-off-by: Lucas De Marchi <[email protected]>
1 parent 4246560 commit 3fd76be

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/gpu/drm/xe/xe_gt.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,9 @@ int xe_gt_sanitize_freq(struct xe_gt *gt)
874874
int ret = 0;
875875

876876
if ((!xe_uc_fw_is_available(&gt->uc.gsc.fw) ||
877-
xe_uc_fw_is_loaded(&gt->uc.gsc.fw)) && XE_WA(gt, 22019338487))
877+
xe_uc_fw_is_loaded(&gt->uc.gsc.fw) ||
878+
xe_uc_fw_is_in_error_state(&gt->uc.gsc.fw)) &&
879+
XE_WA(gt, 22019338487))
878880
ret = xe_guc_pc_restore_stashed_freq(&gt->uc.guc.pc);
879881

880882
return ret;

0 commit comments

Comments
 (0)