]> git.baikalelectronics.ru Git - kernel.git/commit
s390/kdump: Add PM notifier for kdump
authorMichael Holzheu <holzheu@linux.vnet.ibm.com>
Thu, 4 Apr 2013 17:49:53 +0000 (19:49 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 15 Apr 2013 11:34:44 +0000 (13:34 +0200)
commit4c1ffa607084d3b1fc35f8a023e3914d2a18018c
treef0da72ef98032f4606f9938d9c6eef56b519b6e2
parent3d34597d718ce53665fd0801124f99ffdab92e9b
s390/kdump: Add PM notifier for kdump

For s390 the page table mapping for the crashkernel memory is removed to
protect the pre-loaded kdump kernel and ramdisk. Because the crashkernel
memory is not included in the page tables for suspend/resume it is not
included in the suspend image. Therefore after resume the resumed system
does no longer contain the pre-loaded kdump kernel and when kdump is
triggered it fails.

This patch adds a PM notifier that creates the page tables before suspend
is done and removes them for resume. This ensures that the kdump kernel
is included in the suspend image.

Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/machine_kexec.c