Skip to content

Commit

Permalink
microblaze: Add support for reserved memory defined by DT
Browse files Browse the repository at this point in the history
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 1b10cb2 ("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 <michal.simek@xilinx.com>
Link: https://lore.kernel.org/r/da4395776bf0de7207767abcc8a5df05bf411816.1645795048.git.michal.simek@xilinx.com
  • Loading branch information
Michal Simek committed Apr 21, 2022
1 parent e4c70fc commit 68cbfae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/microblaze/mm/init.c
Original file line number Diff line number Diff line change
@@ -13,6 +13,7 @@
#include <linux/kernel.h>
#include <linux/mm.h> /* mem_init */
#include <linux/initrd.h>
#include <linux/of_fdt.h>
#include <linux/pagemap.h>
#include <linux/pfn.h>
#include <linux/slab.h>
@@ -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);

0 comments on commit 68cbfae

Please sign in to comment.