From patchwork Mon May 29 05:57:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ruifeng Wang X-Patchwork-Id: 127653 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 89A9242BCB; Mon, 29 May 2023 07:58:04 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5F4EE410DD; Mon, 29 May 2023 07:58:04 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mails.dpdk.org (Postfix) with ESMTP id D361E410D7 for ; Mon, 29 May 2023 07:58:02 +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 92914AB6; Sun, 28 May 2023 22:58:47 -0700 (PDT) Received: from net-arm-n1amp-02.shanghai.arm.com (net-arm-n1amp-02.shanghai.arm.com [10.169.210.108]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id ECFC23F6C4; Sun, 28 May 2023 22:57:59 -0700 (PDT) From: Ruifeng Wang To: bruce.richardson@intel.com Cc: dev@dpdk.org, jerinj@marvell.com, honnappa.nagarahalli@arm.com, feifei.wang2@arm.com, nd@arm.com, Ruifeng Wang Subject: [PATCH 1/2] config/arm: update config for Neoverse N2 Date: Mon, 29 May 2023 13:57:50 +0800 Message-Id: <20230529055751.3035712-1-ruifeng.wang@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 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 Updated maximum number of lcores and numa nodes to support platforms with multiple numa nodes. Added mcpu compiler option. Signed-off-by: Ruifeng Wang Reviewed-by: Feifei Wang Acked-by: Juraj Linkeš --- config/arm/meson.build | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/arm/meson.build b/config/arm/meson.build index 5213434ca4..9e55e9f2a4 100644 --- a/config/arm/meson.build +++ b/config/arm/meson.build @@ -91,11 +91,12 @@ part_number_config_arm = { '0xd49': { 'march': 'armv8.5-a', 'march_features': ['sve2'], + 'compiler_options': ['-mcpu=neoverse-n2'], 'flags': [ ['RTE_MACHINE', '"neoverse-n2"'], ['RTE_ARM_FEATURE_ATOMICS', true], - ['RTE_MAX_LCORE', 64], - ['RTE_MAX_NUMA_NODES', 1] + ['RTE_MAX_LCORE', 128], + ['RTE_MAX_NUMA_NODES', 2] ] } } From patchwork Mon May 29 05:57:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ruifeng Wang X-Patchwork-Id: 127654 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7438842BCB; Mon, 29 May 2023 07:58:18 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 641434282D; Mon, 29 May 2023 07:58:18 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mails.dpdk.org (Postfix) with ESMTP id 3EBDD410D7; Mon, 29 May 2023 07:58:17 +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 F0248AB6; Sun, 28 May 2023 22:59:01 -0700 (PDT) Received: from net-arm-n1amp-02.shanghai.arm.com (net-arm-n1amp-02.shanghai.arm.com [10.169.210.108]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 189E03F6C4; Sun, 28 May 2023 22:58:13 -0700 (PDT) From: Ruifeng Wang To: bruce.richardson@intel.com Cc: dev@dpdk.org, jerinj@marvell.com, honnappa.nagarahalli@arm.com, feifei.wang2@arm.com, nd@arm.com, Ruifeng Wang , stable@dpdk.org Subject: [PATCH 2/2] build: fix warning when running external command Date: Mon, 29 May 2023 13:57:51 +0800 Message-Id: <20230529055751.3035712-2-ruifeng.wang@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230529055751.3035712-1-ruifeng.wang@arm.com> References: <20230529055751.3035712-1-ruifeng.wang@arm.com> MIME-Version: 1.0 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 Meson gives warnings on calls to run_command when there is a missing "check" parameter. Most of the occurrences has been fixed. Fixed the remaining one in this change. Fixes: ecb904cc4596 ("build: fix warnings when running external commands") Cc: bruce.richardson@intel.com Cc: stable@dpdk.org Signed-off-by: Ruifeng Wang Acked-by: Bruce Richardson --- config/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/meson.build b/config/meson.build index fa730a1b14..65087ce090 100644 --- a/config/meson.build +++ b/config/meson.build @@ -366,7 +366,7 @@ if max_numa_nodes == 'detect' error('Discovery of max_numa_nodes not supported for cross-compilation.') endif # overwrite the default value with discovered values - max_numa_nodes = run_command(get_numa_count_cmd).stdout().to_int() + max_numa_nodes = run_command(get_numa_count_cmd, check: true).stdout().to_int() message('Found @0@ numa nodes'.format(max_numa_nodes)) dpdk_conf.set('RTE_MAX_NUMA_NODES', max_numa_nodes) elif max_numa_nodes != 'default'