From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E2DD1C433EF for ; Thu, 17 Feb 2022 12:37:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240488AbiBQMhe (ORCPT ); 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 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...