Received: by 10.223.185.116 with SMTP id b49csp3963499wrg; Tue, 6 Mar 2018 07:45:27 -0800 (PST) X-Google-Smtp-Source: AG47ELuZTnFmQcBnSKLyhS8Ob3/jmEJ42sFxdVG5bcXFAGYoyzZFfhzBUY7g0xgxScnkIST6QZvX X-Received: by 10.98.74.140 with SMTP id c12mr19621052pfj.44.1520351127223; Tue, 06 Mar 2018 07:45:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520351127; cv=none; d=google.com; s=arc-20160816; b=YyTb5LlNdn7Q4Bf0RV3QzxNtFMmJ5k/wwC2EjLFsP6bCF2XBf2hUR5JwSvtnlyUEaF 3Zm9/OlAngBp4dCUE8UNZDFhBWU5VRuL4pajsbujQY0vUh2lTPEATaWmRMO8WUXWpHVq PIy1Ay3ctn1kguk1Q5+F0P4NYzM5KC+PMDsagQdYCiD94CNKQEgrFTDeBYDFHFc4lfu3 rxpxaC81b+YC2UkijQc+4BPJePqX+rPFNLu7L+VClgN54bzbQFwjUNaNYDualMPkcvc3 mKi7QQA2YH4NTnIl+91W+5ar+8296akDeAI0BHeS77M3w87RhJRLBNCU2a6rhCEdW6iO vidw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=Sfx9exE+ERaFfm8JuRbznmIO1VNfpP9U4TeoulQLDZI=; b=pCfqctDv0d3QDia68g4+s+3qyINCBMMhvOVhlbUcKPdKMfj0aSHEUvEVFqlY6kN4P0 aSaIGYMzG03d1DkbuXTu1ct/atwpeGJ5+zSD4Oj2HPz26j6ZwttbZwwmGBpo/YbO9Juw imEv5FeLqcN2j7XqwLvCx4V2aTyu9EM8C1Oia8h+QI7/rycEccJxKOWa4ZXmwd++BX1n s5GC3F0VyJ6i5RSbL42uGKWc9x96AC3r5zZJe9rZTcY+gyi90pB2RbOyEZixVVQEMq1Q YdkbS0xVkkxvXPOAGPgPUWgKxFcY9NclJKIWnqujsK4sxL6WreP8U1iVCed0hgTrV/ND G9Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i25o3Ms+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p8si10061288pgr.674.2018.03.06.07.45.12; Tue, 06 Mar 2018 07:45:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i25o3Ms+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753769AbeCFPnK (ORCPT + 99 others); Tue, 6 Mar 2018 10:43:10 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:54001 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753487AbeCFPnH (ORCPT ); Tue, 6 Mar 2018 10:43:07 -0500 Received: by mail-wm0-f65.google.com with SMTP id e194so4709518wmd.3 for ; Tue, 06 Mar 2018 07:43:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Sfx9exE+ERaFfm8JuRbznmIO1VNfpP9U4TeoulQLDZI=; b=i25o3Ms+eZ/TUKy31lVzeM4A/aHUqp9qEF+A7bWkIHxgz4gpVcss1S7EGLBHMSNOpU a3tJg7p6Gb6JG03vSm5ftHiIrCRdYfF5n+/nMjZ8nqYgw9zDbg4ShckvWyLCLaKi02pV cTY7MVgmPFT2yPMoCilwuUJZKb4e/hi6dvNfc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Sfx9exE+ERaFfm8JuRbznmIO1VNfpP9U4TeoulQLDZI=; b=VFYRTLmvpnexRDdCBG8Xl8ytfeFclrhvddGIhMVXSnoj+xiTSgmpx2fRLZLyzlSW8X uv4D/nQlHO1L93ELrvhK7LVz8OyXFEip0kadw0y4EKgJYOYQt3EhnAgIsSvIwn7fo2Ni awABtHmcFT28RonIdyaiKduwmP4YohbSlF+a7oA21KmzCIALyEx/NqW/hVGR4PWMJMoD i363pFwLCmfJzy2y0mPXZ4uNqlUYXXDZCXJCcJxMoqTjZehCX4f8wMk62ZswXyj9bhkh WWV42oO0K0R8u/rayE6FHYyUwFJG9ZRVb8+8Is3lDeqULMD2wIGj9IOaYUrPh8VOn9Wk EXtQ== X-Gm-Message-State: AElRT7GY9s0ICx1TKWgAYHQxS9bcaUjPlQeckB6v69x1W0kYjuR1ffl8 Ox4BCXjIrL5qZCHCU8FlMD7c9g509Hw= X-Received: by 10.28.9.81 with SMTP id 78mr11218156wmj.61.1520350986397; Tue, 06 Mar 2018 07:43:06 -0800 (PST) Received: from [192.168.1.75] (lft31-1-88-121-166-205.fbx.proxad.net. [88.121.166.205]) by smtp.googlemail.com with ESMTPSA id g52sm32200644wra.20.2018.03.06.07.43.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Mar 2018 07:43:05 -0800 (PST) Subject: Re: [PATCH] thermal: of: Allow selection of thermal governor in DT To: Amit Kucheria Cc: DTML , Ram Chandrasekar , Lina Iyer , Zhang Rui , Eduardo Valentin , Rob Herring , Mark Rutland , Linux PM list , Linux Kernel Mailing List References: <3b80853abb45a9e067cf7a16754b07bb67712457.1520274879.git.amit.kucheria@linaro.org> From: Daniel Lezcano Message-ID: <4e3cc8a6-4b4b-4b09-5c04-b7b331158339@linaro.org> Date: Tue, 6 Mar 2018 16:43:04 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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