[PATCH v5] powerpc/kdump: Add support for crashkernel CMA reservation

Ritesh Harjani (IBM) ritesh.list at gmail.com
Tue Nov 4 21:18:48 AEDT 2025


Sourabh Jain <sourabhjain at linux.ibm.com> writes:


> I would like to keep kdump_cma_reserve() as is it because of two reasons:
>
> - It keeps setup_arch() free from kdump #ifdefs

Not really.

Instead of kdump_cma_reserve(crashk_cma_size), one could call

reserve_crashkernel_cma(crashk_cma_size) directly in setup_arch().

> - In case if we want to add some condition on this reservation it would 
> straight forward.
>

Make sense.

> So lets keep kdump_cma_reserve as is, unless you have strong opinion on 
> not to.
>

No strong opinion, as I said it was a minor nit. Feel free to keep the
function kdump_cma_reserve() as is then.

-ritesh



More information about the Linuxppc-dev mailing list