Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752292AbbLNPFq (ORCPT ); Mon, 14 Dec 2015 10:05:46 -0500 Received: from 8bytes.org ([81.169.241.247]:44410 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751830AbbLNPFo (ORCPT ); Mon, 14 Dec 2015 10:05:44 -0500 Date: Mon, 14 Dec 2015 16:05:42 +0100 From: Joerg Roedel To: Suravee Suthikulpanit Cc: peterz@infradead.org, mingo@redhat.com, acme@kernel.org, linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org Subject: Re: [PATCH] perf/x86/amd: Adding support for new IOMMU performance event Message-ID: <20151214150542.GD11292@8bytes.org> References: <1449874397-27056-1-git-send-email-Suravee.Suthikulpanit@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1449874397-27056-1-git-send-email-Suravee.Suthikulpanit@amd.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1808 Lines: 41 On Fri, Dec 11, 2015 at 04:53:17PM -0600, Suravee Suthikulpanit wrote: > From: Suravee Suthikulpanit > > This patch adds new IOMMU performance event based on > the information in table 74 of the AMD I/O Virtualization Technology > (IOMMU) Specification (Document Id: 4882, Rev 2.62, Feb 2015) > > Link: http://support.amd.com/TechDocs/48882_IOMMU.pdf > Signed-off-by: Suravee Suthikulpanit > --- > arch/x86/kernel/cpu/perf_event_amd_iommu.c | 5 +++++ > 1 file changed, 5 insertions(+) Reviewed-by: Joerg Roedel Acked-by: Joerg Roedel > > diff --git a/arch/x86/kernel/cpu/perf_event_amd_iommu.c b/arch/x86/kernel/cpu/perf_event_amd_iommu.c > index 97242a9..86f8259 100644 > --- a/arch/x86/kernel/cpu/perf_event_amd_iommu.c > +++ b/arch/x86/kernel/cpu/perf_event_amd_iommu.c > @@ -118,6 +118,11 @@ static struct amd_iommu_event_desc amd_iommu_v2_event_descs[] = { > AMD_IOMMU_EVENT_DESC(cmd_processed, "csource=0x11"), > AMD_IOMMU_EVENT_DESC(cmd_processed_inv, "csource=0x12"), > AMD_IOMMU_EVENT_DESC(tlb_inv, "csource=0x13"), > + AMD_IOMMU_EVENT_DESC(ign_rd_wr_mmio_1ff8h, "csource=0x14"), > + AMD_IOMMU_EVENT_DESC(vapic_int_non_guest, "csource=0x15"), > + AMD_IOMMU_EVENT_DESC(vapic_int_guest, "csource=0x16"), > + AMD_IOMMU_EVENT_DESC(smi_recv, "csource=0x17"), > + AMD_IOMMU_EVENT_DESC(smi_blk, "csource=0x18"), > { /* end: all zeroes */ }, > }; > > -- > 1.9.1 > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/