Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1623251pxm; Thu, 24 Feb 2022 06:37:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJx/N+9HRw7voxw47pP97fivLba+scAcovBaHmKl3UA1OV3pmi1/VUcW3dAny6Fstrpsyuai X-Received: by 2002:a17:902:8210:b0:14d:6607:bdc4 with SMTP id x16-20020a170902821000b0014d6607bdc4mr2814722pln.165.1645713449029; Thu, 24 Feb 2022 06:37:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645713449; cv=none; d=google.com; s=arc-20160816; b=o/Sc6Q9ABGRPcKApJnvgCMpIZe6aSTQ2aXrwyPYxrS7/wzs1gFM9pxFFHHzdwQms79 DvL/bpzjGVKWtPsHFY2O5O4hXZdj8t71A6pLO6otDSeGWjqNoFpo/2kg2uKXQkmbUEUP 4pg2otHlUhtns6g9QvRtEZ4azudut0bfW18TEXoQdGTzBTjY6TFMq6bd0logs+fqRfNU AEm4lM+bU0qdUWvZ1vAGWD88e8NNzGKG5JMz+wgsrl4kTUPu6KkG3TnAmbJ06HnA6JRL 8uHgN/CSw+5lbjHJVI2bfUCqISEJnaSUZspx3GHbMci/HitT7et8lRv08TYmyV1U1jpk BoYw== 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=WRVIFs33r3ON7s1O5MK2VQ5yAl5/kACrQl2hNe16evw=; b=oJyJjKHPGUbiyxi+eFS8jaxXnT5qMPP8sO1JwSoxX8mXciVVf7mU7vZiV7LUbAG2mc FeiEFn6aPsBIpeyZD05fLm2XVEU32w9ET7l2PvaI5vZu2QT6w/DuWZ/ROykNjSVB8ds0 oXKeYYJOTo+bloyPcDKerQPn4Rz8C8cy8TI4MoKKa+eebmRr7k77fmNARjyDg4C2B/Ef EwesO0XRQfTaM50bMBRsRYTu4ZGWH2QhtRD2Bh6voVxI2N+bOXnqvT+ep6qUHkYW+I0R /CueGDzGC8CvIoa1SL5nOtLronPh+0yw7n3BVQMCix3q9yVbIPnJazxlk46lsZCKY5ex bQdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="GCPGvdX/"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oo10si2592982pjb.97.2022.02.24.06.37.05; Thu, 24 Feb 2022 06:37:28 -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; dkim=pass header.i=@linaro.org header.s=google header.b="GCPGvdX/"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232688AbiBXJPn (ORCPT + 99 others); Thu, 24 Feb 2022 04:15:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232697AbiBXJPk (ORCPT ); Thu, 24 Feb 2022 04:15:40 -0500 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16DCF2465CA for ; Thu, 24 Feb 2022 01:15:11 -0800 (PST) Received: by mail-pj1-x1033.google.com with SMTP id ge19-20020a17090b0e1300b001bcca16e2e7so729795pjb.3 for ; Thu, 24 Feb 2022 01:15:11 -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=WRVIFs33r3ON7s1O5MK2VQ5yAl5/kACrQl2hNe16evw=; b=GCPGvdX/eISdLly2vk3dhEEi+lVSWWrO4ahjSb7Lt4tn45dcNW2r6lrkWgQEsaHWX8 y2DYlh84/4V3i7EemGnX2oFVBHVCxK2n2VZRcux/SDYFVrQiGZ8W7OXeWVnkXb6hxFQj nR5FceRzgms6kc9qesmO9rpcFUz7X5S9molA5Zj+qPZ4NDCrm7v1y9fJzwbl3CTF1QS0 sPHWAwzXs0JEMH61MwV24mYzvbwdyoMsvfFtO9StDtAsynaIwWdmoyev7pJeCfl4OuJP U6yfgmSOSeMqYG4VyLqa0m8X/2UXAh5F4hYkRCq8kjUrRLwj1G2oe1rp2bCTp/m5n+Bh 2cHg== 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=WRVIFs33r3ON7s1O5MK2VQ5yAl5/kACrQl2hNe16evw=; b=cb9OhG5KSo7uQMj0KI4QWv/TrBbBsfHPzl2fImu46wndJmnCM/tzVmqao5sA7y3UIe GYKwnsWK9/CqHbZfz2UP4ixar75FdWTMNVcHunqEvD4eLIAp4JkuY6bggLwMa8/qDQbu CDljClmVey7vDlRwx1ro8e09F5ZNrDZ0GZfXSn7miv+TuVLh65Qx0Gp8Z5ipyCYde6F5 5WK+tWaMhXsv+dRzAlBjh7PCYwjKbn1O3mEz1OlZnBs+8ykXMoCDU3KIsmy7wm3WyGxI lZ2X1RuMRj7fqrzZX+DqRFImu+ZonZpwln0W1ROPU5eIdUIPb1LD4r6wdBRK1bE4m52Z OkLg== X-Gm-Message-State: AOAM531EE0s3HfaiA8N+CWuXUF9t8A6cgKX0LI+hIsECxF5VVBfFwFvl coDlgPfLVrnH/VL5OJxXPdBMtQ== X-Received: by 2002:a17:902:7403:b0:14f:9f55:f9e6 with SMTP id g3-20020a170902740300b0014f9f55f9e6mr1917652pll.21.1645694110595; Thu, 24 Feb 2022 01:15:10 -0800 (PST) Received: from localhost ([223.184.83.228]) by smtp.gmail.com with ESMTPSA id t22sm2905028pfg.92.2022.02.24.01.15.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Feb 2022 01:15:10 -0800 (PST) Date: Thu, 24 Feb 2022 14:45:08 +0530 From: Viresh Kumar To: Lukasz Luba Cc: linux-kernel@vger.kernel.org, dietmar.eggemann@arm.com, rafael@kernel.org, daniel.lezcano@linaro.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 v3 4/4] Documentation: EM: Describe new registration method using DT Message-ID: <20220224091508.fp7emu2zyhavkfkt@vireshk-i7> References: <20220224081131.27282-1-lukasz.luba@arm.com> <20220224081131.27282-5-lukasz.luba@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220224081131.27282-5-lukasz.luba@arm.com> User-Agent: NeoMutt/20180716-391-311a52 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 24-02-22, 08:11, Lukasz Luba wrote: > The new registration method allows to get power values from the DT OPP > definition. The new OPP entry property "opp-microwatt" contains total > power expressed in micro-Watts. Align the EM documentation with this > new possible registration method of 'advanced' EM. > > Signed-off-by: Lukasz Luba > --- > Documentation/power/energy-model.rst | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/Documentation/power/energy-model.rst b/Documentation/power/energy-model.rst > index 5ac62a7b4b7c..719253fd5215 100644 > --- a/Documentation/power/energy-model.rst > +++ b/Documentation/power/energy-model.rst > @@ -113,6 +113,16 @@ to: return warning/error, stop working or panic. > See Section 3. for an example of driver implementing this > callback, or Section 2.4 for further documentation on this API > > +Registration of 'advanced' EM using DT I am not really sure if this should be called *Advanced*. Just call it registration of EM using DT. > +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > + > +The 'advanced' EM can also be registered using OPP framework and information > +in DT "operating-points-v2". Each OPP entry in DT can be extended with a > +property "opp-microwatt" containing micro-Watts power value. This OPP DT > +property allows a platform to register EM power values which are reflecting > +total power (static + dynamic). These power values might be coming directly > +from experiments and measurements. > + > Registration of 'simple' EM > ~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > -- > 2.17.1 -- viresh