Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp772215rdb; Tue, 15 Aug 2023 11:22:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG1nU9alo0Rv2leNzK0tmK+BdXZh9VWLvpIpogOu/y0LH6Xsbj7P4sBU4j7q7sToj1NLYfa X-Received: by 2002:a17:90b:46cf:b0:268:10a3:ceaa with SMTP id jx15-20020a17090b46cf00b0026810a3ceaamr10413420pjb.21.1692123747488; Tue, 15 Aug 2023 11:22:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692123747; cv=none; d=google.com; s=arc-20160816; b=mGtWc2pzUxPJjftbiPWedgA6a5x+IZAbqW9IWA+8VFsDfSw3SuQgIDgG00g27ufvVr WVWhU1/6lrWZogvoq4jw5wCqldXnlR1DuqbJiGmR535DFJ6ggLT2AsBhxpEAgHNSwEwO tbec6UL0WRrkArfuwibBujS2ZyPMPXYlKHR7N4ikTtOIW0+gB6KR8UUp/35aJVryV4QW LKIbWft7jrAdaTctCNwCqcrW4eaTmfhEM3rUI1sIIDJHMv5y+02EwtYlWa19PFjfo+yo FjCX7DeOhmv1nMa85LMKK2Ejvja7d43HgFrqvcBre/rD8l82YjVRgAfl/3+REPKE4xuC Qq3A== 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; bh=8zrl9qd79dZJ0H11OOFIgGiFKZKLxyYuVVQbq+KeMCA=; fh=zX6e1w7CvcE5Nh3yklySQQVEa7IfV/UVC7NI40jPke4=; b=O+ZUrctbKJbZ5k+LEYcLjrXEkh8UPKXerdgDzXXfFWZvInpjINW9QWSNDR3nfBP8px GPWjGOdf6OSmfN1+EUPteIwns/+R3opLB64V4dfz431XaSAyM/GjTPiiAk5XYK98JZ0C iA00TMuKBBpkdfkFjyjga/7Mxsm28USeF2xc4xV+8Xh2Tbdm/GJY8odpBLyerThqMeUF FwSUuj8hWoVigcJSu9VUvCogO7NM1g+5YvzWDonp8aXowtlWg+N6CureiahGp/9Xoi+v vj1nOp0nPLj1fxoWiqtRTBCWbaGAStwpeSgnlUCvRNncSlD/Wb0ms2kOkms+9BjfOAK4 HzXg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cq9-20020a17090af98900b00263a99b8448si10097748pjb.113.2023.08.15.11.22.07; Tue, 15 Aug 2023 11:22:27 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235412AbjHOItS (ORCPT + 99 others); Tue, 15 Aug 2023 04:49:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235812AbjHOIsp (ORCPT ); Tue, 15 Aug 2023 04:48:45 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D0094107; Tue, 15 Aug 2023 01:48:43 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3FB661063; Tue, 15 Aug 2023 01:49:25 -0700 (PDT) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 73DBA3F762; Tue, 15 Aug 2023 01:48:41 -0700 (PDT) Date: Tue, 15 Aug 2023 09:48:38 +0100 From: Sudeep Holla To: Sibi Sankar Cc: cristian.marussi@arm.com, lukasz.luba@arm.com, Sudeep Holla , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, quic_rjendra@quicinc.com, srinivas.kandagatla@linaro.org, Chandra Sekhar Lingutla Subject: Re: [PATCH] firmware: arm_scmi: Fixup perf microwatt support Message-ID: <20230815084838.46wqgiggnxc6rfpe@bogus> References: <20230811204818.30928-1-quic_sibis@quicinc.com> <20230814092503.xdzafmqu5h3shrlz@bogus> <0cfd73bb-3ae6-d7bd-296c-0c39d194464b@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0cfd73bb-3ae6-d7bd-296c-0c39d194464b@quicinc.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE 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 Mon, Aug 14, 2023 at 09:43:37PM +0530, Sibi Sankar wrote: > Hey Sudeep, > > On 8/14/23 14:55, Sudeep Holla wrote: > > On Sat, Aug 12, 2023 at 02:18:18AM +0530, Sibi Sankar wrote: > > > The perf power scale value would currently be reported as bogowatts if the > > > platform firmware supports microwatt power scale and meets the perf major > > > version requirements. Fix this by populating version information in the > > > driver private data before the call to protocol attributes is made. > > > > > > CC: Chandra Sekhar Lingutla > > > Fixes: 3630cd8130ce ("firmware: arm_scmi: Add SCMI v3.1 perf power-cost in microwatts") > > > Signed-off-by: Sibi Sankar > > > --- > > > drivers/firmware/arm_scmi/perf.c | 4 ++-- > > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > > > diff --git a/drivers/firmware/arm_scmi/perf.c b/drivers/firmware/arm_scmi/perf.c > > > index c0cd556fbaae..30dedd6ebfde 100644 > > > --- a/drivers/firmware/arm_scmi/perf.c > > > +++ b/drivers/firmware/arm_scmi/perf.c > > > @@ -1080,6 +1080,8 @@ static int scmi_perf_protocol_init(const struct scmi_protocol_handle *ph) > > > > Please rebase any patch when posting upstream on upstream kernel tree. > > This definitely looks like some downstream tree. I will adjust and apply > > this time. This file never crossed 1000 line and this patch indicates > > otherwise, so I am sure Qcom has some downstream changes in this file now. > > Thanks for taking time to review the patch but zero points for the ^^ > deduction lol. The correct phrasing would be v6.5 rc6 hasn't crossed 1k > lines but the patch was based on next-20230809 which has the perf level > indexing mode support in addition :) You are right. Cristian reminded me about v3.2 perf changes in -next after I replied on this thread. I saw this as fix and was looking at only upstream tree and this didn't apply cleanly. -- Regards, Sudeep