Skip to content

Commit ce1bf19

Browse files
jiribohacakpm00
authored andcommitted
kdump, documentation: describe craskernel CMA reservation
Describe the new crashkernel ",cma" suffix in Documentation/ Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Jiri Bohac <[email protected]> Cc: Baoquan He <[email protected]> Cc: Dave Young <[email protected]> Cc: David Hildenbrand <[email protected]> Cc: Donald Dutile <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Philipp Rudo <[email protected]> Cc: Pingfan Liu <[email protected]> Cc: Tao Liu <[email protected]> Cc: Vivek Goyal <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent ab47551 commit ce1bf19

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

Documentation/admin-guide/kdump/kdump.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,27 @@ crashkernel syntax
311311

312312
crashkernel=0,low
313313

314+
4) crashkernel=size,cma
315+
316+
Reserve additional crash kernel memory from CMA. This reservation is
317+
usable by the first system's userspace memory and kernel movable
318+
allocations (memory balloon, zswap). Pages allocated from this memory
319+
range will not be included in the vmcore so this should not be used if
320+
dumping of userspace memory is intended and it has to be expected that
321+
some movable kernel pages may be missing from the dump.
322+
323+
A standard crashkernel reservation, as described above, is still needed
324+
to hold the crash kernel and initrd.
325+
326+
This option increases the risk of a kdump failure: DMA transfers
327+
configured by the first kernel may end up corrupting the second
328+
kernel's memory.
329+
330+
This reservation method is intended for systems that can't afford to
331+
sacrifice enough memory for standard crashkernel reservation and where
332+
less reliable and possibly incomplete kdump is preferable to no kdump at
333+
all.
334+
314335
Boot into System Kernel
315336
-----------------------
316337
1) Update the boot loader (such as grub, yaboot, or lilo) configuration

Documentation/admin-guide/kernel-parameters.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -986,6 +986,28 @@
986986
0: to disable low allocation.
987987
It will be ignored when crashkernel=X,high is not used
988988
or memory reserved is below 4G.
989+
crashkernel=size[KMG],cma
990+
[KNL, X86] Reserve additional crash kernel memory from
991+
CMA. This reservation is usable by the first system's
992+
userspace memory and kernel movable allocations (memory
993+
balloon, zswap). Pages allocated from this memory range
994+
will not be included in the vmcore so this should not
995+
be used if dumping of userspace memory is intended and
996+
it has to be expected that some movable kernel pages
997+
may be missing from the dump.
998+
999+
A standard crashkernel reservation, as described above,
1000+
is still needed to hold the crash kernel and initrd.
1001+
1002+
This option increases the risk of a kdump failure: DMA
1003+
transfers configured by the first kernel may end up
1004+
corrupting the second kernel's memory.
1005+
1006+
This reservation method is intended for systems that
1007+
can't afford to sacrifice enough memory for standard
1008+
crashkernel reservation and where less reliable and
1009+
possibly incomplete kdump is preferable to no kdump at
1010+
all.
9891011

9901012
cryptomgr.notests
9911013
[KNL] Disable crypto self-tests

0 commit comments

Comments
 (0)