From patchwork Thu Mar 10 14:54:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ionela Voinescu X-Patchwork-Id: 12776520 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1AB21C433F5 for ; Thu, 10 Mar 2022 14:56:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=FGGeZJnelqcVjPAgceSN+MG1oWLfULpLtBdTMxh14sQ=; b=sIB8bjt8d0/oYs aG+gRtu1JTgpL1T4pW5KVt3v23xbOd8cPYsLROZHnE/M2aqhMy5vhGBTDQJ3yRcYAYy/wgNpt9OC0 QBlNw95HBmdV7ZC6j/9py440BW4QNaEun+777f6tEclxTkkAKgY0fCvKT3q3ZAEwnvjTgx3p9SFHw ExvEGczWfn8nxwikLnljOeAw7vXx8Na1tP6h6PFeQcAya35f2klwMm4TJIXdsO1h9u7l0QTuWQ0dg jw3IPfF9XmNAygs4hLKQu7GRzWEIjohR4tSYLT3FjJfjJav+igWg/v7hDRtBRM3PS2n3fMG82w+qM N2G49WvyxoahK/Z1/CdQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nSKCL-00DEmn-Ms; Thu, 10 Mar 2022 14:55:25 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nSKCE-00DEj8-RJ for linux-arm-kernel@lists.infradead.org; Thu, 10 Mar 2022 14:55:22 +0000 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 935811692; Thu, 10 Mar 2022 06:55:15 -0800 (PST) Received: from e108754-lin.cambridge.arm.com (unknown [10.1.195.34]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id CDD0C3F7B4; Thu, 10 Mar 2022 06:55:13 -0800 (PST) From: Ionela Voinescu To: Sudeep Holla , "Rafael J . Wysocki" , Thomas Gleixner , Ingo Molnar , Giovanni Gherdovich , Catalin Marinas , Will Deacon , Valentin Schneider , Dietmar Eggemann , Sean Kelley Cc: Pierre Gondois , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v4 0/3] arch_topology, ACPI: populate cpu capacity from CPPC Date: Thu, 10 Mar 2022 14:54:48 +0000 Message-Id: <20220310145451.15596-1-ionela.voinescu@arm.com> X-Mailer: git-send-email 2.29.2.dirty MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220310_065518_978203_35366607 X-CRM114-Status: UNSURE ( 9.21 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi all, v3->v4: - v3 can be found at [3] - rebased on linux-next 20220310 which contains patches at [4] requested by Rafael - 2/3 fixed obsolete comment as reported by Yicong at [5] - Kept Acked-by,Tested-by as v4 has no code changes compared to v3, but only a comment fix. v2->v3: - v2 can be found at [2] - Added sanity checking on perf_caps.highest_perf v1->v2: - v1 can be found at [1] - Changed debug prints to the format used on the DT path - s/init_cpu_capacity_cppc/topology_init_cpu_capacity_cppc Patches are based on linux next 20220310. [1] https://lore.kernel.org/lkml/20210514095339.12979-1-ionela.voinescu@arm.com/ [2] https://lore.kernel.org/lkml/20210824105651.28660-1-ionela.voinescu@arm.com/ [3] https://lore.kernel.org/lkml/20220302180913.13229-1-ionela.voinescu@arm.com/ [4] https://lore.kernel.org/linux-acpi/20220214101450.356047-1-ray.huang@amd.com/ [5] https://lore.kernel.org/lkml/477748c7-ae9e-712b-90ad-b04a6767a996@huawei.com/ Thanks, Ionela. Ionela Voinescu (3): x86, ACPI: rename init_freq_invariance_cppc to arch_init_invariance_cppc arch_topology: obtain cpu capacity using information from CPPC arm64, topology: enable use of init_cpu_capacity_cppc() arch/arm64/include/asm/topology.h | 4 +++ arch/x86/include/asm/topology.h | 2 +- drivers/acpi/cppc_acpi.c | 6 ++--- drivers/base/arch_topology.c | 45 ++++++++++++++++++++++++++++--- include/linux/arch_topology.h | 4 +++ 5 files changed, 54 insertions(+), 7 deletions(-)