stm32mp: Fix board_get_usable_ram_top()
authorPatrice Chotard <patrice.chotard@foss.st.com>
Thu, 9 Jan 2025 10:21:47 +0000 (11:21 +0100)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Fri, 31 Jan 2025 09:13:10 +0000 (10:13 +0100)
commit6b20aed7cfd88bdef3618a9548183c59091b1b69
treeb517cd261390626d0d537d458470549fbd59d303
parent2a903b0141b99bb41756d01a0a1a5463e2c4f365
stm32mp: Fix board_get_usable_ram_top()

mmu_set_region_dcache_behaviour() parameters must be aligned
which is not always the case.
For example for STM32MP2, we stayed stuck inside
mmu_set_region_dcache_behaviour() in an infinite loop because
set_one_region() always return 0 due to start parameter which is
not aligned.

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
arch/arm/mach-stm32mp/dram_init.c