Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3184765rdh; Mon, 27 Nov 2023 08:09:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IFTH0ZSiHxup37O8aBdt5ngElMMGmLJdJG9R2XXKURuJZcHJPydHxjbxFCt2C6EGU1S0Z+X X-Received: by 2002:a17:902:efc2:b0:1ca:e491:f525 with SMTP id ja2-20020a170902efc200b001cae491f525mr11138582plb.31.1701101356325; Mon, 27 Nov 2023 08:09:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701101356; cv=none; d=google.com; s=arc-20160816; b=mfsmjt8YrVYGn/9osYmcFjiEvy35wLOAVqPVK2JsFf5hFPiv/z2XYKsJZH5/zQnStb /B4mIvou2K60U3djGI555zOnYVXdNJ20uX9kmApNLoUScdh/S0IZpegNPQjuksE+mWNv 0yn6YGLXASrPlLnfbbepQw7vamOg2wOMqQPvCt2HqbmMHHMWM6rKZuuzEgDrpHSOuH3u pRJYkZMihlPUg2PwEbDwKC2CSXcKZ29gfEsoCza+97YwhU+/zx7PoUnWBlRE8KrkeS0x rqCAGnLVKmHjZmpDjqiRP6MVHC4Y1V1gexyGLa6OwvOcYUHPEDQJhXMnEZ5H3PnUHW7/ 5O3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=rsF7WOKf0W9xO84wa2fRD/rhdSU5UOvyAbqKsiIb0YA=; fh=T+aqzx8zkLYh8rg4LWp1gr91VntGMmWMOs1LhCvdFA4=; b=X6IyW19tLgW+UvCKeG0eBH3hYq3PsI2lYnjDdy/dqBMTGZMQT2HMYABv34EXUYx+mb xwnummAFerKYQjLXfQHjX/yC39VEo14xJE+UmkulyceR3DFghWdW8NJOguxXP0c+ADtD 7LZSPU4/lQtBv8DZ6Bd5WmlsIR68QivQcOt7mpJEID9zKpd/RCbrYl3zowebjr965KSK p7Gjii+4FqJpNHlh7nO/MfBocEsyW0tZJtmS4zc87P7WNhAhMez67jBePdB6wfWN2AQd yCqGzxzqxmRzQlLTMgv7GEwUsSUG3rr9RmE8zm5OLybNkmBWVm69A/E8O+LtU7zbavy1 wvow== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id n68-20020a634047000000b005b90fe4b5besi10077449pga.349.2023.11.27.08.09.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 08:09:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id A8F96814556B; Mon, 27 Nov 2023 08:09:11 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234325AbjK0QIy (ORCPT + 99 others); Mon, 27 Nov 2023 11:08:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234324AbjK0QIw (ORCPT ); Mon, 27 Nov 2023 11:08:52 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 25BE0CE; Mon, 27 Nov 2023 08:08:59 -0800 (PST) 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 5D2162F4; Mon, 27 Nov 2023 08:09:46 -0800 (PST) Received: from e125905.cambridge.arm.com (e125905.cambridge.arm.com [10.1.194.73]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 1D48D3F6C4; Mon, 27 Nov 2023 08:08:57 -0800 (PST) From: Beata Michalska To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, sumitg@nvidia.com Cc: sudeep.holla@arm.covm, will@kernel.org, catalin.marinas@arm.com, viresh.kumar@linaro.org, rafael@kernel.org, ionela.voinescu@arm.com, yang@os.amperecomputing.com, linux-tegra@vger.kernel.org Subject: [PATCH v2 0/2] Add support for AArch64 AMUv1-based arch_freq_get_on_cpu Date: Mon, 27 Nov 2023 16:08:36 +0000 Message-Id: <20231127160838.1403404-1-beata.michalska@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 (pete.vger.email [0.0.0.0]); Mon, 27 Nov 2023 08:09:11 -0800 (PST) Introducing AArch64 specific version of arch_freq_get_on_cpu, cashing on existing implementation for FIE and AMUv1 support. Additionally wiring it up with cpufreq_verify_current_freq to hopefully eliminate issues when cpufreq_driver->get() returns frequency that is not entirely aligned. The changes have been rather lightly (due to some limitations) tested on an FVP model. v2: - Splitting the patches - Adding comment for full dyntick mode - Plugging arch_freq_get_on_cpu into cpufreq_verify_current_freq instead of in show_cpuinfo_cur_freq to allow the framework to stay more in sync with potential freq changes [1] https://lore.kernel.org/lkml/20230606155754.245998-1-beata.michalska@arm.com/ Beata Michalska (1): arm64: Provide an AMU-based version of arch_freq_get_on_cpu Sumit Gupta (1): cpufreq: Wire-up arch-flavored freq info into cpufreq_verify_current_freq arch/arm64/kernel/topology.c | 39 ++++++++++++++++++++++++++++++++++++ drivers/cpufreq/cpufreq.c | 3 ++- 2 files changed, 41 insertions(+), 1 deletion(-) -- 2.25.1