Commit edd8ce67, Use extended crashkernel command line on ppc64, resulted in reserve_crashkernel() attempting to reserve a 1 byte crashkernel area when no no crashkernel reservation is requested. This results in the following bogus messages: Crash kernel location must be 0x2000000 Reserving 0MB of memory at 32MB for crashkernel
The problem is that when crashk_res.start and crashk_res.end are both 0, the crash_size is computed to be 1 byte. Revert back to using the value of crashk_res.start to determine if crashkernel memory is being reserved, rather than the computed crash_size. Signed-off-by: Dale Farnsworth <[EMAIL PROTECTED]> --- arch/powerpc/kernel/machine_kexec.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/kernel/machine_kexec.c b/arch/powerpc/kernel/machine_kexec.c index 691dba7..38c1c1a 100644 --- a/arch/powerpc/kernel/machine_kexec.c +++ b/arch/powerpc/kernel/machine_kexec.c @@ -84,7 +84,7 @@ void __init reserve_crashkernel(void) crash_size = crashk_res.end - crashk_res.start + 1; } - if (crash_size == 0) + if (crashk_res.start == 0) return; /* We might have got these values via the command line or the -- 1.5.3.4 _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev