Open bowen-zhou-ampere opened 3 years ago
Merged to linux-5.10.y tree:
57fff4f6225e kdump: update Documentation about crashkernel ab1d6e298504 arm64: kdump: add memory for devices by DT property linux,usable-memory-range 7821bbdf1386 x86, arm64: Add ARCH_WANT_RESERVE_CRASH_KERNEL config b2da6ad29413 arm64: kdump: reimplement crashkernel=X dd1d12dabbb1 arm64: kdump: introduce some macroes for crash kernel reservation 52daf855ce0a x86/elf: Move vmcore_elf_check_arch_cross to arch/x86/include/asm/elf.h 364cdc25f77d x86: kdump: move reserve_crashkernel[_low]() into crash_core.c 3011146bb8c8 x86: kdump: move xen_pv_domain() check and insert_resource() to setup_arch() 8b0f3f64fc61 x86: kdump: use macro CRASH_ADDR_LOW_MAX in functions reserve_crashkernel() 2ebcc6f110a1 x86: kdump: make the lower bound of crash kernel reservation consistent 36e0d48e6a8d x86: kdump: replace the hard-coded alignment with macro CRASH_ALIGN
Unit test steps:
#cat /proc/iomem | grep -i crash
bec00000-bfbfffff : Crash kernel (low) <--------- The address can be different
403fbbe00000-403ffbdfffff : Crash kernel <--------- The address can be different
To support arm64 primary kernel allocating enough memory for crashkernel.
Community review email: https://lkml.org/lkml/2021/1/30/53
The complete ‘crashkernel memory reservation patch’ is composed of below 11 patches (in the sequence of commit in openEuler tree): https://github.com/openeuler-mirror/kernel
This patchset introduces a new syntax for kernel boot command line:
crashkernel={size},high
andcrashkernel={size},low
For example on Altra this parameter can be used: crashkernel=1024M,high User can use a larger size if needed.
To verify if memory reservation for crashkernel is successful, use ‘
dmesg | grep -i crash
’ and ‘cat /proc/iomem | grep -i crash
’ to verify, below is a good result from /proc/iomem:Then follow standard crashkernel verification method to do complete validation.