Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3719836rdg; Wed, 18 Oct 2023 04:15:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFH4zoWATajHabZruL6QxDEe33kMrf82Gsi5QWv3JvcAjXX/r8S09SO1j8chy/6HINVkEEO X-Received: by 2002:a17:902:dac9:b0:1c8:a132:a00f with SMTP id q9-20020a170902dac900b001c8a132a00fmr6408128plx.12.1697627739154; Wed, 18 Oct 2023 04:15:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697627739; cv=none; d=google.com; s=arc-20160816; b=XFmXGdB29SVKlfZlqRhOpmqVI8KdET0wOry0axdy66kbj2zX/6wdq6zMa72WQM0qLU yf7o6w6rTUM79R0Im6ZNg94HQ727mQqylsTSzl5cZhanDGjK5JS+0u3jcfkmSwJeVBn3 9CE0gol0A/qM9VqTruLaEaIUTF7Nfxb7D2v78Vqvl6dIQYGrxIWk47v1JCUTk8i74Nip Fj/Uow9keY00h+QeeM2j4eEo+H9BEv82XRBA55k8fiMg1tASGHlr7557ZGyW8bHN80XJ raPE31zACYNBlYpaHpaD2ws50FucDFloyCx5iiVSW2SxlIZ9oAYIeQlu7XGF0bjEmP6q 35gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=xOtTxSWvFZ4/TGyLQLPagBD4eVJiqVfu9aQmNoU8U6k=; fh=4TaPzQjH+jOLJXyos6O8A3sSER8vQMd3YOkd9qOaVzA=; b=A5FQNo3TuFw2erFIt671D9MILehsp4QlJ4gLyc2KC8nhda+EjDGdav/Po4llBV9OlZ u6KLqbZ89eef5VkhS0sH+y8078zAeZ0aBvkCBPsehRL1QgLQBv1oQ9lKtIZ+3WuN/F7o YyL+8flLl2B+FssEXH/Vs37xh1hoB6Fr4+CfrCCqEnHMo3JCwQj/joTs6HF21rFycNc5 fghc8je1RldKWfGKop76U+TrZpM3N/RvJonrkBY4sqEINHNgieSqzIPTA/E4mplJKfTT kJjGpxDOZggmDjESidxAMXF2fZpVTIMX93fy477Lg+cytim8V5ZL23OZ4F+DZsinmHjx ting== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id p1-20020a170902e74100b001b662f49f60si4224878plf.419.2023.10.18.04.15.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 04:15:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 2F3918038D93; Wed, 18 Oct 2023 04:15:36 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229939AbjJRLPU (ORCPT + 99 others); Wed, 18 Oct 2023 07:15:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229702AbjJRLPT (ORCPT ); Wed, 18 Oct 2023 07:15:19 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CE30F10F; Wed, 18 Oct 2023 04:15:17 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7D11E2F4; Wed, 18 Oct 2023 04:15:58 -0700 (PDT) Received: from [10.57.81.189] (unknown [10.57.81.189]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id EDE113F762; Wed, 18 Oct 2023 04:15:12 -0700 (PDT) Message-ID: Date: Wed, 18 Oct 2023 12:16:01 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 3/6] cpufreq: use the fixed and coherent frequency for scaling capacity Content-Language: en-US To: Vincent Guittot Cc: conor.dooley@microchip.com, suagrfillet@gmail.com, juri.lelli@redhat.com, aou@eecs.berkeley.edu, ajones@ventanamicro.com, catalin.marinas@arm.com, palmer@dabbelt.com, paul.walmsley@sifive.com, rostedt@goodmis.org, will@kernel.org, ionela.voinescu@arm.com, pierre.gondois@arm.com, viresh.kumar@linaro.org, peterz@infradead.org, gregkh@linuxfoundation.org, bristot@redhat.com, dietmar.eggemann@arm.com, lftan@kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, mingo@redhat.com, linux-riscv@lists.infradead.org, mgorman@suse.de, bsegall@google.com, vschneid@redhat.com, linux@armlinux.org.uk, sudeep.holla@arm.com, rafael@kernel.org References: <20231009103621.374412-1-vincent.guittot@linaro.org> <20231009103621.374412-4-vincent.guittot@linaro.org> From: Lukasz Luba In-Reply-To: <20231009103621.374412-4-vincent.guittot@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=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 groat.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 (groat.vger.email [0.0.0.0]); Wed, 18 Oct 2023 04:15:36 -0700 (PDT) On 10/9/23 11:36, Vincent Guittot wrote: > cpuinfo.max_freq can change at runtime because of boost as an example. This > implies that the value could be different from the frequency that has been > used to compute the capacity of a CPU. > > The new arch_scale_freq_ref() returns a fixed and coherent frequency > that can be used to compute the capacity for a given frequency. > > Signed-off-by: Vincent Guittot > --- > drivers/cpufreq/cpufreq.c | 4 ++-- > include/linux/cpufreq.h | 9 +++++++++ > 2 files changed, 11 insertions(+), 2 deletions(-) > Reviewed-by: Lukasz Luba