Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5639345pxj; Wed, 23 Jun 2021 05:59:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0GHc82Tiv5OekTiFco/0QPFzmJdODkJ4TiFdteWrTBiL/DPn/9Y1wzQUolFrnYuijs+r/ X-Received: by 2002:a17:906:b816:: with SMTP id dv22mr9787629ejb.503.1624453185802; Wed, 23 Jun 2021 05:59:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624453185; cv=none; d=google.com; s=arc-20160816; b=fo6xH8Up6rhnQz2limhEJfm/LoS38e9nIF5XCDxHq88qBCurQ6onrliuvFfzL+0uNp 3YiOnPPIgtqQqSfDw9P6My/WkfV846gjGxRJNA3IcjENuCcrz++vHy2wlkpd7j+28dhf pvOoJxI+6m3DVrCMrBbFqv3TYS/bu3EAMOPKpyYmuZftMUc1/m6uGSsHbi2rEm1miGa4 EWmnJjKXUQnQ8htLIDSlEvmBycLwB1KfWB4RlhlBTH8zP+PGAsyN81E+wPzfCpi9YXf/ KvhrvXbjz/0ZUsppFn6jmhWPbaG4rxLXhRbud7DJHQY0KuN/F6laH1BMTqcZWq1GPUcL MkeA== 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=tIkLHKEJimIDgmcv5KoAEgZOc/inTQNMfVjuYDo/pU8=; b=KRpLaji0P+Bh/LbExy1/dVt/UN9JmFKgCvIYZmVYmKsfTreBgV7P3c6QIiXQLsnPg/ v6PJIKOiRs+hdq/ZBeYSGT/npon+PcUq05WgGAp8BxtJ74ysF6Y3kpXfBatvrckxpGlx f4JyYzr5v6kVE9t1XtJGpte+SlME4yU9u/Y6lf7cE5OX1gNDRsxhI2BFIoS/g4mOHMgj eU846qmXpXTv4qsri+oVQAqSfbVCJcX0JYjI1r4QO+ncRoSpkrFuQJT7/nMSKgWL3psf tOsynbcNELAc0JVTd4wcaW7l1iTcPPoTV3ft1V5izJCJvxVbJs/V0IUGs7LRg2RRMYlS XFwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@quicinc.com header.s=qcdkim header.b=M+SFXFoW; 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 jx11si5335784ejc.470.2021.06.23.05.59.22; Wed, 23 Jun 2021 05:59:45 -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=M+SFXFoW; 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 S230354AbhFWNAJ (ORCPT + 99 others); Wed, 23 Jun 2021 09:00:09 -0400 Received: from alexa-out-sd-01.qualcomm.com ([199.106.114.38]:38663 "EHLO alexa-out-sd-01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230019AbhFWNAI (ORCPT ); Wed, 23 Jun 2021 09:00:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1624453071; x=1655989071; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=15/CAV2snDdvyAJxjJ5PKrRh/F+DBXa8aHprIfhpyUU=; b=M+SFXFoWK8Hl7ISVGlRLBol2RTa2nfzAjsRO+8wMU6NVQ/iKy/PCZBn5 CELXVUGPxLGgqr9Fph8/sDGancTgMzW6tfdeGgvwCeX3KYg00/sEeEvBR jmwpYuQBABP/oJJVM7BMo3Yw0dqavO00nhq617EJGeDU3JRngCkZgap+Q 4=; Received: from unknown (HELO ironmsg02-sd.qualcomm.com) ([10.53.140.142]) by alexa-out-sd-01.qualcomm.com with ESMTP; 23 Jun 2021 05:57:50 -0700 X-QCInternal: smtphost Received: from nasanexm03e.na.qualcomm.com ([10.85.0.48]) by ironmsg02-sd.qualcomm.com with ESMTP/TLS/AES256-SHA; 23 Jun 2021 05:57:49 -0700 Received: from [10.38.240.33] (10.80.80.8) by nasanexm03e.na.qualcomm.com (10.85.0.48) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Wed, 23 Jun 2021 05:57:47 -0700 Subject: Re: [PATCH V3 0/4] cpufreq: cppc: Add support for frequency invariance To: Viresh Kumar CC: Rafael Wysocki , Ionela Voinescu , 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 , Vincent Guittot , Will Deacon , , , , "Paul E. McKenney" , "Rafael J. Wysocki" References: <09a39f5c-b47b-a931-bf23-dc43229fb2dd@quicinc.com> <20210623041613.v2lo3nidpgw37abl@vireshk-i7> From: Qian Cai Message-ID: <2c540a58-4fef-5a3d-85b4-8862721b6c4f@quicinc.com> Date: Wed, 23 Jun 2021 08:57:46 -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: <20210623041613.v2lo3nidpgw37abl@vireshk-i7> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanexm03d.na.qualcomm.com (10.85.0.91) To nasanexm03e.na.qualcomm.com (10.85.0.48) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/23/2021 12:16 AM, Viresh Kumar wrote: > On 21-06-21, 16:48, Qian Cai wrote: >> >> >> On 6/21/2021 5:19 AM, Viresh Kumar wrote: >>> CPPC cpufreq driver is used for ARM servers and this patch series tries to >>> provide counter-based frequency invariance support for them in the absence for >>> architecture specific counters (like AMUs). >> >> Viresh, this series works fine on my quick tests so far. > > Do you want me to add your Tested-by for the series ? Viresh, I am afraid I don't feel comfortable yet. I have a few new tests in development, and will provide an update once ready. Also, I noticed the delivered perf is even smaller than lowest_perf (100). # cat /sys/devices/system/cpu/cpu8/acpi_cppc/feedback_ctrs ref:103377547901 del:54540736873 # cat /sys/devices/system/cpu/cpu8/acpi_cppc/feedback_ctrs ref:103379170101 del:54541599117 100 * (54541599117 - 54540736873) / (103379170101 - 103377547901) = 53 My understanding is that the delivered perf should fail into the range between lowest_perf and highest_perf. Is that assumption correct? This happens on 5.4-based kernel, so I am in process running your series on that system to see if there is any differences. In any case, if it is a bug it is pre-existing, but I'd like to understand a bit better in that front first.