Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp488353pxm; Wed, 2 Mar 2022 21:00:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJyyVhGrSNnR2RMj2LesRFSF8cKXL/FGPRjxLGsDcJ7tw230Gse8wnvQrpn2LdMsr3uqxeCg X-Received: by 2002:a05:6402:26cb:b0:3fa:3817:1f78 with SMTP id x11-20020a05640226cb00b003fa38171f78mr32425093edd.219.1646283639921; Wed, 02 Mar 2022 21:00:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646283639; cv=none; d=google.com; s=arc-20160816; b=fo2MRjq9Vz3Cgq1yxk50GsOHgris7HfKn4lNCZeWO24b4H5xp9wMfTLTkBYiXk+tu9 qWT7a7wmFJscUwhz6+jMB7mAKsDOCCA4sft+nKi89lX3i2nviqdK+70lac6s6mM3KrM1 D/nJxaWFgEijWfncMJ8kWgNaq/9Ny5sUqOfizLjDoOgKm2TGt/S5xEfxOPvZepTENFPt FlciiYbY/yt2hDqPhvuQ7V2IfDnUI9gbUR0hcuMfaz2QEDFaYrjHMEMKVqfcuhD/mFns +4uapCKc57Fo7x9bUsNGrlCOS75FmpmdszfcN8a7K1rGZRcslOqxADd2nbmiB9TjED+g ZJ2g== 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=CIp7VVuWt9UyGTVpPLb7+VHA+YcMDNT9FMgsXkanxKg=; b=LqU48ykHSQNOKvDfKoAS11E2bX/1XY3xxbO1iAelX2lnLIvH/5TXmhnC9yOU2N5p6U 5rOnEcY7YqA0HX3xZVuOKHP5fBfqjmsxOUFQGNraMv23RFOMkbDGt1uHvy7hIbCfS7sC SjfimvLdr+8IuQor9VVUI6Wr4qMAxHWUyAWrWON6lFPEcHUP9BfQixomnl5VcU2R3w5K 1Vz9zqSbmCDnLW9fuHY+b3oXdtZ1Ds/qZmyQo/FB2Mbcqo1b03vHyLC8qEpPRVD269yI +9IEGjMolcEpK7cjltn/3VdwS0cKoeG69g8O4JLSS8HzhPtut+7GR5v7egOcxM6ilVlL gRjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PhEeZ5Ar; 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 p4-20020a05640243c400b00413b7789b53si486057edc.531.2022.03.02.21.00.08; Wed, 02 Mar 2022 21:00:39 -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=PhEeZ5Ar; 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 S229629AbiCCEG2 (ORCPT + 99 others); Wed, 2 Mar 2022 23:06:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229536AbiCCEG1 (ORCPT ); Wed, 2 Mar 2022 23:06:27 -0500 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A237D163D6A for ; Wed, 2 Mar 2022 20:05:42 -0800 (PST) Received: by mail-pl1-x62c.google.com with SMTP id bd1so3389814plb.13 for ; Wed, 02 Mar 2022 20:05:42 -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=CIp7VVuWt9UyGTVpPLb7+VHA+YcMDNT9FMgsXkanxKg=; b=PhEeZ5ArChIlaQ8fLKd1T3w/HxXGqb9unw7hAxYEkfPFOO3AUp6fQVUkY7rFiuBc8W IFvXGH6wmPMkHdzJnzFqLt3fUZp/xc78RdLYhcpBdIcCPsWDIPWEE00/QOUwgI/3ytna G2V8FQbuFxN16+jOFY3dApIAd+5FJ79cW4eAOF5BQDEX6yvuh+ueoFCB52QgutqmY5Je uQRyuc4KMGrr9QRP0apbIso2Z0bx/6EdKgOzbBX66nsMi2J1tlhWHn63qj/4138mZP6H CAJ8+f1Ss5TckSxzwocuIRZZqwrVzCmrtTUcxZ3+p0dsK72hHJwqINP7vvlkqp7DnZpy YE7Q== 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=CIp7VVuWt9UyGTVpPLb7+VHA+YcMDNT9FMgsXkanxKg=; b=1ST1IevOgpy/2s/nhTQgFPIzLuQETCP2YYp8fJo+d+OOINpQiVmxbZycmUmmXy7tAi D4IVgzYRM2iXC4rwykaAWIq41LGOVxhUSzRNa8nYzE/1BHs7Qiy9KDjZx6bTD0xhhnvy VeaWwaLZDKlw/AhQy5d5kNZLO/K/iWjN4JEpw5Wx4VdWmii1Mm6J0qe/Qq5fTmdtgsFM TBJk8dr1NXrRSzP6i3jsfpq82j0Xui0jaYDFHHMWfLG5HQz+lUsTh9KTnWGP+7XufjH/ jRcwPyNVmj2dbCf4a8vgViDVrqxX4TU9lcUBLKNXJ5HridpTd3YC/6wyA6J23/J8UGUQ eB9Q== X-Gm-Message-State: AOAM530L/KqovOV+VitxH1yIDfzh1Z1jcsYWwkdvOwsWJRHMsnvnLJa8 D395kSj7WNgdxmmx0J1cwilNfQ== X-Received: by 2002:a17:90a:d90b:b0:1bc:4ec7:d867 with SMTP id c11-20020a17090ad90b00b001bc4ec7d867mr3226102pjv.226.1646280342001; Wed, 02 Mar 2022 20:05:42 -0800 (PST) Received: from localhost ([223.184.83.228]) by smtp.gmail.com with ESMTPSA id t5-20020a654b85000000b00373cbfbf965sm615600pgq.46.2022.03.02.20.05.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 20:05:41 -0800 (PST) Date: Thu, 3 Mar 2022 09:35:39 +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 v5 0/5] Introduce "opp-microwatt" and Energy Model from DT Message-ID: <20220303040539.ocnslxyswnvua3o7@vireshk-i7> References: <20220302112917.27270-1-lukasz.luba@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220302112917.27270-1-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 02-03-22, 11:29, Lukasz Luba wrote: > Hi all, > > This patch set solves a few issues: > 1. It allows to register EM from DT, when the voltage information is not > available. (Some background of the issues present on Chromebook devices > can be checked at [1].) > 2. It allows to register 'advanced' EM from the DT, which is more accurate > and reflects total power (dynamic + static). > > Implementation details: > Existing machinery in the OPP framework now handles "opp-microwatt", similarly > to "opp-microamp". It also has helper exported function to get power from OPP. > For the EM, it adds a new callback in OPP framework to use this new API and > read power while having an opp pointer. It's agreed to work with OPP-v2. > > Comments, suggestions are very welcome. > > changelog: > v5: > - added dual-macro to conditionally setup needed callback and compile > on !EM kernel gently > - removed 'advanced' word from OPP patch header description > v4 [2] Applied. Thanks. -- viresh