Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754218AbdFWN4f (ORCPT ); Fri, 23 Jun 2017 09:56:35 -0400 Received: from mail.skyhub.de ([5.9.137.197]:48318 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752170AbdFWN4e (ORCPT ); Fri, 23 Jun 2017 09:56:34 -0400 Date: Fri, 23 Jun 2017 15:56:07 +0200 From: Borislav Petkov To: Jan Glauber Cc: Mark Rutland , Will Deacon , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 0/3] Cavium ARM64 uncore PMU support Message-ID: <20170623135607.qey6p3pt4fltvyas@pd.tnic> References: <20170623130128.11006-1-jglauber@cavium.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20170623130128.11006-1-jglauber@cavium.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 852 Lines: 22 On Fri, Jun 23, 2017 at 03:01:25PM +0200, Jan Glauber wrote: > Add support for various PMU counters found on the Cavium ThunderX and > OcteonTx SoC. > > The driver provides common "uncore" functions to avoid code duplication and > support adding more device PMUs (like L2 cache) in the future. > > Probe and removal of the PMUs is done by hooking into the ThunderX EDAC > driver as this driver owns all the PCI devices containing the PMU counters. ... which is a very bad idea, of course. EDAC doesn't have anything to do with performance measurements. And I don't see why the EDAC driver should own any PCI devices - EDAC simply uses them like anything else in the kernel so the PMU functionality can simply use them too, independent from EDAC. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.