[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1368481362-5562-1-git-send-email-suravee.suthikulpanit@amd.com>
Date: Mon, 13 May 2013 16:42:42 -0500
From: Suravee Suthikulpanit <suravee.suthikulpanit@....com>
To: <linux-kernel@...r.kernel.org>, <a.p.zijlstra@...llo.nl>,
<mingo@...hat.com>, <iommu@...ts.linux-foundation.org>,
<joro@...tes.org>
CC: <steven.kinney@....com>,
Suravee Suthikulpanit <suravee.suthikulpanit@....com>
Subject: [PATCH 0/2 v2] perf/x86/amd: IOMMU Performance Counter Support
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists