Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp476554rdf; Tue, 21 Nov 2023 07:44:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IHfogMNkfo2K7h8ZDg785mH+TBUFWbeuNMol16hJQ1NI5G0sU+rTm0jZ6HmAWRIzkyWU607 X-Received: by 2002:a05:6a00:1348:b0:6cb:7025:9930 with SMTP id k8-20020a056a00134800b006cb70259930mr8720061pfu.8.1700581466275; Tue, 21 Nov 2023 07:44:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700581466; cv=none; d=google.com; s=arc-20160816; b=ZtjMMhe3FXgpukH2ezb3NdUqxQ84rfaneAE7HQXM27l2By6W6d+k7wjdkKnPkTBnSp K0mzpTOLI9+NUbW6v5b2VsZGvvHqlid2n/vORsGkfK07lDGFTRNeFqLekUE+xQidPsj5 S/BZfpEC625MjEdvzWCZntKyHfMzRMhJ4l7JLfuwchYRzol2lXIK++4OBenU76mbSvew QykqmWX0fprf5WMcmCucxk/f1OuVoX8XJzJTtjK0pPb0aFBKlauht4PVh9TPzG4dMa7I Wkq0xwdHM2aYMN+9vglxcgk4O6+ltSDnShuXIDY6d7l3mc/YDEimx0Ps5RzfaI4O6vs+ DvcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=JfsF6Up4bCHY/K4nO1cST7ZH/wdwxKVYxFWV57tGB8c=; fh=8rexsNcduKNAElfvNxgaROOH5u4jYoXMvQ13IXOYVHc=; b=I9mE/JoIn9JZadZknuYdsOwkxQkTMLie7+4+ACyWwjwQunmel/qIF/avxpmSlWbEiO hLiznKcylnKF6pjhok9BPbmsWbehfv/GAoSxI9h9js5Rv5kC/xLYVOQZNDXK5EwrlZ0Y Zsj19AaaiHRpAqobXIvxU9qTzYpwAFm7Pv+2RAFronxUKqu5NOldJJBEZctpR2kGJQzH 3ArZDA9UKcWcg8B6SNzWXszSPkhBRCuvmRCqNFS+o8ijZxprM4lvBotyWJq6gMoy5JsT LfXkXG3A6UoBN9LlS0X2XwrM5gVGxqH/1UDdS2c3lsOpRqxfCQ8E25U5YuIdaim3NaiD bHdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cvNqDZoY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id t30-20020a63535e000000b0058986c61bb6si10551936pgl.706.2023.11.21.07.44.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 07:44:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cvNqDZoY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 52407802B40E; Tue, 21 Nov 2023 07:44:05 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234392AbjKUPoE (ORCPT + 99 others); Tue, 21 Nov 2023 10:44:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230509AbjKUPoD (ORCPT ); Tue, 21 Nov 2023 10:44:03 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB9AD99 for ; Tue, 21 Nov 2023 07:43:59 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8A914C433C8; Tue, 21 Nov 2023 15:43:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700581439; bh=m9kkL9A22jnuerrDu70VmA1coTYVI+8/zZjiYsSHxqw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cvNqDZoY4W722oGmOQZw/jvyISy5utwgaaeSJjSZMkzV4A1x1liWax90Y+iH7qo1j 6zF7rXGixD1L9DAgjxGJ+JqHuw7ImcN8uzHCUHForxEqwqdrerklY6hU13btIOPMOi uzTBjkFASm/zkDulnlWCb31185VjZCxa/i/YlzwcXTQhyReTaRnO2Z53HQyGjv128+ rQ5EZvKPryRnLWyW+rFQ7mePv4rpWCvCucoqNhZO0c1isQ5wfIgtP9ihfImmYYBRuq OI8g/noZWYIDGOYKyC130qRxIrCWYB1S87CyyBWp1aXF7WS0zdQoRcBi1a5Tqn2pF6 E9+ihDlyORpRA== Date: Tue, 21 Nov 2023 15:43:50 +0000 From: Will Deacon To: Vincent Guittot Cc: linux@armlinux.org.uk, catalin.marinas@arm.com, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, sudeep.holla@arm.com, gregkh@linuxfoundation.org, rafael@kernel.org, mingo@redhat.com, peterz@infradead.org, 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, beata.michalska@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 v6 7/7] arm64/amu: Use capacity_ref_freq to set AMU ratio Message-ID: <20231121154349.GA1938@willie-the-truck> References: <20231109101438.1139696-1-vincent.guittot@linaro.org> <20231109101438.1139696-8-vincent.guittot@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231109101438.1139696-8-vincent.guittot@linaro.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Tue, 21 Nov 2023 07:44:05 -0800 (PST) On Thu, Nov 09, 2023 at 11:14:38AM +0100, Vincent Guittot wrote: > Use the new capacity_ref_freq to set the ratio that is used by AMU for > computing the arch_scale_freq_capacity(). > This helps to keep everything aligned using the same reference for > computing CPUs capacity. > > The default value of the ratio (stored in per_cpu(arch_max_freq_scale)) > ensures that arch_scale_freq_capacity() returns max capacity until it is > set to its correct value with the cpu capacity and capacity_ref_freq. > > Signed-off-by: Vincent Guittot > Acked-by: Sudeep Holla > --- > arch/arm64/kernel/topology.c | 26 +++++++++++++------------- > drivers/base/arch_topology.c | 12 +++++++++++- > include/linux/arch_topology.h | 1 + > 3 files changed, 25 insertions(+), 14 deletions(-) Acked-by: Will Deacon Will