From mboxrd@z Thu Jan 1 00:00:00 1970 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 54FA0C433F5 for ; Wed, 2 Mar 2022 18:11:45 +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=j9pB/DVYRE4LsNUr80Souan164hKv1UtmdbylxdwLHU=; b=FDsL7qcH1vgBJT WCwIoQRUkLrIn4pPdvOvFUPI6qs9WVTipo8+dDJ6SteQN6HmmC+kZOzSaFM2HM1qy1/8tYEgHwIn/ D50hkEDP+9DMPWScAEtQfCOqT6PLU0he+L4lsXdIR0b9EaDdPdCl4O9KzCw0uJJi/cbKxUP54kQJb ZRQ91ccsQNUIfn4BOntXMqL0jhJ7o+Ijgv2Tz355pGlpTs+zztzJG4CagZF0ViLw1xImpUk7nmIR6 JcmSpd60CuzYv6HThhDnJjUasX0DjR6Pc5Ndv/pf24hJX6Es2fXGFj3pifCrizFLh00gh8sTEAUDM 8Sr8fX8ip0d1QwodwDjQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nPTQM-003ko6-AQ; Wed, 02 Mar 2022 18:10:08 +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 1nPTQ8-003ki9-R2 for linux-arm-kernel@lists.infradead.org; Wed, 02 Mar 2022 18:09:54 +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 40621139F; Wed, 2 Mar 2022 10:09:48 -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 71FB53F73D; Wed, 2 Mar 2022 10:09:46 -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 v3 0/3] arch_topology, ACPI: populate cpu capacity from CPPC Date: Wed, 2 Mar 2022 18:09:10 +0000 Message-Id: <20220302180913.13229-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-20220302_100953_008336_B69B588A X-CRM114-Status: UNSURE ( 9.80 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi all, 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 v5.17-rc6. The patches have been build tested on x86 and more thoroughly tested on Juno R2 (arm64), which uses the new functionality, with the following results: root@buildroot:~# dmesg | grep cpu_capacity [ 2.191152] cpu_capacity: CPU0 cpu_capacity=38300 (raw). [ 2.196482] cpu_capacity: CPU1 cpu_capacity=38300 (raw). [ 2.201809] cpu_capacity: CPU2 cpu_capacity=38300 (raw). [ 2.207136] cpu_capacity: CPU3 cpu_capacity=38300 (raw). [ 2.212463] cpu_capacity: CPU4 cpu_capacity=102400 (raw). [ 2.217877] cpu_capacity: CPU5 cpu_capacity=102400 (raw). [ 2.223291] cpu_capacity: capacity_scale=102400 [ 2.227834] cpu_capacity: CPU0 cpu_capacity=383 [ 2.232376] cpu_capacity: CPU1 cpu_capacity=383 [ 2.236919] cpu_capacity: CPU2 cpu_capacity=383 [ 2.241462] cpu_capacity: CPU3 cpu_capacity=383 [ 2.246004] cpu_capacity: CPU4 cpu_capacity=1024 [ 2.250634] cpu_capacity: CPU5 cpu_capacity=1024 [ 2.255321] cpu_capacity: cpu_capacity initialization done root@buildroot:~# tail -n +1 /sys/devices/system/cpu/cpu*/cpu_capacity ==> /sys/devices/system/cpu/cpu0/cpu_capacity <== 383 ==> /sys/devices/system/cpu/cpu1/cpu_capacity <== 383 ==> /sys/devices/system/cpu/cpu2/cpu_capacity <== 383 ==> /sys/devices/system/cpu/cpu3/cpu_capacity <== 383 ==> /sys/devices/system/cpu/cpu4/cpu_capacity <== 1024 ==> /sys/devices/system/cpu/cpu5/cpu_capacity <== 1024 [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/ 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 | 40 +++++++++++++++++++++++++++++++ include/linux/arch_topology.h | 4 ++++ 5 files changed, 52 insertions(+), 4 deletions(-) -- 2.25.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel