]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/xe/vf: Store the GuC FW info in guc->fw
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Tue, 3 Jun 2025 23:54:37 +0000 (16:54 -0700)
committerDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Fri, 6 Jun 2025 15:37:26 +0000 (08:37 -0700)
commitade147391433f516532d0a6ba7e49a775cb3694f
tree8e50fe67a92f90912810b240f2f66f761ff36b21
parent3ef462f0031f745ce5a98394b7134499c37ef11d
drm/xe/vf: Store the GuC FW info in guc->fw

The GuC compatibility version that we read from the CSS header in
native/PF and the GuC VF version that we get when a VF handshakes with
the GuC are the same version number, so we should store it into the same
structure. This makes all the checks based on the compatibility version
automatically work for VFs without having to copy the value over.

For completion, also copy the wanted version and set the path to a known
string to indicate that the FW is PF-loaded. This way all the info will
be coherent when dumped from debugfs.

v2: several code cleanups and style changes (Michal), rebase on
bootstrap changes.

v3: s/min/wanted/, clarify that handshake must happen before we can get
the VF versions (Michal)

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-10-daniele.ceraolospurio@intel.com
drivers/gpu/drm/xe/xe_gt_sriov_vf.c
drivers/gpu/drm/xe/xe_gt_sriov_vf.h
drivers/gpu/drm/xe/xe_gt_sriov_vf_types.h
drivers/gpu/drm/xe/xe_uc_fw.c