From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6B805A0093; Mon, 7 Nov 2022 08:05:00 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1349440684; Mon, 7 Nov 2022 08:05:00 +0100 (CET) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mails.dpdk.org (Postfix) with ESMTP id 3941140156 for ; Mon, 7 Nov 2022 08:04:59 +0100 (CET) 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 A23BE1FB; Sun, 6 Nov 2022 23:05:04 -0800 (PST) Received: from net-x86-dell-8268.shanghai.arm.com (net-x86-dell-8268.shanghai.arm.com [10.169.210.116]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 25FA43F534; Sun, 6 Nov 2022 23:04:55 -0800 (PST) From: Feifei Wang To: Cc: dev@dpdk.org, david.hunt@intel.com, david.marchand@redhat.com, thomas@monjalon.net, stephen@networkplumber.org, nd@arm.com, Feifei Wang Subject: [PATCH v2 0/3] Enable PMD power management on Arm Date: Mon, 7 Nov 2022 15:04:46 +0800 Message-Id: <20221107070449.3319078-1-feifei.wang2@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220825064251.2637274-1-feifei.wang2@arm.com> References: <20220825064251.2637274-1-feifei.wang2@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org For Arm aarch, use WFE instructions to enable PMD power management. Test Results: dynamic instructions over 1sec without wfe with wfe percentage ampere-altra 6,298,483,712 9,117,624 -99.855% thunderx2 6,990,909,373 3,247,226 -99.954% When power efficient PMD is enabled by using WFE on Arm, if no pkts received, the instructions that CPU executes is reduced by 99%. V2: 1. move rte_wake_up API out of signal_exit(David Marchand, Thomas, Stephen) 2. Add test results when using wfe on ARM server Feifei Wang (3): eal: add 8 bits case for wait scheme eal: add power mgmt support on Arm examples/l3fwd-power: enable PMD power monitor on Arm examples/l3fwd-power/main.c | 33 ++++++++++++++ lib/eal/arm/include/rte_pause_64.h | 32 +++++++++++-- lib/eal/arm/rte_cpuflags.c | 5 +++ lib/eal/arm/rte_power_intrinsics.c | 72 ++++++++++++++++++++++++++++-- 4 files changed, 135 insertions(+), 7 deletions(-) -- 2.25.1