OSDN Git Service

perf/x86/intel/uncore: With > 8 nodes, get pci bus die id from NUMA info
authorSteve Wahl <steve.wahl@hpe.com>
Fri, 8 Jan 2021 15:35:49 +0000 (09:35 -0600)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 14 Jan 2021 10:20:14 +0000 (11:20 +0100)
commit9a7832ce3d920426a36cdd78eda4b3568d4d09e3
treed5782404e69c262b7a1c9474a81309e2c7703ba8
parentba9506be4e402ee597b8f41204008b97989b5eef
perf/x86/intel/uncore: With > 8 nodes, get pci bus die id from NUMA info

The registers used to determine which die a pci bus belongs to don't
contain enough information to uniquely specify more than 8 dies, so
when more than 8 dies are present, use NUMA information instead.

Continue to use the previous method for 8 or fewer because it
works there, and covers cases of NUMA being disabled.

Signed-off-by: Steve Wahl <steve.wahl@hpe.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Kan Liang <kan.liang@linux.intel.com>
Link: https://lkml.kernel.org/r/20210108153549.108989-3-steve.wahl@hpe.com
arch/x86/events/intel/uncore_snbep.c