Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp399916pxm; Wed, 23 Feb 2022 02:58:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJxP8ciI5L0or+zszgts35kyXYmiKI6agBK/DMhcNrM0QFn921dD27dIJvbRPONgUmrijSju X-Received: by 2002:a17:906:a08:b0:6ce:e6d:7a63 with SMTP id w8-20020a1709060a0800b006ce0e6d7a63mr22075743ejf.309.1645613911424; Wed, 23 Feb 2022 02:58:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645613911; cv=none; d=google.com; s=arc-20160816; b=MhSXjsYZcOwWuckkuFuH4F7aLB02FCEcDBxVqqThLFBSWeA2FU6wCkOgDzCuSLvGs6 LSrSkAnp7z78UYQ9YtiSVTe4ioWkO8W2B9yoY1KuSCw/Pc5JonZXNdVIkAWKASFjbtfW 1eu+U0vWXuGdLrViaoqeIFQmbW8er4zHDu/nXJq1en5mg850QjzN0DAOSBsnHpSKWNAF CCrn64AcRrDUapuRO8sxBzG2eUmPwnJDYTKp0keNrRD+lxMrFEdLjzs+9nDL6x+PJp+F OTkL1d/RKR9aHC3VkGGwb+y44Q+qt6TnqdOVC7F/F35JCOAYT/nycUke0EZZQkUlo/0y 0Bzg== 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; bh=HCfgPNcmGT68r+2svHgoIWCBVwdKFndsR2ZCMHHK02o=; b=DA7S+ArBzS3i3vDezkGFEd+obiCuqJ3K6y3mal7PxfWvxtEKNSwxRtbxdrZP26qekS +XbmP4ySr9An40eDGQpolPw2T8T7HV/Eis3gjjSXhOQdrqxRWaCXRcqp63VDEP6Lar1v eBqpb73BROPk3i7pMJbihA9vMipKujn5Udb3Seti54y5iog1Ey32WN+NzvJAsYgpjPT9 A2od3BZQDfOLgExJqoEtSfHGhEC36NhsUX3j4tzG8UCaF2uvYaoO+8D6dGxmqkQ6mQak U5KbRfSHstTr6FMmQrHju+/j8gIAPRBGQOhuKkCPf22sn+lLzIlV2ZdC7Gm3mr4MY6Nc Zafg== 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 u7si12285854eju.706.2022.02.23.02.58.07; Wed, 23 Feb 2022 02:58:31 -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 S239207AbiBWJLJ (ORCPT + 99 others); Wed, 23 Feb 2022 04:11:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234982AbiBWJLH (ORCPT ); Wed, 23 Feb 2022 04:11:07 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4E47C80228; Wed, 23 Feb 2022 01:10:39 -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 DBF001042; Wed, 23 Feb 2022 01:10:38 -0800 (PST) Received: from [10.57.9.184] (unknown [10.57.9.184]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E59CC3F5A1; Wed, 23 Feb 2022 01:10:36 -0800 (PST) Message-ID: Date: Wed, 23 Feb 2022 09:10:35 +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 To: Daniel Lezcano 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> <3d1719ca-d4a4-f904-e284-b857414669ba@linaro.org> <27df4e4f-b6d7-9a58-f2dd-d6afa748e217@arm.com> From: Lukasz Luba In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed 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 On 2/22/22 22:10, Daniel Lezcano wrote: > > Hi Lukasz, > > On 22/02/2022 19:31, Lukasz Luba wrote: >> >> >> On 2/22/22 18:12, Daniel Lezcano wrote: >>> >>> 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? >> >> The power values in the EM which has abstract scale, would make sense >> to EAS, but not for IPA or DTPM. Those platforms which want to enable >> EAS, >> but don't need IPA, would register such '' EM. > > Sorry, but I don't understand why DTPM can not deal with abstract values? They will be totally meaningless/bogus. > > >>> Your proposed changes would be acceptable if the energy model has a >>> broken flag IMO >> >> That is doable. I can add that flag, so we can call it 'artificial' EM >> (when this new flag is set). > > It is too soon IMO, I would like to see the numbers first so we can take > an enlighten decision. Right now, it is unclear what the numbers will be. We are going to add new support from our roadmap for platforms which don't have this power information but are going to use EAS. I'm going to send some patches soon which create that support. Pierre is going to send the platform code. I want to make sure that this platform won't register power actors for IPA. Other thermal governors will work, since they don't use EM for making a decision.