[PATCH v2 0/5] x86/topo: SNC Divination

Peter Zijlstra posted 5 patches 1 month ago
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(-)
[PATCH v2 0/5] x86/topo: SNC Divination
Posted by Peter Zijlstra 1 month ago
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@infradead.org

---
 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(-)
Re: [PATCH v2 0/5] x86/topo: SNC Divination
Posted by Ingo Molnar 1 month ago
* Peter Zijlstra <peterz@infradead.org> 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@infradead.org
> 
> ---
>  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@kernel.org>

Thanks,

	Ingo