From: Michal Wajdeczko Date: Mon, 15 Dec 2025 17:04:33 +0000 (+0100) Subject: drm/xe/guc: Fix version check for page-reclaim feature X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47f5cee4197719f5d06a899a2e827968a4e85d0b;p=thirdparty%2Flinux.git drm/xe/guc: Fix version check for page-reclaim feature Page reclamation interfaces were introduced in GuC firmware version 70.31.0 (which corresponds to GuC ABI version 1.14.0), but since this feature is also available for the VFs and VFs don't know the firmware version, use GuC compatibility version check instead. Fixes: 77ebc7c10d16 ("drm/xe/guc: Add page reclamation interface to GuC") Signed-off-by: Michal Wajdeczko Cc: Brian Nguyen Cc: Matthew Brost Cc: Shuicheng Lin Reviewed-by: Brian Nguyen Reviewed-by: Daniele Ceraolo Spurio Signed-off-by: Matthew Brost Link: https://patch.msgid.link/20251215170433.196398-1-michal.wajdeczko@intel.com --- diff --git a/drivers/gpu/drm/xe/xe_guc.c b/drivers/gpu/drm/xe/xe_guc.c index 7daae3294665..09ac092c3687 100644 --- a/drivers/gpu/drm/xe/xe_guc.c +++ b/drivers/gpu/drm/xe/xe_guc.c @@ -768,7 +768,7 @@ int xe_guc_init(struct xe_guc *guc) return 0; /* Disable page reclaim if GuC FW does not support */ - if (GUC_FIRMWARE_VER(guc) < MAKE_GUC_VER(70, 31, 0)) + if (GUC_SUBMIT_VER(guc) < MAKE_GUC_VER(1, 14, 0)) xe->info.has_page_reclaim_hw_assist = false; if (IS_SRIOV_VF(xe)) {