OSDN Git Service

powerpc/44x/bamboo: Fix PCI range
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 11 Dec 2018 02:27:33 +0000 (13:27 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 08:20:43 +0000 (09:20 +0100)
commit3cb8eefbdc12d2f2d240b416cc014cc1a6fa8f05
tree1861f078f9d40ad7996710b9a983d14c6d675d54
parentba87ed0ad7c1ab3f3a335372be96c7fdab0edb3c
powerpc/44x/bamboo: Fix PCI range

[ Upstream commit 3cfb9ebe906b51f2942b1e251009bb251efd2ba6 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/boot/dts/bamboo.dts