aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/kernel/prom.c5
-rw-r--r--arch/powerpc/platforms/pseries/phyp_dump.c18
2 files changed, 23 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c
index e6c022ef12ee..9330920265f3 100644
--- a/arch/powerpc/kernel/prom.c
+++ b/arch/powerpc/kernel/prom.c
@@ -1060,6 +1060,11 @@ static void __init phyp_dump_reserve_mem(void)
1060 return; 1060 return;
1061 } 1061 }
1062 1062
1063 if (!phyp_dump_info->phyp_dump_at_boot) {
1064 printk(KERN_INFO "Phyp-dump disabled at boot time\n");
1065 return;
1066 }
1067
1063 if (phyp_dump_info->phyp_dump_is_active) { 1068 if (phyp_dump_info->phyp_dump_is_active) {
1064 /* Reserve *everything* above RMR.Area freed by userland tools*/ 1069 /* Reserve *everything* above RMR.Area freed by userland tools*/
1065 base = PHYP_DUMP_RMR_END; 1070 base = PHYP_DUMP_RMR_END;
diff --git a/arch/powerpc/platforms/pseries/phyp_dump.c b/arch/powerpc/platforms/pseries/phyp_dump.c
index 034fe1b54dd9..f80f8606c6b8 100644
--- a/arch/powerpc/platforms/pseries/phyp_dump.c
+++ b/arch/powerpc/platforms/pseries/phyp_dump.c
@@ -460,3 +460,21 @@ int __init early_init_dt_scan_phyp_dump(unsigned long node,
460 *((unsigned long *)&sizes[4]); 460 *((unsigned long *)&sizes[4]);
461 return 1; 461 return 1;
462} 462}
463
464/* Look for phyp_dump= cmdline option */
465static int __init early_phyp_dump_enabled(char *p)
466{
467 phyp_dump_info->phyp_dump_at_boot = 1;
468
469 if (!p)
470 return 0;
471
472 if (strncmp(p, "1", 1) == 0)
473 phyp_dump_info->phyp_dump_at_boot = 1;
474 else if (strncmp(p, "0", 1) == 0)
475 phyp_dump_info->phyp_dump_at_boot = 0;
476
477 return 0;
478}
479early_param("phyp_dump", early_phyp_dump_enabled);
480