]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
PCI: Don't try to restore VF BARs
authorWei Yang <weiyang@linux.vnet.ibm.com>
Wed, 29 Jul 2015 08:52:58 +0000 (16:52 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 14 Sep 2015 15:34:17 +0000 (10:34 -0500)
commit70675e0b6a1ae20f8e93f9fc083d28034ad38948
tree8c4a3b6aae3923359680668ad98fcf18f43957fb
parent6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f
PCI: Don't try to restore VF BARs

VF BARs are read-only zero, so updating VF BARs will not have any effect.
See the SR-IOV spec r1.1, sec 3.4.1.11.

Don't update VF BARs in pci_restore_bars().

This avoids spurious "BAR %d: error updating" messages that we see when
doing vfio pass-through after 6eb7018705de ("vfio-pci: Move idle devices to
D3hot power state").

[bhelgaas: changelog, fix whitespace]
Signed-off-by: Wei Yang <weiyang@linux.vnet.ibm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci.c
drivers/pci/setup-res.c