[PATCH 3/3] drm/xe/vf: Set submission version in xe_uc_fw struct

Lukasz Laguna lukasz.laguna at intel.com
Tue Feb 25 13:23:37 UTC 2025


The VF driver has already negotiated the ABI version with GuC. What
remains is to populate the generic xe_uc_fw struct with the version
before initializing submission.

Signed-off-by: Lukasz Laguna <lukasz.laguna at intel.com>
---
 drivers/gpu/drm/xe/xe_guc.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/xe/xe_guc.c b/drivers/gpu/drm/xe/xe_guc.c
index bc1ff0a4e1e7..7b38447d902c 100644
--- a/drivers/gpu/drm/xe/xe_guc.c
+++ b/drivers/gpu/drm/xe/xe_guc.c
@@ -703,9 +703,16 @@ int xe_guc_init(struct xe_guc *guc)
 
 static int vf_guc_init_post_hwconfig(struct xe_guc *guc)
 {
+	struct xe_gt *gt = guc_to_gt(guc);
+	struct xe_uc_fw_version ver;
 	int err;
 
-	err = xe_guc_submit_init(guc, xe_gt_sriov_vf_guc_ids(guc_to_gt(guc)));
+	err = xe_gt_sriov_vf_get_guc_ver(gt, &ver);
+	xe_gt_assert(gt, !err);
+
+	xe_uc_fw_set_compatibility_ver(&guc->fw, &ver);
+
+	err = xe_guc_submit_init(guc, xe_gt_sriov_vf_guc_ids(gt));
 	if (err)
 		return err;
 
-- 
2.40.0



More information about the Intel-xe mailing list