From patchwork Sat Sep 17 02:17:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: luzhipeng X-Patchwork-Id: 116404 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 828B5A0032; Sat, 17 Sep 2022 04:18:10 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1E14C4021D; Sat, 17 Sep 2022 04:18:10 +0200 (CEST) Received: from smtp.cecloud.com (unknown [106.39.185.58]) by mails.dpdk.org (Postfix) with ESMTP id 9F37840156 for ; Sat, 17 Sep 2022 04:18:07 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by smtp.cecloud.com (Postfix) with ESMTP id 2A4C617E0205; Sat, 17 Sep 2022 10:18:03 +0800 (CST) X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-ANTISPAM-LEVEL: 2 X-ABS-CHECKED: 0 Received: from localhost.localdomain (40.39.88.218.broad.cd.sc.dynamic.163data.com.cn [218.88.39.40]) by smtp.cecloud.com (postfix) whith ESMTP id P2473742T281457410568560S1663381079834220_; Sat, 17 Sep 2022 10:18:03 +0800 (CST) X-UNIQUE-TAG: <906185dc9f1bafeb3e5b258070f98022> X-RL-SENDER: luzhipeng@cestc.cn X-SENDER: luzhipeng@cestc.cn X-LOGIN-NAME: luzhipeng@cestc.cn X-FST-TO: dev@dpdk.org X-RCPT-COUNT: 5 X-SENDER-IP: 218.88.39.40 X-ATTACHMENT-NUM: 0 X-System-Flag: 0 From: luzhipeng To: dev@dpdk.org Cc: Jan Viktorin , Ruifeng Wang , Bruce Richardson , luzhipeng Subject: [PATCH v3] config/arm: add PHYTIUM tys2500 Date: Sat, 17 Sep 2022 10:17:42 +0800 Message-Id: <20220917021742.982-1-luzhipeng@cestc.cn> X-Mailer: git-send-email 2.34.0.windows.1 In-Reply-To: <20220909084237.311-1-luzhipeng@cestc.cn> References: <20220909084237.311-1-luzhipeng@cestc.cn> 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 Here adds configs for PHYTIUM server. Signed-off-by: luzhipeng --- v3: 1. fix typos 2. fix signed-off-by format v2: 1. add ccache for cross build 2. rename fts2500 to tys2500 and modify the corresponding code config/arm/arm64_tys2500_linux_gcc | 16 ++++++++++++++++ config/arm/meson.build | 26 +++++++++++++++++++++++--- 2 files changed, 39 insertions(+), 3 deletions(-) create mode 100644 config/arm/arm64_tys2500_linux_gcc diff --git a/config/arm/arm64_tys2500_linux_gcc b/config/arm/arm64_tys2500_linux_gcc new file mode 100644 index 0000000000..fce85fb0d8 --- /dev/null +++ b/config/arm/arm64_tys2500_linux_gcc @@ -0,0 +1,16 @@ +[binaries] +c = ['ccache', 'aarch64-linux-gnu-gcc'] +cpp = ['ccache', 'aarch64-linux-gnu-g++'] +ar = 'aarch64-linux-gnu-gcc-ar' +strip = 'aarch64-linux-gnu-strip' +pkgconfig = 'aarch64-linux-gnu-pkg-config' +pcap-config = '' + +[host_machine] +system = 'linux' +cpu_family = 'aarch64' +cpu = 'armv8-a' +endian = 'little' + +[properties] +platform = 'tys2500' diff --git a/config/arm/meson.build b/config/arm/meson.build index 9f1636e0d5..d917128481 100644 --- a/config/arm/meson.build +++ b/config/arm/meson.build @@ -203,13 +203,24 @@ implementer_phytium = { ['RTE_MACHINE', '"armv8a"'], ['RTE_USE_C11_MEM_MODEL', true], ['RTE_CACHE_LINE_SIZE', 64], - ['RTE_MAX_LCORE', 64], - ['RTE_MAX_NUMA_NODES', 8] ], 'part_number_config': { '0x662': { - 'machine_args': ['-march=armv8-a+crc'], + 'march': 'armv8-a', + 'march_features': ['crc'], + 'flags': [ + ['RTE_MAX_LCORE', 64], + ['RTE_MAX_NUMA_NODES', 8] + ] }, + '0x663': { + 'march': 'armv8-a', + 'march_features': ['crc'], + 'flags': [ + ['RTE_MAX_LCORE', 256], + ['RTE_MAX_NUMA_NODES', 32] + ] + } } } @@ -328,6 +339,13 @@ soc_ft2000plus = { 'numa': true } +soc_tys2500 = { + 'description': 'Phytium TengYun S2500', + 'implementer': '0x70', + 'part_number': '0x663', + 'numa': true +} + soc_graviton2 = { 'description': 'AWS Graviton2', 'implementer': '0x41', @@ -414,6 +432,7 @@ cn10k: Marvell OCTEON 10 dpaa: NXP DPAA emag: Ampere eMAG ft2000plus: Phytium FT-2000+ +tys2500: Phytium TengYun S2500 graviton2: AWS Graviton2 kunpeng920: HiSilicon Kunpeng 920 kunpeng930: HiSilicon Kunpeng 930 @@ -438,6 +457,7 @@ socs = { 'dpaa': soc_dpaa, 'emag': soc_emag, 'ft2000plus': soc_ft2000plus, + 'tys2500': soc_tys2500, 'graviton2': soc_graviton2, 'kunpeng920': soc_kunpeng920, 'kunpeng930': soc_kunpeng930,