diff options
author | Gavin Shan <shangw@linux.vnet.ibm.com> | 2012-06-03 22:15:25 (GMT) |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-09-07 00:45:30 (GMT) |
commit | cf1a4cf8754afb248e498815c7957aeb4faca79f (patch) | |
tree | 1d6aefff7b785d3dc2c3acd40eba9e9d57de9293 /arch/tile | |
parent | fff34b3412b9401a76ba9d021db1bd91cb0e02b6 (diff) | |
download | linux-cf1a4cf8754afb248e498815c7957aeb4faca79f.tar.xz |
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 'arch/tile')
0 files changed, 0 insertions, 0 deletions