config/arm: add Ampere AmpereOneX platform

Message ID 20240407063604.79303-1-jiangyutang@os.amperecomputing.com (mailing list archive)
State Superseded
Delegated to: Thomas Monjalon
Headers
Series config/arm: add Ampere AmpereOneX platform |

Checks

Context Check Description
ci/checkpatch warning coding style issues
ci/loongarch-compilation success Compilation OK
ci/loongarch-unit-testing success Unit Testing PASS
ci/Intel-compilation success Compilation OK
ci/intel-Testing success Testing PASS
ci/intel-Functional success Functional PASS
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-mellanox-Performance success Performance Testing PASS
ci/iol-abi-testing success Testing PASS
ci/iol-intel-Functional success Functional Testing PASS
ci/iol-broadcom-Performance success Performance Testing PASS
ci/iol-compile-amd64-testing success Testing PASS
ci/iol-sample-apps-testing success Testing PASS
ci/iol-unit-amd64-testing success Testing PASS
ci/iol-broadcom-Functional success Functional Testing PASS
ci/iol-unit-arm64-testing success Testing PASS
ci/iol-compile-arm64-testing success Testing PASS

Commit Message

Yutang Jiang April 7, 2024, 6:36 a.m. UTC
  Signed-off-by: Yutang Jiang <jiangyutang@os.amperecomputing.com>
Signed-off-by: Yutang Jiang <yutang.jiang@amperecomputing.com>
---
 config/arm/arm64_ampereonex_linux_gcc | 16 ++++++++++++++++
 config/arm/meson.build                | 19 +++++++++++++++++++
 2 files changed, 35 insertions(+)
 create mode 100644 config/arm/arm64_ampereonex_linux_gcc
  

Comments

Wathsala Wathawana Vithanage April 10, 2024, 9:57 p.m. UTC | #1
> -----Original Message-----
> From: Yutang Jiang <jiangyutang@os.amperecomputing.com>
> Sent: Sunday, April 7, 2024 1:36 AM
> To: dev@dpdk.org
> Cc: patches@amperecomputing.com; yutang.jiang@amperecomputing.com;
> jiangyutang@os.amperecomputing.com; Ruifeng Wang
> <Ruifeng.Wang@arm.com>; nd <nd@arm.com>; juraj.linkes@pantheon.tech
> Subject: [PATCH] config/arm: add Ampere AmpereOneX platform
> 
> Signed-off-by: Yutang Jiang <jiangyutang@os.amperecomputing.com>
> Signed-off-by: Yutang Jiang <yutang.jiang@amperecomputing.com>
> ---
>  config/arm/arm64_ampereonex_linux_gcc | 16 ++++++++++++++++
>  config/arm/meson.build                | 19 +++++++++++++++++++

Acked-by: Wathsala Vithanage <wathsala.vithanage@arm.com>
  
Wathsala Wathawana Vithanage April 11, 2024, 12:31 a.m. UTC | #2
> >
> > Signed-off-by: Yutang Jiang <jiangyutang@os.amperecomputing.com>
> > Signed-off-by: Yutang Jiang <yutang.jiang@amperecomputing.com>
> > ---

Looks like this patch is signed off by Yutang twice with two different emails.
Please remove one and submit again. 

Thank you.
  
Yutang Jiang April 11, 2024, 9:23 a.m. UTC | #3
I will resend a new version. Thanks.

Best Regards,
Yutang Jiang

> -----Original Message-----
> From: Wathsala Wathawana Vithanage <wathsala.vithanage@arm.com>
> Sent: Thursday, April 11, 2024 8:32 AM
> To: Wathsala Wathawana Vithanage <wathsala.vithanage@arm.com>; Yutang
> Jiang OS <jiangyutang@os.amperecomputing.com>; dev@dpdk.org
> Cc: Open Source Submission <patches@amperecomputing.com>; Yutang Jiang
> <yutang.jiang@amperecomputing.com>; Ruifeng Wang
> <Ruifeng.Wang@arm.com>; nd <nd@arm.com>; juraj.linkes@pantheon.tech;
> nd <nd@arm.com>; nd <nd@arm.com>
> Subject: RE: [PATCH] config/arm: add Ampere AmpereOneX platform
> 
> [EXTERNAL EMAIL NOTICE: This email originated from an external sender.
> Please be mindful of safe email handling and proprietary information protection
> practices.]
> 
> 
> > >
> > > Signed-off-by: Yutang Jiang <jiangyutang@os.amperecomputing.com>
> > > Signed-off-by: Yutang Jiang <yutang.jiang@amperecomputing.com>
> > > ---
> 
> Looks like this patch is signed off by Yutang twice with two different emails.
> Please remove one and submit again.
> 
> Thank you.
  

Patch

diff --git a/config/arm/arm64_ampereonex_linux_gcc b/config/arm/arm64_ampereonex_linux_gcc
new file mode 100644
index 0000000000..c5c334fdb7
--- /dev/null
+++ b/config/arm/arm64_ampereonex_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.6-a'
+endian = 'little'
+
+[properties]
+platform = 'ampereonex'
diff --git a/config/arm/meson.build b/config/arm/meson.build
index a45aa9e466..40d63b5e4b 100644
--- a/config/arm/meson.build
+++ b/config/arm/meson.build
@@ -210,6 +210,16 @@  implementer_ampere = {
                 ['RTE_MAX_LCORE', 320],
                 ['RTE_MAX_NUMA_NODES', 8]
             ]
+        },
+        '0xac4': {
+            'march': 'armv8.6-a',
+            'march_features': ['crc', 'crypto'],
+            'mcpu': 'ampere1a',
+            'flags': [
+                ['RTE_MACHINE', '"AmpereOneX"'],
+                ['RTE_MAX_LCORE', 384],
+                ['RTE_MAX_NUMA_NODES', 8]
+            ]
         }
     }
 }
@@ -371,6 +381,13 @@  soc_ampereone = {
     'numa': true
 }
 
+soc_ampereonex = {
+    'description': 'Ampere AmpereOneX',
+    'implementer': '0xc0',
+    'part_number': '0xac4',
+    'numa': true
+}
+
 soc_armada = {
     'description': 'Marvell ARMADA',
     'implementer': '0x41',
@@ -621,6 +638,7 @@  generic:         Generic un-optimized build for armv8 aarch64 execution mode.
 generic_aarch32: Generic un-optimized build for armv8 aarch32 execution mode.
 altra:           Ampere Altra/AltraMax
 ampereone:       Ampere AmpereOne
+ampereonex:      Ampere AmpereOneX
 armada:          Marvell ARMADA
 bluefield:       NVIDIA BlueField
 bluefield3:      NVIDIA BlueField-3
@@ -658,6 +676,7 @@  socs = {
     'generic_aarch32': soc_generic_aarch32,
     'altra': soc_altra,
     'ampereone': soc_ampereone,
+    'ampereonex': soc_ampereonex,
     'armada': soc_armada,
     'bluefield': soc_bluefield,
     'bluefield3': soc_bluefield3,