Message ID | 1449874397-27056-1-git-send-email-Suravee.Suthikulpanit@amd.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.112.73.68 with SMTP id j4csp175943lbv; Fri, 11 Dec 2015 15:04:25 -0800 (PST) X-Received: by 10.66.119.237 with SMTP id kx13mr28743571pab.158.1449875065150; Fri, 11 Dec 2015 15:04:25 -0800 (PST) Return-Path: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id qy7si3942887pab.169.2015.12.11.15.04.24; Fri, 11 Dec 2015 15:04:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754689AbbLKXEW (ORCPT <rfc822;pingbo.wen@linaro.org> + 28 others); Fri, 11 Dec 2015 18:04:22 -0500 Received: from mail-bl2on0073.outbound.protection.outlook.com ([65.55.169.73]:31904 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752153AbbLKXEV (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 11 Dec 2015 18:04:21 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Suravee.Suthikulpanit@amd.com; Received: from ssuthiku-cz-dev.amd.com (165.204.77.1) by BLUPR12MB0434.namprd12.prod.outlook.com (10.162.92.14) with Microsoft SMTP Server (TLS) id 15.1.355.16; Fri, 11 Dec 2015 23:04:09 +0000 From: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com> To: <peterz@infradead.org>, <mingo@redhat.com>, <acme@kernel.org>, <joro@8bytes.org> CC: <linux-kernel@vger.kernel.org>, <iommu@lists.linux-foundation.org>, Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>, Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com> Subject: [PATCH] perf/x86/amd: Adding support for new IOMMU performance event Date: Fri, 11 Dec 2015 16:53:17 -0600 Message-ID: <1449874397-27056-1-git-send-email-Suravee.Suthikulpanit@amd.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: BY1PR14CA0032.namprd14.prod.outlook.com (25.161.91.42) To BLUPR12MB0434.namprd12.prod.outlook.com (25.162.92.14) X-Microsoft-Exchange-Diagnostics: 1; BLUPR12MB0434; 2:jmpjoEoqDH9wCQvYhuVVuLjQnXSPIKN+qbJs2eDRUdAxaEwJ4CkRpSmZwsiJY7h+X8fVOK5wQuvrjgY9sufY5v2VHH6X72ma5H22N7agS6+W5zk/ren0EcNzqOSDdJKaTmVfIEXTti2UZueyuKF+IQ==; 3:Al+UR13Dihn910wBnHUeaYe3guwP/W1gW9Inum8xWlptAIZbRYSEaFZnOnGTMksHFFTU+evAWnu5CAGBcCjmWI+WFh6lHYmxxmCGyUEa8cz/D8mOlzYtp+z3Eg5N00TK; 25:OZtneq26i6oAQH035dUtJQS5qTDCgYJV1kyMrGvgsDwih/ZO/lYcgqY7AgvEVXaDhR7TyT6Phkd7d7NdkvJo9MBk7dmTkbsmZFIBs94TCnJz6/UWlHebgT+OVeFCjXGeDrmLHM5XD/zf2CM+9EU/ugMKVnSW+t0vtMo3d8q7QOCCt7PBGKqWtec1rPZOjiNMwYbo0JCZekmZOnVaxUIYIBwf9U5XwPIq3cXrL5MebvVsn42Wf2cQRB5r4HlwCwkoV9t0ll06xFDu+aQBBFSbdw== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR12MB0434; X-Microsoft-Exchange-Diagnostics: 1; BLUPR12MB0434; 20:Pwoeu+UktTjXozJsZhkhDeiOLk4DMxjE0fCzceoYDDhrHEm36euqvPjWei6LemJBpci4N7TEoZqVEgbVssBHmGg3lTBGmiY2SJvdXjO12cs/19IfMZHoP2QcN12R6AgwKLpQQEs+3gKPMdfumZ6dRrk5PqFbOko6F2k8lix49st6m0LBbxiYKxwiA35qNTDb0uEVmBUXlktazd6mj+mbLhqmzfXa4TW9Vduu67qdK3LPNCEgstI6mw1+sEoO7if2oMqbw1zmsdqIYsKbLxJkUcUofF17XynPZRroe1ETSb/XJbkYJtkPXXDg6mji8uynz9yz0U4lTrKx+kPikiRomWUSAs5PjNl+G8ulwJ/XrzacP3QrQoxtg+T+XApOU7MCkdFXBj89zZwgnYXXPv1IA+YLVKjGilLqe+aAJ1OvrfBzGz0ztSZ135FLPYEz7yt5Cr6pUxJO/kwl+IodP2gt+sUDDHBRUKHqKf8a1k5WJDfBtHiDtGt0Y2OStsaBwBZl; 4:xa4aGYbKJP34BNtoJG5I3Gw/qAcV+dj+6Tjt4ilrRVG7e9CXlJ5qnIN9wv0XxalbOwzn7VM1nAfZPC6wHAuuT9q3SVafsJR4wggEJm4exYshkd9I02CYlas5ZvQbytUc8ROz3OZgE9Vu6qbaJ+MLEVRvTdN344DNdaQ4q7WORKZJiykyDxgGz+X8oOdOHdXqLsNzh2DQyzakSxXkiJVPQ8bxIPFovimwmm6GCpMXnCmT4ZNgUZ8/rALJ5TEXtGzkSVhbmQyDiM+zXtAQr6s1hnRX5bIhCChYt68jNbEKx57HAaVJfzH0sYrsB6RPyLcSwQ9DTtSXYT2qJh75VyKAmFQB3o+4PfGyXAjiWYfmfGVqqsjupttda1SAQUbsaQqt6sy5Ug0r3RamCAXzT6zwKDMbRZr5Ecs+nj/7sjTK0YA= X-Microsoft-Antispam-PRVS: <BLUPR12MB043449637AC0EB391AF233CFF3EA0@BLUPR12MB0434.namprd12.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(520078)(8121501046)(5005006)(3002001)(10201501046); SRVR:BLUPR12MB0434; BCL:0; PCL:0; RULEID:; SRVR:BLUPR12MB0434; X-Forefront-PRVS: 0787459938 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(199003)(189002)(243025005)(50226001)(87976001)(586003)(36756003)(19580405001)(86362001)(3846002)(189998001)(19580395003)(5004730100002)(92566002)(47776003)(2201001)(97736004)(15975445007)(5001770100001)(77096005)(5003940100001)(48376002)(101416001)(40100003)(66066001)(122386002)(6116002)(1096002)(105586002)(50466002)(229853001)(106356001)(50986999)(42186005)(5008740100001)(53416004); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR12MB0434; H:ssuthiku-cz-dev.amd.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR12MB0434; 23:L8t6U3VXmHMa54EhxblzLaHPDwDSu861pTZNu3S33?= =?us-ascii?Q?9iLu9rzJkyAax8EkcCIR/UZiAyVrLKwamAv1H131k72lV4igJW2j828UQn6L?= =?us-ascii?Q?D6NsC2dL0xZ4542GeQZcacjppFPdX3C89K4FI6YbVwnzfEAkdm4pPMUaVsTr?= =?us-ascii?Q?FFXzwr2x3Ln2WinO8D1r2BDqtpTX2O+rlJ20/jficxG4FBlS0W6YvCH2nW0l?= =?us-ascii?Q?FMw/ukiD/u6Q5xwrOgDZ7VW7wSKU4jc8GWJo+C8bTDJig92TADw904pBEFYW?= =?us-ascii?Q?KGgjIdfze3ni5PbYaFFjsI7UzUovCErg8HpGm/W/fKPvEl/gfdubHdc53u3/?= =?us-ascii?Q?K7fbQYkpt7+I6DKNE6oFJS98B6SyR3x9LZiGNYh+lyhbKwRBMZiCXXz5rMru?= =?us-ascii?Q?X11spGMYD8mvojzxuKssFJXYIlj1lkGQ33Ma+6rWGYYL5L1qR+oCf16wmAfM?= =?us-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QMazzbsAaF1FCWCKKJLnu8IFumZKdKYTWzRNM8CVB+5fdHDdDK6WgzYI/Tz+UVuapPSeF1BG3unxr1Y+BKpFxTMkj3GKRDSvWrMWsTJJsD26euvQKH14MtvS5eHtj4Qtivba76LJLRjWGzRb44xHsgORh3UBbpZGYusErv2o6cq16h2PMzygm X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Dec 2015 23:04:09.7889 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR12MB0434 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
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 */ }, };