Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 91452
b: refs/heads/master
c: 654f596
h: refs/heads/master
v: v3
  • Loading branch information
Manish Ahuja authored and Paul Mackerras committed Mar 25, 2008
1 parent c87ca53 commit 6bcfb89
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 242f271c056f49b64b94c06b38fe9e8d3bf703bc
refs/heads/master: 654f596da4a83a8d2734fba26c2a1257533e6d75
5 changes: 5 additions & 0 deletions trunk/arch/powerpc/kernel/prom.c
Original file line number Diff line number Diff line change
Expand Up @@ -1060,6 +1060,11 @@ static void __init phyp_dump_reserve_mem(void)
return;
}

if (!phyp_dump_info->phyp_dump_at_boot) {
printk(KERN_INFO "Phyp-dump disabled at boot time\n");
return;
}

if (phyp_dump_info->phyp_dump_is_active) {
/* Reserve *everything* above RMR.Area freed by userland tools*/
base = PHYP_DUMP_RMR_END;
Expand Down
18 changes: 18 additions & 0 deletions trunk/arch/powerpc/platforms/pseries/phyp_dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -460,3 +460,21 @@ int __init early_init_dt_scan_phyp_dump(unsigned long node,
*((unsigned long *)&sizes[4]);
return 1;
}

/* Look for phyp_dump= cmdline option */
static int __init early_phyp_dump_enabled(char *p)
{
phyp_dump_info->phyp_dump_at_boot = 1;

if (!p)
return 0;

if (strncmp(p, "1", 1) == 0)
phyp_dump_info->phyp_dump_at_boot = 1;
else if (strncmp(p, "0", 1) == 0)
phyp_dump_info->phyp_dump_at_boot = 0;

return 0;
}
early_param("phyp_dump", early_phyp_dump_enabled);

1 change: 1 addition & 0 deletions trunk/include/asm-powerpc/phyp_dump.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ struct phyp_dump {
unsigned long init_reserve_start;
unsigned long init_reserve_size;
/* Check status during boot if dump supported, active & present*/
unsigned long phyp_dump_at_boot;
unsigned long phyp_dump_configured;
unsigned long phyp_dump_is_active;
/* store cpu & hpte size */
Expand Down

0 comments on commit 6bcfb89

Please sign in to comment.