linux/Documentation/PCI
Bodong Wang 0e7df22401 PCI: Add sysfs sriov_drivers_autoprobe to control VF driver binding
Sometimes it is not desirable to bind SR-IOV VFs to drivers.  This can save
host side resource usage by VF instances that will be assigned to VMs.

Add a new PCI sysfs interface "sriov_drivers_autoprobe" to control that
from the PF.  To modify it, echo 0/n/N (disable probe) or 1/y/Y (enable
probe) to:

  /sys/bus/pci/devices/<DOMAIN:BUS:DEVICE.FUNCTION>/sriov_drivers_autoprobe

Note that this must be done before enabling VFs.  The change will not take
effect if VFs are already enabled.  Simply, one can disable VFs by setting
sriov_numvfs to 0, choose whether to probe or not, and then re-enable the
VFs by restoring sriov_numvfs.

[bhelgaas: changelog, ABI doc]
Signed-off-by: Bodong Wang <bodong@mellanox.com>
Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
2017-04-20 08:53:51 -05:00
..
00-INDEX PCI: Update documentation 00-INDEX file 2014-01-07 16:37:15 -07:00
MSI-HOWTO.txt PCI/MSI: Remove pci_enable_msi_{exact,range}() 2017-01-13 11:08:21 -06:00
pci-error-recovery.txt PCI/AER: Remove unused .link_reset() callback 2017-02-09 16:41:58 -06:00
pci-iov-howto.txt PCI: Add sysfs sriov_drivers_autoprobe to control VF driver binding 2017-04-20 08:53:51 -05:00
pci.txt PCI/MSI: Document pci_alloc_irq_vectors(), deprecate pci_enable_msi() 2017-02-15 10:32:57 -06:00
pcieaer-howto.txt pcieaer doc: update the link 2017-03-03 15:50:00 -07:00
PCIEBUS-HOWTO.txt PCI/MSI: Update MSI/MSI-X bits in PCIEBUS-HOWTO 2017-02-15 11:51:33 -06:00