android_kernel_xiaomi_sm8350/arch/powerpc
Michael Ellerman eabd90944b [POWERPC] Fix crashkernel= handling when no crashkernel= specified
Commit edd8ce6743 (Use extended crashkernel
command line on ppc64), changed the logic in reserve_crashkernel()
which deals with the crashkernel= command line option.

This introduced a bug in the case when there is no crashkernel= option,
or it is incorrect.  We would fall through and calculate the crash_size
based on the existing values in crashk_res.  If both start and end are 0,
the default, we calculate the crash_size as 1 byte - which is wrong.

Rework the logic so that we use crashk_res, regardless of whether it's
set by the command line or via the device tree (see prom.c).  Then check
if we have an empty range (end == start), and if so make sure to set
both end and start to zero (this is checked in machine_kexec_64.c).  Then
we calculate the crash_size once we know we have a non-zero range.

Finally we always want to warn the user if they specify a base != 32MB,
so remove the special case for that in the command line parsing case.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2008-04-30 19:49:48 +10:00
..
boot [POWERPC] mpc5200: Switch mpc5200 dts files to dts-v1 format 2008-04-29 07:19:07 -06:00
configs [POWERPC] mpc5200: defconfigs for CM5200, Lite5200B, Motion-PRO and TQM5200 2008-04-29 07:19:14 -06:00
kernel [POWERPC] Fix crashkernel= handling when no crashkernel= specified 2008-04-30 19:49:48 +10:00
kvm KVM: ppc: PowerPC 440 KVM implementation 2008-04-27 18:21:39 +03:00
lib [POWERPC] Make rheap safe for spinlocks 2008-04-17 09:50:38 -05:00
math-emu [POWERPC] Replace remaining __FUNCTION__ occurrences 2008-04-01 20:43:09 +11:00
mm [POWERPC] Provide walk_memory_resource() for powerpc 2008-04-29 15:57:53 +10:00
oprofile Merge branch 'linux-2.6' 2008-04-14 21:11:02 +10:00
platforms Merge git://git.kernel.org/pub/scm/linux/kernel/git/jk/spufs 2008-04-30 16:53:17 +10:00
sysdev [RAPIDIO] Change RapidIO doorbell source and target ID field to 16-bit 2008-04-29 19:40:29 +10:00
xmon [POWERPC] Move stackframe definitions to common header 2008-04-18 15:37:18 +10:00
.gitignore
Kconfig [RAPIDIO] Add RapidIO option to kernel configuration 2008-04-29 19:40:27 +10:00
Kconfig.debug [POWERPC] Add IRQSTACKS support on ppc32 2008-04-29 15:57:34 +10:00
Makefile KVM: ppc: PowerPC 440 KVM implementation 2008-04-27 18:21:39 +03:00