]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] pseries/phyp dump: Reserve a variable amount of space at boot
authorManish Ahuja <ahuja@austin.ibm.com>
Fri, 11 Apr 2008 23:31:52 +0000 (09:31 +1000)
committerPaul Mackerras <paulus@samba.org>
Wed, 16 Apr 2008 21:46:14 +0000 (07:46 +1000)
commit69e3717a812e93ac2dd7bac97de9e7e29c70230c
treebd00bfd30c7d934f26f8bb55a852ba03569e60c7
parentee09eaa18ddeda9b6bbe68a9c89afe7c7ad7b19b
[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>
arch/powerpc/kernel/prom.c
arch/powerpc/platforms/pseries/phyp_dump.c
include/asm-powerpc/phyp_dump.h