Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp2010753pxv; Sat, 26 Jun 2021 06:50:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6IuMNceXT1Ir11pzW63syppw1wWs8zIcNTLDC05uSVBCL56DBWBY1y+r5BZI11v6jQaaW X-Received: by 2002:a05:6402:111a:: with SMTP id u26mr21479074edv.260.1624715415886; Sat, 26 Jun 2021 06:50:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624715415; cv=none; d=google.com; s=arc-20160816; b=KxsaMZ8iQcYKcSD9RlIruiA8GWiv1FDUds3tJ0gKFOokv3io+g0qoDPBEX8IgUoyxb 5pkk8KYGAq2s9fk2n5taOW237R6lpMoH6hwEFXOon//meyrha0kXN4KjxY2nWZPBsEdg 1shetgh+LiCJkaeoz+j8FCLTolyNRPUeGzWg2c9WYjaLV0a3l1GkltjrBNIyqOOdwjOX lunM/TLjV8tX/cL5UfBr0f72D89VXm5kmcUPiX1UqGYdWSmndmvNOuJB6op5tiRuzlaR zbi8TI/jtZHQW8UhsEE48/clAI0TOiq4+wkPls1ntRcELxAQ8sWDTDoaB9+jF5oWxXGg 0UVg== 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:references:cc :to:from:subject:dkim-signature; bh=mm213DOw0OZQV6vfaizyoco9woywrHBzYuNwBhCrgVI=; b=CEWzy9uy5YYiolZMm5gJjZxN8XEBRzBm/6+nKamI0s8e1noK9F3sMmyEvPla+ZPZ88 FbNaiRM+VY2Mvu71969Ouhdu7otmmyjCpfM7HNg947kR13ZqzbM+3H9x/PHa1IkqaRnZ 5gq9kH2frrlZVKdJKwKJpLRxCA4fr10ygijs4tOGJtKbDTJAW0a/FeS/33cV7MwkFKEU bNIMSWnNIWOfnSw7MwW1qJTXXT2Xfv/HqVpoiiSqjpWrwNmQcejogq65Y5HusV3hG1XT 5OM4J/+OTrhJYAoreDILLAwT8F59+rfYkukmASxb1Nt1ljbD/eRmwR6+tD7Ew+9MjpIO NV0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@quicinc.com header.s=qcdkim header.b=SCWp7F1w; 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 q5si8793217ejt.588.2021.06.26.06.49.39; Sat, 26 Jun 2021 06:50:15 -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=SCWp7F1w; 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 S229924AbhFZNn6 (ORCPT + 99 others); Sat, 26 Jun 2021 09:43:58 -0400 Received: from alexa-out-sd-02.qualcomm.com ([199.106.114.39]:2731 "EHLO alexa-out-sd-02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229518AbhFZNny (ORCPT ); Sat, 26 Jun 2021 09:43:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1624714892; x=1656250892; h=subject:from:to:cc:references:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=BexIPrr+P7AAObS1bvWIvUcR2OxWro+/IxJmIzFSTJA=; b=SCWp7F1wu/x5utbVkTDNDeknrAzcMUvejHBWeX6HXGYvw4JNJg1AIF8/ eUyPEc5rCHIsu5IFmyztwMmnfJ26BPv1spp5pUvEgz3t3n62cJ23oOehB HzOTf8VAyNJ/bofO6LgVFjKjPfp/5hGdjVdgvBxI8cbiEeD6BehJdSLX/ A=; Received: from unknown (HELO ironmsg02-sd.qualcomm.com) ([10.53.140.142]) by alexa-out-sd-02.qualcomm.com with ESMTP; 26 Jun 2021 06:41:31 -0700 X-QCInternal: smtphost Received: from nasanexm03e.na.qualcomm.com ([10.85.0.48]) by ironmsg02-sd.qualcomm.com with ESMTP/TLS/AES256-SHA; 26 Jun 2021 06:41:31 -0700 Received: from [10.111.161.5] (10.80.80.8) by nasanexm03e.na.qualcomm.com (10.85.0.48) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Sat, 26 Jun 2021 06:41:28 -0700 Subject: Re: [PATCH V3 0/4] cpufreq: cppc: Add support for frequency invariance From: Qian Cai 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> <1f83d787-a796-0db3-3c2f-1ca616eb1979@quicinc.com> <20210625143713.GA7092@arm.com> <888b0178-00cc-ffa4-48a2-8563cef557a4@quicinc.com> Message-ID: <9096bdb2-2a38-6ba3-0315-f6e9bd5a4c0e@quicinc.com> Date: Sat, 26 Jun 2021 09:41:27 -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: <888b0178-00cc-ffa4-48a2-8563cef557a4@quicinc.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: nasanexm03b.na.qualcomm.com (10.85.0.98) 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 10:29 PM, Qian Cai wrote: > Ionela, I found that set ACPI_PROCESSOR=y instead of ACPI_PROCESSOR=m will fix the previous mentioned issues here (any explanations of that?) even though the scaling down is not perfect. Now, we have the following on this idle system: > > # cat /sys/devices/system/cpu/*/cpufreq/cpuinfo_cur_freq | sort | uniq -c > 79 1000000 > 1 1160000 > 73 1400000 > 1 2000000 > 4 2010000 > 1 2800000 > 1 860000 > > Even if I rerun a few times, there could still have a few CPUs running lower than lowest_perf (1GHz). Also, even though I set all CPUs to use "userspace" governor and set freq to the lowest. A few CPUs keep changing at will. > > # cat /sys/devices/system/cpu/*/cpufreq/cpuinfo_cur_freq | sort | uniq -c > 156 1000000 > 3 2000000 > 1 760000 Another date point is that set ACPI_CPPC_CPUFREQ_FIE=n fixed the issue that any CPU could run below the lowest freq. schedutil: # cat /sys/devices/system/cpu/*/cpufreq/cpuinfo_cur_freq | sort | uniq -c 80 1000000 78 1400000 1 2010000 1 2800000 userspace: # cat /sys/devices/system/cpu/*/cpufreq/cpuinfo_cur_freq | sort | uniq -c 158 1000000 2 2000000