Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2537518rda; Wed, 25 Oct 2023 05:53:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF/Zs2cTBOIVDFgumWUDMrJJQwSGADdtW1+CmyX38q+4stEqzdQ+tJ8lSXNuktCn+eGa53A X-Received: by 2002:a25:9e0a:0:b0:da0:365c:ff67 with SMTP id m10-20020a259e0a000000b00da0365cff67mr5313991ybq.12.1698238387967; Wed, 25 Oct 2023 05:53:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698238387; cv=none; d=google.com; s=arc-20160816; b=WFJpcFkQF4nzOQUW2g1dp42VIKRekGcqfFiAkgjgzkvNqr7pIc4oiyEhYiI4YhEwxB HQtwIFbsZExqz+Nsxc9NPUdKVKhZ6Lb2jyCbDD6CIsvY6r9OuN6bcscy/vVhYo8hl5qr Ca2l3GDEDvGBbI1rKdUltWKaNYGGVdC1BQ/3qXeoKkH7hPRHFX7p2wx1dPh7ihIbcDN1 WkjWtqjnRnGeUDKYrPtwPoidZc5VMdwdl4DTiy6auWulLFPc71NwrjU4+VYiTURdnW4m TwFUy1iI7vxT9y/LGg1HFdnO0u2BqLi7DtSLpJMggbLNJ8WTKL5D/dk0i6q81uI5oSP0 nkhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=3F/VPYVxQQPlC4GYJcoGjOrbvtpKw8aYmzGOYzcFJ6I=; fh=5d92vUFwj0Ry+eVpCV4MxR7ie+uJZiuQvoj8QIxB6lY=; b=jJ4g7H7e8cQG2JmA2CgAxPK+y9lKS/KJr4ZClVJee0YjOSXAPyy/YCaSc3kZg8MkYX 2yUIk1hv/w0ZzMsjpjkGx49XYI28zxByDU1Nm0dpsl5h+oSfheX4JocbO5VH3s/YGdzv xjxPX1zIHufmrtTGMAovPlOFOrjDp84BslAh+gqDdpye170r+Apxj831Vz+Q1dAtVHjj 7dLl0kNw4AtaEolxcyZE2swFtgrqwo1ieY+Ajuw6S8Kw53gUY0eFWG8CpmcH/5MQd9wJ vugu81jEg1LtNBCM0r8v8VRxzdDgmkLwHffaEysSZxk2v29tKs6syZOWuJKr6/PI+SWZ VlFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=Z+9W82UB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id 129-20020a251187000000b00da04394f8d9si36697ybr.617.2023.10.25.05.53.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 05:53:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=Z+9W82UB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id E2356810F671; Wed, 25 Oct 2023 05:53:04 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344191AbjJYMw4 (ORCPT + 99 others); Wed, 25 Oct 2023 08:52:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234940AbjJYMwz (ORCPT ); Wed, 25 Oct 2023 08:52:55 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40998C1; Wed, 25 Oct 2023 05:52:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=3F/VPYVxQQPlC4GYJcoGjOrbvtpKw8aYmzGOYzcFJ6I=; b=Z+9W82UB7PDtFMMIASUBUdniRI zeJjphb3sY9S6RUftogueBqGQfkT4HJG6YiO1PJGBcmwx6UF4INYZnXlgeC3RP6q9MW8+UiTlLTr7 oODKzTBxeA9W4BirqqZ511zD4K8ZM7U0A3MmvUVroCoZlA3hTOshf+bvov12MiyfuJbhHFiRCFCPt PJo9orqWMBTUZaiJV1cKUUNJXTFDp2Jx8JTb74wHVVkdkWvD1l5l9v0rNJUkrrLmPSOa9mKMXphxz VcsV6mQwMyoeD485EilrTCuYebFzPrsagcBMHpTNmgSGl6utFNUc3DXlJIzzyF3YdpqYg+3EUE9bG n7MAtCgw==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qvdMW-00GLXG-09; Wed, 25 Oct 2023 12:51:53 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 77DD130047C; Wed, 25 Oct 2023 14:51:51 +0200 (CEST) Date: Wed, 25 Oct 2023 14:51:51 +0200 From: Peter Zijlstra To: Vincent Guittot Cc: linux@armlinux.org.uk, catalin.marinas@arm.com, will@kernel.org, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, sudeep.holla@arm.com, gregkh@linuxfoundation.org, rafael@kernel.org, mingo@redhat.com, juri.lelli@redhat.com, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vschneid@redhat.com, viresh.kumar@linaro.org, lenb@kernel.org, robert.moore@intel.com, lukasz.luba@arm.com, ionela.voinescu@arm.com, pierre.gondois@arm.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-pm@vger.kernel.org, linux-acpi@vger.kernel.org, conor.dooley@microchip.com, suagrfillet@gmail.com, ajones@ventanamicro.com, lftan@kernel.org Subject: Re: [PATCH v3 5/6] cpufreq/cppc: set the frequency used for computing the capacity Message-ID: <20231025125151.GF31201@noisy.programming.kicks-ass.net> References: <20231018162540.667646-1-vincent.guittot@linaro.org> <20231018162540.667646-6-vincent.guittot@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231018162540.667646-6-vincent.guittot@linaro.org> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 25 Oct 2023 05:53:05 -0700 (PDT) On Wed, Oct 18, 2023 at 06:25:39PM +0200, Vincent Guittot wrote: > Save the frequency associated to the performance that has been used when > initializing the capacity of CPUs. > Also, cppc cpufreq driver can register an artificial energy model. In such > case, it needs the frequency for this compute capacity. > We moved and renamed cppc_perf_to_khz and cppc_perf_to_khz to use them > outside cppc_cpufreq in topology_init_cpu_capacity_cppc(). > > Signed-off-by: Vincent Guittot > --- > drivers/acpi/cppc_acpi.c | 93 ++++++++++++++++++++++ > drivers/base/arch_topology.c | 15 +++- > drivers/cpufreq/cppc_cpufreq.c | 141 ++++++--------------------------- > include/acpi/cppc_acpi.h | 2 + > 4 files changed, 133 insertions(+), 118 deletions(-) Perhaps split this patch into code movement and actual change for ease of review? As in, I'm having trouble finding the actual changes ;-)