Skip to content

Add extended crashkernel command line syntax

Bernhard Walle kexec linux-arch linux-ia64 linuxppc-dev lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7Extended crashkernel command lineinclude/linux/kexec.h kernel/kexec.c+141 -01 reply
2/7Use extended crashkernel command line on i386arch/i386/kernel/e820.c arch/i386/kernel/machine_kexec.c arch/i386/kernel/setup.c+30 -281 reply
3/7Use extended crashkernel command line on x86_64arch/x86_64/kernel/e820.c arch/x86_64/kernel/machine_kexec.c arch/x86_64/kernel/setup.c+30 -352 replies
4/7Use extended crashkernel command line on ia64arch/ia64/kernel/efi.c arch/ia64/kernel/setup.c include/asm-ia64/meminit.h+50 -440 replies
5/7Use extended crashkernel command line on ppc64arch/powerpc/kernel/machine_kexec.c+26 -260 replies
6/7Use extended crashkernel command line on sharch/sh/kernel/machine_kexec.c arch/sh/kernel/setup.c+29 -261 reply
7/7Add documentation for extended crashkernel syntaxDocumentation/kdump/kdump.txt+26 -02 replies

Reviews trailers per patch

1 of 7 patches has a Reviewed-by or Acked-by.

PatchPaul Mundt
1/7
2/7
3/7
4/7
5/7
6/7A-b
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [patch 0/7] Add extended crashkernel command line syntax

This patch adds a extended crashkernel syntax that makes the value of reserved system RAM dependent on the system RAM itself:

    crashkernel=<range1>:<size1>[,<range2>:<size2>,...][@offset]
    range=start-[end]

For example:

    crashkernel=512M-2G:64M,2G-:128M

The motivation comes from distributors that configure their crashkernel command line automatically with some configuration tool (YaST, you know ;)). Of course that tool knows the value of System RAM, but if the user removes RAM, then the system becomes unbootable or at least unusable and error handling is very difficult.

This series implements this change for i386, x86_64, ia64, ppc64 and sh. That should be all platforms that support kdump in current mainline. I tested all platforms except sh due to the lack of a sh processor.

The patch series is against 2.6.23-rc4-mm1.