Re: [PATCH] riscv: unconditionally select ARCH_KEEP_MEMBLOCK

From: Han Gao

Date: Mon May 25 2026 - 09:24:41 EST


On Fri, May 22, 2026 at 6:04 AM Paul Walmsley <pjw@xxxxxxxxxx> 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@xxxxxxxxxxx>
>
> 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