perf/x86/intel/uncore: Get UPI NodeID and GroupID
authorAlexander Antonov <alexander.antonov@linux.intel.com>
Thu, 17 Nov 2022 12:28:29 +0000 (12:28 +0000)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 24 Nov 2022 10:09:22 +0000 (11:09 +0100)
commitc4aebdb3b5f50fd0d83bf0fc2d49ac299f8b61df
tree97db5ea0602a41e89bdb45a322677d124e968c3f
parent4cfce57fa42d277497cd2c425021312eae2f223c
perf/x86/intel/uncore: Get UPI NodeID and GroupID

The GIDNIDMAP register of UBOX device is used to get the topology
information in the snbep_pci2phy_map_init(). The same approach will be
used to discover UPI topology for ICX and SPR platforms.

Move common code that will be reused in next patches.

Signed-off-by: Alexander Antonov <alexander.antonov@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Kan Liang <kan.liang@linux.intel.com>
Link: https://lore.kernel.org/r/20221117122833.3103580-8-alexander.antonov@linux.intel.com
arch/x86/events/intel/uncore_snbep.c