diff options
| -rw-r--r-- | drivers/pci/pci.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index ed9447aee863..b5b83331da26 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c | |||
| @@ -5049,6 +5049,15 @@ void pci_reassigndev_resource_alignment(struct pci_dev *dev) | |||
| 5049 | resource_size_t align, size; | 5049 | resource_size_t align, size; |
| 5050 | u16 command; | 5050 | u16 command; |
| 5051 | 5051 | ||
| 5052 | /* | ||
| 5053 | * VF BARs are read-only zero according to SR-IOV spec r1.1, sec | ||
| 5054 | * 3.4.1.11. Their resources are allocated from the space | ||
| 5055 | * described by the VF BARx register in the PF's SR-IOV capability. | ||
| 5056 | * We can't influence their alignment here. | ||
| 5057 | */ | ||
| 5058 | if (dev->is_virtfn) | ||
| 5059 | return; | ||
| 5060 | |||
| 5052 | /* check if specified PCI is target device to reassign */ | 5061 | /* check if specified PCI is target device to reassign */ |
| 5053 | align = pci_specified_resource_alignment(dev); | 5062 | align = pci_specified_resource_alignment(dev); |
| 5054 | if (!align) | 5063 | if (!align) |
