Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp138708pxm; Tue, 22 Feb 2022 18:57:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJxPD6JKW77+AJcR2AnEa4iXMm8fxSXdtkLU3vB+Jz+cN84yUvQARWI4ox3PGwPsT2qUZv9l X-Received: by 2002:a63:ab49:0:b0:36c:48f7:ea30 with SMTP id k9-20020a63ab49000000b0036c48f7ea30mr21877427pgp.2.1645585056469; Tue, 22 Feb 2022 18:57:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645585056; cv=none; d=google.com; s=arc-20160816; b=ubRGW+hLasm/6Be/8I7xHr+OQRfy6hBg69PQAyJE5JG/1hbTlhC90eWqYTV5EAG8qG 0kTfCXGA528iyOkIfh0HP1+uW2yfjNt0LJ0TiUrXwDm5/xVOt2bCzvTFrxFfTKjd3+TC z7VTHwYDl1cWwFat6lkoEpH0+ZzCbdr/V4Cwnl7ZjUSGNMt74LY01N+QXtzYNiUhC5iM yaFG3zbFbE+myYnUHQB0QHFleablaR5n/7psT2TxKEazerOnGmZkHgrIYEWUBL11bax7 GpchzM7TzJ0KDvB4joetpLK7DfQrhVZurMMzbuz6INS5zDyRYKZ/Oj3ZFaJvFp09gPOV 5dnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id; bh=3M/+3/N/lMAH/gAJZ7frfWAcoMbPjQBt1n0/bF5E0Cs=; b=qhmDwsIzuzALuQSccN8yR7ZE/UjYMJzBlyDB3kjMGTk60zpP9FvdA8xDfJLMSzDTlO zoBBMWv0SvEa+CAb6uXYISBJiL6aFuIXkqxnJepmxLGuJXkgh/Z0GDBN7NCQFq8tkOOF AflNS03coglBzLiCjTul5KRf8PvrjUj0xqyDBs0cFk/OPKHDqQaBDB9fdp1V3NTH0tzm p+Y89M90N3KEfP/8IArP8YwqfNsgH+bZcpXnygV4rRxiu5tetpao7ceZiN5rY5ehRMtH NqexINpJVqd1OZxLZTPNV7DxDkj8Fy+XDz5TQiyBcXTXhP/8f44jJmpTlRju10Sab7X+ JIVQ== 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 u13si35937114plh.481.2022.02.22.18.57.17; Tue, 22 Feb 2022 18:57:36 -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 S232643AbiBVRFo (ORCPT + 99 others); Tue, 22 Feb 2022 12:05:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232716AbiBVRFn (ORCPT ); Tue, 22 Feb 2022 12:05:43 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7A55D53B47; Tue, 22 Feb 2022 09:05:17 -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 2F9BB106F; Tue, 22 Feb 2022 09:05:17 -0800 (PST) Received: from [10.57.9.152] (unknown [10.57.9.152]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 144A33F70D; Tue, 22 Feb 2022 09:05:14 -0800 (PST) Message-ID: <211a3606-2f4c-227b-33aa-177ef68a49a3@arm.com> Date: Tue, 22 Feb 2022 17:05:13 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH 1/2] thermal: cooling: Check Energy Model type in cpufreq_cooling and devfreq_cooling Content-Language: en-US From: Lukasz Luba 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> <4e090ffe-c19b-8e2c-0396-72dc33361f35@arm.com> In-Reply-To: <4e090ffe-c19b-8e2c-0396-72dc33361f35@arm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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, gentle ping On 2/17/22 18:18, Lukasz Luba wrote: > 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