All of lore.kernel.org
 help / color / mirror / Atom feed
* [REGRESSION] Out of memory error: unable to boot on imx8mp/imx8mm
@ 2024-12-16 11:42 João Paulo Gonçalves
  2024-12-16 13:14 ` Sughosh Ganu
  0 siblings, 1 reply; 15+ messages in thread
From: João Paulo Gonçalves @ 2024-12-16 11:42 UTC (permalink / raw)
  To: Ilias Apalodimas
  Cc: Sughosh Ganu, Tom Rini, Francesco Dolcini,
	João Paulo Gonçalves, u-boot

Hello,

U-Boot is not able too boot on imx8mm and imx8mp and gives out of memory
errors:

U-Boot SPL 2025.01-rc4-00041-g50334151c020 (Dec 15 2024 - 14:02:46 +0000)
Training FAILED
DDR configured as single rank
WDT:   Started watchdog@30280000 with servicing every 1000ms (60s timeout)
SEC0:  RNG instantiated
Normal Boot
Trying to boot from BOOTROM
Boot Stage: Primary boot
Find img info 0x4802f000, size 1116
Need continue download 1024
NOTICE:  Do not release JR0 to NS as it can be used by HAB
NOTICE:  BL31: v2.10.0	(release):android-14.0.0_2.2.0-rc2-0-g7c64d4e86-dirty
NOTICE:  BL31: Built : 10:35:32, Aug 29 2024
U-Boot 2025.01-rc4-00041-g50334151c020 (Dec 15 2024 - 14:02:46 +0000)
CPU:   Freescale i.MX8MP[8] rev1.1 1600 MHz (running at 1200 MHz)
CPU:   Industrial temperature grade (-40C to 105C) at 24C
Reset cause: POR
DRAM:  4 GiB
Core:  183 devices, 31 uclasses, devicetree: separate
WDT:   Started watchdog@30280000 with servicing every 1000ms (60s timeout)
out of memory
ERROR: Out of memory
MMC:   FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from MMC... out of memory
out of memory
Adding partition for mmc@30b60000.blk:1 failed
*** Warning - No block device, using default environment
out of memory
out of memory
Adding partition for mmc@30b60000.blk:1 failed

The regression was introduced with commit 1a48b0be93d4 ('lmb: prohibit
allocations above ram_top even from same bank'). Reverting it, allows U-Boot to
boot again. The issue seems to occur on modules with >=4Gb of RAM.

Do you have any idea what might be causing the issue? On our boards, the first
error occurs in efi_init_early() and then in initr_mmc(), and it happens during
memory allocation using lmb.

Best Regards,
João Paulo Gonçalves


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2024-12-17 12:38 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-16 11:42 [REGRESSION] Out of memory error: unable to boot on imx8mp/imx8mm João Paulo Gonçalves
2024-12-16 13:14 ` Sughosh Ganu
2024-12-16 14:28   ` João Paulo Gonçalves
2024-12-16 19:02     ` Francesco Dolcini
2024-12-16 19:07       ` Sughosh Ganu
2024-12-16 19:29         ` Francesco Dolcini
2024-12-16 19:32           ` Sughosh Ganu
2024-12-16 19:35             ` Ilias Apalodimas
2024-12-16 19:40               ` Francesco Dolcini
2024-12-16 22:05                 ` Sughosh Ganu
2024-12-17 11:18                   ` João Paulo Gonçalves
2024-12-17 11:25                     ` Francesco Dolcini
2024-12-17 12:29                       ` Sughosh Ganu
2024-12-17 11:55                     ` Ilias Apalodimas
2024-12-17 12:38                       ` João Paulo Gonçalves

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.