From: Tom Rini Date: Thu, 17 Jan 2019 17:44:54 -0500 Subject: [U-Boot] [U-Boot, v10, 10/10] arm: bootm: fix sp detection at end of address range In-Reply-To: <20190114213823.32486-11-simon.k.r.goldschmidt@gmail.com> References: <20190114213823.32486-11-simon.k.r.goldschmidt@gmail.com> Message-ID: <20190117224454.GH27429@bill-the-cat> 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, Jan 14, 2019 at 10:38:23PM +0100, Simon Goldschmidt wrote: > This fixes 'arch_lmb_reserve()' for ARM that tries to detect in which > DRAM bank 'sp' is in. > > This code failed if a bank was at the end of physical address range > (i.e. size + length overflowed to 0). > > To fix this, calculate 'bank_end' as 'size + length - 1' so that such > banks end at 0xffffffff, not 0. > > Fixes: 15751403b6 ("ARM: bootm: don't assume sp is in DRAM bank 0") > Reported-by: Frank Wunderlich > Signed-off-by: Simon Goldschmidt > Reviewed-by: Stephen Warren 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: