Skip to content

Commit 65336c3

Browse files
committed
drm/xe/vf: Disable features that do not apply to VFs
We already maintain several flags that control the availability of features on a given device. Disable features, like PCODE or GuC PC or GSC, that do not apply to a VF device. Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Cc: Piotr Piórkowski <piotr.piorkowski@intel.com> Reviewed-by: Piotr Piórkowski <piotr.piorkowski@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240620100147.949-1-michal.wajdeczko@intel.com
1 parent d35386b commit 65336c3

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

drivers/gpu/drm/xe/xe_device.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,17 @@ static int wait_for_lmem_ready(struct xe_device *xe)
486486
return 0;
487487
}
488488

489+
static void update_device_info(struct xe_device *xe)
490+
{
491+
/* disable features that are not available/applicable to VFs */
492+
if (IS_SRIOV_VF(xe)) {
493+
xe->info.enable_display = 0;
494+
xe->info.has_heci_gscfi = 0;
495+
xe->info.skip_guc_pc = 1;
496+
xe->info.skip_pcode = 1;
497+
}
498+
}
499+
489500
/**
490501
* xe_device_probe_early: Device early probe
491502
* @xe: xe device instance
@@ -506,6 +517,8 @@ int xe_device_probe_early(struct xe_device *xe)
506517

507518
xe_sriov_probe_early(xe);
508519

520+
update_device_info(xe);
521+
509522
err = xe_pcode_probe_early(xe);
510523
if (err)
511524
return err;

0 commit comments

Comments
 (0)