From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Lezcano Subject: Re: [PATCH] thermal: of: Allow selection of thermal governor in DT Date: Tue, 6 Mar 2018 16:43:04 +0100 Message-ID: <4e3cc8a6-4b4b-4b09-5c04-b7b331158339@linaro.org> References: <3b80853abb45a9e067cf7a16754b07bb67712457.1520274879.git.amit.kucheria@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org To: Amit Kucheria Cc: DTML , Ram Chandrasekar , Lina Iyer , Zhang Rui , Eduardo Valentin , Rob Herring , Mark Rutland , Linux PM list , Linux Kernel Mailing List List-Id: devicetree@vger.kernel.org On 06/03/2018 06:48, Amit Kucheria wrote: > On Tue, Mar 6, 2018 at 2:41 AM, Daniel Lezcano > wrote: >> On 05/03/2018 19:36, Amit Kucheria wrote: >>> From: Ram Chandrasekar >>> >>> There is currently no way for the governor to be selected for each thermal >>> zone in devicetree. This results in the default governor being used for all >>> thermal zones even though no such restriction exists in the core code. >>> >>> Add support for specifying the thermal governor to be used for a thermal >>> zone in the devicetree. The devicetree config should specify the governor >>> name as a string that matches any available governors. If not specified, we >>> maintain the current behaviour of using the default governor. >>> >>> Signed-off-by: Ram Chandrasekar >>> Signed-off-by: Amit Kucheria >> >> Why not create a kernel parameter (eg. thermal.governor=) ? So everyone >> can gain benefit of this feature. And in order to specify that from the >> DT, add the 'chosen' node and bootargs with the desired kernel parameter? >> > > This is supposed to be a per-thermal zone property. So specifying it > on the command-line, while possible, might be a little cumbersome. I'm > not even sure if kernel parameters can have a variable number of > arguments. IOW, thermal.tz0.governor=userspace, > thermal.tz1.governor=step_wise, thermal.tz2.governor=userspace, ..... > > I'm already seeing SoCs defining 8 or more thermal zones. Ah yes indeed. -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog