[PATCH 0/2] LoongArch: Add the same binary implementation for kdump

From: Youling Tang
Date: Wed Feb 22 2023 - 01:53:27 EST


Add the same binary implementation for kdump.

kexec-tools needs to be updated to make sure it jumps to the correct
kernel entry.

When kaslr is enabled, it is best to add the "nokaslr" parameter when
performing kdump operations to ensure that the randomized kernel
position conflicts with other segments (such as initrd loading
position).
eg: sudo kexec -p vmlinux.efi --reuse-cmdline --append="nokaslr"

Based on the "[PATCH v6 0/5] LoongArch: Add kernel relocation and
KASLR support" series of patches.

Youling Tang (2):
LoongArch: kdump: Add the same binary implementation
LoongArch: kdump: Add crashkernel=YM handling

arch/loongarch/Kconfig | 12 +-----------
arch/loongarch/Makefile | 4 ----
arch/loongarch/configs/loongson3_defconfig | 1 +
arch/loongarch/include/asm/addrspace.h | 2 ++
arch/loongarch/kernel/head.S | 2 +-
arch/loongarch/kernel/setup.c | 15 ++++++++++++---
6 files changed, 17 insertions(+), 19 deletions(-)

--
2.37.3