Re: [PATCH v2 0/5] x86/topo: SNC Divination
From: Ingo Molnar
Date: Tue Mar 03 2026 - 07:10:33 EST
* Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
> Hi!
>
> Extend Thomas' MADT time topology code to include SRAT based node counts to
> provide a boot time based: topology_num_nodes_per_package().
>
> This provides a best effort estimate for things like Intel CoD/SNC and AMD NPS
> modes that are not otherwise enumerated.
>
> Use this measure to address various SNC snafus.
>
> v1: https://lkml.kernel.org/r/20260226104909.675623579@xxxxxxxxxxxxx
>
> ---
> arch/x86/include/asm/numa.h | 6 ++
> arch/x86/include/asm/topology.h | 6 ++
> arch/x86/kernel/cpu/common.c | 3 +
> arch/x86/kernel/cpu/resctrl/monitor.c | 36 +------
> arch/x86/kernel/cpu/topology.c | 13 ++-
> arch/x86/kernel/smpboot.c | 198 ++++++++++++++++++++++++----------
> arch/x86/mm/numa.c | 8 ++
> arch/x86/mm/srat.c | 2 +
> 8 files changed, 184 insertions(+), 88 deletions(-)
Modulo some minor comments for patch #4, this series LGTM:
Reviewed-by: Ingo Molnar <mingo@xxxxxxxxxx>
Thanks,
Ingo