powerpc/kdump: Override crash_free_reserved_phys_range to avoid freeing RTAS
authorAnton Blanchard <anton@samba.org>
Tue, 24 Aug 2010 14:23:44 +0000 (14:23 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 29 Nov 2010 04:48:17 +0000 (15:48 +1100)
commitd72e063bb32c06c6c1cec14f6857b7c37ba62d7a
tree9bab39d568bee4b95e37700b0e87ef7346525953
parent64ff31287693c1f325cb9cb049569c1611438ef1
powerpc/kdump: Override crash_free_reserved_phys_range to avoid freeing RTAS

The crashkernel region will almost always overlap RTAS. If we free the
crashkernel region via "echo 0 > /sys/kernel/kexec_crash_size" then we will
free RTAS and the machine will crash in confusing and exciting ways.

Override crash_free_reserved_phys_range and check for overlap with RTAS.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/crash_dump.c