]> www.infradead.org Git - users/jedix/linux-maple.git/commit
pstore/ramoops: Add ramoops.mem_name= command line option
authorSteven Rostedt (Google) <rostedt@goodmis.org>
Thu, 13 Jun 2024 15:55:08 +0000 (11:55 -0400)
committerMike Rapoport (IBM) <rppt@kernel.org>
Wed, 19 Jun 2024 15:05:14 +0000 (18:05 +0300)
commitd9d814eebb1ae9742e7fd7f39730653b16326bd4
treedcb83a31c4cf188d2f225ef870ca2d8c14f8ef41
parent1e4c64b71c9bf230b25fde12cbcceacfdc8b3332
pstore/ramoops: Add ramoops.mem_name= command line option

Add a method to find a region specified by reserve_mem=nn:align:name for
ramoops. Adding a kernel command line parameter:

  reserve_mem=12M:4096:oops ramoops.mem_name=oops

Will use the size and location defined by the memmap parameter where it
finds the memory and labels it "oops". The "oops" in the ramoops option
is used to search for it.

This allows for arbitrary RAM to be used for ramoops if it is known that
the memory is not cleared on kernel crashes or soft reboots.

Tested-by: Guilherme G. Piccoli <gpiccoli@igalia.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Acked-by: Kees Cook <kees@kernel.org>
Link: https://lore.kernel.org/r/20240613155527.591647061@goodmis.org
Signed-off-by: Mike Rapoport (IBM) <rppt@kernel.org>
Documentation/admin-guide/ramoops.rst
fs/pstore/ram.c