Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932449AbdCULr0 (ORCPT ); Tue, 21 Mar 2017 07:47:26 -0400 Received: from mail-wm0-f44.google.com ([74.125.82.44]:37359 "EHLO mail-wm0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932282AbdCULrX (ORCPT ); Tue, 21 Mar 2017 07:47:23 -0400 Date: Tue, 21 Mar 2017 19:47:11 +0800 From: Leo Yan To: Suzuki K Poulose Cc: Mathieu Poirier , Rob Herring , Mark Rutland , Wei Xu , Catalin Marinas , Will Deacon , Michael Turquette , Stephen Boyd , John Stultz , Guodong Xu , Haojian Zhuang , Greg Kroah-Hartman , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , linux-clk@vger.kernel.org, Mike Leach , Sudeep Holla Subject: Re: [v3 3/5] coresight: add support for debug module Message-ID: <20170321114711.GA5886@leoy-linaro> References: <20170313165600.GB32431@linaro.org> <516f8989-4dde-2686-d549-0761feb14d1b@arm.com> <20170317101328.GA19877@leoy-linaro> <20170317155007.GA20435@linaro.org> <20170317162836.GD2020@leoy-linaro> <5995f6a7-08b1-c868-fc88-a145d1748a33@arm.com> <20170321025924.GA7429@leoy-linaro> <7226bc83-24f5-f609-2f87-f0afc7657488@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7226bc83-24f5-f609-2f87-f0afc7657488@arm.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1697 Lines: 41 On Tue, Mar 21, 2017 at 10:16:45AM +0000, Suzuki K Poulose wrote: [...] > >>In my opinion booting with "nohlt" on the cmd line is sufficient to > >>determine if we should use the driver or not. That way we also avoid > >>declaring yet another sysfs flag, something I really want to avoid. > > > >Agree. > > > >I did spend some time to implement coresight core framework to support > >debug module, you could see it on:http://termbin.com/k2fj; this also > >gives me more sense which is better choice. If declaring another sysfs > >flag to support debug module in coresight framework, this lets the > >codes and interfaces more complex. E.g. for best fit into coresight > >framework, finally we can get 8 sysfs nodes for 8 CPUs in system; so > >that means we need enable every CPU one by one. > > Having a node for each debug area indeed doesn't look good. We could > as will stick a single node under /sys/kernel/debug/ which would enable/disable > the debug component. > > I am OK with it being tied to nohlt. In that case we will have to add > a Kconfig dependency on GENERIC_IDLE_POLL_SETUP (though it is selected > by default on ARM/ARM64). Parsing the boot command line for nohlt doesn't > look like a good idea. We may have to figure out a way to do that. I remembered that we can use QoS constraint for CPUIdle: pm_qos_add_request(pm_qos_req, PM_QOS_CPU_DMA_LATENCY, 0); Using this way we can disable all low power states and don't depend on nohlt anymore. > Also, please could you add support for building this as a module ? Since it > doesn't depend on the coresight bus anyway, it should be pretty straight > forward. Yeah. Will support module building. Thanks, Leo Yan