From: Suravee Suthikulpanit <suravee.suthikulpanit@xxxxxxx>
NOTE: Please see individual patch for changes list.
These patches implement the AMD IOMMU Performance Counter functionality
via custom perf PMU and implement static counting for various IOMMU
translations.
1) Extend the AMD IOMMU initialization to include performance
counter enablement.
2) The perf AMD IOMMU PMU to manage performance counters, which
interface with the AMD IOMMU core driver.
Steven L Kinney (1):
perf/x86/amd: Adding IOMMU PC resource management
Suravee Suthikulpanit (1):
perf/x86/amd: AMD IOMMU PC PERF uncore PMU implementation
arch/x86/kernel/cpu/Makefile | 4 +
arch/x86/kernel/cpu/perf_event_amd_iommu.c | 504 ++++++++++++++++++++++++++++
arch/x86/kernel/cpu/perf_event_amd_iommu.h | 40 +++
drivers/iommu/amd_iommu_init.c | 140 +++++++-
drivers/iommu/amd_iommu_proto.h | 7 +
drivers/iommu/amd_iommu_types.h | 15 +-
6 files changed, 698 insertions(+), 12 deletions(-)
create mode 100644 arch/x86/kernel/cpu/perf_event_amd_iommu.c
create mode 100644 arch/x86/kernel/cpu/perf_event_amd_iommu.h