diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2011-11-06 13:55:57 -0500 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2011-11-24 22:32:53 -0500 |
commit | 491b98c315dbe39b20bd4a24a6179c42349f42c0 (patch) | |
tree | d8eee6224d4f517bfcb0d3ae9ee1b24615e9bb0f /arch/powerpc/kernel/pci-common.c | |
parent | 09c188c4f6b331dbb61a2b5bd05d4c89c733fe33 (diff) |
powerpc/pci: Add a platform hook after probe and before resource survey
Some platforms need to perform resource allocation using a custom algorithm
due to HW constraints, or may want to tweak things globally below a host
bridge. For example OPAL support for IODA will need to perform a
resource allocation pass that applies IODA specific segmentation
constraints to MMIO which cannot be done simply using the kernel generic
resource management code.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/pci-common.c')
-rw-r--r-- | arch/powerpc/kernel/pci-common.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/kernel/pci-common.c index 458ed3bee663..f5b753de3718 100644 --- a/arch/powerpc/kernel/pci-common.c +++ b/arch/powerpc/kernel/pci-common.c | |||
@@ -1732,6 +1732,12 @@ void __devinit pcibios_scan_phb(struct pci_controller *hose) | |||
1732 | if (mode == PCI_PROBE_NORMAL) | 1732 | if (mode == PCI_PROBE_NORMAL) |
1733 | hose->last_busno = bus->subordinate = pci_scan_child_bus(bus); | 1733 | hose->last_busno = bus->subordinate = pci_scan_child_bus(bus); |
1734 | 1734 | ||
1735 | /* Platform gets a chance to do some global fixups before | ||
1736 | * we proceed to resource allocation | ||
1737 | */ | ||
1738 | if (ppc_md.pcibios_fixup_phb) | ||
1739 | ppc_md.pcibios_fixup_phb(hose); | ||
1740 | |||
1735 | /* Configure PCI Express settings */ | 1741 | /* Configure PCI Express settings */ |
1736 | if (bus && !pci_has_flag(PCI_PROBE_ONLY)) { | 1742 | if (bus && !pci_has_flag(PCI_PROBE_ONLY)) { |
1737 | struct pci_bus *child; | 1743 | struct pci_bus *child; |