]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/numa: Store extra copy of numa_nodes_parsed
authorPeter Zijlstra <peterz@infradead.org>
Tue, 3 Mar 2026 10:55:40 +0000 (11:55 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 4 Mar 2026 15:35:08 +0000 (16:35 +0100)
commit48084cc153a5b0fbf0aa98d47670d3be0b9f64d5
tree53b2acb68b712aa3c003d40f93eea1f7b77bd0c4
parent3d1973a0c76a78a4728cff13648a188ed486cf44
x86/numa: Store extra copy of numa_nodes_parsed

The topology setup code needs to know the total number of physical
nodes enumerated in SRAT; however NUMA_EMU can cause the existing
numa_nodes_parsed bitmap to be fictitious. Therefore, keep a copy of
the bitmap specifically to retain the physical node count.

Suggested-by: K Prateek Nayak <kprateek.nayak@amd.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Ingo Molnar <mingo@kernel.org>
Tested-by: K Prateek Nayak <kprateek.nayak@amd.com>
Tested-by: Zhang Rui <rui.zhang@intel.com>
Tested-by: Chen Yu <yu.c.chen@intel.com>
Tested-by: Kyle Meyer <kyle.meyer@hpe.com>
Link: https://patch.msgid.link/20260303110059.889884023@infradead.org
arch/x86/include/asm/numa.h
arch/x86/mm/numa.c
arch/x86/mm/srat.c