aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/pseries/msi.c
diff options
context:
space:
mode:
authorGavin Shan <shangw@linux.vnet.ibm.com>2012-06-03 22:15:25 +0000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2012-09-07 10:45:30 +1000
commitcf1a4cf8754afb248e498815c7957aeb4faca79f (patch)
tree1d6aefff7b785d3dc2c3acd40eba9e9d57de9293 /arch/powerpc/platforms/pseries/msi.c
parentMerge branch 'merge' into next (diff)
downloadlinux-dev-cf1a4cf8754afb248e498815c7957aeb4faca79f.tar.xz
linux-dev-cf1a4cf8754afb248e498815c7957aeb4faca79f.zip
powerpc/pci: Save P2P bridge resource if possible
When PCI probe flag PCI_REASSIGN_ALL_RSRC has been passed into PCI core, it's hoped that all resources to be reassigned by PCI core. As to particular P2P (PCI-to-PCI) bridge, the size of the corresponding BAR (I/O, MMIO, prefetchable MMIO) is calculated by the resources required by the PCI devices behind the P2P bridge. That means that the information like start/end address retrieved from the hardware registers of the P2P bridge is meainingless in the case. However, we still count that in and the BARs might have been configured by firmware with non-zero size. That leads to space waste. The patch explicitly sets the size of P2P bridge BARs to zero in case that resource reassignment is expected with PCI probe flag PCI_REASSIGN_ALL_RSRC. In the result, it will save overall resource required by the system without waste. Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions