Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751325AbdGZNLP (ORCPT ); Wed, 26 Jul 2017 09:11:15 -0400 Received: from mail-dm3nam03on0085.outbound.protection.outlook.com ([104.47.41.85]:30618 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750921AbdGZNLN (ORCPT ); Wed, 26 Jul 2017 09:11:13 -0400 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jan.Glauber@cavium.com; Date: Wed, 26 Jul 2017 15:10:58 +0200 From: Jan Glauber To: Suzuki K Poulose Cc: Mark Rutland , Will Deacon , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v8 1/3] perf: cavium: Support memory controller PMU counters Message-ID: <20170726131058.GA8665@hc> References: <20170725150422.4775-1-jglauber@cavium.com> <20170725150422.4775-2-jglauber@cavium.com> <72145781-e9ec-036f-f752-b4756fef08ee@arm.com> <20170726111946.GA6273@hc> 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.67.130.225] X-ClientProxiedBy: VI1PR08CA0220.eurprd08.prod.outlook.com (10.170.234.157) To CY1PR07MB2585.namprd07.prod.outlook.com (10.167.16.135) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 42c45cd0-d841-4c40-d767-08d4d427c907 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:CY1PR07MB2585; X-Microsoft-Exchange-Diagnostics: 1;CY1PR07MB2585;3:RLs3/WAsSHPez6BlqNyKKkqrO1zLSL6Txo0TCWNd+EZtR1Rx5qOpsM4YCW+AXvtg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5pY4AyEbyyjqpmCPc2w93WmILXBbF2pqtJNLtbJYIiBPfgwOIhulGhtk8rbcCOMKFuEj2VaVZ7o0ZjVP/viHqRBi2ZeypxOLzDGsIp+RkytpX6lw3MDh8XVRHYltrMl2Y3eO3nuTvA7HPJnhh9zyIEgKXSNUCUoAdJ4SWS7nKvM2lxBwB9HXizP0o1/UftadtHKUE7vOb25hTgMolzxpMG30KHtfJDsah/JBykdcUDK143EQliD6fT2bnUJk9yxthHp60ypUMH38fPFhKoPIq5MFCERbxtfwmE6NV3wHG+d+w== X-Microsoft-Exchange-Diagnostics: 1;CY1PR07MB2585;20:eJrwdXH71+iaQQAHcY8rAGMq5ghVOR5xgw9Vpp2ohYRPHfGQ5pD2kKnCLtEo16johh2mXBYvHELmBfMy4WKBCX7NSR96ORGVEOi7x90en5oIikwX1JNbBFgA2tSx1mqpkTO4TnrOi1561eCGVvogt40OZf1VO+vnnh6Mu+c9/qtE28lY70X9nBKYxDNiV9ycUJGLwnR2pvAM4G7uu8oJjtofBvsTusSyu98MpTEATanl/tUN3uVih9pPVOSsYRxHlhdbU5fmG7zXf6PtPhhxhIcJEwQHTrBVpXQmtX6JqbcAqJEIKjTgYpxp6z0FBv7cfEsmBW+P8hif5SBpwG5+zF3bKN3QwU2AwgpXh0h95g48dbqD1AuU7AH07UKbL4drqPZYu/KVkJGZW96o5gBvipJrueCX+1ZCYbrOeXSYUatjgSDNs6QsLem34cnGuNTOQlIYa+kg54Vv/RXDuXjASAjWTof+z4j5iEMtsf4D4yNtXoLRFaaAasAoJA65mXfrXZhGGlEVwG72eTMBgpgQCK4KzqBEceVFIFAEHD85iBHRn8EEKFCJZVIIsakQEwMne+pzitLuT30gTR+pMTOPH/rALXjfzpgqnCZUIfawGNo= X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(93006095)(100000703101)(100105400095)(6041248)(20161123564025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123560025)(20161123558100)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:CY1PR07MB2585;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:CY1PR07MB2585; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY1PR07MB2585;4:rx9yjfTqzaws2O2qtNmYfzFQ73TZTzPU/FvABIO/9t?= =?us-ascii?Q?8fh5CbU8Y1kc825FgaJ3YzRjdYJjqFdIcvH9SqBj+tdduSY910+SG7azqe9f?= =?us-ascii?Q?WoVvL4IpBj4juM+JGmsXNLzQC/vs2YP/slvyU2WqOU+IWjFFsOJR953lgqwu?= =?us-ascii?Q?kDtNl/YdTzweL4z33p3u6NWV6doHoBTbf4rkeEdfkRnUhT+zRsSP/yDe2A9B?= =?us-ascii?Q?TjFi34scbWyl5uJ7W5q0mHlHHOQU2TJjzo2LCgFUSDI0HU8jcPVg0a+r1Rga?= =?us-ascii?Q?Tjr1txcBkkcoGKudA9s0f5L/XaUG95na4ARvEzaWIUzZDBQ40FAK+AlxQB9x?= =?us-ascii?Q?6tZj3gTNXz/ebdO+6k+uRc5Gok+Su22Iy0d9vLhyBUe4qxs3nro4trbltKHA?= =?us-ascii?Q?RU1G0plmMAGaTgRiERzV3JlmkIx349V3gYLqpLyYuE7SlvXGOTUAnO1dD/z+?= =?us-ascii?Q?lsXSBqH0dgYzu7q42OL8rdSqPEsCMSDB4QKE7bNrex4orDNjoA80cNDLt+L+?= =?us-ascii?Q?DYgEkGZKD09FtSn0zmE1Opbb4Wt8cKytSe6kHdMxS8QR+CgDCXzQ9V/5C4WK?= =?us-ascii?Q?bxIkvs+HpM0Lje+ZOqtMAYYCiPzIvXB29tQDGSfExCQbzTz7hD64FctoE3E6?= =?us-ascii?Q?inJETJKnN5Klzjq16ebk1Nk36Iz+IJ1XhI5Zw7zmKaWkqXxEtiuXtffUGLbN?= =?us-ascii?Q?TGTIYbuUCpGm3lkntDgnHD7zLoOle+mTLPoV0Unat34Xnl3Obx8QvllV36oj?= =?us-ascii?Q?2rUH9Y3qjpOOA50vxO8Hl/JvkGfc9NecXdi8lLc9hzd8Jd+85QjIOX+NV/cl?= =?us-ascii?Q?py7LPk+3eD5UcUiZWMYui3cewnMiqv6pzVWh9YJzKArfPsqD7erWrkBVcQW4?= =?us-ascii?Q?wmoyJ7BD7+tXg3FERgU5vHZnn4Wl5cKEZh3CzpJpGrFOE0sARr0FxthJxKQ+?= =?us-ascii?Q?ylqDbXhFEYW7kQTi03LmvKAP7JBIBtENwp8+lL6qkB1+Oj/reseN0EQhu6tb?= =?us-ascii?Q?bo6SQ0nkqfJAgjjo6XshWckfjJjKU/keveRGcb4IdKY0qqnYlo9P2gjb8bh4?= =?us-ascii?Q?cwVqeXTOpPjNYF3zYooLXg7V4J/JRNZwhXcpLV434eQ22F/0WZNdngvLDeih?= =?us-ascii?Q?zPuRBBXPo=3D?= X-Forefront-PRVS: 038002787A X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(7370300001)(6009001)(39450400003)(39860400002)(39400400002)(39850400002)(39410400002)(39840400002)(189002)(199003)(24454002)(51444003)(6916009)(97736004)(72206003)(966005)(4326008)(2950100002)(47776003)(5660300001)(93886004)(54906002)(38730400002)(23726003)(83506001)(9686003)(229853002)(25786009)(6496005)(55016002)(3846002)(6666003)(53936002)(6306002)(6116002)(1076002)(7350300001)(110136004)(6246003)(478600001)(101416001)(42186005)(2906002)(81156014)(81166006)(68736007)(33656002)(50986999)(42882006)(54356999)(53546010)(4001350100001)(8676002)(305945005)(105586002)(106356001)(76176999)(50466002)(7736002)(33716001)(189998001)(66066001)(18370500001);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR07MB2585;H:hc;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY1PR07MB2585;23:xSJZ+tcZBafXCc6xZtFYXvDo9VorkXE8KN9WyK5pl?= =?us-ascii?Q?OXPLqfA4UGtZAAqOR4Hi5TJP0ci+UwdSJtcCs6NDPLmoWgwIcc9pyikobURP?= =?us-ascii?Q?XAbyegXBCLbdeZtgLV+WDoGvTsUsHazPJoSyqQalbTKLEYUfbQEn7kTOhYPt?= =?us-ascii?Q?XSCGOlC8VpMNZwf8NIxi8KVxBRa35cN/5btciFMpa51BDjSpZT3NJ0y80yi3?= =?us-ascii?Q?TETCcKWCkpnquMkxhjf/Z0tHq8NWRmrrWys4lapYIizu6a2xY60wjimuyXmM?= =?us-ascii?Q?9B9VYGmCOpQxIclILKkBUgEGW8RuOCMNR2JED0ssP4PrwiCxPbTnsler3FK0?= =?us-ascii?Q?R1Nhcg2OEdVejMldFuE7pMsckwKLP5NK4yNLFhm64p9upBt3QhGBPkiGFKrh?= =?us-ascii?Q?+PELbrfn1uJaxnsE7T6BqGZA5XvqXKmotU2EtnG4C52efdFnu7XsH/PJKDGa?= =?us-ascii?Q?YlD9oWYifWQbYVZOrfH3EeyKsO+PvMXYyPa8w0zeFabmMX6h50AsU8mIzD7r?= =?us-ascii?Q?Hv7IGkCpYPr6vdIOzpn6ZXVUI3+AVxDOcs0CQ+/sCzfKnUqhMHRN59JAijf4?= =?us-ascii?Q?asyMrut243e+4knlKwXui4m6JFmiUKet80zHP6ONukPvUTEiaIVAeNOve/7W?= =?us-ascii?Q?wuk7uxR6DC/P5cQSFnlYtLC2W9BujjfO3eCalusGV3u0GD1X6wNt3XBOtGud?= =?us-ascii?Q?2z1g0YybAYm11Bl6vFWL+jlkZdbkZn6dFOg+KLe0LJRcVTAMSs/gb7POCXP1?= =?us-ascii?Q?R2XxndkPLbYYvt3lSNgbhbRVU0j4A3oYbvT4327A2F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u6TEke/3pbxt08EIugMVotCFUosJ7VbwsTZ+wM3X8WiN3vxgbzz7CzKQd?= =?us-ascii?Q?A=3D?= X-Microsoft-Exchange-Diagnostics: 1;CY1PR07MB2585;5:yIyTugdkwl3CzMDF9lil72H7F5h3hkqzEnJbmV+zAg5drBsvLpu+YKPI88BpU5e/5iqGVYz7VLk9YlSK7HV7kBh54zN5llK0LpTo3RjUYyEEyOyTXpPb8k6TqdebhziQqV60izcXZ4Z8UJho/NwdmxAQPJZOf5zKAjAn4oIAjuYYsFwB3117Zp0uRzBU8hmwCmsrQdT794SbKz89CDyFc0kJ4CybSCsZwCzfuM0lh/wdsAByOAQ491A1uOIkBDYhf3OEALdridvlKxOJvmmMViTSuSZ+/ZeW0KsM9VCHdD3jEKsvSU/tsVWPZzT4AScrr3dexNhwS2c3r3ww0tWOKAh3Q6m9MfPAajZijntQ2lus290aKv1ekoHWBXZbKXGeeqDkV7yKYDy+5scAV11H5jtySc9pmnMdrRuFA8GEmSX6lQE4gkxjChcgRjLQQyVPFae8XPEh1IrT5fpknNSzeBeJuHTdtTXFGSd8weEs8hleN6XHeAnJy1t6jzxVgzdj;24:z7UcG2nXF6hXECeH/Rnv9LdMhGtnw6/U6s/iW8SN/2pKZzFbWBBujuDpBKpHrUJJuORYxJ5orf0I4VvSPOXxWKO+CKpiWxKsTSWH+AQaMqc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CY1PR07MB2585;7:qamdhv4svX9AzuHFiQsXXHzWB/tDCyqnw7A+I7KWT24A0PnZr4xOby7ACt4Q2zHqgqzUu5qw7IJ3A+03ylumyls5QibHrH9wdnsKoBsQL44T284zHnF9Hp7lDRIUmVHlZhR7gea9QoGOPU+ScK7k1Fi3WAD5GNKC6MG7UR0nPsAK+qJq6jAYoRVt5w40Y59JlA2ll26BeX9hH9+hBum9rjXcqaG83rpw1ZUmGb1o+G2U6W6+oYVKt+TKpamTl3u3wIxJ93HaEI1GxSyYJoBaU7gIEtN8vZznwycmrVf8VaeDIfCHdKS+QfAOCwF+YVwpRnUmKZoQjQYcSHWE6zVw2FJLo14npg8bSb83FEg46uXi1prulLdBdPST/75+VbBcMEE/z4vVVo4hzSb0xUmFngo8EfsbGbtJEUJg2E0nPiZO17eH/GgeRRj4oSBjUeQ+12kn3Kc06FZq5OEyNJUHDsUsJihwuwWxU0guB7btV0xph8RLQzduXzrvMUBmWqL6tPwzgUfPXeATzn4d8X4Rr0RnK+BFUxWHHY0iKXwO32E+lLJgVCBN8XFWoVd/26GP2DMdcOO9FVOMGqp0cyTbm8E26DUyzUTK0ZYuLE84i+F7LY9hO9V/wi8EXrIu2spW6gAPG5IIErnRej+E66Rx9lyEee40ht7fGo3pLs3LRr7TbyqxCrjT4fO7S7oBSVfxHmlMoHt1649FuGgWV15BxfxmRbRCxzne5fCbiC8YL6DBcUp6+EPxrLgT/cxrvcQegc8kFEIPVOuYfLHEZC0SF5+RzNDJotGUG8bsKXr+nIM= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jul 2017 13:11:09.3254 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR07MB2585 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2409 Lines: 63 On Wed, Jul 26, 2017 at 01:47:35PM +0100, Suzuki K Poulose wrote: > On 26/07/17 12:19, Jan Glauber wrote: > >On Tue, Jul 25, 2017 at 04:39:18PM +0100, Suzuki K Poulose wrote: > >>On 25/07/17 16:04, Jan Glauber wrote: > >>>Add support for the PMU counters on Cavium SOC memory controllers. > >>> > >>>This patch also adds generic functions to allow supporting more > >>>devices with PMU counters. > >>> > >>>Properties of the LMC PMU counters: > >>>- not stoppable > >>>- fixed purpose > >>>- read-only > >>>- one PCI device per memory controller > >>> > >>>Signed-off-by: Jan Glauber > >>>--- > >>>drivers/perf/Kconfig | 8 + > >>>drivers/perf/Makefile | 1 + > >>>drivers/perf/cavium_pmu.c | 424 +++++++++++++++++++++++++++++++++++++++++++++ > >>>include/linux/cpuhotplug.h | 1 + > >>>4 files changed, 434 insertions(+) > >>>create mode 100644 drivers/perf/cavium_pmu.c > >>> > >>>diff --git a/drivers/perf/Kconfig b/drivers/perf/Kconfig > >>>index e5197ff..a46c3f0 100644 > >>>--- a/drivers/perf/Kconfig > >>>+++ b/drivers/perf/Kconfig > >>>@@ -43,4 +43,12 @@ config XGENE_PMU > >>> help > >>> Say y if you want to use APM X-Gene SoC performance monitors. > >>> > >>>+config CAVIUM_PMU > >>>+ bool "Cavium SOC PMU" > >> > >>Is there any specific reason why this can't be built as a module ? > > > >Yes. I don't know how to load the module automatically. I can't make it > >a pci driver as the EDAC driver "owns" the device (and having two > >drivers for one device wont work as far as I know). I tried to hook > >into the EDAC driver but the EDAC maintainer was not overly welcoming > >that approach. > > > > >And while it would be possible to have it a s a module I think it is of > >no use if it requires manualy loading. But maybe there is a simple > >solution I'm missing here? > > > If you are talking about a Cavium specific EDAC driver, may be we could > make that depend on this driver "at runtime" via symbols (may be even, > trigger the probe of PMU), which will be referenced only when CONFIG_CAVIUM_PMU > is defined. It is not the perfect solution, but that should do the trick. I think that is roughly what I proposed in v6. Can you have a look at: https://lkml.org/lkml/2017/6/23/333 https://patchwork.kernel.org/patch/9806427/ Probably there is a better way to do it. Or maybe we just keep it as built-in for the time being. --Jan