drm/xe/vf: Support only GuC/HuC firmwares

Only GuC/HuC firmwares can be used by the VFs, don't claim support
for any other firmware (like GSC) even if the driver can support it.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Piotr Piórkowski <piotr.piorkowski@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240604212231.1416-2-michal.wajdeczko@intel.com
This commit is contained in:
Michal Wajdeczko 2024-06-04 23:22:28 +02:00
parent 6d3581edff
commit 05e49e0c7c

View File

@ -654,6 +654,10 @@ static int uc_fw_request(struct xe_uc_fw *uc_fw, const struct firmware **firmwar
uc_fw_auto_select(xe, uc_fw);
if (IS_SRIOV_VF(xe)) {
/* Only GuC/HuC are supported */
if (uc_fw->type != XE_UC_FW_TYPE_GUC &&
uc_fw->type != XE_UC_FW_TYPE_HUC)
uc_fw->path = NULL;
/* VF will support only firmwares that driver can autoselect */
xe_uc_fw_change_status(uc_fw, uc_fw->path ?
XE_UC_FIRMWARE_PRELOADED :