scmi: correctly configure MMU for SCMI buffer
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Tue, 16 Mar 2021 08:29:40 +0000 (09:29 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 12 Apr 2021 21:44:55 +0000 (17:44 -0400)
commit2a3f161c8b16ed4fe4bd215dddfa21f4ddbd3e37
treee56c6088f39093f6d37352ec117d4174eef4fcbd
parentdc514d7ea2d03cf06d31f084ee356c01d35f9a83
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 d877f8fd0f09 ("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
aligned.

Fixes: 240720e9052f ("firmware: scmi: mailbox/smt agent device")
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
drivers/firmware/scmi/smt.c