Commit 8fa5913d authored by Gary Hade's avatar Gary Hade Committed by Greg Kroah-Hartman

PCI: remove transparent bridge sizing

Remove transparent bridge sizing.

Due to code in pci_read_bridge_bases() [drivers/pci/probe.c] the child
bus of a transparent bridge already has access to the parent bus
resources so transparent bridge sizing appears unnecessary.  The bridge
sizing includes alignment and granularity adjustments that can cause
significantly more memory to be reserved from the parant bus than
required by devices on the child bus and allotted by _CRS.
Signed-off-by: default avatarGary Hade <gary.hade@us.ibm.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent ecb39080
...@@ -472,7 +472,12 @@ void pci_bus_size_bridges(struct pci_bus *bus) ...@@ -472,7 +472,12 @@ void pci_bus_size_bridges(struct pci_bus *bus)
break; break;
case PCI_CLASS_BRIDGE_PCI: case PCI_CLASS_BRIDGE_PCI:
/* don't size subtractive decoding (transparent)
* PCI-to-PCI bridges */
if (bus->self->transparent)
break;
pci_bridge_check_ranges(bus); pci_bridge_check_ranges(bus);
/* fall through */
default: default:
pbus_size_io(bus); pbus_size_io(bus);
/* If the bridge supports prefetchable range, size it /* If the bridge supports prefetchable range, size it
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment