Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2433214rda; Wed, 25 Oct 2023 02:33:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEHJdcemDC/EWc66kdxCvnqMbkbONa5Vo/AHxYHd2GHT0q0e4sCMJaocoGYgogPwYVp3BTb X-Received: by 2002:a81:6d50:0:b0:5a7:c8d4:c254 with SMTP id i77-20020a816d50000000b005a7c8d4c254mr16984902ywc.0.1698226435623; Wed, 25 Oct 2023 02:33:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698226435; cv=none; d=google.com; s=arc-20160816; b=y7bfcAI2KMHh/6J0TKzDK8WiWSkN+ktsAfHXc7xbnpYHSpZxr9yAq/nK2SLts7iQGQ IT7hdS83VhVNzUMTLv1pmKa3SksJbk24ynqXeOYAE6fwNbfm8tA2Qq3HgRDldO2nEbCW 6adBeddtOQxS73J6Keq9akV781NtLSnZay5uPz1x9lTd9aITxAUc9RP6IQbgFkX3kyPe k8oIjK36fTW6t6mnuO550tBENYWe5vYaAo3QrQhGfW6B/9EGxFztKT+sJjeydQ4g+1fh vV8z7WboCoR5H3VnCw80EL02NWf86wgviCbYVsZbi6RlCRzDUI0IR7uBF4smJXZZMR3L X+qA== 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=U/AZUYCv+xPBqhFe9WOsZC318TUbjEKhzQiHZ/ZXREY=; fh=4OYJ3K2D0ofBlGhh3O4YuBicy23CNIUxbo78mZx4uJc=; b=Efc7fzufeHoKPUa+9c9a2hhHpFYYT0C9eTi8Svcwx/kLd+On2ix+rduHz8kireMmHR ir5LO5KvmzXAP1mFOCYJCVCvzrAqkOTNlGEMGAeFqDCMX22tw9pOxoToQxsTf1QhrPIq p5wriCJiaRVZz/Z/Kqh8Yo2vav+0sn8o3l/b2mODpVcGCx7CM2jBAOGDGQ7U4WFKwkEt 13zWvK3pPRWGNenwr+AK20ufXzVv4RJ0gjbBbtxTG5SQfbH4+dm3srC8emeIoU4YhO4c AsoTDsdlSEtiZp1qIG9wu+x7H9YVumZAD0s7SCZ+/hK0BbwsE6rwikjIOAtnkTDDVFz3 pGsA== 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:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id z67-20020a818946000000b005a7b512d0c1si10027182ywf.141.2023.10.25.02.33.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 02:33:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id DE496801B8A3; Wed, 25 Oct 2023 02:33:51 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234393AbjJYJdq (ORCPT + 99 others); Wed, 25 Oct 2023 05:33:46 -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 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII 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 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Wed, 25 Oct 2023 02:33:52 -0700 (PDT) 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