From 90da2c3735b9ee4ddc80257c6036816bd570dcc8 Mon Sep 17 00:00:00 2001 From: "Suzuki K. Poulose" Date: Mon, 3 Oct 2011 15:48:12 +0530 Subject: kexec: powerpc: crash_dump: No backup region for PPC BookE Disable backup regions for BookE in case of a CRASH Dump, as they can be run from anywhere. The patch introduces --with-booke option to support the BookE. With the patch, we get : ## On a 256M machine: # busybox cat /proc/cmdline init=/bin/init console=ttyS0,16550 crashkernel=128M@100M # kexec -p root/vmlinux usable memory rgns size:1 base:6400000 size:8000000 CRASH MEMORY RANGES 0000000000000000-0000000006400000 000000000e400000-0000000010000000 Command line after adding elfcorehdr: elfcorehdr=112380K Command line after adding elfcorehdr: elfcorehdr=112380K savemaxmem=256M Signed-off-by: Suzuki K. Poulose Signed-off-by: Simon Horman --- purgatory/arch/ppc/purgatory-ppc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'purgatory/arch') diff --git a/purgatory/arch/ppc/purgatory-ppc.c b/purgatory/arch/ppc/purgatory-ppc.c index 3e6b354..3df3767 100644 --- a/purgatory/arch/ppc/purgatory-ppc.c +++ b/purgatory/arch/ppc/purgatory-ppc.c @@ -36,8 +36,10 @@ void setup_arch(void) void post_verification_setup_arch(void) { +#ifndef CONFIG_BOOKE if (panic_kernel) crashdump_backup_memory(); +#endif } void crashdump_backup_memory(void) -- cgit