Skip to content

Commit 2f88d15

Browse files
Ivan Kokshayskytorvalds
authored andcommitted
alpha: nautilus - fix hang on boot
Recently introduced generic pci_common_swizzle() relies on bus->self being NULL for the root PCI bus. But on nautilus bus->self points to the host bridge device, which is necessary as we do a root bus sizing on this system. As a result, pci_common_swizzle() loops infinitely. This worked until 2.6.29-rc1 because the alpha-specific swizzle routine checked for bus->parent == NULL (instead of bus->self). Fixed by clearing bus->self after bus sizing is done. Signed-off-by: Ivan Kokshaysky <ink@jurassic.park.msu.ru> Cc: Richard Henderson <rth@twiddle.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 70b66cb commit 2f88d15

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎arch/alpha/kernel/sys_nautilus.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,10 @@ nautilus_init_pci(void)
245245
IRONGATE0->pci_mem = pci_mem;
246246

247247
pci_bus_assign_resources(bus);
248+
249+
/* pci_common_swizzle() relies on bus->self being NULL
250+
for the root bus, so just clear it. */
251+
bus->self = NULL;
248252
pci_fixup_irqs(alpha_mv.pci_swizzle, alpha_mv.pci_map_irq);
249253
}
250254

0 commit comments

Comments
 (0)