Skip to contentSkip to conversation

config/arm: add AMD CDX

PATCH Applied Nipun Gupta 3 participants 3 messages Jun 15, 2023 – Jun 27, 2023 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 config/arm: add AMD CDX

Add meson build configuration for AMD CDX platform.

---
This patch was earlier submitted as part of AMD CDX bus, but as it is platform support it has been separated out from the bus series. Previous patch link:
http://patches.dpdk.org/project/dpdk/patch/[email protected]/

 config/arm/arm64_cdx_linux_gcc | 17 +++++++++++++++++
 config/arm/meson.build         | 14 ++++++++++++++
 2 files changed, 31 insertions(+)
 create mode 100644 config/arm/arm64_cdx_linux_gcc
config/arm/arm64_cdx_linux_gcc new file +17 -0
new file mode 100644
index 0000000000..8e6d619dae
@@ -0,0 +1,17 @@
+[binaries]
+c = ['ccache', 'aarch64-linux-gnu-gcc']
+cpp = ['ccache', 'aarch64-linux-gnu-g++']
+ar = 'aarch64-linux-gnu-ar'
+as = 'aarch64-linux-gnu-as'
+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 = 'cdx'
config/arm/meson.build +14 -0
index ae2226988e..213b535a6f 100644
@@ -305,6 +305,18 @@ soc_bluefield = {
     'numa': false
 }
 
+soc_cdx = {
+    'description': 'AMD CDX',
+    'implementer': '0x41',
+    'part_number': '0xd42',
+    'flags': [
+        ['RTE_MACHINE', '"cdx"'],
+        ['RTE_MAX_LCORE', 16],
+        ['RTE_MAX_NUMA_NODES', 1]
+    ],
+    'numa': false
+}
+
 soc_centriq2400 = {
     'description': 'Qualcomm Centriq 2400',
     'implementer': '0x51',
@@ -463,6 +475,7 @@ generic_aarch32: Generic un-optimized build for armv8 aarch32 execution mode.
 armada:          Marvell ARMADA
 bluefield:       NVIDIA BlueField
 bluefield3:      NVIDIA BlueField-3
+cdx:             AMD CDX
 centriq2400:     Qualcomm Centriq 2400
 cn9k:            Marvell OCTEON 9
 cn10k:           Marvell OCTEON 10
@@ -490,6 +503,7 @@ socs = {
     'armada': soc_armada,
     'bluefield': soc_bluefield,
     'bluefield3': soc_bluefield3,
+    'cdx': soc_cdx,
     'centriq2400': soc_centriq2400,
     'cn9k': soc_cn9k,
     'cn10k' : soc_cn10k,
Signature · 1 line
2.17.1
Acked-by on v1 1/1
#1 lore raw
Quoted 83 lines

-----Original Message-----
From: Nipun Gupta <[email protected]>
Sent: Friday, June 16, 2023 12:19 AM
To: [email protected]; [email protected]; [email protected]
Cc: [email protected]; [email protected]; Ruifeng Wang <[email protected]>; Honnappa Nagarahalli <[email protected]>; Nipun Gupta <[email protected]>
Subject: [PATCH] config/arm: add AMD CDX

Add meson build configuration for AMD CDX platform.

---
This patch was earlier submitted as part of AMD CDX bus, but as it is platform support it has been separated out from the bus series. Previous patch link:
http://patches.dpdk.org/project/dpdk/patch/[email protected]/

 config/arm/arm64_cdx_linux_gcc | 17 +++++++++++++++++
 config/arm/meson.build         | 14 ++++++++++++++
 2 files changed, 31 insertions(+)
 create mode 100644 config/arm/arm64_cdx_linux_gcc
config/arm/arm64_cdx_linux_gcc new file mode renamed from config/arm/arm64_cdx_linux_gcc +0 -0

100644 index 0000000000..8e6d619dae

config/arm/arm64_cdx_linux_gcc new file +16 -0
@@ -0,0 +1,17 @@
+[binaries]
+c = ['ccache', 'aarch64-linux-gnu-gcc'] cpp = ['ccache',
+'aarch64-linux-gnu-g++'] ar = 'aarch64-linux-gnu-ar'
+as = 'aarch64-linux-gnu-as'
+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 = 'cdx'
config/arm/meson.build index ae2226988e..213b535a6f renamed from config/arm/meson.build +0 -0

100644

config/arm/meson.build +12 -0
@@ -305,6 +305,18 @@ soc_bluefield = {
     'numa': false
 }
 
+soc_cdx = {
+    'description': 'AMD CDX',
+    'implementer': '0x41',
+    'part_number': '0xd42',
+    'flags': [
+        ['RTE_MACHINE', '"cdx"'],
+        ['RTE_MAX_LCORE', 16],
+        ['RTE_MAX_NUMA_NODES', 1]
+    ],
+    'numa': false
+}
+
 soc_centriq2400 = {
     'description': 'Qualcomm Centriq 2400',
     'implementer': '0x51',
@@ -463,6 +475,7 @@ generic_aarch32: Generic un-optimized build for armv8 aarch32

execution mode.

 armada:          Marvell ARMADA
 bluefield:       NVIDIA BlueField
 bluefield3:      NVIDIA BlueField-3
config/arm/meson.build +2 -1
+cdx:             AMD CDX
 centriq2400:     Qualcomm Centriq 2400
 cn9k:            Marvell OCTEON 9
 cn10k:           Marvell OCTEON 10
@@ -490,6 +503,7 @@ socs = {
     'armada': soc_armada,
     'bluefield': soc_bluefield,
     'bluefield3': soc_bluefield3,
+    'cdx': soc_cdx,
     'centriq2400': soc_centriq2400,
     'cn9k': soc_cn9k,
     'cn10k' : soc_cn10k,
--
Quoted 1 line

2.17.1

#2 lore raw

16/06/2023 10:36, Ruifeng Wang:

Quoted 8 lines
Quoted 8 lines

-----Original Message-----
From: Nipun Gupta <[email protected]>
Sent: Friday, June 16, 2023 12:19 AM
To: [email protected]; [email protected]; [email protected]
Cc: [email protected]; [email protected]; Ruifeng Wang <[email protected]>; Honnappa Nagarahalli <[email protected]>; Nipun Gupta <[email protected]>
Subject: [PATCH] config/arm: add AMD CDX

Quoted 5 lines
Quoted 3 lines

Add meson build configuration for AMD CDX platform.

Applied, thanks.