perf/x86/intel/uncore: With > 8 nodes, get pci bus die id from NUMA info
mainline inclusion from mainline-v5.12-rc1 commit 9a7832ce category: feature feature: SPR PMU uncore support bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I5BECO Intel-SIG: commit 9a7832ce perf/x86/intel/uncore: With > 8 nodes, get pci bus die id from NUMA info This commit is backported as a dependency for SPR PMU uncore support. ------------------------------------- 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: NSteve Wahl <steve.wahl@hpe.com> Signed-off-by: NPeter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: NKan Liang <kan.liang@linux.intel.com> Link: https://lkml.kernel.org/r/20210108153549.108989-3-steve.wahl@hpe.comSigned-off-by: NYunying Sun <yunying.sun@intel.com>
Showing
想要评论请 注册 或 登录