powerpc: Fix some late PowerMac G5 with PCIe ATI graphics
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 31 Aug 2009 21:34:36 +0000 (21:34 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 2 Sep 2009 06:20:42 +0000 (16:20 +1000)
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>

No differences found