Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752756AbdHGJhU (ORCPT ); Mon, 7 Aug 2017 05:37:20 -0400 Received: from foss.arm.com ([217.140.101.70]:45632 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752367AbdHGJhT (ORCPT ); Mon, 7 Aug 2017 05:37:19 -0400 Subject: Re: [PATCH v8 1/3] perf: cavium: Support memory controller PMU counters To: Jan Glauber , Borislav Petkov References: <20170726153502.GE28875@nazgul.tnic> <20170726154515.GA11453@hc> <20170726155548.GF28875@nazgul.tnic> <20170726161949.GB15426@kroah.com> <20170726163049.GG28875@nazgul.tnic> <20170726173353.GB21705@kroah.com> <1a2eedea-040d-c746-eaf0-1d8085b3f2bf@gmail.com> <20170726200802.GA17722@kroah.com> <20170727051157.GA4525@nazgul.tnic> <20170727090856.GB15784@hc> Cc: David Daney , Greg KH , Mark Rutland , linux-pci@vger.kernel.org, Will Deacon , "linux-kernel@vger.kernel.org" , linux-arm-kernel@lists.infradead.org From: Suzuki K Poulose Message-ID: <647e2941-d854-0341-3e6a-709a6c3db839@arm.com> Date: Mon, 7 Aug 2017 10:37:15 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20170727090856.GB15784@hc> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 901 Lines: 26 On 27/07/17 10:08, Jan Glauber wrote: > On Thu, Jul 27, 2017 at 07:11:57AM +0200, Borislav Petkov wrote: >> On Wed, Jul 26, 2017 at 02:02:42PM -0700, David Daney wrote: >>> Also, if a given configuration disables CONFIG_EDAC there is some hackery >>> needed to get the perf portion of the driver included. >> >> Yes, and we don't do performance counters in EDAC. >> >> So you could add a small memory controller driver which does the >> arbitration or fix the firmware. > > OK. As fixing the firmware will take quite some time I'll go for the memory > controller driver that starts EDAC / PMU depending on their CONFIG_. Please could you also rename CAVIUM_PMU to something like CAVIUM_MMC_PMU or even CAVIUM_UNCOR_PMU ? The symbol could easily be mistaken for a "cavium" CPU PMU. Suzuki > > What would be the proper location for the multiplexer? > drivers/soc/cavium or drivers/misc? > > --Jan >