Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751747AbdGZQZh (ORCPT ); Wed, 26 Jul 2017 12:25:37 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:10281 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750897AbdGZQZg (ORCPT ); Wed, 26 Jul 2017 12:25:36 -0400 Date: Wed, 26 Jul 2017 17:25:15 +0100 From: Jonathan Cameron To: Jan Glauber CC: Suzuki K Poulose , Mark Rutland , Will Deacon , Borislav Petkov , "linux-kernel@vger.kernel.org" , Subject: Re: [PATCH v8 1/3] perf: cavium: Support memory controller PMU counters Message-ID: <20170726172515.0000185c@huawei.com> In-Reply-To: <20170726154623.GB11453@hc> References: <20170725150422.4775-1-jglauber@cavium.com> <20170725150422.4775-2-jglauber@cavium.com> <72145781-e9ec-036f-f752-b4756fef08ee@arm.com> <20170726111946.GA6273@hc> <20170726131058.GA8665@hc> <131179fe-42e7-f286-5bd4-801f4c93d5f9@arm.com> <20170726145522.GC28875@nazgul.tnic> <20170726151314.GA10696@hc> <0a0daa94-bad7-cbb5-e421-f8e9d6c79d54@arm.com> <20170726154623.GB11453@hc> Organization: Huawei X-Mailer: Claws Mail 3.15.0 (GTK+ 2.24.31; x86_64-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.206.48.115] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020204.5978C27C.0176,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: d5b8fbe9df34569b361b319169f76183 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 772 Lines: 20 On Wed, 26 Jul 2017 17:46:23 +0200 Jan Glauber wrote: > On Wed, Jul 26, 2017 at 04:17:11PM +0100, Suzuki K Poulose wrote: > > How about adding a soc specific (wrapper) driver for the memory controller, which > > could use the PCI id and trigger EDAC and PMU drivers (based on what is > > selected by configs) ? > > Sounds good to me. Is there a driver that already does this? Sounds like a classic MFD (multifunction device). There are quite a few pci devices to be found under drivers/mfd/ than may provide some inspiration. Jonathan > > --Jan > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel