powerpc/fadump: avoid holes in boot memory area when fadump is registered
authorHari Bathini <hbathini@linux.vnet.ibm.com>
Thu, 1 Jun 2017 17:21:26 +0000 (22:51 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 28 Jun 2017 03:08:09 +0000 (13:08 +1000)
commiteae0dfcc44320c79a05637534d59af4643b2ee7b
tree0ba49c4ad13332234ad09dd34f339ac6ed839351
parenta77af552ccc9d4d54459a39f9e5f7ad307aeb4f9
powerpc/fadump: avoid holes in boot memory area when fadump is registered

To register fadump, boot memory area - the size of low memory chunk that
is required for a kernel to boot successfully when booted with restricted
memory, is assumed to have no holes. But this memory area is currently
not protected from hot-remove operations. So, fadump could fail to
re-register after a memory hot-remove operation, if memory is removed
from boot memory area. To avoid this, ensure that memory from boot
memory area is not hot-removed when fadump is registered.

Signed-off-by: Hari Bathini <hbathini@linux.vnet.ibm.com>
Reviewed-by: Mahesh J Salgaonkar <mahesh@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/fadump.h
arch/powerpc/kernel/fadump.c
arch/powerpc/platforms/pseries/hotplug-memory.c