Re: [PATCH v3 2/4] riscv: Add support for kexec handover (KHO)
From: Mike Rapoport
Date: Tue Nov 10 2026 - 06:37:46 EST
On Sun, Nov 08, 2026 at 10:24:13AM -0500, Pasha Tatashin wrote:
> > The generic handover paths are already in place on RISC-V: the outgoing
> > kernel publishes the handover FDT and the bootmem list in /chosen of the
> > DTB built by of_kexec_alloc_and_setup_fdt(), and the incoming kernel
> > picks both up while scanning that node. Only the architecture symbol is
> > missing.
> >
> > Set it to 64BIT && MMU: ARCH_SUPPORTS_KEXEC_FILE is already 64BIT only,
> > and KEXEC_HANDOVER selects CMA, which depends on MMU.
> >
> > Signed-off-by: Chen Pei <cp0613@xxxxxxxxxxxxxxxxx>
> >
> > diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
> > index e7891a2a89da..a5c56252ff44 100644
> > --- a/arch/riscv/Kconfig
> > +++ b/arch/riscv/Kconfig
> > @@ -1125,6 +1125,9 @@ config ARCH_SELECTS_KEXEC_FILE
> > config ARCH_SUPPORTS_KEXEC_PURGATORY
> > def_bool ARCH_SUPPORTS_KEXEC_FILE
> >
> > +config ARCH_SUPPORTS_KEXEC_HANDOVER
> > + def_bool 64BIT && MMU
> > +
> > config ARCH_SUPPORTS_CRASH_DUMP
> > def_bool y
>
> Reviewed-by: Pasha Tatashin <pasha.tatashin@xxxxxxxxxx>
>
> But pre-reqs. should be applied prior taking this series:
>
> 1. https://lore.kernel.org/all/20261023054518.3258350-1-gthelen@xxxxxxxxxx
I'm planning to send it to Linus this week.
> 2. https://lore.kernel.org/all/20261104-kho-bootmem-sizing-v2-0-b0d1a834780f@xxxxxxxxxx
This is easy if we take it via liveupdate tree :)
@ricsv folks, how do you prefer to play it?
> --
> Pasha
>
--
Sincerely yours,
Mike.