diff options
author | Manish Ahuja <ahuja@austin.ibm.com> | 2008-04-11 19:31:52 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-04-16 17:46:14 -0400 |
commit | 37ddd5d053c57fee798d72fa9c18660f59a9299b (patch) | |
tree | bd00bfd30c7d934f26f8bb55a852ba03569e60c7 /include/asm-powerpc | |
parent | af892e0f9fad390669494e389aed29b968ab7fdb (diff) |
[POWERPC] pseries/phyp dump: Reserve a variable amount of space at boot
This changes the way we calculate how much space to reserve for the
pHyp dump. Currently we reserve 256MB only. With this change, the
code first checks to see if an amount has been specified on the boot
command line with the "phyp_dump_reserve_size" option, and if so, uses
that much.
Otherwise it computes 5% of total ram and rounds it down to a multiple
of 256MB, and uses the larger of that or 256MB.
This is for large systems with a lot of memory (10GB or more). The
aim is to have more space available for the kernel on reboot on
machines with more resources. Although the dump will be collected
pretty fast and the memory released really early on allowing the
machine to have the full memory available, this alleviates any issues
that can be caused by having way too little memory on very very large
systems during those few minutes.
Signed-off-by: Manish Ahuja <mahuja@us.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r-- | include/asm-powerpc/phyp_dump.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/asm-powerpc/phyp_dump.h b/include/asm-powerpc/phyp_dump.h index 209a98913d9d..fa74c6c3e106 100644 --- a/include/asm-powerpc/phyp_dump.h +++ b/include/asm-powerpc/phyp_dump.h | |||
@@ -24,8 +24,10 @@ struct phyp_dump { | |||
24 | /* Memory that is reserved during very early boot. */ | 24 | /* Memory that is reserved during very early boot. */ |
25 | unsigned long init_reserve_start; | 25 | unsigned long init_reserve_start; |
26 | unsigned long init_reserve_size; | 26 | unsigned long init_reserve_size; |
27 | /* Check status during boot if dump supported, active & present*/ | 27 | /* cmd line options during boot */ |
28 | unsigned long reserve_bootvar; | ||
28 | unsigned long phyp_dump_at_boot; | 29 | unsigned long phyp_dump_at_boot; |
30 | /* Check status during boot if dump supported, active & present*/ | ||
29 | unsigned long phyp_dump_configured; | 31 | unsigned long phyp_dump_configured; |
30 | unsigned long phyp_dump_is_active; | 32 | unsigned long phyp_dump_is_active; |
31 | /* store cpu & hpte size */ | 33 | /* store cpu & hpte size */ |