Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3595792imw; Thu, 7 Jul 2022 04:36:58 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uYgjFe5qVG6fugmtaX2uv8cQZyBXsW+hVgBwnc5KVua925/rCv96qtiQeOMmWEOIfKNLpu X-Received: by 2002:a05:6402:2548:b0:437:62de:668 with SMTP id l8-20020a056402254800b0043762de0668mr61240751edb.143.1657193817736; Thu, 07 Jul 2022 04:36:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657193817; cv=none; d=google.com; s=arc-20160816; b=G7TEb6gnCw3u/KlOTuQJ8ZYJk05b72TCFERqG5THRNt0XHDR8lwR5Sri3CpaKoZccL IK7IxLg07BdrVfftC9XobgAcG/RYeGY3Ts7gXC4iPN8Gj2wvmHxotx2cyRQQHQY3IjwG u63u/aQ5+bfUtntd0xbnY0eiStDOZczJzLX/joaq+cPGDLUw091FG8VrO5B4mjwX1uCw yWdMTNuwPPed6gHOmaNiZ/rVk8xfYoICeS3knozt1gtwUDtkZ4gdY7PCls0WgZVvyNbH tMx6SO8Fw9kjW2uc9FDzkYp+Du2Ue+aSS/7J07KlOWk6Tcs5qmphQ1vK6c8wJ/W95Aux XiFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=vme1WD+iWy/YBwYhXVZ5Fyl3XOzLIAAM2gpN+oRGDyA=; b=gFTNNMymJlDvDnjRqnfrUQmN54a3hEuw8bwO1Xos5r85wgsQanoPUDjudRBzBqtjH6 chUB3zOlMfl9nEqSG68KV8IK1nYavxdKMJb9+LzkKU0p33TCDSzVHV8by6vNd8OetemU FgSmLQReXkQUPp6KxzBCi/3V7ooeNK/J0MdL8qbWrIM6NFuv5FXU+cNvpZq2LCjEtUBY rjcfla0+i13+6hvfzIt2yaoad+2Igk1DtCuWHDcxM2Z0hrsFlQf1UtPoB365vJzSDYF6 PveJhivaoV5UsP7fgAODrRqNsgrpWzGRxdvaepPvwunSUjYlNiBuzQU8XSiFZS3Ifjwg C19g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CHhXBdKr; 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 cb2-20020a170906a44200b00722c44f9306si19478322ejb.404.2022.07.07.04.36.32; Thu, 07 Jul 2022 04:36:57 -0700 (PDT) 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=CHhXBdKr; 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 S235353AbiGGKxC (ORCPT + 99 others); Thu, 7 Jul 2022 06:53:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235156AbiGGKxA (ORCPT ); Thu, 7 Jul 2022 06:53:00 -0400 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 444235721F for ; Thu, 7 Jul 2022 03:53:00 -0700 (PDT) Received: by mail-pf1-x42a.google.com with SMTP id e16so5812878pfm.11 for ; Thu, 07 Jul 2022 03:53:00 -0700 (PDT) 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; bh=vme1WD+iWy/YBwYhXVZ5Fyl3XOzLIAAM2gpN+oRGDyA=; b=CHhXBdKrPgAdIE/UFI3/0M6OBcDh66dbcuv7oZMlg7z3qZk11c8xDpPMusruE50NJM 5BVcPEsL6yaU++TO9AB9UVgP7+RFsF6OhjLMz53uSvPq0yX7LB7MD1cqlfMuqsu56/Jq 0Au9AL5gZ82Y912D4Sl0K2cnGZapN5QZNAB957w/zQyf+CGqMg/IiuGhkR6lS1Pr/slC +oBvcfrOwnFYLpsqXlrRIUo9vaSgyiAIiB+mGqXrqFlUtS3I0kVrAyFzw3z5VnD4jrby cFXuhWc3UPQX0xNg1igLGA5aHi0YDmzIHag2jsjqx4U/aGDrD0yLIR8hKPtgfEX3q2ik yyJg== 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; bh=vme1WD+iWy/YBwYhXVZ5Fyl3XOzLIAAM2gpN+oRGDyA=; b=Ka7ZtDMysvqvXKYu54t+HAVA8lQL/v4uWXUz6BZRUWuBJSquaB+Dq+0sIcNKzzF1E7 gp54T7s7wBkkv4cw/BH4l6ka5xpljJlCuodNB58iguXJxwzwa89c9RVjR3sKn+CfjinO TnhX8jBqyuKTiZS9jWlKCx2oVOw/89pTrCmzC4F2To4/dyT7eNq6A45c5vChHEd51Mbj weR5Zv5PrFB9w3rUjm32/XcALHexS0OHqiELCOy1kQekard7nCepcjIQ2PXYUajIads8 dtTIklMMLK1UhD6V3ET3up+PF+SRVyHpSIqwmStsWzYhE2z/BTEElz9tS3o2OJYHTsJx /ozA== X-Gm-Message-State: AJIora8rnxFETEhppFqtTr13AR9iGBK/AcqtDFjJjcTx1qFtQo0t+NbQ 6tJ6OpyXfXApC+0P2pJjU7cMOw== X-Received: by 2002:a65:4b82:0:b0:412:4346:f594 with SMTP id t2-20020a654b82000000b004124346f594mr19277469pgq.593.1657191179791; Thu, 07 Jul 2022 03:52:59 -0700 (PDT) Received: from localhost ([122.171.18.80]) by smtp.gmail.com with ESMTPSA id h14-20020aa796ce000000b005281d926733sm13925071pfq.199.2022.07.07.03.52.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Jul 2022 03:52:59 -0700 (PDT) Date: Thu, 7 Jul 2022 16:22:57 +0530 From: Viresh Kumar To: Lukasz Luba Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, daniel.lezcano@linaro.org, amitk@kernel.org, rui.zhang@intel.com, rafael@kernel.org, dietmar.eggemann@arm.com, nm@ti.com, sboyd@kernel.org, sudeep.holla@arm.com, cristian.marussi@arm.com, matthias.bgg@gmail.com, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 4/4] cpufreq: scmi: Support the power scale in micro-Watts in SCMI v3.1 Message-ID: <20220707105257.wgqbgoumwvbonvml@vireshk-i7> References: <20220707071555.10085-1-lukasz.luba@arm.com> <20220707071555.10085-5-lukasz.luba@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220707071555.10085-5-lukasz.luba@arm.com> 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 07-07-22, 08:15, Lukasz Luba wrote: > The SCMI v3.1 adds support for power values in micro-Watts. They are not > always in milli-Watts anymore (ignoring the bogo-Watts). Thus, the power > must be converted conditionally before sending to Energy Model. Add the > logic which handles the needed checks and conversions. > > Acked-by: Sudeep Holla > Signed-off-by: Lukasz Luba > --- > drivers/cpufreq/scmi-cpufreq.c | 15 ++++++++++----- > 1 file changed, 10 insertions(+), 5 deletions(-) Acked-by: Viresh Kumar -- viresh