This patchset adds support to input system memory range based memory size for fadump reservation. The crashkernel parameter already supports such syntax. The first patch refactors the parsing code of crashkernel parameter for reuse. The second patch uses the newly refactored parsing code to reserve memory for fadump based on system memory size. --- Hari Bathini (2): kexec: refactor code parsing size based on memory range powerpc/fadump: parse fadump reserve memory size based on memory range arch/powerpc/kernel/fadump.c | 64 ++++++++++++++++++++++++---- include/linux/kernel.h | 5 ++ kernel/kexec_core.c | 63 ++-------------------------- kernel/params.c | 96 ++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 161 insertions(+), 67 deletions(-)