diff mbox series

[V4,1/3] config/arm: add Hisilicon kunpeng implementer

Message ID 1618567025-25982-2-git-send-email-oulijun@huawei.com (mailing list archive)
State Accepted
Delegated to: Thomas Monjalon
Headers show
Series add Hisilicon kunpeng CPU support | expand

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Lijun Ou April 16, 2021, 9:57 a.m. UTC
From: Chengchang Tang <tangchengchang@huawei.com>

Here adds configs for Kunpeng server.

Fixes: 91c730fd4e09 ("config/arm: remove unused or superfluous variables")

Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Lijun Ou <oulijun@huawei.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
---
 config/arm/meson.build | 48 +++++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 47 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/config/arm/meson.build b/config/arm/meson.build
index 1b7c4c1..7cc4eb1 100644
--- a/config/arm/meson.build
+++ b/config/arm/meson.build
@@ -146,6 +146,35 @@  implementer_ampere = {
 	}
 }
 
+implementer_hisilicon = {
+	'description': 'HiSilicon',
+	'flags': [
+		['RTE_USE_C11_MEM_MODEL', true],
+		['RTE_CACHE_LINE_SIZE', 128]
+	],
+	'part_number_config': {
+		'0xd01': {
+			'machine_args': ['-march=armv8.2-a+crypto',
+					 '-mtune=tsv110'],
+			'flags': [
+				['RTE_MACHINE', '"Kunpeng 920"'],
+				['RTE_ARM_FEATURE_ATOMICS', true],
+				['RTE_MAX_LCORE', 256],
+				['RTE_MAX_NUMA_NODES', 8]
+			]
+		},
+		'0xd02': {
+			'machine_args': ['-march=armv8.2-a+crypto+sve'],
+			'flags': [
+				['RTE_MACHINE', '"Kunpeng 930"'],
+				['RTE_ARM_FEATURE_ATOMICS', true],
+				['RTE_MAX_LCORE', 1280],
+				['RTE_MAX_NUMA_NODES', 16]
+			]
+		}
+	}
+}
+
 implementer_qualcomm = {
 	'description': 'Qualcomm',
 	'flags': [
@@ -165,6 +194,7 @@  implementers = {
 	'generic': implementer_generic,
 	'0x41': implementer_arm,
 	'0x43': implementer_cavium,
+	'0x48': implementer_hisilicon,
 	'0x50': implementer_ampere,
 	'0x51': implementer_qualcomm
 }
@@ -249,6 +279,20 @@  soc_octeontx2 = {
 	'numa': false
 }
 
+soc_kunpeng920 = {
+	'description': 'HiSilicon Kunpeng 920',
+	'implementer': '0x48',
+	'part_number': '0xd01',
+	'numa': true
+}
+
+soc_kunpeng930 = {
+	'description': 'HiSilicon Kunpeng 930',
+	'implementer': '0x48',
+	'part_number': '0xd02',
+	'numa': true
+}
+
 soc_stingray = {
 	'description': 'Broadcom Stingray',
 	'implementer': '0x41',
@@ -284,7 +328,9 @@  socs = {
 	'octeontx2': soc_octeontx2,
 	'stingray': soc_stingray,
 	'thunderx2': soc_thunderx2,
-	'thunderxt88': soc_thunderxt88
+	'thunderxt88': soc_thunderxt88,
+	'kunpeng920': soc_kunpeng920,
+	'kunpeng930': soc_kunpeng930
 }
 
 dpdk_conf.set('RTE_ARCH_ARM', 1)