Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2448763rdg; Mon, 14 Aug 2023 02:58:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFMJ47XoBbhF5PvvhhUjfdfMMkLnl00GsyKxcbW1PpNu3e979A2agG1k2PwKhqSzalP3kLw X-Received: by 2002:a17:906:3293:b0:98e:419b:4cc6 with SMTP id 19-20020a170906329300b0098e419b4cc6mr6972795ejw.70.1692007132833; Mon, 14 Aug 2023 02:58:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692007132; cv=none; d=google.com; s=arc-20160816; b=MylAx7UO8Fq21JzYb4dP9QL5b+94ZVh2qLaCOP2m1N5ZtQ2/fmbZ+q/5JWq1kWESeJ YnnNIeQJATonjMKQG2crn2pyfhDzBzqLLE8KjWwL5EV1Y0dLv/EzmwxNK30MT5XXexl5 8uebOnDeu0LX4B63HDd49wg4ZrVuEMHSwMhLiMj9wzL50pTADLxLRHrNLnZO0jo2K3cA 5kNXph4TdjBPI7V+sBiQSMVenpN6R40wA8paAxzhNczJkgSRETIMuxhXyJ2heTuVuDvA aGIXqygTLut1CoQoYBl3uDVgC9F8iJx8N7nQN74gJvIf85eU/BOnCjTcezOC+U8cb4C/ JgMg== 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=RdSA3+y1ePhibaUaAFKvrsj/bYYLQKO71yucN4lOKes=; fh=zX6e1w7CvcE5Nh3yklySQQVEa7IfV/UVC7NI40jPke4=; b=M34/nUny0dBxIdgzMy7s54rcHHwkGMXO3ZC3m5dfxj73GdwTBlWy/vZs+w/gftquLD VtyQK2voeA2/qjjN8s9TRWv6666sD1jMrG5Tz5v/Ha7H71eX9aRIxXzd/OlAdaeplBzW 3a0XD98FPh4jn5wF+1PAQQJpBqM1NIZ+tPOeGEbe5+GaQ1xmdFUmDCDZlDhatq+NsAGc yHzDW++AjN6y3OQC0bK7CMuIyeZ1cYeLrktkl9Jnrhwy8X+bdD+dK3s/XgESciQEEYQt ei4epeDoM6RxC/AZ0NBpccCVFPrzxflylyHo3/XLg5lh9GFenCeJH88KvLGES9InUNod RWMg== 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 h18-20020a170906829200b0099a1fb56239si7756728ejx.476.2023.08.14.02.58.27; Mon, 14 Aug 2023 02:58:52 -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 S235711AbjHNJZe (ORCPT + 99 others); Mon, 14 Aug 2023 05:25:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235912AbjHNJZI (ORCPT ); Mon, 14 Aug 2023 05:25:08 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7EFDB18F; Mon, 14 Aug 2023 02:25:07 -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 6D4322F4; Mon, 14 Aug 2023 02:25:49 -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 A58663F6C4; Mon, 14 Aug 2023 02:25:05 -0700 (PDT) Date: Mon, 14 Aug 2023 10:25:03 +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: <20230814092503.xdzafmqu5h3shrlz@bogus> References: <20230811204818.30928-1-quic_sibis@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230811204818.30928-1-quic_sibis@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 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. -- Regards, Sudeep