]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit89a10c29305eb1b3a81af97d8d2376391e848fbf
treed5782404e69c262b7a1c9474a81309e2c7703ba8
parent84849b21188428ef66d90031f5a0aa43a85b13ab
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