[PATCH v3 1/4] riscv: Call early_ioremap_setup() before parsing the DTB

Pasha Tatashin pasha.tatashin at soleen.com
Sun Nov 8 07:24:13 PST 2026


On Fri, 06 Nov 2026 15:14:56 +0800, Chen Pei <cp0613 at linux.alibaba.com> 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 at soleen.com>

-- 
Pasha




More information about the kexec mailing list