From: Tom Rini Date: Mon, 28 May 2018 15:12:03 -0400 Subject: [U-Boot] [U-Boot, 1/3] PCI: dm: Ignore 64-bit memory regions if CONFIG_SYS_PCI_64BIT not set In-Reply-To: <20180514154752.31081-1-tuomas.tynkkynen@iki.fi> References: <20180514154752.31081-1-tuomas.tynkkynen@iki.fi> Message-ID: <20180528191203.GT21194@bill-the-cat.ec.rr.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, May 14, 2018 at 06:47:50PM +0300, Tuomas Tynkkynen wrote: > Currently, qemu_arm_defconfig and qemu_arm64_defconfig only work with > the 'highmem=off' parameter passed to QEMU's virt machine. The reason is > that when 'highmem' is not disabled, QEMU appends 64-bit a memory > resource to the PCI controller's regions property in DT in addition to > the 32-bit PCI memory window in low memory. And the current DT parsing > code picks the last (thus the 64-bit one) memory resource, whose address > eventually gets silently truncated to 32 bits because > CONFIG_SYS_PCI_64BIT is not set, which obviously causes PCI to break. > > Avoid this problem by ignoring memory regions whose addresses are above > the 32-bit boundary when CONFIG_SYS_PCI_64BIT is not set. > > Signed-off-by: Tuomas Tynkkynen > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: