config/arm: add Hisilicon kunpeng
authorChengchang Tang <tangchengchang@huawei.com>
Fri, 16 Apr 2021 09:57:03 +0000 (17:57 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 19 Apr 2021 08:09:03 +0000 (10:09 +0200)
Here adds configs for Kunpeng server.

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/arm64_kunpeng920_linux_gcc [new file with mode: 0644]
config/arm/arm64_kunpeng930_linux_gcc [new file with mode: 0644]
config/arm/meson.build

diff --git a/config/arm/arm64_kunpeng920_linux_gcc b/config/arm/arm64_kunpeng920_linux_gcc
new file mode 100644 (file)
index 0000000..c4685b2
--- /dev/null
@@ -0,0 +1,16 @@
+[binaries]
+c = 'aarch64-linux-gnu-gcc'
+cpp = 'aarch64-linux-gnu-cpp'
+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 = 'kunpeng920'
diff --git a/config/arm/arm64_kunpeng930_linux_gcc b/config/arm/arm64_kunpeng930_linux_gcc
new file mode 100644 (file)
index 0000000..fb85d2d
--- /dev/null
@@ -0,0 +1,16 @@
+[binaries]
+c = 'aarch64-linux-gnu-gcc'
+cpp = 'aarch64-linux-gnu-cpp'
+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 = 'kunpeng930'
index b9f70f2..86cdb9b 100644 (file)
@@ -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
 }
@@ -225,6 +255,20 @@ soc_graviton2 = {
        '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_n1sdp = {
        'description': 'Arm Neoverse N1SDP',
        'implementer': '0x41',
@@ -279,6 +323,8 @@ socs = {
        'dpaa': soc_dpaa,
        'emag': soc_emag,
        'graviton2': soc_graviton2,
+       'kunpeng920': soc_kunpeng920,
+       'kunpeng930': soc_kunpeng930,
        'n1sdp': soc_n1sdp,
        'n2': soc_n2,
        'octeontx2': soc_octeontx2,