]> git.baikalelectronics.ru Git - kernel.git/commit
PCI/IOV: Skip BAR sizing for VFs
authorKarimAllah Ahmed <karahmed@amazon.de>
Sat, 3 Mar 2018 04:33:10 +0000 (05:33 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 19 Mar 2018 19:55:17 +0000 (14:55 -0500)
commitf70aa0e9d2ac1bdba5fa96e383def8899d40c9fa
treeffc1c818597a76f15c82f2a5d14f6fd6f07a8794
parent779ab345943ff940848a9c809fb0851075cee695
PCI/IOV: Skip BAR sizing for VFs

Per PCIe r4.0, sec 9.3.4.1.11, the BAR registers in VF config space are all
RO Zero, so skip sizing them.

This is an optimization when enabling SR-IOV on a device with many VFs.

Suggested-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: KarimAllah Ahmed <karahmed@amazon.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/probe.c