Re: [PATCH] lib/utils/fdt: Reserve enough FDT space for fdt_cpu_fixup

Chen Pei <[email protected]> Tue, 7 Jul 2026 21:01:35 +0800
Newsgroups org.infradead.lists.opensbi
Message-ID <[email protected]>
Hello everyone,

Friendly ping on this patch. Is there any comment on this fix? Thanks.

To summarize, this patch fixes a real issue where fdt_cpu_fixup()
reserves only a hardcoded +32 bytes when disabling HART DT nodes and
appending the "zicntr" isa-extension. On systems with many disabled
HARTs, fdt_setprop_string() silently returns -FDT_ERR_NOSPACE after
roughly 8 HARTs, leaving the remaining CPU nodes unexpectedly enabled
in the DTB passed to the OS.

The fix replaces the hardcoded reservation with a dynamic calculation
based on SBI_HARTMASK_MAX_BITS and removes the now-redundant per-HART
fdt_open_into() call in the zicntr loop.

Thanks,
Pei

-- 
opensbi mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/opensbi