Re: [PATCH v3 1/4] riscv: Call early_ioremap_setup() before parsing the DTB
From: Pasha Tatashin
Date: Sun Nov 08 2026 - 10:25:28 EST
On Fri, 06 Nov 2026 15:14:56 +0800, Chen Pei <cp0613@xxxxxxxxxxxxxxxxx> wrote:
> parse_dtb() can reach early_memremap(), whose return value is composed
> from the slot table that early_ioremap_setup() fills in - and on RISC-V
> that setup ran after the scan, so the mapping came back NULL. The DT
> based kexec handover parsing is the first caller to hit this:
> kho_populate() cannot map the handover FDT and the handover is dropped.
>
> Run early_ioremap_setup() before parse_dtb(), as arm64 and x86 already
> do.
>
> [...]
Reviewed-by: Pasha Tatashin <pasha.tatashin@xxxxxxxxxx>
--
Pasha