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 6D20FA0C48; Wed, 7 Jul 2021 07:49:19 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5B7C94145B; Wed, 7 Jul 2021 07:49:19 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mails.dpdk.org (Postfix) with ESMTP id 42AA24145B for ; Wed, 7 Jul 2021 07:49:18 +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 BCDCFD6E; Tue, 6 Jul 2021 22:49:17 -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 E37983F5A1; Tue, 6 Jul 2021 22:49:14 -0700 (PDT) From: Ruifeng Wang To: Jan Viktorin , Ruifeng Wang , Jerin Jacob , Bruce Richardson Cc: dev@dpdk.org, david.marchand@redhat.com, thomas@monjalon.net, nd@arm.com, honnappa.nagarahalli@arm.com Date: Wed, 7 Jul 2021 13:48:39 +0800 Message-Id: <20210707054840.1608425-4-ruifeng.wang@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210707054840.1608425-1-ruifeng.wang@arm.com> References: <20200424070741.16619-1-gavin.hu@arm.com> <20210707054840.1608425-1-ruifeng.wang@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v4 3/3] build: add option to enable wait until equal 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" Introduce a meson option 'use_wfe' to select wait until equal method. The default is disable. Traditional polling loop is used. When enabled, architecture specific mechanism is relied on to do the wait. Signed-off-by: Ruifeng Wang --- config/arm/meson.build | 2 +- meson_options.txt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config/arm/meson.build b/config/arm/meson.build index 9b147c0b93..9ea478fb77 100644 --- a/config/arm/meson.build +++ b/config/arm/meson.build @@ -18,7 +18,6 @@ flags_common = [ # ['RTE_ARM64_MEMCPY_STRICT_ALIGN', false], ['RTE_SCHED_VECTOR', false], - ['RTE_ARM_USE_WFE', false], ['RTE_ARCH_ARM64', true], ['RTE_CACHE_LINE_SIZE', 128] ] @@ -371,6 +370,7 @@ socs = { dpdk_conf.set('RTE_ARCH_ARM', 1) dpdk_conf.set('RTE_FORCE_INTRINSICS', 1) +dpdk_conf.set('RTE_ARM_USE_WFE', get_option('use_wfe')) if dpdk_conf.get('RTE_ARCH_32') # armv7 build diff --git a/meson_options.txt b/meson_options.txt index 56bdfd0f0a..5012803c77 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -44,3 +44,5 @@ option('tests', type: 'boolean', value: true, description: 'build unit tests') option('use_hpet', type: 'boolean', value: false, description: 'use HPET timer in EAL') +option('use_wfe', type: 'boolean', value: false, description: + 'use Wait Until Equal for polling loops') -- 2.25.1