From: Stephen Warren Date: Mon, 17 Dec 2018 13:58:03 -0700 Subject: [U-Boot] [PATCH v8 10/10] arm: bootm: fix sp detection at end of address range In-Reply-To: <20181217200830.32585-11-simon.k.r.goldschmidt@gmail.com> References: <20181217200830.32585-1-simon.k.r.goldschmidt@gmail.com> <20181217200830.32585-11-simon.k.r.goldschmidt@gmail.com> Message-ID: <1f27a857-a9f9-6583-e13d-0e044a3445d7@wwwdotorg.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 12/17/18 1:08 PM, 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 This patch, Reviewed-by: Stephen Warren