Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755296AbcDDMUP (ORCPT ); Mon, 4 Apr 2016 08:20:15 -0400 Received: from mail-bn1bon0090.outbound.protection.outlook.com ([157.56.111.90]:52676 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754210AbcDDMUN (ORCPT ); Mon, 4 Apr 2016 08:20:13 -0400 Authentication-Results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=caviumnetworks.com; Date: Mon, 4 Apr 2016 14:19:54 +0200 From: Jan Glauber To: Mark Rutland , Will Deacon CC: , Subject: Re: [PATCH v2 0/5] Cavium ThunderX uncore PMU support Message-ID: <20160404121954.GA9300@hardcore> References: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Originating-IP: [88.66.101.161] X-ClientProxiedBy: HE1PR01CA0018.eurprd01.prod.exchangelabs.com (10.163.2.156) To BLUPR0701MB753.namprd07.prod.outlook.com (10.141.252.19) X-MS-Office365-Filtering-Correlation-Id: f9266b4a-a0bd-4dd3-1989-08d35c8376ea X-Microsoft-Exchange-Diagnostics: 1;BLUPR0701MB753;2:+0vokMfWiQBvOrDudN4DZI8cKV1gutfSgKcWiI9wInztKVry7TMlurkg33mMtK/mcjZhd7LQzseNMNNWkVZOJ5Oi8f1yBHqlO3G1DHu5BlYMryF0hkMwoPGUa8e2xXGn8YmGLExDDHwTONnmMGTwUHDE33sWdhaXJHPT7a0oXzM2HdhZEnkJ9vnwGWiUx/vY;3:3VB3XKPCPnTzEl3A3Wlsba5g5i+5dkMGF1PiDr1eKapOiPEEOLcw9oc7cWvzc6GYlEh1mk7t1FIgqnSOqh38vW4vQWIDvQ8KQ4KpqfDtM0VZso93rHqOX3bYzVJdLQRW;25:UrzrYgAiTN4rp+GreiedrnKE4adNPezPsLjXNRlxS5CtC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+ZH6zAg24xdE33zK/pAV83GvKtdYrRff3WVb6OicIoYVaDYw05EO1kqyEMbLWpTrk5xT3az7s08aagV7ies93D3rEf4Wxfwn1ApcENweSnju46rQSCvLwMx679Tp6x1H403KEKLhyuzsWVnrEacSx8AyBDf7ztfmHu/Hehf/xR7ZtKUS75UyVkAsjbAspEzgXN4jOnCLqGTzk= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046);SRVR:BLUPR0701MB753;BCL:0;PCL:0;RULEID:;SRVR:BLUPR0701MB753; X-Microsoft-Exchange-Diagnostics: 1;BLUPR0701MB753;4:NFd6s4BAiLcBCzswNeOlg66xHozDbb4PQjJjQU1eqmAUtNENg7BYf5Y6dDPh08ezxmwjTjMzUYphsobumo/Mz71YQ0r8fq+Mf3tfOfSXKhPdmUmv/9vd8X3e6Rwphdlek+QsDJOXtLH2CN8OrTZf1M1o13x2GX0KikWMc2naZ+lB1gtcvjjUTozNj4JYvWK8psZ5hwnQboTzRoxDQ7E7gFmnV5uDxsiW+Ho9TVoWVzSsdZPS9ri56EE1nC5byOT4SnTGTCOsIM8m6WkI21ewNNlMi5cg3sqEgBKyVDMJlDLBrBR4b1DJwpCk761IdwvScJNe6LUSnePNuYXCqxjbtpnF8ixLBy/4sTp0rwDHrbNqUlwqZ3fC45/U9YwuIvmg X-Forefront-PRVS: 0902222726 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(24454002)(164054003)(23726003)(92566002)(586003)(5001770100001)(4001350100001)(81166005)(86362001)(3846002)(6116002)(1076002)(1096002)(47776003)(97756001)(50986999)(2950100001)(66066001)(76176999)(54356999)(33716001)(83506001)(42186005)(50466002)(46406003)(77096005)(2906002)(4326007)(5008740100001)(5004730100002)(189998001)(33656002);DIR:OUT;SFP:1101;SCL:1;SRVR:BLUPR0701MB753;H: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5ctVUHrDABvUCTeo0XM8mE+8FPcirwvwEuIiK6Efqh9vrYZuhawBNkSlBXTrz9y69E1xEb3CZBAQq/kFTMnYcNeEF1wFtZiF3wnw0l3h7oZkFm1vs3lI/Q==;24:jp38erb0T4TFDUM49Sllzkh2CTlt/08YLFcCXJtv3bXefOnTwMemQJo/Efk+pugIqU6FXyDOsAiD36u7afaZRV3Sym+mnC1EbG9DCNaQjME= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Apr 2016 12:20:08.2708 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB753 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2183 Lines: 58 Hi Mark, can you have a look at these patches? Thanks, Jan On Wed, Mar 09, 2016 at 05:21:02PM +0100, Jan Glauber wrote: > This patch series provides access to various counters on the ThunderX SOC. > > For details of the uncore implementation see patch #1. > > Patches #2-5 add the various ThunderX specific PMUs. > > As suggested I've put the files under drivers/perf/uncore. I would > prefer this location over drivers/bus because not all of the uncore > drivers are bus related. > > Changes to v1: > - Added NUMA support > - Fixed CPU hotplug by pmu migration > - Moved files to drivers/perf/uncore > - Removed OCX FRC and LNE drivers, these will fit better into a edac driver > - improved comments abount overflow interrupts > - removed max device limit > - trimmed include files > > Feedback welcome! > Jan > > ------------------------------------------------- > > Jan Glauber (5): > arm64/perf: Basic uncore counter support for Cavium ThunderX > arm64/perf: Cavium ThunderX L2C TAD uncore support > arm64/perf: Cavium ThunderX L2C CBC uncore support > arm64/perf: Cavium ThunderX LMC uncore support > arm64/perf: Cavium ThunderX OCX TLK uncore support > > drivers/perf/Makefile | 1 + > drivers/perf/uncore/Makefile | 5 + > drivers/perf/uncore/uncore_cavium.c | 314 +++++++++++++++ > drivers/perf/uncore/uncore_cavium.h | 95 +++++ > drivers/perf/uncore/uncore_cavium_l2c_cbc.c | 237 +++++++++++ > drivers/perf/uncore/uncore_cavium_l2c_tad.c | 600 ++++++++++++++++++++++++++++ > drivers/perf/uncore/uncore_cavium_lmc.c | 196 +++++++++ > drivers/perf/uncore/uncore_cavium_ocx_tlk.c | 380 ++++++++++++++++++ > 8 files changed, 1828 insertions(+) > create mode 100644 drivers/perf/uncore/Makefile > create mode 100644 drivers/perf/uncore/uncore_cavium.c > create mode 100644 drivers/perf/uncore/uncore_cavium.h > create mode 100644 drivers/perf/uncore/uncore_cavium_l2c_cbc.c > create mode 100644 drivers/perf/uncore/uncore_cavium_l2c_tad.c > create mode 100644 drivers/perf/uncore/uncore_cavium_lmc.c > create mode 100644 drivers/perf/uncore/uncore_cavium_ocx_tlk.c > > -- > 1.9.1