Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp305427pxm; Tue, 1 Mar 2022 21:36:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJwMezhfGR8iE0Mi18hYY9YYkKByVXNvlir0YZITXcKuadWkw+gzbQlv0/mJ2FHa2L7r6T+O X-Received: by 2002:a05:6402:5241:b0:415:b1c4:4c6a with SMTP id t1-20020a056402524100b00415b1c44c6amr2283227edd.324.1646199360913; Tue, 01 Mar 2022 21:36:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646199360; cv=none; d=google.com; s=arc-20160816; b=XS1g/1KgtzL52UvwICxVJBFUBcZA7p7Snv1HdEbwIcjgx/mYRaYXmXUFQuGYc5Leag 6xDXAWyXgkEtaghngkW8ecGQ9EFFZTBO2UFvv0IvS/KDuGESzdUYCIMmcE4Lky3bdVcz DCy2Lf6LhN46cuavu/0PosVN2gJxrEYT3qn2gn042uexqviImvxjDM+oRJ10+1eAzqho /zs/OaO5/vyvyQklgjuiYWOsMB5AwVA0NshMrh9CEtY3DrBQJC2YAvFUEjuNR0bF+sjp dgsWW1CiRHX4xJ9g7sdcDg6rh0p8xZjDfo9mzqgIDeb6WHtj+B9pppPuRXseOphbkFvj elIg== 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=Art1lpH3Xd1yIuokeU2fg9jz+WGOi3eEm+HrCqgLuUs=; b=rMIAMGwaEpc5sn4+f2qaQXJBF2bvaQ5T4zNYQs5Phh0hRKN5YKU7arTYJ2Kp0VE3sY K6dNZf9MyAyPS2Vkh2YIV7X9AyI8EgzoUIaU7R6JvxG8thqKlO6+tOAzfqt2Y/uOZHoI eLjcwY4DmEoCMXiSdiV8kins4uoKpxJTPERnUGsjig+D/vZkuAK3+MZJtZgwJmbKuta7 GDOlCmQZ+h4vsLuqeT3p8kwLq5auyN0+ygOTvNLCKxIU7K2beablVm2Y2U7sxlzC2CzK IPe9Maogms61hToQI0uYGXXueHHru36KjRAuXHdXOxIsQDv4NwWNNNrNLE/3kIvUBHfe uX3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=v9Ojizih; 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 g19-20020a056402425300b00415c4f382cdsi91edb.209.2022.03.01.21.35.38; Tue, 01 Mar 2022 21:36:00 -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=v9Ojizih; 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 S238517AbiCBEya (ORCPT + 99 others); Tue, 1 Mar 2022 23:54:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237371AbiCBEy2 (ORCPT ); Tue, 1 Mar 2022 23:54:28 -0500 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C80ECB0EA7 for ; Tue, 1 Mar 2022 20:53:44 -0800 (PST) Received: by mail-pl1-x636.google.com with SMTP id q11so559350pln.11 for ; Tue, 01 Mar 2022 20:53:44 -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=Art1lpH3Xd1yIuokeU2fg9jz+WGOi3eEm+HrCqgLuUs=; b=v9OjizihOkXYFafRbxPwD5euHZ49r6cYW6YeAVXYBBR0WsJLx2cemhILv/lR2XLHDT VCRP03fRU+lJTvpV5Y/1KwNqQ6AmKXILl4ialZWSy9Ot4g4DlytKSDrgVqqmdGDR/TBn +DpsyoGW7mHhwmS2lA3uL3jrRkanBe4MVVNjwUoXhGRUVEOg76NcF9zUojPbJySLPwwj EDVJ7qlJ43sSUJWZX2zJKptvmuUskT2339JBUD04JCtZ5rJ3K+goKuLvE53aJHPQvbu1 VW/oxKDUNGdv/rE8xyeI5lsC7D/+8IPSvQlSjaUTFHA3tI8aJiPJGsbxhrW2vfrWDPZP sHog== 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=Art1lpH3Xd1yIuokeU2fg9jz+WGOi3eEm+HrCqgLuUs=; b=StYpMLn/oyccJxVQ9abfEP2Q3thXZGKSRk1cLNquzx/GI0Dj48zN+PwsHK0aEWbKuy 9pxod4s/R35U037/ByCVnBMo+kthFhFMXjoslmWJm60zIhikarzaTHMPz3pYLI6Xgetn pCjVQf8Bujt9i3bCjet0j1M6XmcT+uRb5a9kLQ7EmGKGaZWZZtD+PJIt9m0HflVmobWc nOexyf5TdAJ/yuuZ3KJpoFviJyNZGpjc9nsa0kIqoVfU4+rJtqFin0U7opgZjH/G0/xG oYDskJiVYXTqJq+2M0ia8RD8pcvcjBiPagZl7xT/BFFIqAdKMQ/6oZYkbXqx+FxKA8ER 7PmQ== X-Gm-Message-State: AOAM531EZIBdhNQa3T8kj8tf21+U5PPIBN14jei2NMpd5Qk0AauqAYMP CTXkBXzBIvyVzI5Bikvrufccvg== X-Received: by 2002:a17:902:e884:b0:151:89d6:fa78 with SMTP id w4-20020a170902e88400b0015189d6fa78mr5110397plg.154.1646196824301; Tue, 01 Mar 2022 20:53:44 -0800 (PST) Received: from localhost ([223.184.83.228]) by smtp.gmail.com with ESMTPSA id g15-20020a056a0023cf00b004e17e11cb17sm19314451pfc.111.2022.03.01.20.53.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Mar 2022 20:53:43 -0800 (PST) Date: Wed, 2 Mar 2022 10:23:41 +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 0/4] Introduce "opp-microwatt" and Energy Model from DT Message-ID: <20220302045341.uzdflllpj7d55ekb@vireshk-i7> References: <20220301093524.8870-1-lukasz.luba@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220301093524.8870-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=unavailable 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: > 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: > v4: > - changed calculation of power, summing add all supliers power for an opp > - added opp debugfs for u_watt > - added patternProperties in dt-bindings for this new opp-microwatt > - changed the EM opp registration flow and used one EM api registration call > - changed name of _get_opp_power() to _get_dt_power() > - removed 'advanced' word from the new paragraph and content in EM doc changes > v3 [2] Apart from one minor things, the patchset looks fine now. Thanks for considering the review comments :) -- viresh