[PATCH] common/memsize.c: Check for overflow in get_effective_memsize() only for mpc85xx

Tom Rini trini at konsulko.com
Sun Jan 8 17:53:49 CET 2023


On Sat, Jan 07, 2023 at 10:55:26PM +0100, Pali Rohár wrote:

> This reverts commit 777aaaa706bc ("common/memsize.c: Fix
> get_effective_memsize() to check for overflow") for non-mpc85xx platforms.
> 
> The changes to this generic function, which is intended to help with
> 32bit platforms with large amounts of memory has unintended side effects
> (which in turn lead to boot failures) on other platforms which were
> previously functional.
> 
> For now do overflow check only for powerpc mpc85xx platform. It is needed
> to prevent crashing of P1/P2 boards with 4GB DDR module in 32-bit mode.
> 
> Fixes: 777aaaa706bc ("common/memsize.c: Fix get_effective_memsize() to check for overflow")
> Signed-off-by: Pali Rohár <pali at kernel.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20230108/4c57cabd/attachment.sig>


More information about the U-Boot mailing list