]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/xe/vf: Support only GuC/HuC firmwares
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Tue, 4 Jun 2024 21:22:28 +0000 (23:22 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Thu, 6 Jun 2024 13:59:34 +0000 (15:59 +0200)
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
drivers/gpu/drm/xe/xe_uc_fw.c

index 5571612321d4f7d36c2073a8e02ec88a261d43da..5f23ecd98376f2ccb96f80fbb617a0f67977b30d 100644 (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 :