Received: by 10.223.185.116 with SMTP id b49csp3755824wrg; Tue, 6 Mar 2018 04:33:38 -0800 (PST) X-Google-Smtp-Source: AG47ELuFbqxv7KLc9QdiuyofoBz0NWFGacDoa9OGyOauOwvqP7IeLlzP4L08GmWO7f7l581fXcD8 X-Received: by 2002:a17:902:b117:: with SMTP id q23-v6mr16614125plr.58.1520339618193; Tue, 06 Mar 2018 04:33:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520339618; cv=none; d=google.com; s=arc-20160816; b=K8N+5gzwhJ+rzp+7fEJ7uo8SXPZy3hyonpgIv45eXaEGsatf33zh26Zhpfujg1rxg4 vfoBurMLZSumDR9a345k1G6WSBLrVoSboYOQuZr/IFbLgKjktmXOvVi+/uIljJ8IPNaT o4H6btuRUbuOYjeO0dNzfTCPZTMFXo/tnvWOLuV5Qm2n7qTo6jGfWMHrTvgv5+pW39A2 g8bPh8BGUqk1to4AYJ0xnFD6OrcKlHDj02TA0mmrSbuu1CoDolf0SnA6PWb0z2f0J+Cz yF2dHWf1p+OKrjOqrFrVlzkMA7Wips/24Iv902LjV8NdFRfcgN/mfnuGIHzFLcSJh+kE zSwQ== 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:organization:from:references:to:subject:cc :arc-authentication-results; bh=ANgZcuYAU38zBg8+TI4z6xMFdUqGuQvaICEXaJlrO7g=; b=MI79qLpaxof2VuNGUCO7X6gy0KYKy0jYoKBFj5NG7OZSE3IFMp7Q9jO3ewR4V70Nga +wddqIfxSItEkbMaPON2RRxBRneJzg+Ov5/jDsiinf517O8CpIif0D116RfpMuff6Kx+ IV16xK6FfVINWon4HlZyFBbXwnydfxAm/v+PSWNKsDiBtZt7vm6ePmrFpLaLkJVyATE6 ltzWoBmnr+rcNH9j9+IaqWudXcNfbJm89jcKZpWGOjEM2sIsaPaLq78GjeA364GGZD5g KZ8sGnOiP6nOYaiKBx2dFJQ2c8OgPan9BcSc0uXYAfE2nLtZNjV+Y74omBhsfp8DWbPG uEKg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y4si9845054pgc.601.2018.03.06.04.33.23; Tue, 06 Mar 2018 04:33:38 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932418AbeCFMcP (ORCPT + 99 others); Tue, 6 Mar 2018 07:32:15 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:37550 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750897AbeCFMcN (ORCPT ); Tue, 6 Mar 2018 07:32:13 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3D41314; Tue, 6 Mar 2018 04:32:13 -0800 (PST) Received: from [10.1.211.34] (unknown [10.1.211.34]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C24803F24A; Tue, 6 Mar 2018 04:32:10 -0800 (PST) Cc: Amit Kucheria , devicetree@vger.kernel.org, Sudeep Holla , ilina@codeaurora.org, Zhang Rui , Eduardo Valentin , Rob Herring , Mark Rutland , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] thermal: of: Allow selection of thermal governor in DT To: Ram Chandrasekar References: <3b80853abb45a9e067cf7a16754b07bb67712457.1520274879.git.amit.kucheria@linaro.org> From: Sudeep Holla Organization: ARM Message-ID: <6d5aeab8-aafe-fa3b-585e-953a34864e7d@arm.com> Date: Tue, 6 Mar 2018 12:32:08 +0000 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: <3b80853abb45a9e067cf7a16754b07bb67712457.1520274879.git.amit.kucheria@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/03/18 18:36, Amit Kucheria wrote: > From: Ram Chandrasekar > > There is currently no way for the governor to be selected for each thermal > zone in devicetree. How is that any different from cpufreq, cpuidle or devfreq subsystems ? > This results in the default governor being used for all > thermal zones even though no such restriction exists in the core code. > What restrictions ? > Add support for specifying the thermal governor to be used for a thermal > zone in the devicetree. Then what prevents us from doing the same for other subsystems with so called /inefficient default/ governors ? > 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. If one is specified, can the user change it from sysfs ? If yes, then why do we need this binding at all ? If no, we are basically restricting, then what would happen if the DT was shipped with wrong governor specified because the firmware author didn't know about any other governor ? IMO, having this in DT is bad idea as it may cause more issues than gain. We already have sysfs support like other PM subsystems and userspace can deal with it. -- Regards, Sudeep