Subject: Re: [PATCH v10 4/8] crash: Exclude crash kernel memory in crash core

From: Catalin Marinas <[email-masked]>
Date: Thu, 26 Mar 2026 10:53:16 +0000

On Wed, Mar 25, 2026 at 10:59:00AM +0800, Jinjie Ruan wrote:
> The crash memory alloc, and the exclude of crashk_res, crashk_low_res
> and crashk_cma memory are almost identical across different architectures,
> handling them in the crash core would eliminate a lot of duplication, so
> do them in the common code.
> 
> To achieve the above goal, three architecture-specific functions are
> introduced:
> 
> - arch_get_system_nr_ranges(). Pre-counts the max number of memory ranges.
> 
> - arch_crash_populate_cmem(). Collects the memory ranges and fills them
>   into cmem.
> 
> - arch_crash_exclude_ranges(). Architecture's additional crash memory
>   ranges exclusion, defaulting to empty.
> 
> Reviewed-by: Sourabh Jain <[email-masked]>
> Acked-by: Baoquan He <[email-masked]>
> Acked-by: Mike Rapoport (Microsoft) <[email-masked]>
> Signed-off-by: Jinjie Ruan <[email-masked]>

For arm64:

Acked-by: Catalin Marinas <[email-masked]>