Commit 9a1a70ae authored by Benjamin Herrenschmidt's avatar Benjamin Herrenschmidt Committed by Michael Ellerman

powerpc/pci: Don't try to allocate resources that will be reassigned

When we know we will reassign all resources, trying (and failing)
to allocate them initially is fairly pointless and leads to a lot
of scary messages in the kernel log
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 08a45b32
...@@ -1418,8 +1418,10 @@ void __init pcibios_resource_survey(void) ...@@ -1418,8 +1418,10 @@ void __init pcibios_resource_survey(void)
/* Allocate and assign resources */ /* Allocate and assign resources */
list_for_each_entry(b, &pci_root_buses, node) list_for_each_entry(b, &pci_root_buses, node)
pcibios_allocate_bus_resources(b); pcibios_allocate_bus_resources(b);
pcibios_allocate_resources(0); if (!pci_has_flag(PCI_REASSIGN_ALL_RSRC)) {
pcibios_allocate_resources(1); pcibios_allocate_resources(0);
pcibios_allocate_resources(1);
}
/* Before we start assigning unassigned resource, we try to reserve /* Before we start assigning unassigned resource, we try to reserve
* the low IO area and the VGA memory area if they intersect the * the low IO area and the VGA memory area if they intersect the
......
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