Received: by 2002:a05:6520:2586:b029:fa:41f3:c225 with SMTP id u6csp2037357lky; Fri, 25 Jun 2021 19:33:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+PzP33aQSUtOt33rfv86Xge/kadNwymhgJxXfYbOs+D1h6y23jhUXvTpdZhf3lKbRX0pn X-Received: by 2002:a17:907:d06:: with SMTP id gn6mr14044257ejc.447.1624674839599; Fri, 25 Jun 2021 19:33:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624674839; cv=none; d=google.com; s=arc-20160816; b=MzLgK1s2fO5TNrgEptzgu5H1kWTrt4DEVsXnubJrEcYRTdZzwAvokS/JzFjRnhn+UI otVVC74nZ8laXu+mOEveiRKQFo6+b0uEL/o4xG30vV9Nk0PNeEr6tXZRXrLf6r9MjFFa DFSPR7oCbq1ZTTs+rHy+hbW1llBjY2OdxB3k+NDW+RbH8sea+c+rCnsDPynrdrlfXLSh ObBN/GXTbzZvPSEuoWE4H+4TnaCdxbRs/JkgiXLIZIYDU9Pvsze6H0XQE5Y3oceaG4n5 QMjAJss3ibiNofW6dndJQaNZjsU0NoGf27IR/4SziaDm7X+8SaVoxMqwe4AkTgvN8UnG ZWJg== 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=jI9PILf5CJTi7b2dWGmycDgMjIsdSWHB9er2V3kv6sQ=; b=JV+o22teq6CJ9igb7j16k0a3G175GJrYmYIU52pb4S1fybUiQx17PCa5EMPoR4A7a/ hXbeJ8ThBbTF1c/n8eh3fG6X2lYIiLA+MkXPuO8gXAGEu+s3IWvnV0+2nLv9Q47m8tVD xMPnKzwYtArehFdHBPnUzUDjRxpTZTTiTXtb+vXF9QkmDiAax9JZytWcp7BxTjjXTlUI KAqHop54IlGL7cEpShWPGYlFFrxDBrgbNMPjOudUoUDmCx8PdLeHqgCSgEKOL2tWwJ6J NGKM2AyO3QyMZ7Llpukfz7MrBdg6jykcuQ0x91N9e4/1MY4NUhXroaZ6PLqqcYALQtxX hhGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@quicinc.com header.s=qcdkim header.b=irO7A5AC; 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 gv22si7650255ejc.345.2021.06.25.19.33.28; Fri, 25 Jun 2021 19:33:59 -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=irO7A5AC; 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 S229975AbhFZCbz (ORCPT + 99 others); Fri, 25 Jun 2021 22:31:55 -0400 Received: from alexa-out-sd-02.qualcomm.com ([199.106.114.39]:2457 "EHLO alexa-out-sd-02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229782AbhFZCby (ORCPT ); Fri, 25 Jun 2021 22:31:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1624674573; x=1656210573; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=OzVDDKY5xaLH3FGbd2mDr5h3AyjjviKx2toZSojncrg=; b=irO7A5ACWUHR/cSxmXi6bWGOeyX8ob/elhPHO+TG6D3Ne4B5nD6RFI1c 3g1RoJeEDyOZ+ezCQEL0JMRmu4dnVgN/fu8UIERvFoB06lKFAlWkZkvz1 xm8eEpJmW99nQ3ew4gkY1lOo6Tx3SMlz3YuRPMd3xhnryJEdrnn5FMLP6 0=; Received: from unknown (HELO ironmsg04-sd.qualcomm.com) ([10.53.140.144]) by alexa-out-sd-02.qualcomm.com with ESMTP; 25 Jun 2021 19:29:30 -0700 X-QCInternal: smtphost Received: from nasanexm03e.na.qualcomm.com ([10.85.0.48]) by ironmsg04-sd.qualcomm.com with ESMTP/TLS/AES256-SHA; 25 Jun 2021 19:29:30 -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 19:29:27 -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> <1f83d787-a796-0db3-3c2f-1ca616eb1979@quicinc.com> <20210625143713.GA7092@arm.com> From: Qian Cai Message-ID: <888b0178-00cc-ffa4-48a2-8563cef557a4@quicinc.com> Date: Fri, 25 Jun 2021 22:29:26 -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: <20210625143713.GA7092@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: nasanexm03h.na.qualcomm.com (10.85.0.50) 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:37 AM, Ionela Voinescu wrote: > Quick questions for you: > > 1. When you say you tried a 5.4 kernel, did you try it with these > patches backported? They also have some dependencies with the recent > changes in the arch topology driver and cpufreq so they would not be > straight forward to backport. > > If the 5.4 kernel you tried did not have these patches, it might be best > to try next/master that has these patches, but with > CONFIG_ACPI_CPPC_CPUFREQ_FIE=n, just to eliminate the possibility that > an incorrect frequency scale factor here would affect utilization that > would then affect the schedutil frequency selection. I would not expect > this behavior even if the scale factor was wrong, but it would be good > to rule out. > > 2. Is your platform booting with all CPUs? Are any hotplug operations > done in your scenario? 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