[PATCH 0/2 v2] perf/x86/amd: IOMMU Performance Counter Support
From: Suravee Suthikulpanit
Date: Mon May 13 2013 - 17:42:55 EST
This is the rework of the original patch set here:
http://lists.linuxfoundation.org/pipermail/iommu/2013-January/005075.html
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.
The command-line, to invoke the iommuv2 PMU, is:
perf stat -e amd_iommu/config=[data],config1=[data]/{u,r} [command]
The IOMMU performance counter support is available starting in the
AMD family15h model 0x30.
For information regarding IOMMU performance counter configuration,
please see the AMD IOMMU v2.5 specification.
Steven L Kinney (2):
IOMMU/AMD: Adding IOMMUv2 PC resource management
IOMMU/AMD: IOMMUV2 PC PERF uncore PMU implementation
arch/x86/kernel/cpu/Makefile | 2 +-
arch/x86/kernel/cpu/perf_event_amd_iommuv2.c | 409 ++++++++++++++++++++++++++
arch/x86/kernel/cpu/perf_event_amd_iommuv2.h | 55 ++++
drivers/iommu/amd_iommu_init.c | 116 +++++++-
drivers/iommu/amd_iommu_proto.h | 7 +
drivers/iommu/amd_iommu_types.h | 12 +-
6 files changed, 594 insertions(+), 7 deletions(-)
create mode 100644 arch/x86/kernel/cpu/perf_event_amd_iommuv2.c
create mode 100644 arch/x86/kernel/cpu/perf_event_amd_iommuv2.h
--
1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/