mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-03 14:42:18 -04:00
drm/xe/pf: Disable VFs on remove
We shouldn't leave VFs enabled when unloading the PF driver. Otherwise we will get a message like: [ ] xe 0000:4d:00.0: driver left SR-IOV enabled after remove 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/20240626111827.1389-2-michal.wajdeczko@intel.com Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
This commit is contained in:
committed by
Rodrigo Vivi
parent
80bab5c503
commit
8d789ff4a4
@@ -748,6 +748,11 @@ static void xe_pci_remove(struct pci_dev *pdev)
|
||||
if (!xe) /* driver load aborted, nothing to cleanup */
|
||||
return;
|
||||
|
||||
#ifdef CONFIG_PCI_IOV
|
||||
if (IS_SRIOV_PF(xe))
|
||||
xe_pci_sriov_configure(pdev, 0);
|
||||
#endif
|
||||
|
||||
xe_device_remove(xe);
|
||||
xe_pm_runtime_fini(xe);
|
||||
pci_set_drvdata(pdev, NULL);
|
||||
|
||||
Reference in New Issue
Block a user