Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1048503pxm; Wed, 23 Feb 2022 16:49:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJxzQPuhl1hMd4rl94W14dfwn6uQTSo+mOsCVURizwyudWzKUx+jlXLIfVh68CeDtTA6VZjv X-Received: by 2002:a62:d158:0:b0:4e1:5807:5ee6 with SMTP id t24-20020a62d158000000b004e158075ee6mr115796pfl.46.1645663763371; Wed, 23 Feb 2022 16:49:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645663763; cv=none; d=google.com; s=arc-20160816; b=t3A3BpioaKqwfC8kDUmTxrFapwIU+hFb3K4bmEBr0MUqCWux3FqmwwKm+gpfm/z03Z RzSPrTYofbAAk/pYLK0AwSxc2VUvWMDpSsSu0PSwqnBpeYgXf3Zv6Iw4Nc2S0HnJPGnc 3Z31Ay2SSs7RjQoYNKwpgcpyXMM007cpWRzAaL7YBrTm0iXXjJOYbI2aLzoTjNChqZSW 1EDADQwQxVWGnBX8jHKMaEz6FbeAzEhy67VXfqcHujzmZcTbDu50jvPFfTiQbaQi2zc7 lEDHHyvMAyORhx+jYiRT5RAcuSBRB0Hep/b3Zhy1VqW+Tsls774jdUj47d4BKggz9u3m 5TaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=SHFYegUo03DjCxdS0Gu5tYZKm6OzwquBbzLjVdntcXk=; b=MBw+w02PykATvViBdyFmF1FHQZ5Bmosd4XURpCH+FB0Q63/97Lnfb8XZKLyiCENF2B GovJuI5j3Grvos3fakIElAtbZEV5F5YxosgInxAHV97bqjB6Fo+KBudVCSZKvx/wmGAl 57liC2pEQnZFBKO72SOyfoaq3wa0z7dNIz4w5za2YP0XMyXfp3ybtogup1PaVwX3KuCz IaPIPU9ofLnAHKP27Tj89rurwq83rbugcMeTQChj8obG43J7v7pK6w3Z2kCiaXDeSYEc i0PK2x6/HEJLO0KcAL2fCm0q1Wl2dbH7/3xVoDkQ5b9XpptAH/w6tGH7eO80vmM3wzxQ ZU2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i5LJtE7u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id b13si1015635pfm.244.2022.02.23.16.49.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Feb 2022 16:49:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i5LJtE7u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9BED5EF786; Wed, 23 Feb 2022 16:44:24 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239858AbiBWL2D (ORCPT + 99 others); Wed, 23 Feb 2022 06:28:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239848AbiBWL15 (ORCPT ); Wed, 23 Feb 2022 06:27:57 -0500 Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CAB73CA5A for ; Wed, 23 Feb 2022 03:27:30 -0800 (PST) Received: by mail-pg1-x52c.google.com with SMTP id p23so19647146pgj.2 for ; Wed, 23 Feb 2022 03:27:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=SHFYegUo03DjCxdS0Gu5tYZKm6OzwquBbzLjVdntcXk=; b=i5LJtE7uwG6kpWKGBodkWlbpgX52o368X518RNlIpeyHlkCkynvrx1At+yOSAeufGu djbOWwiuFNCqUPu/DzSMpmlkx3ahZk1v84UBd4Xpd9cfrlPJLpLJDx+B1WjFmoQc28t3 TTMnPkEhHpMiyFNjcb2iSxpfx257y/sytifC29WTguckha8pyjJm18ehKx0R1YyyjO8K b2YuU3eUXamZQWnFmCxK7SYxKY1yskcxVmj2+CtUrTMy44XpEVJD4rgLHZY8rwSEcrLV sfT/UqzKJg6JzPZe6LX0fqYWwGwPoSReLugxvjlq0J1DsLdh5D/7cFO8tN1kXglJCVAE OPuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=SHFYegUo03DjCxdS0Gu5tYZKm6OzwquBbzLjVdntcXk=; b=U5Y99p+MjxaOc9OSJfgOTBle0/4dQ4Bew7n8H7KpZtT78PU/jMq7BnLQ6VWa8fF5tK vh+X4Tw4rSte4VX6Z7hMKMtb5Q1jlAm5dCM995ZW7aL1VxODtNJgPVbARlC32kFLZLq7 jV1yNIooawSXNXiYtGW9UjNwZE2/iRllC4X8H1cv2Zvvtp26Iw6KTCXsYtgsCcePHq0S fHuFyNM3iOytSihbgl2lteUBu3qFE5tl6ctyJEeZaNNWftV/QizkbvDtO+3UuPeMBtEd EzaM/6zj2GSIqqaOgdbJ+TPyc3W73tSH8CZ/K0q/0UAEWJB7JyLI16m66OURj+rsvsfN bXTg== X-Gm-Message-State: AOAM532Zt9XiCtuJSt9L4AN38IZ9xQvMi95SkrCiZy4dHyH4OiaRNAEh n5GB/edSnxKkjooHVs6r1lSG3g== X-Received: by 2002:a63:6c43:0:b0:373:7202:6e13 with SMTP id h64-20020a636c43000000b0037372026e13mr23738814pgc.110.1645615649506; Wed, 23 Feb 2022 03:27:29 -0800 (PST) Received: from localhost ([223.184.83.228]) by smtp.gmail.com with ESMTPSA id j4sm14582389pfj.218.2022.02.23.03.27.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Feb 2022 03:27:29 -0800 (PST) Date: Wed, 23 Feb 2022 16:57:27 +0530 From: Viresh Kumar To: Lukasz Luba Cc: Daniel Lezcano , 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 Subject: Re: [PATCH v2 0/2] Introduce 'advanced' Energy Model in DT Message-ID: <20220223112727.akprxqglyr7ostqh@vireshk-i7> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <94d3f2a3-4145-afdc-d810-61f2120df579@arm.com> User-Agent: NeoMutt/20180716-391-311a52 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 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. > It might be a next step which might meet Daniel's needs. > If that 'level' can be any number and frequency is not available > then EM must have 'level' filed in the struct em_perf_state > for this kind of new devices. I'm open for such change. > We can discuss this as a next step. We would need to find some examples > how this new thing would be used. > > [1] https://elixir.bootlin.com/linux/v5.17-rc5/source/arch/arm/boot/dts/tegra20-peripherals-opp.dtsi#L4 -- viresh