[PATCH 09/14] MIPS: memblock: Allow memblock regions resize

From: Serge Semin
Date: Wed Jan 17 2018 - 17:23:41 EST


When all the main reservations are done the memblock regions
can be dynamically resized. Additionally it would be useful to have
memblock regions dumped on debug at this point.

Signed-off-by: Serge Semin <fancer.lancer@xxxxxxxxx>
---
arch/mips/kernel/setup.c | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c
index e0ca0d2bc..82c6b77f6 100644
--- a/arch/mips/kernel/setup.c
+++ b/arch/mips/kernel/setup.c
@@ -869,6 +869,10 @@ static void __init arch_mem_init(char **cmdline_p)
plat_swiotlb_setup();

dma_contiguous_reserve(PFN_PHYS(max_low_pfn));
+
+ memblock_allow_resize();
+
+ memblock_dump_all();
}

static void __init resource_init(void)
--
2.12.0