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 3991DA0C48; Wed, 7 Jul 2021 07:43:55 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0D866406FF; Wed, 7 Jul 2021 07:43:55 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mails.dpdk.org (Postfix) with ESMTP id 39C004069E for ; Wed, 7 Jul 2021 07:43:53 +0200 (CEST) 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 7FE57D6E; Tue, 6 Jul 2021 22:43:52 -0700 (PDT) Received: from net-arm-n1amp-02.shanghai.arm.com (net-arm-n1amp-02.shanghai.arm.com [10.169.210.110]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id D98563F5A1; Tue, 6 Jul 2021 22:43:49 -0700 (PDT) From: Ruifeng Wang To: Cc: dev@dpdk.org, david.marchand@redhat.com, thomas@monjalon.net, bruce.richardson@intel.com, jerinj@marvell.com, nd@arm.com, honnappa.nagarahalli@arm.com, ruifeng.wang@arm.com Date: Wed, 7 Jul 2021 13:43:37 +0800 Message-Id: <20210707054341.1607419-1-ruifeng.wang@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200424070741.16619-1-gavin.hu@arm.com> References: <20200424070741.16619-1-gavin.hu@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v4 0/3] Use WFE for spinlock and ring 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 Sender: "dev" The rte_wait_until_equal_xxx APIs abstract the functionality of 'polling for a memory location to become equal to a given value'[1]. Use the API for the rte spinlock and ring implementations. With the wait until equal APIs being stable, changes will not impact ABI. [1] http://patches.dpdk.org/cover/62703/ v4: Added meson option to expose WFE. (David, Bruce) v3: Series rebased. (David) Gavin Hu (1): spinlock: use wfe to reduce contention on aarch64 Ruifeng Wang (2): ring: use wfe to wait for ring tail update on aarch64 build: add option to enable wait until equal config/arm/meson.build | 2 +- lib/eal/include/generic/rte_spinlock.h | 4 ++-- lib/ring/rte_ring_c11_pvt.h | 4 ++-- lib/ring/rte_ring_generic_pvt.h | 3 +-- meson_options.txt | 2 ++ 5 files changed, 8 insertions(+), 7 deletions(-) -- 2.25.1