powerpc/kdump: Handle crashkernel memory reservation failure
authorHari Bathini <hbathini@linux.ibm.com>
Thu, 28 Jun 2018 05:19:56 +0000 (10:49 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Oct 2018 00:00:48 +0000 (17:00 -0700)
commit769ae06e4442d9efc4c2a7494ed0f348b6efb7ba
treec6218d0a846076ab06b2ea2ebdbcbdb22e111ef2
parent333cb98f393ba2edd0e2f8577d823c0ffd9fef4b
powerpc/kdump: Handle crashkernel memory reservation failure

[ Upstream commit 8950329c4a64c6d3ca0bc34711a1afbd9ce05657 ]

Memory reservation for crashkernel could fail if there are holes around
kdump kernel offset (128M). Fail gracefully in such cases and print an
error message.

Signed-off-by: Hari Bathini <hbathini@linux.ibm.com>
Tested-by: David Gibson <dgibson@redhat.com>
Reviewed-by: Dave Young <dyoung@redhat.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/kernel/machine_kexec.c