[PATCH] drm/xe/vf: Enable CCS save/restore only on supported GUC versions
Satyanarayana K V P
satyanarayana.k.v.p at intel.com
Mon Aug 18 12:00:05 UTC 2025
CCS save/restore is supported starting with GuC compatibility version
1.23.0. Gate the feature on the GuC firmware version and keep it disabled
on older or unsupported versions.
Signed-off-by: Satyanarayana K V P <satyanarayana.k.v.p at intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko at intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio at intel.com>
---
drivers/gpu/drm/xe/xe_sriov.c | 1 +
drivers/gpu/drm/xe/xe_sriov_vf_ccs_types.h | 4 +++-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/xe/xe_sriov.c b/drivers/gpu/drm/xe/xe_sriov.c
index 87911fb4eea7..27f70b5eb4c0 100644
--- a/drivers/gpu/drm/xe/xe_sriov.c
+++ b/drivers/gpu/drm/xe/xe_sriov.c
@@ -11,6 +11,7 @@
#include "xe_assert.h"
#include "xe_device.h"
+#include "xe_guc.h"
#include "xe_mmio.h"
#include "xe_sriov.h"
#include "xe_sriov_pf.h"
diff --git a/drivers/gpu/drm/xe/xe_sriov_vf_ccs_types.h b/drivers/gpu/drm/xe/xe_sriov_vf_ccs_types.h
index 93435a6f4cb6..928266580221 100644
--- a/drivers/gpu/drm/xe/xe_sriov_vf_ccs_types.h
+++ b/drivers/gpu/drm/xe/xe_sriov_vf_ccs_types.h
@@ -17,8 +17,10 @@
#define IS_VF_CCS_INIT_NEEDED(xe) ({\
struct xe_device *___xe = (xe); \
+ struct xe_guc *___guc = &___xe->tiles[0].primary_gt->uc.guc; \
IS_SRIOV_VF(___xe) && !IS_DGFX(___xe) && \
- xe_device_has_flat_ccs(___xe) && GRAPHICS_VER(___xe) >= 20; \
+ xe_device_has_flat_ccs(___xe) && GRAPHICS_VER(___xe) >= 20 && \
+ GUC_SUBMIT_VER(___guc) >= MAKE_GUC_VER(1, 23, 0); \
})
enum xe_sriov_vf_ccs_rw_ctxs {
--
2.43.0
More information about the Intel-xe
mailing list