Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

+9 -9
+9 -9
drivers/gpu/drm/xe/xe_device.c
··· 688 688 } 689 689 ALLOW_ERROR_INJECTION(wait_for_lmem_ready, ERRNO); /* See xe_pci_probe() */ 690 690 691 - static void sriov_update_device_info(struct xe_device *xe) 691 + static void vf_update_device_info(struct xe_device *xe) 692 692 { 693 + xe_assert(xe, IS_SRIOV_VF(xe)); 693 694 /* 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; 701 700 } 702 701 703 702 static int xe_device_vram_alloc(struct xe_device *xe) ··· 737 738 738 739 xe_sriov_probe_early(xe); 739 740 740 - sriov_update_device_info(xe); 741 + if (IS_SRIOV_VF(xe)) 742 + vf_update_device_info(xe); 741 743 742 744 err = xe_pcode_probe_early(xe); 743 745 if (err || xe_survivability_mode_is_requested(xe)) {