[PATCH 3/3] Documentation: kdump: Mention that the crashkernel offset must be aligned
From: Chris Down
Date: Fri Dec 04 2026 - 15:59:33 EST
kdump.rst says that if the start address in crashkernel=size@offset
isn't aligned to the architecture's alignment, the space below the
alignment point is wasted. That's true for s390, which rounds the start
address up. But x86, arm64, riscv and loongarch pass the offset
unchanged to reserve_crashkernel_generic(), which actually has different
behaviour. It, instead, simply reserves nothing at all, which is quite
different from what the docs say.
So, let's document the rules here to avoid confusion and kdumpless
chagrin.
Signed-off-by: Chris Down <chris@xxxxxxxxxxxxxx>
---
Documentation/admin-guide/kdump/kdump.rst | 15 ++++++++++-----
Documentation/admin-guide/kernel-parameters.txt | 4 +++-
2 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/Documentation/admin-guide/kdump/kdump.rst b/Documentation/admin-guide/kdump/kdump.rst
index 7587caadbae1..7638881282aa 100644
--- a/Documentation/admin-guide/kdump/kdump.rst
+++ b/Documentation/admin-guide/kdump/kdump.rst
@@ -264,10 +264,14 @@ crashkernel syntax
crashkernel=256M
- If the start address is specified, note that the start address of the
- kernel will be aligned to a value (which is Arch dependent), so if the
- start address is not then any space below the alignment point will be
- wasted.
+ If the start address is specified, it has to be aligned to a value which
+ is arch dependent. For example, it is 1MiB on x86, and 2MiB on arm64,
+ loongarch, and 64-bit riscv. If it is not aligned properly, nothing will
+ be reserved.
+
+ However, note well that on some architectures like s390, unaligned start
+ addresses are rounded up instead, and so any space below the alignment
+ point is simply wasted.
2) range1:size1[,range2:size2,...][@offset]
@@ -341,7 +345,8 @@ Boot into System Kernel
On x86 and x86_64, use "crashkernel=Y[@X]". Most of the time, the
start address 'X' is not necessary, kernel will search a suitable
- area. Unless an explicit start address is expected.
+ area. Unless an explicit start address is expected. Note that X, if
+ explicitly specified, must be aligned to 1MiB (0x100000).
On ppc64, use "crashkernel=128M@32M".
diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt
index dce9b8f3ae98..8a41b45b1e47 100644
--- a/Documentation/admin-guide/kernel-parameters.txt
+++ b/Documentation/admin-guide/kernel-parameters.txt
@@ -1061,7 +1061,9 @@ Kernel parameters
upon panic. This parameter reserves the physical
memory region [offset, offset + size] for that kernel
image. If '@offset' is omitted, then a suitable offset
- is selected automatically.
+ is selected automatically. Some architectures require
+ offset to be aligned, and will fail to reserve anything
+ if the alignment is not cromulent.
[KNL, X86-64, ARM64, RISCV, LoongArch] Select a region
under 4G first, and fall back to reserve region above
4G when '@offset' hasn't been specified.
--
2.56.1