]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
drm/xe/vf: Custom HuC initialization if VF
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 19 Jun 2024 21:45:57 +0000 (23:45 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Thu, 20 Jun 2024 17:49:43 +0000 (19:49 +0200)
The HuC firmware is loaded and initialized by the PF driver. Make
sure VF driver performs only limited data structure initialization.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240619214557.905-10-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_huc.c

index 6238fb35491476526d981e9602ba926d773a3c6e..c88761fe31c9a98385a2853f15d797dafdd97139 100644 (file)
@@ -21,6 +21,7 @@
 #include "xe_guc.h"
 #include "xe_map.h"
 #include "xe_mmio.h"
+#include "xe_sriov.h"
 #include "xe_uc_fw.h"
 
 static struct xe_gt *
@@ -92,6 +93,9 @@ int xe_huc_init(struct xe_huc *huc)
        if (!xe_uc_fw_is_enabled(&huc->fw))
                return 0;
 
+       if (IS_SRIOV_VF(xe))
+               return 0;
+
        if (huc->fw.has_gsc_headers) {
                ret = huc_alloc_gsc_pkt(huc);
                if (ret)