Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp616100pxm; Wed, 23 Feb 2022 07:22:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJyYiI7DKcLVNPyzO9SHx+bi8fG31I4876U4gG//KBi2/4aJpufI839puZNykkWaIeOGJCiu X-Received: by 2002:a17:90a:eb93:b0:1bb:8ad9:5b79 with SMTP id o19-20020a17090aeb9300b001bb8ad95b79mr9679889pjy.215.1645629777238; Wed, 23 Feb 2022 07:22:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645629777; cv=none; d=google.com; s=arc-20160816; b=KohVkSjw0UnOlSCfC3vMjCOIFy/3RFnLfOPVOYm/IqxUuYEtjDoP3U3CCEhidde6Ap OhISu5NBL1jhXruxoS8USV796NY/YGuhNNgKZXrDwKmjZlWP861buCB3ULls9Sv/Zf2c YYPVDIdkrff9dzTVvL3F5qjjjqJ3GkaRqUIWqt7lz0+kI/3b5eQ6gkSnziFsGDgv/sjq 7bKF7ESPtqb022kCzsVbLGX9v4PgpY/3xCDMrwpKmrabGaCDj7K9pAbTXCXnB3HKzCAy +Tc7YifkyCokTO/QbbdQSd/UVoFk1D7DU25TzwzE5OQH+FswIJrOqPBOQQKoeTt0p+al I/FA== 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=hs3+40zJ0Xmzjgr9CCfQ0BHs4RlsYdmcjOAN6s6cHIw=; b=cGwsaamTA26K44OsA0QUaBuhYxZnFoWpGbDl+FKs/vxieIbuUT4XdoIZLgx2jGZ/hV uSIXfWL/F5I5rZfxqbswwjvNJCmXEWR3Pt9ZNNJBhyZIKQd29+1qtTCOw66rw+2ZVpJG 16p5LBOaR9C3xdZfJ9pBEYIY2IAs1H5WKB9zENfE/a06hrsCjIFtpKv577xXqF+pAhNE MLULyTUO28+A+ypZlRgYs2dLReZzKAUxk51qd+MoJITBch5Kriz0gzmdWHgILLjTO/sJ +/pu5TGeICkZPPtQSZuDObFH6f8SPEdlfg1DItamXmYOP06KhXntJOXVoW/s6m7GmXy7 9A/w== 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 q1si39462829plx.284.2022.02.23.07.22.41; Wed, 23 Feb 2022 07:22:57 -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 S240103AbiBWLlM (ORCPT + 99 others); Wed, 23 Feb 2022 06:41:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240101AbiBWLlG (ORCPT ); Wed, 23 Feb 2022 06:41:06 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4E9CE9859C; Wed, 23 Feb 2022 03:40:37 -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 1A643106F; Wed, 23 Feb 2022 03:40:37 -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 2000C3F70D; Wed, 23 Feb 2022 03:40:34 -0800 (PST) Message-ID: <5fb6d841-db47-2009-9c41-e45f51de47cc@arm.com> Date: Wed, 23 Feb 2022 11:40:33 +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 v2 0/2] Introduce 'advanced' Energy Model in DT Content-Language: en-US To: Viresh Kumar , Daniel Lezcano Cc: linux-kernel@vger.kernel.org, dietmar.eggemann@arm.com, rafael@kernel.org, nm@ti.com, sboyd@kernel.org, mka@chromium.org, dianders@chromium.org, robh+dt@kernel.org, devicetree@vger.kernel.org, linux-pm@vger.kernel.org References: <20220222140746.12293-1-lukasz.luba@arm.com> <467a7de4-df84-8e9e-a26a-80449ca55950@linaro.org> <20220223104341.jh5hjcv6ugaexgoa@vireshk-i7> <94d3f2a3-4145-afdc-d810-61f2120df579@arm.com> <20220223112727.akprxqglyr7ostqh@vireshk-i7> From: Lukasz Luba In-Reply-To: <20220223112727.akprxqglyr7ostqh@vireshk-i7> 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/23/22 11:27, Viresh Kumar wrote: > On 23-02-22, 11:22, Lukasz Luba wrote: >> On 2/23/22 10:43, Viresh Kumar wrote: >>> On 23-02-22, 10:52, Daniel Lezcano wrote: >>>> why not extend the energy model to any kind of devices? >>> >>> FWIW, the OPP core supports a wide range of devices now, not just CPUs. > > There are many other devices which still use Freq. > >> Is that the "opp-level" thing which would allow that? > > For power supplies/regulators, we don't have freq and they use level, right. > > Also for interconnect we use bandwidth, in a similar way. > >> I can see some DT files with regulators(?) using it e.g. [1]. >> It looks flexible, the opp-hz is not hard requirement, >> the opp-level can be used instead IIUC. > > Right. > Looks good. It also doesn't collide with this patch set. We could have an opp entry like: opp_1: opp-1 { opp-level = <1>; opp-microwatt = <200000>; }; Daniel would that design make sense to you? If yes, we could discuss this further after this first step for fixing GPU in merged. I would need to re-think the EM em_perf_state and maybe the new ::level there.