Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp61447pxv; Thu, 24 Jun 2021 02:51:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz08n1PUUngvi48R8ga/Sri4Zl3hSW7rq89UIOf0SLDF0Ayz9LLJa2EdQPkHptP+j0pwBOG X-Received: by 2002:a6b:c984:: with SMTP id z126mr3453099iof.94.1624528266456; Thu, 24 Jun 2021 02:51:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624528266; cv=none; d=google.com; s=arc-20160816; b=sxgK4+4YRBeTY7N32gX229NiPM0nZChPKilpbAXWrMpS4z85w5eOFh0Sh67uzf805V EOc7GkVU5MrAQ4IO27zsYcLJyB76pwSndi+TUVB4UMhoSYpH+mu9BYW5c5fEqlaOOSFA rYQcyBkPFESavCw0gO0EfEHAzUTTx6M+JFnACQnDqg6EXghSN0g8k9MAFGpIcRkLDavj cmhHv1Tk2F4ALM8vug/wlKPIoJvDNY+k0A/pF+Ko7buqT2jFUx8uFRdblY1iqJVf0SVK C5je5jf5sHyoj4FC6XjWvNqc93h7tfnk7r1HW0mKMfc3yOXIrkzYJzyHorfIWlRDX2Br Wezg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=qqcZleP2S371WLdXJOXTAsMiO7kHRVmitjNgvjiTzrc=; b=m+udk1LZRi1l/xUTP2WeGSiby6gmipC+DsvXFYwnJSMfS0z7SBT2D45biWPRSF3wRD wQGEBLREl27zIPcie4S2V+B8Jl+QFw69mszARXWMMGX63vTXFMsBi0ACmemOWxMIYGVd rOItfEwVKGbiOcWJQ3IeAdH+0M41kRY/NKtV1HE4xV/8SFbNb58rMIYqEr3wlC6pnI6y N5DnYxpqbP47W8P1Byfvo+AzDvwpqXKKXXr43OVlY+TzkoA2qjIpcrovaalN+/+OGPrF oUa0PnlghhzmggWHOpw/YWEQ7R0vwMxoVs124m75Qv6Bx1UOaMolmH6w8WnHyV2viMbD rbcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Y8xRKNeD; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w132si2873661jab.61.2021.06.24.02.50.54; Thu, 24 Jun 2021 02:51:06 -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=pass header.i=@linaro.org header.s=google header.b=Y8xRKNeD; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232043AbhFXJw0 (ORCPT + 99 others); Thu, 24 Jun 2021 05:52:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232017AbhFXJwZ (ORCPT ); Thu, 24 Jun 2021 05:52:25 -0400 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E655C06175F for ; Thu, 24 Jun 2021 02:50:06 -0700 (PDT) Received: by mail-lj1-x234.google.com with SMTP id d13so6883185ljg.12 for ; Thu, 24 Jun 2021 02:50:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qqcZleP2S371WLdXJOXTAsMiO7kHRVmitjNgvjiTzrc=; b=Y8xRKNeDp2eAwdEwtd+znlFoFof7cIlrVRBx5CJZ7bdYNROu+Od7vtLkWOGKpS8GBX h+n9Abkmc4BoaOq5MYQ1eJC3ME5uYwRjrRjrkz/LqbNTZnbxW5BoY3bObS624o1cVZDV 3j2BcKt07vswzCSPvPgudRwzlFTFr7ryvM6ChD8AcnrFSQNNBBt4PiD7W9HGI4sovVYe WeUA6Xwy2zfcuGumXszTGrftibl6niN9SWft0hbTxazgAvwoTs6DrSRn9froEGiqRf99 i1i9ZE1bGaWk4u+0IYnQtVtZ4oodxT7NIXmEdsCJr5uJ+gdMp1owTBKkNm5UqVlKhHqu V6IA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qqcZleP2S371WLdXJOXTAsMiO7kHRVmitjNgvjiTzrc=; b=l0L2O2xaAWSrxb/e0zqnP0LudQMo2dp/4SZb2DzLmJ7/9a8HbgvsV9mxP4Z+ll0GMF E6kCuyn72TSK64z/v/l8XZ1GZwYqF7GqiIyAAulHgNfuIb1ROpewPJFMxC3T6z6syjmt 4gdQj9uSn1ovsmeDdIip62/NHndILMIF8J6BeTsIO/8YC8fgmVIvjEQBbWwkLUyjOJ9K EQJBWf68sy3cQgycIIwbfbuGIqcS2M2alYmfhP+NLEJbSkvRKTuv8pWXHnq/xxAug21Q 1FPxmvsA/qQHB/EScAvWmKczyDqoY93hO1nCGGlMBXq1STuLwB+9L1WDegZQEpX2qfUv vE9A== X-Gm-Message-State: AOAM530O40RZJj5urzRQIqm0hw2+AwjtMj4rJLb54PwinqYcy4hA02IX JFARi6PYwiOw1GscJhE6s42XIKHbgtyep56IKLKZ+Q== X-Received: by 2002:a2e:95c9:: with SMTP id y9mr3182951ljh.401.1624528204937; Thu, 24 Jun 2021 02:50:04 -0700 (PDT) MIME-Version: 1.0 References: <09a39f5c-b47b-a931-bf23-dc43229fb2dd@quicinc.com> <20210623041613.v2lo3nidpgw37abl@vireshk-i7> <2c540a58-4fef-5a3d-85b4-8862721b6c4f@quicinc.com> <20210624025414.4iszkovggk6lg6hj@vireshk-i7> In-Reply-To: <20210624025414.4iszkovggk6lg6hj@vireshk-i7> From: Vincent Guittot Date: Thu, 24 Jun 2021 11:49:53 +0200 Message-ID: Subject: Re: [PATCH V3 0/4] cpufreq: cppc: Add support for frequency invariance To: Viresh Kumar Cc: Qian Cai , 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 , Will Deacon , "open list:THERMAL" , ACPI Devel Maling List , linux-kernel , "Paul E. McKenney" , "Rafael J. Wysocki" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 24 Jun 2021 at 04:54, Viresh Kumar wrote: > > On 23-06-21, 08:57, Qian Cai wrote: > > 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. > > Oh sure, np. > > > 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 I'm not sure that I understand your point. The formula above says that cpu8 run @ 53% of nominal performance > > > > 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. > > Vincent: > > Can that happen because of CPU idle ? > > -- > viresh