Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp619904pxb; Thu, 17 Feb 2022 10:57:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJwkzwLSmL+l+fSL9jrnsv1FbcTHq963sWD/SZG8m4WNDPzaWjK/88AIcgy8iPNBjt6OPguh X-Received: by 2002:a17:90b:3508:b0:1b9:92fb:239d with SMTP id ls8-20020a17090b350800b001b992fb239dmr8644968pjb.224.1645124242038; Thu, 17 Feb 2022 10:57:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645124242; cv=none; d=google.com; s=arc-20160816; b=Mk9P2LrzFXvxLy+ts9oGupsipdpnHZv2FDK8/K/bj3qnfFeXtdR+4FaV8DOZX1qMAl ma/TFm1lioGvquFGxsLkSXcMw3UuLJ1BJvq0130rQA42kvRDlWKZFyNEz9wNxlOL0nuV 6R0EE9dt69ANhEq3sXpW42svsFJ/WuHhEDyaMecbO4GnJOZj1OrI0Ag9+MHso/RWmPlH fxIOitzg9p3NjLLqSI370/2hhjd8e+2QCLOAxmGlc1Oe6JB6Qf9EOCLnnYc/EYC3HruS 0+P5x04Xesz/5KZp4QlZ8kuY1+gjkNbJFMZF7Bc/WmyGfF0pCnl0vs0lUAFkYhgrIs2J xT7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=AwZqkR+lf3oBEMAIUbhS9R+28ykPgsULohCzmSZwt3U=; b=0kezMao+s/OZCO/NCZ8iZdXgBz0d89ozPSyecZxQrOeJJRRBPsJH8Ij0xE9/iPTTyp teJjcwGywIVf/J9eBUV4US81DEzfFQ/kd5uc9MvtcRQQRdY6DnrrjKbsew2sNjdSuQs4 mvs3qljb72ZBdhyIFy1NAuxSwKlim7iQ19twR6+RhZj0aLpvJK6X4XBYdTabLVhkEJNh WdMdgAtcvzGn0p1QmNkGNDmjrFYyKVLm0KDJRZgA1HxZqe4CN5yTlGSdFewkZuUhJ84+ Lnx2dGAXhOy7e8Xj5Zag+iMtLEPExCZlTaxsd5SGnYhAiAACdQUscas0WnvGI3uGYU2C TIUg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f9si9056857pgc.444.2022.02.17.10.57.06; Thu, 17 Feb 2022 10:57:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244158AbiBQSSt (ORCPT + 99 others); Thu, 17 Feb 2022 13:18:49 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:38652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235092AbiBQSSs (ORCPT ); Thu, 17 Feb 2022 13:18:48 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5784817187A; Thu, 17 Feb 2022 10:18:33 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2255D113E; Thu, 17 Feb 2022 10:18:33 -0800 (PST) Received: from [10.57.17.240] (unknown [10.57.17.240]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 20E2F3F718; Thu, 17 Feb 2022 10:18:30 -0800 (PST) Subject: Re: [PATCH 1/2] thermal: cooling: Check Energy Model type in cpufreq_cooling and devfreq_cooling To: daniel.lezcano@linaro.org Cc: amit.kachhap@gmail.com, viresh.kumar@linaro.org, rafael@kernel.org, amitk@kernel.org, rui.zhang@intel.com, dietmar.eggemann@arm.com, Pierre.Gondois@arm.com, Matthias Kaehlcke , Doug Anderson , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220207073036.14901-1-lukasz.luba@arm.com> <20220207073036.14901-2-lukasz.luba@arm.com> From: Lukasz Luba Message-ID: <4e090ffe-c19b-8e2c-0396-72dc33361f35@arm.com> Date: Thu, 17 Feb 2022 18:18:29 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <20220207073036.14901-2-lukasz.luba@arm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Daniel, On 2/7/22 7:30 AM, Lukasz Luba wrote: > The Energy Model supports power values either in Watts or in some abstract > scale. When the 2nd option is in use, the thermal governor IPA should not > be allowed to operate, since the relation between cooling devices is not > properly defined. Thus, it might be possible that big GPU has lower power > values in abstract scale than a Little CPU. To mitigate a misbehaviour > of the thermal control algorithm, simply not register a cooling device > capable of working with IPA. > > Signed-off-by: Lukasz Luba > --- > drivers/thermal/cpufreq_cooling.c | 2 +- > drivers/thermal/devfreq_cooling.c | 16 +++++++++++++--- > 2 files changed, 14 insertions(+), 4 deletions(-) The discussion in below this patch went slightly off-topic but it was valuable. It clarified also there are no broken platforms with this change. Could you take the patch into the thermal tree, please? Regards, Lukasz