Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp323633pxm; Wed, 2 Mar 2022 16:23:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJzvCzS7kePv7wS/BnEseQ5Dy7v27VPEROpHiKECBG//oYjdyg3HI/FgVNsDr7IVM/MXZS3u X-Received: by 2002:a17:903:22c5:b0:151:a609:22f1 with SMTP id y5-20020a17090322c500b00151a60922f1mr1607327plg.126.1646266997406; Wed, 02 Mar 2022 16:23:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646266997; cv=none; d=google.com; s=arc-20160816; b=E8jOhmNXLe26DJTHUy1q1fFW9zyrofUjhKFYO0gpnv/Tl18QazFLhHP4Rd7PeHt4x3 ekslSF3ND59QhJyEwkaCbeHdh8d/piC2v+Oe4LZG1EOVbBNPaJf0ns4jkVnEB8T8vMTo MwK2jTNj31pACwMFuMdkVm7KVo4jJ9mASic9KpgyqTQtsxqGaVKIoTCNrGF25Vrr0gpy 5OU8M9nhdA4vWRiK/LKBUukcqWv+Md5Ayw7IeWcLUM+dptPRoKQMjlenRRB3bGZeiDbG 1wcO2ni1XZd6+E3+X6JGu27ZLdVCZOG2PQHiIiMIQ4J1mMcVq2mdw/tUo3u4QgYVdg/x duag== 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=R9ewq8IKyII02hpWaWH/lhlLsChnLN+g08ELQd2cLms=; b=TcjdAyGSogfOoxyq7N53DUSHHnYb2JwkeJZnpH28L6400pIUNP62qgL2Yk8vvJSgLz ZflpRdbREUjEWCgl3n1Y45o84gvqd8REDywsz3imajoQJi2OBrAqfRbqLOPrrmzP83uY Vbj0iGbKGNQNwyHzMZiD93qrgeMQSv1btTdyX9X2hs0A37ENJof/rPGduyhDQ8qc45Xa xgXfEWRAEZZ6nbkLaJdnBcy3URPrh6nPL2jayNiurMa20b20Vw9J3tRY/Cl6648zb8rf gt8ysQ+CEF8B5WKHlQj4MecsJ8mN4974nZbhhd1XMqr5HIyKbK7Uo3mDSiBXEd4QWiHq JSZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jLwsIKRZ; 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 l10-20020a6542ca000000b0035e1e54d870si545180pgp.708.2022.03.02.16.23.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 16:23:17 -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=jLwsIKRZ; 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 396421F7658; Wed, 2 Mar 2022 15:35:58 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236339AbiCBExx (ORCPT + 99 others); Tue, 1 Mar 2022 23:53:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232621AbiCBExt (ORCPT ); Tue, 1 Mar 2022 23:53:49 -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 05EAE49CB1 for ; Tue, 1 Mar 2022 20:53:05 -0800 (PST) Received: by mail-pj1-x1033.google.com with SMTP id bx5so747905pjb.3 for ; Tue, 01 Mar 2022 20:53:05 -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=R9ewq8IKyII02hpWaWH/lhlLsChnLN+g08ELQd2cLms=; b=jLwsIKRZQ3dzZRSk3NsjHqE2fINfKJmqaC/Kldfn6PXM8Is3wF9nZ+yS09RNAcVA8c IOYqpy3AOzWIGgoeARfHCZXE/xVYUL25CanBoi+ars1ASqj9NzJJbs29FpLTipzqqoaE fPJt4VKO3BrdZr6BdaCA0oYtnKmpO/E6rRHqu8Ocjd8Vbvze2xISnWsCYUueArfb0Yuk JQN1X2yjxjtp1lj4Lp2JyD8Pho8LZZnrF0Uk7qvKww4v0Y8Q+Y2D38o33EjFfpDTy/NC isFilFs8RdfxB/58iW5vcL77a5ZV0ixjxTRCct7ez+YvdkhWZtTBCTWnbNtn6DHDpMAJ O1ng== 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=R9ewq8IKyII02hpWaWH/lhlLsChnLN+g08ELQd2cLms=; b=0+oqYLAzpcsj8B6mIxJl7/PiBU1aE9lU87dQK1BHnp+IAAohCFXCeFd5j3LZJbR8XD rxXcGlwEIlRwOGatUnxc5pCJs7RznbLYGo4otKR2dpJBl0YxxR6tZHgHu9ZkHkecI8rY y1SI8PjYcEpksgaY691o+uH5+/cDgyFyos2l+9a7i5thdQmDPOgdURN1ShupeUD19dvi bRvo4T7dZORRDJcoc3l/bG45flVI5ztVP0xmt2wbjCYFW/wa2UF93YLrvz93WJBcVdXF dm96JNc1ZOycDOCwE7XDE7Wct9Nx0LU65ngkSYngqXsriMDJlyXE2G4Vv/BG8njW7X4y apug== X-Gm-Message-State: AOAM5312ADjSEL3aaT1+obYIap+0sThp3RbY27vclz9u0qBqyWtRNMgc QojuezrN6r9qQ3wHjovwYc94fw== X-Received: by 2002:a17:902:8ec7:b0:14a:c442:8ca2 with SMTP id x7-20020a1709028ec700b0014ac4428ca2mr29106038plo.12.1646196784471; Tue, 01 Mar 2022 20:53:04 -0800 (PST) Received: from localhost ([223.184.83.228]) by smtp.gmail.com with ESMTPSA id e14-20020a056a001a8e00b004e136d54a15sm19675601pfv.105.2022.03.01.20.53.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Mar 2022 20:53:03 -0800 (PST) Date: Wed, 2 Mar 2022 10:23:01 +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 v4 3/4] OPP: Add support of "opp-microwatt" for advanced EM registration Message-ID: <20220302045301.fq6nolscdfd5wvyo@vireshk-i7> References: <20220301093524.8870-1-lukasz.luba@arm.com> <20220301093524.8870-4-lukasz.luba@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220301093524.8870-4-lukasz.luba@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 01-03-22, 09:35, Lukasz Luba wrote: > The Energy Model (EM) can be created based on DT entry: > 'dynamic-power-coefficient'. It's a 'simple' EM which is limited to the > dynamic power. It has to fit into the math formula which requires also > information about voltage. Some of the platforms don't expose voltage > information, thus it's not possible to use EM registration using DT. > > This patch aims to fix it. It introduces new implementation of the EM > registration callback. The new mechanism relies on the new OPP feature > allowing to get power (which is coming from "opp-microwatt" DT property) > expressed in micro-Watts. > > The patch also opens new opportunity to better support platforms, which > have a decent static power. It allows to register 'advanced' EM (based > on real power measurements) which models total power (static + dynamic), > so better reflects real HW. Advanced :( -- viresh