]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
PCI: Ignore BAR updates on virtual functions
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 13 Jan 2017 21:31:33 +0000 (14:31 -0700)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Thu, 26 Jan 2017 16:36:47 +0000 (14:36 -0200)
commit8f9859b1efadd358556f96b862c2dd330ef1e763
tree4d97d36e0f3f18e957ad1ec78eeb8d45b644d9bb
parent1aed9aba08f757fc0072bc21692b460812f05973
PCI: Ignore BAR updates on virtual functions

BugLink: http://bugs.launchpad.net/bugs/1625318
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.

We already ignore these updates because of 70675e0b6a1a ("PCI: Don't try to
restore VF BARs"); this merely restructures it slightly to make it easier
to split updates for standard and SR-IOV BARs.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
(cherry picked from commit 63880b230a4af502c56dde3d4588634c70c66006)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Brad Figg <brad.figg@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/pci/pci.c
drivers/pci/setup-res.c