PCI: initialize and release SR-IOV capability
If a device has the SR-IOV capability, initialize it (set the ARI Capable Hierarchy in the lowest numbered PF if necessary; calculate the System Page Size for the VF MMIO, probe the VF Offset, Stride and BARs). A lock for the VF bus allocation is also initialized if a PF is the lowest numbered PF. Reviewed-by:Matthew Wilcox <willy@linux.intel.com> Signed-off-by:
Yu Zhao <yu.zhao@intel.com> Signed-off-by:
Jesse Barnes <jbarnes@virtuousgeek.org>
Showing
- drivers/pci/Kconfig 10 additions, 0 deletionsdrivers/pci/Kconfig
- drivers/pci/Makefile 2 additions, 0 deletionsdrivers/pci/Makefile
- drivers/pci/iov.c 182 additions, 0 deletionsdrivers/pci/iov.c
- drivers/pci/pci.c 7 additions, 0 deletionsdrivers/pci/pci.c
- drivers/pci/pci.h 37 additions, 0 deletionsdrivers/pci/pci.h
- drivers/pci/probe.c 4 additions, 0 deletionsdrivers/pci/probe.c
- include/linux/pci.h 11 additions, 0 deletionsinclude/linux/pci.h
- include/linux/pci_regs.h 33 additions, 0 deletionsinclude/linux/pci_regs.h
drivers/pci/iov.c
0 → 100644
Please register or sign in to comment