[PATCH v5 0/4] arm64/riscv: Add support for crashkernel CMA reservation
Jinjie Ruan
ruanjinjie at huawei.com
Thu Feb 12 02:09:57 PST 2026
Exclude crash kernel memory in crash core to avoid duplication. Also move
the size calculation (and the realloc if needed) into crash core.
And add support for crashkernel CMA reservation for arm64 and riscv.
Changes in v5:
- Fix the kernel test robot build warnings.
- Sort crash memory ranges before preparing elfcorehdr for powerpc
- Link to v4: https://lore.kernel.org/all/20260209095931.2813152-1-ruanjinjie@huawei.com/
Changes in v4:
- Move the size calculation (and the realloc if needed) into the
generic crash.
- Link to v3: https://lore.kernel.org/all/20260204093728.1447527-1-ruanjinjie@huawei.com/
Changs in v3:
- Exclude crash kernel memory in crash core as Mike suggested.
- Add acked-by.
Jinjie Ruan (3):
crash: Exclude crash kernel memory in crash core
arm64: kexec: Add support for crashkernel CMA reservation
riscv: kexec: Add support for crashkernel CMA reservation
Sourabh Jain (1):
powerpc/crash: sort crash memory ranges before preparing elfcorehdr
.../admin-guide/kernel-parameters.txt | 16 +--
arch/arm64/include/asm/kexec.h | 9 +-
arch/arm64/kernel/machine_kexec_file.c | 43 +++-----
arch/arm64/mm/init.c | 5 +-
arch/loongarch/include/asm/kexec.h | 9 +-
arch/loongarch/kernel/machine_kexec_file.c | 41 +++----
arch/powerpc/include/asm/kexec.h | 13 +++
arch/powerpc/include/asm/kexec_ranges.h | 1 -
arch/powerpc/kexec/crash.c | 67 ++++++-----
arch/powerpc/kexec/file_load_64.c | 17 +--
arch/powerpc/kexec/ranges.c | 103 +----------------
arch/riscv/include/asm/kexec.h | 9 +-
arch/riscv/kernel/machine_kexec_file.c | 39 +++----
arch/riscv/mm/init.c | 5 +-
arch/x86/include/asm/kexec.h | 9 ++
arch/x86/kernel/crash.c | 104 ++----------------
include/linux/crash_core.h | 75 ++++++++++++-
kernel/crash_core.c | 85 ++++++++++++--
18 files changed, 314 insertions(+), 336 deletions(-)
--
2.34.1
More information about the linux-riscv
mailing list