[PATCH] riscv: unconditionally select ARCH_KEEP_MEMBLOCK

Han Gao rabenda.cn at gmail.com
Mon May 25 06:20:08 PDT 2026


On Fri, May 22, 2026 at 6:04 AM Paul Walmsley <pjw at kernel.org> wrote:
>
> On Wed, 20 May 2026, Han Gao wrote:
>
> > Select ARCH_KEEP_MEMBLOCK unconditionally. kexec requires memblock
> > to be kept after boot to initialize the secondary kernel. Device
> > Tree platforms also need this for kexec support.
> >
> > Signed-off-by: Han Gao <gaohan at iscas.ac.cn>
>
> Thanks for the patch.  If this patch is just about kexec, shouldn't
> ARCH_SELECTS_KEXEC just be changed to select ARCH_KEEP_MEMBLOCK?
It's currently aligned with the arm64 architecture. If so, should we
modify it accordingly?

>
>
> - Paul



More information about the linux-riscv mailing list