Re: [PATCH v3 1/4] riscv: Call early_ioremap_setup() before parsing the DTB
From: Paul Walmsley
Date: Tue Nov 17 2026 - 19:36:28 EST
Hi Mike and Chen Pei,
On Fri, 6 Nov 2026, Chen Pei 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.
This makes sense, but ...
> Run early_ioremap_setup() before parse_dtb(), as arm64 and x86 already
> do.
... this statement isn't right, since neither ARM64 nor x86 have a
parse_dtb() function. Better just to say that early_ioremap_setup() needs
to run before DT parsing.
With that fixed, then
Acked-by: Paul Walmsley <pjw@xxxxxxxxxx> # arch/riscv
- Paul