]> git.baikalelectronics.ru Git - kernel.git/commit
PCI/IOV: Skip INTx config reads for VFs
authorKarimAllah Ahmed <karahmed@amazon.de>
Wed, 17 Jan 2018 18:30:29 +0000 (19:30 +0100)
committerBjorn Helgaas <helgaas@kernel.org>
Mon, 5 Mar 2018 14:10:14 +0000 (08:10 -0600)
commitf5de386a89bd8f033615310b01c3f16b6349f7b3
tree247d8cd73adbdaeabc2c4952429833ffbd534f6d
parent1a38e4596c1b183fa2804f9dfe72ad10da16ce0c
PCI/IOV: Skip INTx config reads for VFs

Per PCIe r4.0, sec 9.2.1.4, VFs can not implement INTX, and their Interrupt
Line and Interrupt Pin registers must be RO Zero.  Some devices have
thousands of VFs, so skip reading the registers as an optimization.

Signed-off-by: KarimAllah Ahmed <karahmed@amazon.de>
Signed-off-by: Jan H. Schönherr <jschoenh@amazon.de>
[bhelgaas: changelog, comment]
Signed-off-by: Bjorn Helgaas <helgaas@kernel.org>
drivers/pci/probe.c