Re: [PATCH v6 07/10] of: reserved_mem: add dumpable flag to opt-in vmcore
From: Rob Herring (Arm)
Date: Thu Sep 17 2026 - 18:28:34 EST
On Wed, 02 Sep 2026 15:31:13 +0800, Wandun Chen wrote:
> From: Wandun Chen <chenwandun@xxxxxxxxxxx>
>
> Add a 'dumpable' flag to struct reserved_mem to decide whether a
> reserved area should be included in the kdump vmcore. Non-dumpable
> regions are later marked MEMBLOCK_NODUMP;the filtering itself happens
> in memblock, keeping the arch kdump code independent of the DT API.
>
> Most reserved regions are owned by devices and do not contain data
> useful for kernel crash analysis, so dumpable default to false.
> Reusable CMA regions are different: their pages are handed back to the
> buddy allocator and may contain key data for crash analysis, so set
> dumpable to true in rmem_cma_setup().
>
> The dumpable flag is also used to check /memreserve/ entries for overlap
> with other dumpable regions.
>
> Suggested-by: Rob Herring <robh@xxxxxxxxxx>
> Signed-off-by: Wandun Chen <chenwandun@xxxxxxxxxxx>
> Tested-by: Meijing Zhao <zhaomeijing@xxxxxxxxxxx>
> Acked-by: Marek Szyprowski <m.szyprowski@xxxxxxxxxxx>
> ---
> include/linux/of_reserved_mem.h | 1 +
> kernel/dma/contiguous.c | 1 +
> 2 files changed, 2 insertions(+)
>
Acked-by: Rob Herring (Arm) <robh@xxxxxxxxxx>