# Re: \[PATCH v16 08/10\] powerpc/kexec\_file: Use crash\_exclude\_core\_ranges() helper

- From: Breno Leitao \<leitao@debian.org\>
- Date: 2026-06-08 08:50:46 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2026/06/17101695
- Thread: https://ratatoskr.run/linux-doc/2026/06/17101252/t.md

```text
On Mon, Jun 08, 2026 at 03:34:57PM +0800, Jinjie Ruan wrote:
> The crash memory exclude of crashk_res and crashk_cma memory on powerpc
> are almost identical to the generic crash_exclude_core_ranges().
> 
> By introducing the architecture-specific arch_crash_exclude_mem_range()
> function with a default implementation of crash_exclude_mem_range(),
> and using crash_exclude_mem_range_guarded as powerpc's separate
> implementation, the generic crash_exclude_core_ranges() helper function
> can be reused.
> 
> Cc: Andrew Morton <akpm@linux-foundation.org>
> Cc: Hari Bathini <hbathini@linux.ibm.com>
> Cc: Madhavan Srinivasan <maddy@linux.ibm.com>
> Cc: Mahesh Salgaonkar <redacted>
> Cc: Michael Ellerman <mpe@ellerman.id.au>
> Cc: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
> Cc: Shivang Upadhyay <redacted>
> Acked-by: Baoquan He <redacted>
> Reviewed-by: Sourabh Jain <sourabhjain@linux.ibm.com>
> Acked-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
> Signed-off-by: Jinjie Ruan <redacted>

Acked-by: Breno leitao <leitao@debian.org>

```
