Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1149879pxv; Fri, 25 Jun 2021 06:33:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwAP1l13O/457h5+SEz9Rbg9G17KrR3rAEyVpaSr3UWg1BXQtuLgeDwG7DFXZ081eK8uLv X-Received: by 2002:a17:906:919:: with SMTP id i25mr10737628ejd.171.1624628007998; Fri, 25 Jun 2021 06:33:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624628007; cv=none; d=google.com; s=arc-20160816; b=neb8PZhE78oduKYtO33DZs9tbR7B1QLCqha5y9ZwKrT57uO5j94B5Iu14EAENNIzGP wQi7QdbHEN3x3DDFmdNYY15tSRx40woMyE83rOAA3DzKBOt5imjH99L8am7Hie0SszYN j5Zc7UkITg+0rCWsH/NGtg3NZO6U7mx3t1+Dhl49p8sumkaoHdhgShCEiFEuJ5P2ZKua uwpKi0NZTdF9wSqU9w2hdS8r8sSvvQYPXG26rISAKYh8TJqfELoRKNWX5XI0b8H3FOJv PaKYTjxpyUWxPjU/sDShyQyWaz6vRACqqrOe0OxK+Fi7V0f3fQlRsYsnv05cL74spWqi Rv8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=UuEmkc6B9zccyZyK0C5OM9w08iOMtIs+1EADdBI+j6s=; b=YI7g117ZAzfzsll/8Cz8kz6KID1/RQshHYSkx2SZItxahiJIEAQAraWqsVMuyxR8DH gxOb2dSMPtVPP5jwnmJ/wBZc368J/ojJc8dSNA1y6WQgeoNYvkQgcJ33csQUt3JldOth d5zIEQb5qDw7glVL/yDJU8VmSrWCpAuYTpn/HmW6UWOnGshWOAoLJuDPHFuoGCZLVKYD o230YVT+XZPJvWHXlN59LKE+E8f9vWJ/av9ayFiejs9CGgapWdYBqwM4q9Ch3YCVO3Zm nE6vlZMdaJd4HTGZdYNeLLUWWVCdlVHjh0+BxeSonLLASFVro6EozK2VF8kZUwuCSLcY 3xZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@quicinc.com header.s=qcdkim header.b="Nm/8Pu6R"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hu7si1301110ejc.86.2021.06.25.06.33.00; Fri, 25 Jun 2021 06:33:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@quicinc.com header.s=qcdkim header.b="Nm/8Pu6R"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231579AbhFYNeY (ORCPT + 99 others); Fri, 25 Jun 2021 09:34:24 -0400 Received: from alexa-out-sd-02.qualcomm.com ([199.106.114.39]:27913 "EHLO alexa-out-sd-02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229615AbhFYNeX (ORCPT ); Fri, 25 Jun 2021 09:34:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1624627923; x=1656163923; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=c92uEGAxnyrw7O3VecCM/YRAymsWQVHnDR1PxIKS3zQ=; b=Nm/8Pu6RAEeRpS68bW+L2CFSDv/t9Q7Za7hJ4oaSqXDtT+8AoVgaDAsb TC7nHa9/FJXltEFYNb0Wws4oVZmZA6FZKr21ms2v3U5PZEG6Vii7jyhp4 FwjP12ZVnbnoRcZsrHDGPqBhHdKIVZOwURwwYaKi5VYpUSeAfAgaEdAby 0=; Received: from unknown (HELO ironmsg01-sd.qualcomm.com) ([10.53.140.141]) by alexa-out-sd-02.qualcomm.com with ESMTP; 25 Jun 2021 06:32:02 -0700 X-QCInternal: smtphost Received: from nasanexm03e.na.qualcomm.com ([10.85.0.48]) by ironmsg01-sd.qualcomm.com with ESMTP/TLS/AES256-SHA; 25 Jun 2021 06:32:02 -0700 Received: from [10.111.161.13] (10.80.80.8) by nasanexm03e.na.qualcomm.com (10.85.0.48) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Fri, 25 Jun 2021 06:31:59 -0700 Subject: Re: [PATCH V3 0/4] cpufreq: cppc: Add support for frequency invariance To: Ionela Voinescu CC: Vincent Guittot , Viresh Kumar , Rafael Wysocki , Ben Segall , Daniel Bristot de Oliveira , Dietmar Eggemann , Greg Kroah-Hartman , Ingo Molnar , Juri Lelli , Mel Gorman , Peter Zijlstra , "Rafael J. Wysocki" , Steven Rostedt , Sudeep Holla , Will Deacon , "open list:THERMAL" , ACPI Devel Maling List , linux-kernel , "Paul E. McKenney" , "Rafael J. Wysocki" References: <09a39f5c-b47b-a931-bf23-dc43229fb2dd@quicinc.com> <20210623041613.v2lo3nidpgw37abl@vireshk-i7> <2c540a58-4fef-5a3d-85b4-8862721b6c4f@quicinc.com> <20210624025414.4iszkovggk6lg6hj@vireshk-i7> <20210624104734.GA11487@arm.com> <20210625102113.GB15540@arm.com> From: Qian Cai Message-ID: <1f83d787-a796-0db3-3c2f-1ca616eb1979@quicinc.com> Date: Fri, 25 Jun 2021 09:31:58 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210625102113.GB15540@arm.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanexm03e.na.qualcomm.com (10.85.0.48) To nasanexm03e.na.qualcomm.com (10.85.0.48) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/25/2021 6:21 AM, Ionela Voinescu wrote: >> scaling_driver: acpi_cppc > ^^^^^^^^^ > I suppose you mean "cppc-cpufreq"? > > "acpi_cppc" is not a scaling driver option. Ionela, yes. Sorry about that. > So your CPUs run at frequencies between 200MHz and 280MHz? 2000 to 2800 MHz. > Based on your acpi_cppc information below I would have assumed 2GHz as > lowest nonlinear and 2.8GHz as nominal. The reason for this is that > according to the ACPI spec the frequency values in the _CPC objects are > supposed to be in MHz, so 2800 MHz for nominal frequency would be > 2.8GHz. > > When you try more governors, make sure to check out the difference > between scaling_cur_freq and cpuinfo_cur_freq at [2]. The first gives > you the frequency that the governor (schedutil) is asking for, while the > second is giving you the current frequency obtained from the counters. > > So to check the actual frequency the cores are running at, please check > cpuinfo_cur_freq. The problem is that all CPUs are never scaling down. "cpuinfo_cur_freq" and "scaling_cur_freq" are always the 2800 MHz on all CPUs on this idle system. This looks like a regression somewhere as in 5.4-based kernel, I can see "cpuinfo_cur_freq" can go down to 2000 MHz in the same scenario. I'll bisect a bit unless you have better ideas?