]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/xe/vf: Use uc_fw_version to store the negotiated GuC ABI
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Tue, 3 Jun 2025 23:54:36 +0000 (16:54 -0700)
committerDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Fri, 6 Jun 2025 15:33:19 +0000 (08:33 -0700)
commit3ef462f0031f745ce5a98394b7134499c37ef11d
treeba95f53710bd0fb41fa315e28a44c7ae54626693
parent90f4d3f7562a3ce5a5706a4753a0b7b292dc7ec3
drm/xe/vf: Use uc_fw_version to store the negotiated GuC ABI

Instead of using a VF-specific type, we can use the common uc_fw_version
structure. This also means that we can use the available macros to
compare ABI versions.

While at it, exit early from the bootstrap if this is not the first time
we're doing it and the version hasn't changed, so we don't end up
logging it multiple times.

Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Lukasz Laguna <lukasz.laguna@intel.com>
Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Link: https://lore.kernel.org/r/20250603235432.720833-9-daniele.ceraolospurio@intel.com
drivers/gpu/drm/xe/xe_gt_sriov_vf.c
drivers/gpu/drm/xe/xe_gt_sriov_vf_types.h