Skip to content

Commit b88bb1e

Browse files
committed
drm/xe/vf: Rename sriov_update_device_info
This is a VF only function and its name should reflect that to avoid any confusion. Move the VF check to the caller side. Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Reviewed-by: Piotr Piórkowski <piotr.piorkowski@intel.com> Link: https://lore.kernel.org/r/20250928174811.198933-2-michal.wajdeczko@intel.com
1 parent 662d98b commit b88bb1e

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

drivers/gpu/drm/xe/xe_device.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -688,16 +688,15 @@ static int wait_for_lmem_ready(struct xe_device *xe)
688688
}
689689
ALLOW_ERROR_INJECTION(wait_for_lmem_ready, ERRNO); /* See xe_pci_probe() */
690690

691-
static void sriov_update_device_info(struct xe_device *xe)
691+
static void vf_update_device_info(struct xe_device *xe)
692692
{
693+
xe_assert(xe, IS_SRIOV_VF(xe));
693694
/* disable features that are not available/applicable to VFs */
694-
if (IS_SRIOV_VF(xe)) {
695-
xe->info.probe_display = 0;
696-
xe->info.has_heci_cscfi = 0;
697-
xe->info.has_heci_gscfi = 0;
698-
xe->info.skip_guc_pc = 1;
699-
xe->info.skip_pcode = 1;
700-
}
695+
xe->info.probe_display = 0;
696+
xe->info.has_heci_cscfi = 0;
697+
xe->info.has_heci_gscfi = 0;
698+
xe->info.skip_guc_pc = 1;
699+
xe->info.skip_pcode = 1;
701700
}
702701

703702
static int xe_device_vram_alloc(struct xe_device *xe)
@@ -738,7 +737,8 @@ int xe_device_probe_early(struct xe_device *xe)
738737

739738
xe_sriov_probe_early(xe);
740739

741-
sriov_update_device_info(xe);
740+
if (IS_SRIOV_VF(xe))
741+
vf_update_device_info(xe);
742742

743743
err = xe_pcode_probe_early(xe);
744744
if (err || xe_survivability_mode_is_requested(xe)) {

0 commit comments

Comments
 (0)