Re: [PATCH] x86/events/amd/iommu: Fix cpumask of IOMMU events
From: Jörg Rödel
Date: Mon Jul 27 2026 - 07:27:01 EST
On Sun, May 17, 2026 at 11:40:26AM +0000, Vasant Hegde wrote:
> IOMMU performance counters are accessed via MMIO space. Currently IOMMU
> PMUs uses a single global cpumask (iommu_cpumask) shared across all AMD
> IOMMU PMU instances. This prevents collecting per-socket numbers
> (ex: perf stat --per-socket).
>
> Fix this by adjusting cpumask based on IOMMUs NUMA node.
>
> Signed-off-by: Vasant Hegde <vasant.hegde@xxxxxxx>
> ---
> arch/x86/events/amd/iommu.c | 29 +++++++++++++++++++++++------
> drivers/iommu/amd/init.c | 7 +++++++
> include/linux/amd-iommu.h | 1 +
> 3 files changed, 31 insertions(+), 6 deletions(-)
Acked-by: Joerg Roedel <joerg.roedel@xxxxxxx>