[PATCH] Revert "drm/xe: enable lite restore"

Umesh Nerlige Ramappa umesh.nerlige.ramappa at intel.com
Thu Apr 17 23:35:28 UTC 2025


Lite restore is breaking some functionality in MangoHud. While lite
restore is certainly preferable, it is throwing off per context
utilization calculations that rely on the context switching out. The
utilization counters are used by MangoHud to overlay GPU utilization on
screen.

Hold off on enabling lite restore until we find a better way to
accomodate lite restore with per context utilization counters.

This reverts commit 6ef3bb60557d5e7f5af442c8c9ef0a9190bf3d23.

Fixes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/4532
Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa at intel.com>
---
 drivers/gpu/drm/xe/xe_guc.c      | 2 +-
 drivers/gpu/drm/xe/xe_guc_fwif.h | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/xe/xe_guc.c b/drivers/gpu/drm/xe/xe_guc.c
index c5aace59b62c..97c4ffc63302 100644
--- a/drivers/gpu/drm/xe/xe_guc.c
+++ b/drivers/gpu/drm/xe/xe_guc.c
@@ -80,7 +80,7 @@ static u32 guc_ctl_debug_flags(struct xe_guc *guc)
 
 static u32 guc_ctl_feature_flags(struct xe_guc *guc)
 {
-	u32 flags = GUC_CTL_ENABLE_LITE_RESTORE;
+	u32 flags = 0;
 
 	if (!guc_to_xe(guc)->info.skip_guc_pc)
 		flags |= GUC_CTL_ENABLE_SLPC;
diff --git a/drivers/gpu/drm/xe/xe_guc_fwif.h b/drivers/gpu/drm/xe/xe_guc_fwif.h
index 6f57578b07cb..4a7d6fe95a05 100644
--- a/drivers/gpu/drm/xe/xe_guc_fwif.h
+++ b/drivers/gpu/drm/xe/xe_guc_fwif.h
@@ -106,7 +106,6 @@ struct guc_update_exec_queue_policy {
 
 #define GUC_CTL_FEATURE			2
 #define   GUC_CTL_ENABLE_SLPC		BIT(2)
-#define   GUC_CTL_ENABLE_LITE_RESTORE	BIT(4)
 #define   GUC_CTL_DISABLE_SCHEDULER	BIT(14)
 
 #define GUC_CTL_DEBUG			3
-- 
2.43.0



More information about the Intel-xe mailing list