From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED,USER_AGENT_NEOMUTT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 32522C43387 for ; Wed, 9 Jan 2019 11:08:06 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id ED0E121738 for ; Wed, 9 Jan 2019 11:08:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="LGe+72Yr" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org ED0E121738 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Ekbys8FA5o+HKRLub3hUVKZ3HmPFjX2WH1RVFUyLy8Q=; b=LGe+72YrUUXoec Gpq3A3wKbL4GmTTnl9oS2fT+ddTg4sCIQgtUyYCWq7jMHE2NvyJ7hWw00gyYrS+oQxX9nQ2jyauoT US9Do7YEyLXvqsF2XDnTLaPXLDp9fLzSn+fb7KIVL9Zgknxvqmj6Dp0PHYIT09RouU3LWSIPTUokG QXVGTwg/PVIRTyZebCML90MFRX+i5jm10LRuLijc8Rk0eryUA5Ass1tgSMbzCl5xzmJYH7qXHEmVL qAqXQeXWQvaz4JANd8CnHsP81tf43gd8UEbM56IJ8qPc3jNA5qGc2DULO2OeXIa2PQliBknLwmns+ TaBkeUxUj8AvEuLkxtZg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1ghBiO-0005nI-Dz; Wed, 09 Jan 2019 11:08:04 +0000 Received: from foss.arm.com ([217.140.101.70]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1ghBiG-0005li-NB for linux-arm-kernel@lists.infradead.org; Wed, 09 Jan 2019 11:08:02 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 53CAFA78; Wed, 9 Jan 2019 03:07:55 -0800 (PST) Received: from queper01-lin (queper01-lin.cambridge.arm.com [10.1.195.48]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id CAD373F70D; Wed, 9 Jan 2019 03:07:53 -0800 (PST) Date: Wed, 9 Jan 2019 11:07:52 +0000 From: Quentin Perret To: "Rafael J. Wysocki" Subject: Re: [PATCH] cpufreq: scmi: Fix frequency invariance in slow path Message-ID: <20190109110749.6ry4fxujkmrpcl7y@queper01-lin> References: <20190109104236.6532-1-quentin.perret@arm.com> <5435767.4D6MIGYIVi@aspire.rjw.lan> <20190109105902.ytnolu2gldhana4c@queper01-lin> <1798133.Rn2TxhOzAS@aspire.rjw.lan> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1798133.Rn2TxhOzAS@aspire.rjw.lan> User-Agent: NeoMutt/20171215 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190109_030756_757582_DCF1E438 X-CRM114-Status: GOOD ( 23.50 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-pm@vger.kernel.org, Viresh Kumar , linux-kernel@vger.kernel.org, qais.yousef@arm.com, sudeep.holla@arm.com, dietmar.eggemann@arm.com, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wednesday 09 Jan 2019 at 12:03:49 (+0100), Rafael J. Wysocki wrote: > On Wednesday, January 9, 2019 11:59:05 AM CET Quentin Perret wrote: > > On Wednesday 09 Jan 2019 at 11:56:06 (+0100), Rafael J. Wysocki wrote: > > > On Wednesday, January 9, 2019 11:45:11 AM CET Viresh Kumar wrote: > > > > On 09-01-19, 10:42, Quentin Perret wrote: > > > > > The scmi-cpufreq driver calls the arch_set_freq_scale() callback on > > > > > frequency changes to provide scale-invariant load-tracking signals to > > > > > the scheduler. However, in the slow path, it does so while specifying > > > > > the current and max frequencies in different units, hence resulting in a > > > > > broken freq_scale factor. > > > > > > > > > > Fix this by passing all frequencies in KHz, as stored in the CPUFreq > > > > > frequency table. > > > > > > > > > > Fixes: 99d6bdf33877 ("cpufreq: add support for CPU DVFS based on SCMI > > > > > message protocol") > > > > > Signed-off-by: Quentin Perret > > > > > --- > > > > > drivers/cpufreq/scmi-cpufreq.c | 4 ++-- > > > > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > > > > > > > diff --git a/drivers/cpufreq/scmi-cpufreq.c b/drivers/cpufreq/scmi-cpufreq.c > > > > > index 50b1551ba894..3f0693439486 100644 > > > > > --- a/drivers/cpufreq/scmi-cpufreq.c > > > > > +++ b/drivers/cpufreq/scmi-cpufreq.c > > > > > @@ -52,9 +52,9 @@ scmi_cpufreq_set_target(struct cpufreq_policy *policy, unsigned int index) > > > > > int ret; > > > > > struct scmi_data *priv = policy->driver_data; > > > > > struct scmi_perf_ops *perf_ops = handle->perf_ops; > > > > > - u64 freq = policy->freq_table[index].frequency * 1000; > > > > > + u64 freq = policy->freq_table[index].frequency; > > > > > > > > > > - ret = perf_ops->freq_set(handle, priv->domain_id, freq, false); > > > > > + ret = perf_ops->freq_set(handle, priv->domain_id, freq * 1000, false); > > > > > if (!ret) > > > > > arch_set_freq_scale(policy->related_cpus, freq, > > > > > policy->cpuinfo.max_freq); > > > > > > > > Acked-by: Viresh Kumar > > > > > > This would be stable-candidate I guess? > > > > I think so yes. I was hoping the 'Fixes:' tag would be enough ? > > It doesn't cause -stable to pick up commits automatically if that's > what you're asking about. > > > Or do I still need to CC stable too ? > > No, you don't need to (and should not) CC -stable yourself. > > You can, however, add a Cc: tag to the patch which helps > maintainers a bit. OK, will do from now on. Thanks ! Quentin _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel