Commit 2a3f161c authored by Patrick Delaunay's avatar Patrick Delaunay Committed by Tom Rini
Browse files

scmi: correctly configure MMU for SCMI buffer

Align the MMU area for SCMI shared buffer on section size;
use the ALIGN macro in mmu_set_region_dcache_behaviour call.

Since commit d877f8fd ("arm: provide a function for boards init
code to modify MMU virtual-physical map") the parameter of
mmu_set_region_dcache_behaviour need to be MMU_SECTION_SIZE

Fixes: 240720e9

 ("firmware: scmi: mailbox/smt agent device")
Signed-off-by: Patrick Delaunay's avatarPatrick Delaunay <>
Reviewed-by: default avatarEtienne Carriere <>
parent dc514d7e
......@@ -56,8 +56,10 @@ int scmi_dt_get_smt_buffer(struct udevice *dev, struct scmi_smt *smt)
if (dcache_status())
smt->size, DCACHE_OFF);
mmu_set_region_dcache_behaviour(ALIGN_DOWN((uintptr_t)smt->buf, MMU_SECTION_SIZE),
return 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment