summaryrefslogtreecommitdiff
path: root/arch/arm/mach-stm32mp/stm32mp2/cpu.c
diff options
context:
space:
mode:
authorPatrice Chotard <patrice.chotard@foss.st.com>2025-04-01 18:14:18 +0200
committerPatrice Chotard <patrice.chotard@foss.st.com>2025-04-25 16:00:23 +0200
commit2662d1728d250d0342e00759ca6cc94dd0e2f011 (patch)
treef3c14379711b3a1a3f9510e3111764fbe6caa241 /arch/arm/mach-stm32mp/stm32mp2/cpu.c
parentc65b40226727a56d6c7b667848f701419f3002f5 (diff)
arm: stm32mp: increase EARLY_TLB_SIZE to 0x10000
Depending on Soc (STM32MP25 vs STM32MP21), the memory map can be different and it generates a different TLB page table configuration/size. Increase EARLY_TLB_SIZE to 0x10000 to fix following error message and panic: "Insufficient RAM for page table: 0xb000 > 0xa000. Please increase the size in get_page_table_size()" Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Diffstat (limited to 'arch/arm/mach-stm32mp/stm32mp2/cpu.c')
-rw-r--r--arch/arm/mach-stm32mp/stm32mp2/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-stm32mp/stm32mp2/cpu.c b/arch/arm/mach-stm32mp/stm32mp2/cpu.c
index 7cb71c518bd..9548b27cfa7 100644
--- a/arch/arm/mach-stm32mp/stm32mp2/cpu.c
+++ b/arch/arm/mach-stm32mp/stm32mp2/cpu.c
@@ -24,7 +24,7 @@
* early TLB into the .data section so that it not get cleared
* with 16kB alignment
*/
-#define EARLY_TLB_SIZE 0xA000
+#define EARLY_TLB_SIZE 0x10000
u8 early_tlb[EARLY_TLB_SIZE] __section(".data") __aligned(0x4000);
/*