[PATCH v2] kho: skip memoryless NUMA nodes when reserving scratch areas
Pratyush Yadav
pratyush at kernel.org
Tue Jan 20 10:37:14 PST 2026
On Tue, Jan 20 2026, Evangelos Petrongonas wrote:
> kho_reserve_scratch() iterates over all online NUMA nodes to allocate
> per-node scratch memory. On systems with memoryless NUMA nodes (nodes
> that have CPUs but no memory), memblock_alloc_range_nid() fails because
> there is no memory available on that node. This causes KHO initialization
> to fail and kho_enable to be set to false.
>
> Some ARM64 systems have NUMA topologies where certain nodes contain only
> CPUs without any associated memory. These configurations are valid and
> should not prevent KHO from functioning.
>
> Fix this by only counting nodes that have memory (N_MEMORY state) and
> skip memoryless nodes in the per-node scratch allocation loop.
>
> Signed-off-by: Evangelos Petrongonas <epetron at amazon.de>
Reviewed-by: Pratyush Yadav <pratyush at kernel.org>
[...]
--
Regards,
Pratyush Yadav
More information about the kexec
mailing list