From patchwork Wed Oct 25 09:38:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zeng Heng X-Patchwork-Id: 738089 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 71F3FC25B47 for ; Wed, 25 Oct 2023 09:33:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233957AbjJYJdo (ORCPT ); Wed, 25 Oct 2023 05:33:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231794AbjJYJdn (ORCPT ); Wed, 25 Oct 2023 05:33:43 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DD1ACE; Wed, 25 Oct 2023 02:33:40 -0700 (PDT) Received: from kwepemi500024.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4SFkF16SVdzrTcJ; Wed, 25 Oct 2023 17:30:45 +0800 (CST) Received: from huawei.com (10.175.103.91) by kwepemi500024.china.huawei.com (7.221.188.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Wed, 25 Oct 2023 17:33:37 +0800 From: Zeng Heng To: , , , , , , , , , , , CC: , , , , Subject: [PATCH 0/3] Make the cpuinfo_cur_freq interface read correctly Date: Wed, 25 Oct 2023 17:38:44 +0800 Message-ID: <20231025093847.3740104-1-zengheng4@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.175.103.91] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To kwepemi500024.china.huawei.com (7.221.188.100) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Patch 1~2: It is required to ensure that amu can continue to work normally during the sample period while cstate is enabled. Patch 3: Even works in the mmio mode, cpc_read still has random delay errors, so let's extend the sampling time. Zeng Heng (3): arm64: cpufeature: Export cpu_has_amu_feat() cpufreq: CPPC: Keep the target core awake when reading its cpufreq rate cpufreq: CPPC: Eliminate the impact of cpc_read() latency error arch/arm64/kernel/cpufeature.c | 1 + drivers/cpufreq/cppc_cpufreq.c | 53 ++++++++++++++++++++++++++++------ 2 files changed, 45 insertions(+), 9 deletions(-) --- 2.25.1