linux/arch/x86/events/amd
Sandipan Das 57e11990f4 perf/x86/amd/uncore: Fix DF and UMC domain identification
For uncore PMUs, a single context is shared across all CPUs in a domain.
The domain can be a CCX, like in the case of the L3 PMU, or a socket,
like in the case of DF and UMC PMUs. This information is available via
the PMU's cpumask.

For contexts shared across a socket, the domain is currently determined
from topology_die_id() which is incorrect after the introduction of
commit 63edbaa48a ("x86/cpu/topology: Add support for the AMD
0x80000026 leaf") as it now returns a CCX identifier on Zen 4 and later
systems which support CPUID leaf 0x80000026.

Use topology_logical_package_id() instead as it always returns a socket
identifier irrespective of the availability of CPUID leaf 0x80000026.

Fixes: 63edbaa48a ("x86/cpu/topology: Add support for the AMD 0x80000026 leaf")
Signed-off-by: Sandipan Das <sandipan.das@amd.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20240626074942.1044818-1-sandipan.das@amd.com
2024-07-04 16:00:41 +02:00
..
brs.c arch/x86: Fix typos 2024-01-03 11:46:22 +01:00
core.c perf/x86: Support counter mask 2024-07-04 16:00:36 +02:00
ibs.c perf/x86/amd: Reject branch stack for IBS events 2023-11-30 09:34:40 +01:00
iommu.c x86/events/amd/iommu: Remove redundant assignment to variable shift 2021-12-28 21:30:05 +01:00
iommu.h IOMMU Updates for Linux v5.13 2021-05-01 09:33:00 -07:00
lbr.c perf/x86/amd: Don't reject non-sampling events with configured LBR 2024-04-03 09:14:26 +02:00
Makefile perf/x86/amd/lbr: Detect LbrExtV2 support 2022-08-27 00:05:43 +02:00
power.c perf/x86/amd/power: Assign pmu.module 2021-08-26 09:12:57 +02:00
uncore.c perf/x86/amd/uncore: Fix DF and UMC domain identification 2024-07-04 16:00:41 +02:00