Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/44x/bamboo: Fix PCI range

The bamboo dts has a bug: it uses a non-naturally aligned range
for PCI memory space. This isnt' supported by the code, thus
causing PCI to break on this system.

This is due to the fact that while the chip memory map has 1G
reserved for PCI memory, it's only 512M aligned. The code doesn't
know how to split that into 2 different PMMs and fails, so limit
the region to 512M.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>

authored by

Benjamin Herrenschmidt and committed by
Michael Ellerman
3cfb9ebe 51f4cc20

+3 -1
+3 -1
arch/powerpc/boot/dts/bamboo.dts
··· 268 268 /* Outbound ranges, one memory and one IO, 269 269 * later cannot be changed. Chip supports a second 270 270 * IO range but we don't use it for now 271 + * The chip also supports a larger memory range but 272 + * it's not naturally aligned, so our code will break 271 273 */ 272 - ranges = <0x02000000 0x00000000 0xa0000000 0x00000000 0xa0000000 0x00000000 0x40000000 274 + ranges = <0x02000000 0x00000000 0xa0000000 0x00000000 0xa0000000 0x00000000 0x20000000 273 275 0x02000000 0x00000000 0x00000000 0x00000000 0xe0000000 0x00000000 0x00100000 274 276 0x01000000 0x00000000 0x00000000 0x00000000 0xe8000000 0x00000000 0x00010000>; 275 277