]> git.hungrycats.org Git - linux/commit
[PATCH] Fix booting on some recent G5s
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sat, 2 Oct 2004 10:57:48 +0000 (03:57 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 2 Oct 2004 10:57:48 +0000 (03:57 -0700)
commitd1337a3237c2303e2aa338b3a55e4d225c277be9
tree616df22b2c809025dc7b15c25ebc5e75e4df946a
parent2f3ce4912ca5685b23b30b808b8273a9a2d4bb85
[PATCH] Fix booting on some recent G5s

Some recent G5s have a problem with PCI/HT probing.  They crash (machine
check) during the probe of some slot numbers, it seems to be related to
some functions beeing disabled by the firmware inside the K2 ASIC.

This patch limits the config space accesses to devices that are present
in the OF device-tree.  This fixes the problem and shouldn't "add" any
limitation.  If you plug a "random" PCI card with no OF driver, the
firmware will still build a node for it with the default set of
properties created from the config space.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc/platforms/pmac_pci.c
arch/ppc64/kernel/pmac_pci.c