Skip to content
Snippets Groups Projects
Commit 25fb58e8 authored by Patrice Chotard's avatar Patrice Chotard Committed by Tom Rini
Browse files

ARM: stm32mp: Fix dram_bank_mmu_setup() for LMB located above ram_top


Previously, all LMB marked with LMB_NOMAP (above and below ram_top)
are considered as invalid entry in TLB.

Since commit 1a48b0be ("lmb: prohibit allocations above ram_top
 even from same bank") all LMB located above ram_top are now marked
LMB_NOOVERWRITE and no more LMB_MAP.

This area above ram_top is reserved for OPTEE and must not be cacheable,
otherwise this leads to a Panic on some boards (Issue on STM32MP135F-DK).

Restore previous behavior by marking invalid entry all TLB above ram_top.

Fixes: 1a48b0be ("lmb: prohibit allocations above ram_top even from same bank")

Signed-off-by: default avatarPatrice Chotard <patrice.chotard@foss.st.com>
cc: Sughosh Ganu <sughosh.ganu@linaro.org>
Acked-by: default avatarSughosh Ganu <sughosh.ganu@linaro.org>
parent 1cde96be
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment