summaryrefslogtreecommitdiffstats
path: root/arch/microblaze/mm/init.c
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2020-01-14 11:00:41 +0100
committerMichal Simek <michal.simek@xilinx.com>2020-02-24 12:19:42 +0100
commitdcf639fe6f801f6418357ec20376b2218f666f44 (patch)
treec989bfab192e50d2e650b50a59e1af523f2fbb1a /arch/microblaze/mm/init.c
parentbb6d3fb354c5ee8d6bde2d576eb7220ea09862b9 (diff)
downloadlinux-dcf639fe6f801f6418357ec20376b2218f666f44.tar.gz
linux-dcf639fe6f801f6418357ec20376b2218f666f44.tar.bz2
linux-dcf639fe6f801f6418357ec20376b2218f666f44.zip
microblaze: Kernel parameters should be parsed earlier
Kernel command line should be parsed before cma initialization to be able to get cma sizes from command line. That's why call parse_early_param() before dma_continugous_reserve(). Unfortunately it can't be called earlier in machine_early_init() because if earlycon is passed in the command line the parse_early_param() attempts an ioremap which fails as the memory params are not set yet. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Diffstat (limited to 'arch/microblaze/mm/init.c')
-rw-r--r--arch/microblaze/mm/init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/microblaze/mm/init.c b/arch/microblaze/mm/init.c
index 1056f1674065..9899ff2ef9b6 100644
--- a/arch/microblaze/mm/init.c
+++ b/arch/microblaze/mm/init.c
@@ -347,6 +347,8 @@ asmlinkage void __init mmu_init(void)
* inside 768MB limit */
memblock_set_current_limit(memory_start + lowmem_size - 1);
+ parse_early_param();
+
/* CMA initialization */
dma_contiguous_reserve(memory_start + lowmem_size - 1);
}