From patchwork Tue Nov 15 02:09:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: fengchengwen X-Patchwork-Id: 119860 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 1C448A0547; Tue, 15 Nov 2022 03:16:03 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A9CE940DFD; Tue, 15 Nov 2022 03:16:02 +0100 (CET) Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by mails.dpdk.org (Postfix) with ESMTP id 0377940150 for ; Tue, 15 Nov 2022 03:16:00 +0100 (CET) Received: from dggpeml500024.china.huawei.com (unknown [172.30.72.53]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4NB8pW0XJNzJnkM; Tue, 15 Nov 2022 10:12:51 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by dggpeml500024.china.huawei.com (7.185.36.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 15 Nov 2022 10:15:58 +0800 From: Chengwen Feng To: CC: , Subject: [PATCH] config/arm: make SoC-generic more generic Date: Tue, 15 Nov 2022 02:09:48 +0000 Message-ID: <20221115020948.18356-1-fengchengwen@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpeml500024.china.huawei.com (7.185.36.10) X-CFilter-Loop: Reflected 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 The non-generic soc has 1280 max-lcores and 32 max-numas, but the implementer-generic still has 256 max-lcores and 4 max-numas, which may result in restrictions on the use of binaries compiled by soc-generic in these systems. This patch changes the soc-generic max-lcores to 1280 and max-numas to 32 to make it more generic. Also, because single numa is a special case of multiple numas, mark soc-generic's numa flag as true. Signed-off-by: Chengwen Feng --- config/arm/meson.build | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/config/arm/meson.build b/config/arm/meson.build index 6442ec9596..97b91cf609 100644 --- a/config/arm/meson.build +++ b/config/arm/meson.build @@ -32,8 +32,8 @@ implementer_generic = { 'flags': [ ['RTE_MACHINE', '"armv8a"'], ['RTE_USE_C11_MEM_MODEL', true], - ['RTE_MAX_LCORE', 256], - ['RTE_MAX_NUMA_NODES', 4] + ['RTE_MAX_LCORE', 1280], + ['RTE_MAX_NUMA_NODES', 32] ], 'part_number_config': { 'generic': { @@ -271,7 +271,8 @@ implementers = { soc_generic = { 'description': 'Generic un-optimized build for armv8 aarch64 exec mode', 'implementer': 'generic', - 'part_number': 'generic' + 'part_number': 'generic', + 'numa': true } soc_generic_aarch32 = {