microblaze: Kernel parameters should be parsed earlier
authorMichal Simek <michal.simek@xilinx.com>
Tue, 14 Jan 2020 10:00:41 +0000 (11:00 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 24 Feb 2020 11:19:42 +0000 (12:19 +0100)
commitdcf639fe6f801f6418357ec20376b2218f666f44
treec989bfab192e50d2e650b50a59e1af523f2fbb1a
parentbb6d3fb354c5ee8d6bde2d576eb7220ea09862b9
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>
arch/microblaze/kernel/setup.c
arch/microblaze/mm/init.c