Received: by 10.223.185.116 with SMTP id b49csp3427604wrg; Mon, 5 Mar 2018 21:49:26 -0800 (PST) X-Google-Smtp-Source: AG47ELspQATJe/24ZM7k15PK7I+ZbjouG9PZZeIblN2tBi4yI8mgnEEWSHJJdMBM4sr35AAIAHWU X-Received: by 10.98.35.195 with SMTP id q64mr17595736pfj.161.1520315365905; Mon, 05 Mar 2018 21:49:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520315365; cv=none; d=google.com; s=arc-20160816; b=taWQ1qcpdwIvxHC9bhXL4FvRqzRJLSGzLWi33L6AUp/OHrLRm4Wm14RH8emKcZaOUc Nvv5wZDGRKy9e2OZfmFXNAOwDFYARnYO4zYlmZCiwwd4yWPlhECsHFhiRJ3YU3CURG0d sH9yoMJws+Nukm8OoTkVCfDgvF2RyuxtMFVSHz33z6Nn2ua/3i1rLSbZ+z4csXvj7BY/ 3skhp+M4tenlrsT4lWMA4EoJktzsa0WIUjzoyo1ycPEpbkQ/nK3d0IoaOUy+RuXHYQvT qAsKRlETaGcvuDpxFTbzKTl0oebnuEV0BD74Bz7/8uFLX6/6cEPnjRHo2Y3qRmwaqJMn aYug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=MtDFKn82VqKeGgXNMsP39wOwRBF9z10luAcrYnxXLqg=; b=Ef7xTWaxSR+sjHds413HjanmahwAErbh3HZednO8hqG74CBVCBbiY5k+hJKRX0wkTC pw/5w6WZYhF3Hv07GTsma+yZj2vAW8h1s/xRTffV2DWABlFaYO3f7oA+CFATF1iR6uaM O0mwWrX1TlBd+JRh8Iicv0JgUqY0AFgLSqIRcXcKXmfSzHULXyePq7CObnkH7VDHH4TB zLw3rvDkfKnZvRYO0eJHIemUvtWEYxZ5uYUBe40G1ir3r1Wg4QIixzHX+IR2AcGSM3W3 AkM2fhASCj8Kpc7isz6rWa6JIZCX+PTYTNEtStBxKlzihKCissssXnEN66zIzhAXjjEh ew3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Qjm1kHCF; 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 bc12-v6si4744748plb.336.2018.03.05.21.49.11; Mon, 05 Mar 2018 21:49:25 -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=Qjm1kHCF; 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 S1750911AbeCFFsS (ORCPT + 99 others); Tue, 6 Mar 2018 00:48:18 -0500 Received: from mail-qt0-f193.google.com ([209.85.216.193]:42212 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750734AbeCFFsQ (ORCPT ); Tue, 6 Mar 2018 00:48:16 -0500 Received: by mail-qt0-f193.google.com with SMTP id t6so23280652qtn.9 for ; Mon, 05 Mar 2018 21:48:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=MtDFKn82VqKeGgXNMsP39wOwRBF9z10luAcrYnxXLqg=; b=Qjm1kHCFKLVZYdrGiVZY0+o8c9FbmsqfGfPHGZ/S/wKm0jxtR9DUymu3qduA2QkLLJ 440gJQgNz034tkOM4BDY/cwSi9723mDVrIkX67IuSsBp/lofIAPXxYJ+ItANCTl7g51S h5v2XZYKFXJ7X86yUkNRbsQlEyuxNY/9iX5T0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=MtDFKn82VqKeGgXNMsP39wOwRBF9z10luAcrYnxXLqg=; b=UIBN9VNuTas7vWHThfU+oG+TD9vtkVEj7byPjmJgJ4lN/FhcrP1b/w88H8oWeyg9r/ MVg/FyhrXrFDClaMiskUZFHE8U0QdC8VFPLXVbuFIx1GOGXvG5+75hFdPSvXO4zbhuQk 1mWpxSYD1GHYMTjuCdngsmmn2EPHBftL3Jgb8c6ObmmM4CZs+xufuC/YQB1FElsSyMHf 7SW7LsUgd3LRKMhToWKJYpbxarQNSGBKn/8/kBgUpOd6tjkrOZTbRLWetDtavgo0LOP6 oCMW56JSBX43HjTv6gDS8WRm1qzACgOmHagF40t5Vq8PpAnS5Wi2QDVyBFq49y4OBg8/ 8gDQ== X-Gm-Message-State: AElRT7EqjBGDp1/b/zqg7mC3jo8W8ew+Gx1+ERpIfSm1prx/Vg5/+bXh F4FAxqcV38n3vUYH+J5HEA5qW+HoC8a8znivzLy4yA== X-Received: by 10.237.42.34 with SMTP id c31mr26544549qtd.199.1520315296021; Mon, 05 Mar 2018 21:48:16 -0800 (PST) MIME-Version: 1.0 Received: by 10.237.48.48 with HTTP; Mon, 5 Mar 2018 21:48:15 -0800 (PST) In-Reply-To: References: <3b80853abb45a9e067cf7a16754b07bb67712457.1520274879.git.amit.kucheria@linaro.org> From: Amit Kucheria Date: Tue, 6 Mar 2018 11:18:15 +0530 Message-ID: Subject: Re: [PATCH] thermal: of: Allow selection of thermal governor in DT To: Daniel Lezcano Cc: DTML , Ram Chandrasekar , Lina Iyer , Zhang Rui , Eduardo Valentin , Rob Herring , Mark Rutland , Linux PM list , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.