Skip to content

Commit 12cc9fd

Browse files
sjitindarsinghmpe
authored andcommitted
powerpc: Parse the command line before calling CAS
On POWER9 the hypervisor requires the guest to decide whether it would like to use a hash or radix mmu model at the time it calls ibm,client-architecture-support (CAS) based on what the hypervisor has said it's allowed to do. It is possible to disable radix by passing "disable_radix" on the command line. The next patch will add support for the new CAS format, thus we need to parse the command line before calling CAS so we can correctly select which mmu we would like to use. Signed-off-by: Suraj Jitindar Singh <[email protected]> Reviewed-by: Paul Mackerras <[email protected]> Acked-by: Balbir Singh <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
1 parent a69e2fb commit 12cc9fd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

arch/powerpc/kernel/prom_init.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2993,6 +2993,11 @@ unsigned long __init prom_init(unsigned long r3, unsigned long r4,
29932993
*/
29942994
prom_check_initrd(r3, r4);
29952995

2996+
/*
2997+
* Do early parsing of command line
2998+
*/
2999+
early_cmdline_parse();
3000+
29963001
#if defined(CONFIG_PPC_PSERIES) || defined(CONFIG_PPC_POWERNV)
29973002
/*
29983003
* On pSeries, inform the firmware about our capabilities
@@ -3008,11 +3013,6 @@ unsigned long __init prom_init(unsigned long r3, unsigned long r4,
30083013
if (of_platform != PLATFORM_POWERMAC)
30093014
copy_and_flush(0, kbase, 0x100, 0);
30103015

3011-
/*
3012-
* Do early parsing of command line
3013-
*/
3014-
early_cmdline_parse();
3015-
30163016
/*
30173017
* Initialize memory management within prom_init
30183018
*/

0 commit comments

Comments
 (0)