linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [RFC NO-MERGE 1/2] arch/powerpc/prom_init: Parse the command line before calling CAS
@ 2017-02-21  6:06 Suraj Jitindar Singh
  2017-02-21  6:06 ` [RFC NO-MERGE 2/2] arch/powerpc/CAS: Update to new option-vector-5 format for CAS Suraj Jitindar Singh
  2017-02-23  4:19 ` [RFC NO-MERGE 1/2] arch/powerpc/prom_init: Parse the command line before calling CAS Paul Mackerras
  0 siblings, 2 replies; 5+ messages in thread
From: Suraj Jitindar Singh @ 2017-02-21  6:06 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: benh, paulus, mpe, ruscur, sam.bobroff, Suraj Jitindar Singh

CAS now requires the guest to tell the host whether it would like to use
a hash or radix mmu. 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 represent which mmu we would like to use.

Signed-off-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
---
 arch/powerpc/kernel/prom_init.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/arch/powerpc/kernel/prom_init.c b/arch/powerpc/kernel/prom_init.c
index d3db1bc..37b5a29 100644
--- a/arch/powerpc/kernel/prom_init.c
+++ b/arch/powerpc/kernel/prom_init.c
@@ -2993,6 +2993,11 @@ unsigned long __init prom_init(unsigned long r3, unsigned long r4,
 	 */
 	prom_check_initrd(r3, r4);
 
+	/*
+	 * Do early parsing of command line
+	 */
+	early_cmdline_parse();
+
 #if defined(CONFIG_PPC_PSERIES) || defined(CONFIG_PPC_POWERNV)
 	/*
 	 * On pSeries, inform the firmware about our capabilities
@@ -3009,11 +3014,6 @@ unsigned long __init prom_init(unsigned long r3, unsigned long r4,
 		copy_and_flush(0, kbase, 0x100, 0);
 
 	/*
-	 * Do early parsing of command line
-	 */
-	early_cmdline_parse();
-
-	/*
 	 * Initialize memory management within prom_init
 	 */
 	prom_init_mem();
-- 
2.5.5

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-02-24  3:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-21  6:06 [RFC NO-MERGE 1/2] arch/powerpc/prom_init: Parse the command line before calling CAS Suraj Jitindar Singh
2017-02-21  6:06 ` [RFC NO-MERGE 2/2] arch/powerpc/CAS: Update to new option-vector-5 format for CAS Suraj Jitindar Singh
2017-02-23  4:44   ` Paul Mackerras
2017-02-24  3:46     ` Suraj Jitindar Singh
2017-02-23  4:19 ` [RFC NO-MERGE 1/2] arch/powerpc/prom_init: Parse the command line before calling CAS Paul Mackerras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).