drm/xe/vf: Custom HuC initialization if VF
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
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user