Skip to content

Commit 7c64e21

Browse files
hbathinimpe
authored andcommitted
powerpc/kexec_file: Restrict memory usage of kdump kernel
Kdump kernel, used for capturing the kernel core image, is supposed to use only specific memory regions to avoid corrupting the image to be captured. The regions are crashkernel range - the memory reserved explicitly for kdump kernel, memory used for the tce-table, the OPAL region and RTAS region as applicable. Restrict kdump kernel memory to use only these regions by setting up usable-memory DT property. Also, tell the kdump kernel to run at the loaded address by setting the magic word at 0x5c. Signed-off-by: Hari Bathini <[email protected]> Tested-by: Pingfan Liu <[email protected]> Reviewed-by: Thiago Jung Bauermann <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/159602284284.575379.6962016255404325493.stgit@hbathini
1 parent adfefc6 commit 7c64e21

File tree

1 file changed

+385
-1
lines changed

1 file changed

+385
-1
lines changed

0 commit comments

Comments
 (0)