Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp635548pxb; Thu, 17 Feb 2022 11:16:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJyT+uoSTne2QChrUVSvWCoQYGnqGmWee+II4U1a/PPw+TkVAjWFWMvfRLJ098tGzyTjvXWk X-Received: by 2002:a17:907:11d9:b0:6b4:2462:b460 with SMTP id va25-20020a17090711d900b006b42462b460mr3514407ejb.279.1645125367525; Thu, 17 Feb 2022 11:16:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645125367; cv=none; d=google.com; s=arc-20160816; b=JoNb4bXPI9mMiHsl8q39YKO/vxA+2x08j3K/Q24OY1iv4pweUO8wAMWH4I5ap6CEuv 36q/cxI4mg0kykluQ48Myx+2OUijBcUN8c4bjqQYoMddBZrWEB/L81ZHLgeM7sgQHyct KQR7aimR10PamStOA+2iwbxnN6kgI5fqOp7NLmpgDM/x5bFTlGhMGBMoTx8NccvHaoxV f0S7tuTvrFl1md8qrMICh4g7unOuqRrveS9GUEgQI1IG/DPOSO9J4vR0B3aoDXN+hgxe fJhqjfge5C821Q3SVEkIeF12xav2JDmHlHp5M5tQ6ioqE1W6vdAzTpSkeGUMoY7YQJ8w 9O8g== 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=fGjqMa8IWwYxumn4WKBAq8FRmA/e8l6dIg+gxWVtrZg=; b=lBguq/l7EJmjFcfvW4SAtQ77gYKLiBlst1d0GeLzNipS9vsR/qt5VlCrZ2y8h0a3Pm JRiyzFoBcuSSEyW2cKmfrTAezksYjDlM6rPtzxrL89tDquyDKQE8O0p8AXET1vy+WEDP fklXe3eDcR2RK6Jdt8HwE7n2zbH+IjFk7qChKfML1HLaSzBLRxQM3ZGzDWE+ljEgxCnG uh/2cbqGItXMtNgzmqdxqoJCXl2PjaXEoydl+5ADkJRHRSa29xyInplsCDB+a58Yzt3b AEVpNUPntSULedRIWZQYq0Gl58tS+a8V7Tnp/013N89atns/WbPYUCSvCfFhP1/qEyhS +CLw== 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 nc1si2947296ejc.151.2022.02.17.11.15.43; Thu, 17 Feb 2022 11:16:07 -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 S239789AbiBQMhe (ORCPT + 99 others); Thu, 17 Feb 2022 07:37:34 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:41628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231514AbiBQMhc (ORCPT ); Thu, 17 Feb 2022 07:37:32 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AEDFBA8EE0; Thu, 17 Feb 2022 04:37: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 6A4AF113E; Thu, 17 Feb 2022 04:37:17 -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 6706D3F66F; Thu, 17 Feb 2022 04:37:13 -0800 (PST) Subject: Re: [PATCH 1/2] thermal: cooling: Check Energy Model type in cpufreq_cooling and devfreq_cooling To: Daniel Lezcano Cc: LKML , Linux PM , amit daniel kachhap , Viresh Kumar , "Rafael J. Wysocki" , Amit Kucheria , Zhang Rui , Dietmar Eggemann , Pierre.Gondois@arm.com, Stephen Boyd , Rajendra Nayak , Bjorn Andersson , Doug Anderson , Matthias Kaehlcke , Vincent Guittot References: <20220207073036.14901-1-lukasz.luba@arm.com> <20220207073036.14901-2-lukasz.luba@arm.com> <4a7d4e94-1461-5bac-5798-29998af9793a@arm.com> <7c059f4f-7439-0cad-c398-96dbde4e49c1@linaro.org> <5b8ca53e-3595-85fd-5ae9-a5e8285e8513@arm.com> <53bc13ca-998f-ff83-d9f7-9a83d35b24fd@linaro.org> <97ecc29b-13a9-fa15-4e88-21c8612ebb7f@arm.com> <1812eadf-7924-5abd-857b-22b7dfdf8f7d@linaro.org> From: Lukasz Luba Message-ID: <33bd6122-b4aa-1659-6063-95175a8748b3@arm.com> Date: Thu, 17 Feb 2022 12:37:11 +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: <1812eadf-7924-5abd-857b-22b7dfdf8f7d@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US 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 On 2/17/22 12:33 PM, Daniel Lezcano wrote: > On 17/02/2022 13:11, Lukasz Luba wrote: > > [ ... ] > >>> Why not make it more generic and replace the frequency by a >>> performance index, so it can be used by any kind of perf limiter? >> >> For that DT array, yes, it can be an index, so effectively it could be >> a simple 1d array. >> >> something like: >> >> msm_gpu_energy_model: msm-gpu-energy-model { >>      compatible = "energy-model" >>      /* Values are sorted micro-Watts which correspond to each OPP >>         or performance state. The total amount of them must match >>         number of OPPs. */ >>      power-microwatt = <100000>, >>              <230000>, >>              <380000>, >>              <600000>; >> }; >> >> then in gpu node instead of having 'dynamic-power-coefficient', >> which is useless because voltage is missing, we would have >> 'energy-model', like: >> >>      energy-model = <&msm_gpu_energy_model>; >> >> >> If you agree to continue this topic. I will send an RFC so we could >> further discuss this idea. This $subject doesn't fit well. > > Yes, definitively I agree to continue on this topic. > > Great! I'm going to craft something...