From: Michal Simek Date: Fri, 25 Feb 2022 13:17:31 +0000 (+0100) Subject: microblaze: Add support for reserved memory defined by DT X-Git-Tag: v6.1-rc5~1206^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=68cbfae83a7208d960034813c4744bf9651a725d;p=platform%2Fkernel%2Flinux-starfive.git microblaze: Add support for reserved memory defined by DT In DT reserved memory nodes can be added as is described by Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt but Microblaze didn't have a support for it. The similar change was done for ARC by commit 1b10cb21d888 ("ARC: add support for reserved memory defined by device tree"). It is pretty much enough to call early_init_fdt_scan_reserved_mem(). Microblaze is not using initial_boot_params that's why there is no need to call early_init_fdt_reserve_self(). Signed-off-by: Michal Simek Link: https://lore.kernel.org/r/da4395776bf0de7207767abcc8a5df05bf411816.1645795048.git.michal.simek@xilinx.com --- diff --git a/arch/microblaze/mm/init.c b/arch/microblaze/mm/init.c index de0d8b0..f4e5034 100644 --- a/arch/microblaze/mm/init.c +++ b/arch/microblaze/mm/init.c @@ -13,6 +13,7 @@ #include #include /* mem_init */ #include +#include #include #include #include @@ -261,6 +262,8 @@ asmlinkage void __init mmu_init(void) parse_early_param(); + early_init_fdt_scan_reserved_mem(); + /* CMA initialization */ dma_contiguous_reserve(memory_start + lowmem_size - 1);