Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp280204pxm; Tue, 22 Feb 2022 10:27:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJwHaUXqEwVG/dC46h4knbAJ/+eCY8OlCDiT9fyQrTfkEs2RS6jjDNAibn08rSvwuexOv4iL X-Received: by 2002:a05:6402:5242:b0:40f:6a4f:ff33 with SMTP id t2-20020a056402524200b0040f6a4fff33mr28173557edd.30.1645554428153; Tue, 22 Feb 2022 10:27:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645554428; cv=none; d=google.com; s=arc-20160816; b=lwuVsR0UdKCo3s5JInW1e0EXvUM9AM0bqTRguczCtsmbS3TYsz95ysBLRnM+kL1895 56PjflM0P0UTyhpKo8HH6EALA7RQFbhMIueGmsQDkMJT73kznCUjuM71/nQVi603YNwc fLpvlYp2rIYP5dDr84RCP/82NRr7W9S+K6EKYJZtuBEy/q4oxVgrv7VqWrJigyJDAYZV G7Hba0PmhOfVbFQtOm5NlCA5YxylhUgN1f1KupHgefBtibUoklAmBNRS7SFFZC9AUJbD TXEptIklCgXqCgiO+Yo1+E/igu5V7QbSq6u+ieVgavgwBf2hGKg7MvvrFxYUOEIJj4wg ow8Q== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=CViuJUBfJYi0QSGuWN6PduP5lx8TFrmj/SDHviOF4gk=; b=BEK+cwbdQxKKL8xVjnIZzF/wWBmD7t9Qcq7lqRbD/Ut5CywiIoQEtiseavlxWk6HUq XPdn3FkFj684hdhFDsKsIjcA01PnszHTeV/J/lNAfPvujex4STlBOHSVFAqcbTYykeCr zMLFzPvoucaDwF48QwFhSgn47okN3UIKJtyMU/OpBkut7d/E9PwloxdnZgObqLzUdRuO zNkJ/hFG4RuPzHHVcceQtUk61Y/0hF7peVwIPVSrcThy9lco/Rv6N42pBz5LzvpBTRKV gkrZCuB8QI49E8F0RNtrlDeqlFWxbZxv2tFjaLbuwfZuQgsiTVeJopzrWLIHMBLKC2vs bncg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="RZa/ygJl"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w8si9231832eje.687.2022.02.22.10.26.44; Tue, 22 Feb 2022 10:27:08 -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; dkim=pass header.i=@linaro.org header.s=google header.b="RZa/ygJl"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234916AbiBVSNI (ORCPT + 99 others); Tue, 22 Feb 2022 13:13:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233081AbiBVSNH (ORCPT ); Tue, 22 Feb 2022 13:13:07 -0500 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C49425E15D for ; Tue, 22 Feb 2022 10:12:39 -0800 (PST) Received: by mail-wr1-x430.google.com with SMTP id f17so10144337wrh.7 for ; Tue, 22 Feb 2022 10:12:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=CViuJUBfJYi0QSGuWN6PduP5lx8TFrmj/SDHviOF4gk=; b=RZa/ygJlSynG5jIAzj/b9lalbmSAGQftTk25TNuPvZfXd7AMTDlAaocg2Dioq8Lc+x aJ9Kayy7MchcekYcE57NEv+fjrctPQANNG5x4969Jvi3ZQfiKa+p6TxlWwIXlTSL/Pfk U8GE2Lo1xNdEG7wJNt15CCDoX0Q476qXS0zeaMjx/7kH3VwVeqrI2PwIckxAlNkdD4zG 05dBbGfOjxSwjZ+Yf+CmQ5W/uF63jGvaFFHKq7P1d0QygsGgxWl9K5zngzUiAbTLsaGe XbP7/z1P6bTvzWeAZmtk0Fdk/uxslU9eTYYFtGQogschHdZzSu0sA+DqxR+pm5GMsSHA p+Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=CViuJUBfJYi0QSGuWN6PduP5lx8TFrmj/SDHviOF4gk=; b=WOHOS5DIqQ3/i98yU9dQ+v099cZ6egSJznE95rBI2dmmRWAQ8JWnfe3osLZ9HV0D9I 3PvZdnYZaVwuFWPKaf3+pFjfshbDOC75RBiVzXJFseiB/iHnmtnd3g6kGJrTFE7/t7UD l7n2NgPneHiKwNqPEgvrzBJT47WmLsSZqKH5aCb5tfj+ZlPTM+sjqaHLE/SehjVHFqtz +Cimnzts/uYMEBVhu1TQ1rModEu8hDBWcd7XRaiG6BkF1tMRHbEoajfi8jQd9bec5iQj LzJtjWwekGiSKsQtEocKfcJDjPZjyLlFl6kRfZkWSl6SiXcC8J0avZJ4YJzwISKpTMUG moNA== X-Gm-Message-State: AOAM532jQqBECstcRJljqKe6rv/uJ8bGgqsUxa6VJxmfStGw+U+QpYkj 9ZFNLKT/tq5g4jPLjbHxZtr5ydCN4+rwrA== X-Received: by 2002:a5d:64e5:0:b0:1e7:6860:606c with SMTP id g5-20020a5d64e5000000b001e76860606cmr20815875wri.467.1645553558226; Tue, 22 Feb 2022 10:12:38 -0800 (PST) Received: from ?IPV6:2a01:e34:ed2f:f020:7f69:edd5:61dd:b18a? ([2a01:e34:ed2f:f020:7f69:edd5:61dd:b18a]) by smtp.googlemail.com with ESMTPSA id g22sm2964522wmh.12.2022.02.22.10.12.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 22 Feb 2022 10:12:37 -0800 (PST) Message-ID: <3d1719ca-d4a4-f904-e284-b857414669ba@linaro.org> Date: Tue, 22 Feb 2022 19:12:35 +0100 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 To: Lukasz Luba 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> <211a3606-2f4c-227b-33aa-177ef68a49a3@arm.com> From: Daniel Lezcano In-Reply-To: <211a3606-2f4c-227b-33aa-177ef68a49a3@arm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, 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 Lukasz, I don't think it makes sense to remove the support of the energy model if the units are abstracts. IIUC, regarding your previous answer, we don't really know what will do the SoC vendor with these numbers and likely they will provide consistent abstract values which won't prevent a correct behavior. What would be the benefit of giving inconsistent abstract values which will be unusable except of giving a broken energy model? Your proposed changes would be acceptable if the energy model has a broken flag IMO On 22/02/2022 18:05, Lukasz Luba wrote: > 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 -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog