]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Ignore requested alignment for IOV BARs
authorYongji Xie <xyjxie@linux.vnet.ibm.com>
Wed, 15 Feb 2017 06:50:22 +0000 (14:50 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 18 Apr 2017 19:47:19 +0000 (14:47 -0500)
commite67f67730f367775c4f5308c8807ecd2f9de519f
tree6f3d4ddbc4ef06422b7944b5fe3e5a217fac4912
parentd0080f928ae3135a934ae14b398bbf5dc1931ed2
PCI: Ignore requested alignment for IOV BARs

We would call pci_reassigndev_resource_alignment() before
pci_init_capabilities().  So the requested alignment would never work for
IOV BARs.

Furthermore, it's meaningless to request additional alignment for IOV BARs,
the IOV BAR alignment is only determined by the VF BAR size.

Signed-off-by: Yongji Xie <xyjxie@linux.vnet.ibm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
drivers/pci/pci.c