All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] imx9: scmi: Move u-boot early MMU table to top 2MB of first 64MB DDR
@ 2026-10-10  7:59 ye.li
  2026-10-10  7:59 ` [PATCH 2/2] toradex: {aquila, smarc, verdin}-imx95: Enable caches in SPL ye.li
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: ye.li @ 2026-10-10  7:59 UTC (permalink / raw)
  To: festevam, u-boot, francesco.dolcini, emanuele.ghidoli
  Cc: peng.fan, uboot-imx, alice.guo, ye.li

From: Ye Li <ye.li@nxp.com>

The default u-boot early MMU table address is at CFG_SYS_SDRAM_BASE.
The same address is used as alias target on Toradex's iMX95 boards in
RAM-size probe. When a probe address aliases that location, the test
temporarily overwrites an entry in the active page tables.

To avoid such overlap, move u-boot early MMU table to top 2MB of first
64MB DDR.

Signed-off-by: Ye Li <ye.li@nxp.com>
---
 arch/arm/mach-imx/imx9/scmi/soc.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/arch/arm/mach-imx/imx9/scmi/soc.c b/arch/arm/mach-imx/imx9/scmi/soc.c
index 22f9c9d045b..fa6b9a0e53d 100644
--- a/arch/arm/mach-imx/imx9/scmi/soc.c
+++ b/arch/arm/mach-imx/imx9/scmi/soc.c
@@ -613,9 +613,12 @@ __weak unsigned long board_spl_mmu_tlb_base(void)
 #endif
 }
 
+/* Uboot early MMU only map first 64MB DDR before DM init.
+ * Set default early MMU table at top 2MB of first 64MB DDR
+ */
 __weak unsigned long board_early_mmu_tlb_base(void)
 {
-	return CFG_SYS_SDRAM_BASE;
+	return CFG_SYS_SDRAM_BASE + SZ_64M - SZ_2M;
 }
 
 /*
-- 
2.50.1


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

end of thread, other threads:[~2026-10-13  8:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-10  7:59 [PATCH 1/2] imx9: scmi: Move u-boot early MMU table to top 2MB of first 64MB DDR ye.li
2026-10-10  7:59 ` [PATCH 2/2] toradex: {aquila, smarc, verdin}-imx95: Enable caches in SPL ye.li
2026-10-11  9:17   ` Francesco Dolcini
2026-10-13  8:44   ` Emanuele Ghidoli
2026-10-11  9:16 ` [PATCH 1/2] imx9: scmi: Move u-boot early MMU table to top 2MB of first 64MB DDR Francesco Dolcini
2026-10-13  8:03 ` Emanuele Ghidoli

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.