This series prepares cpu_to_coregroup_id() for broader use and enables
coregroup support on PowerNV when firmware exposes the required
associativity information.
The first patch cleans up find_primary_domain_index(). The second makes
cpu_to_coregroup_id() available outside PPC_SPLPAR while preserving the
existing fallback behavior. The final patch detects coregroup support
from the associativity hierarchy and uses it on PowerNV systems.
Changelog from v2: https://lkml.kernel.org/r/20260605055242.1757485-5-srikar@linux.ibm.com
- Handle comments from Ritesh (one hunk needed to be moved from patch 2 to
patch 3 to build correctly)
Changelog from v1: https://lkml.kernel.org/r/20260524010017.140408-1-srikar@linux.ibm.com
- Split into 3 patches
- Handle comments from Christophe Leroy
Srikar Dronamraju (3):
powerpc/numa: Simplify find_primary_domain_index
powerpc/numa: Allow cpu_to_coregroup_id without PPC_SPLPAR
powerpc/numa: Support coregroup on PowerNV
arch/powerpc/include/asm/topology.h | 15 +++--
arch/powerpc/mm/numa.c | 85 ++++++++++++++++++++++-------
2 files changed, 71 insertions(+), 29 deletions(-)
--
2.43.7