Re: [PATCH] x86/events/amd/iommu: Fix cpumask of IOMMU events
From: Chun-Tse Shao
Date: Thu Oct 01 2026 - 18:22:53 EST
Ping for attention.
Thanks,
CT
On Mon, Jul 27, 2026 at 4:26 AM Jörg Rödel <joro@xxxxxxxxxx> wrote:
>
> 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>
>
>