powerpc: Fix some late PowerMac G5 with PCIe ATI graphics
commit20cde25b833745a42ae7591592ec527653b569b4
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 31 Aug 2009 21:34:36 +0000 (31 21:34 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 Nov 2009 00:23:15 +0000 (9 16:23 -0800)
treea081d759df4a31ca449d14c0860777bd9a378156
parent01ab8be189e37f37ede8bd9532bd22198062d631
powerpc: Fix some late PowerMac G5 with PCIe ATI graphics

commit cede3930f0ca6fef353fa01306c72a01420bd45e upstream.

A misconfiguration by the firmware of the U4 PCIe bridge on PowerMac G5
with the U4 bridge (latest generations, may also affect the iMac G5
"iSight") is causing us to re-assign the PCI BARs of the video card,
which can get it out of sync with the firmware, thus breaking offb.

This works around it by fixing up the bridge configuration properly
at boot time. It also fixes a bug where the firmware provides us with
an incorrect set of accessible regions in the device-tree.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/powerpc/platforms/powermac/pci.c
include/linux/pci_ids.h