Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/xe: Restore GT freq on GSC load error
@ 2024-09-25 20:49 Vinay Belgaumkar
  2024-09-26 16:06 ` ✓ CI.Patch_applied: success for " Patchwork
                   ` (8 more replies)
  0 siblings, 9 replies; 11+ messages in thread
From: Vinay Belgaumkar @ 2024-09-25 20:49 UTC (permalink / raw)
  To: intel-xe; +Cc: Vinay Belgaumkar

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 <vinay.belgaumkar@intel.com>
---
 drivers/gpu/drm/xe/xe_gt.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/xe/xe_gt.c b/drivers/gpu/drm/xe/xe_gt.c
index 796b330ffd62..a5083ffc59f4 100644
--- a/drivers/gpu/drm/xe/xe_gt.c
+++ b/drivers/gpu/drm/xe/xe_gt.c
@@ -908,7 +908,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;
-- 
2.38.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-09-27 16:56 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-25 20:49 [PATCH] drm/xe: Restore GT freq on GSC load error Vinay Belgaumkar
2024-09-26 16:06 ` ✓ CI.Patch_applied: success for " Patchwork
2024-09-26 16:07 ` ✓ CI.checkpatch: " Patchwork
2024-09-26 16:08 ` ✓ CI.KUnit: " Patchwork
2024-09-26 16:19 ` ✓ CI.Build: " Patchwork
2024-09-26 16:21 ` ✓ CI.Hooks: " Patchwork
2024-09-26 16:23 ` ✓ CI.checksparse: " Patchwork
2024-09-26 16:51 ` ✓ CI.BAT: " Patchwork
2024-09-26 19:01 ` [PATCH] " Rodrigo Vivi
2024-09-27 14:57 ` ✗ CI.FULL: failure for " Patchwork
2024-09-27 16:56   ` Belgaumkar, Vinay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox