Skip to content

Commit 2e5e804

Browse files
Yinghai Lubjorn-helgaas
authored andcommitted
parisc/PCI: Clip bridge windows to fit in upstream windows
Every PCI-PCI bridge window should fit inside an upstream bridge window because orphaned address space is unreachable from the primary side of the upstream bridge. If we inherit invalid bridge windows that overlap an upstream window from firmware, clip them to fit and update the bridge accordingly. [bhelgaas: changelog] Link: https://bugzilla.kernel.org/show_bug.cgi?id=85491 Reported-by: Marek Kordik <[email protected]> Fixes: 5b28541 ("PCI: Restrict 64-bit prefetchable bridge windows to 64-bit resources") Signed-off-by: Yinghai Lu <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> CC: "James E.J. Bottomley" <[email protected]> CC: Helge Deller <[email protected]> CC: [email protected]
1 parent 4e348ba commit 2e5e804

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/parisc/lba_pci.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -694,9 +694,8 @@ lba_fixup_bus(struct pci_bus *bus)
694694
int i;
695695
/* PCI-PCI Bridge */
696696
pci_read_bridge_bases(bus);
697-
for (i = PCI_BRIDGE_RESOURCES; i < PCI_NUM_RESOURCES; i++) {
698-
pci_claim_resource(bus->self, i);
699-
}
697+
for (i = PCI_BRIDGE_RESOURCES; i < PCI_NUM_RESOURCES; i++)
698+
pci_claim_bridge_resource(bus->self, i);
700699
} else {
701700
/* Host-PCI Bridge */
702701
int err;

0 commit comments

Comments
 (0)