Skip to contentSkip to conversation

config/arm: support crypto in cortex-a78ae mcpu

PATCH Applied Shani Peretz 3 participants 3 messages Aug 5, 2025 – Sep 17, 2025 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 config/arm: support crypto in cortex-a78ae mcpu

ARM cortex-a78ae configuration (part number 0xd42) is being built without the necessary crypto extensions. This results in infinite loops in the crypto performance tests applications because the hardware crypto features are not properly enabled.
This fix enables the crypto extension in the mcpu definition.

Fixes c02c01dbf907 ("config/arm: prefer strict use of -mcpu if supported")
---
 config/arm/meson.build | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
config/arm/meson.build +5 -2
index 35b7553e74..82661b7cfe 100644
@@ -84,8 +84,7 @@ part_number_config_arm = {
         ]
     },
     '0xd42': {
-        'march': 'armv8.4-a',
-        'mcpu' : 'cortex-a78ae',
+        'mcpu' : 'mcpu_cortex-a78ae',
         'flags': [
             ['RTE_MAX_LCORE', 16],
             ['RTE_MAX_NUMA_NODES', 1]
@@ -689,6 +688,10 @@ mcpu_defs = {
         'march': 'armv8-a',
         'march_extensions': ['simd'],
     },
+    'mcpu_cortex-a78ae': {
+        'march': 'armv8.4-a',
+        'march_extensions': ['crypto']
+    }
 }
 
 '''
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 52 lines

-----Original Message-----
From: Shani Peretz <[email protected]>
Sent: Tuesday, August 5, 2025 1:23 AM
To: [email protected]
Cc: [email protected]; [email protected]; Shani Peretz <[email protected]>; Wathsala Vithanage <[email protected]>; [email protected]; Bruce Richardson <[email protected]>; Dhruv Tripathi <[email protected]>
Subject: [PATCH] config/arm: support crypto in cortex-a78ae mcpu

ARM cortex-a78ae configuration (part number 0xd42) is being built without the necessary crypto extensions. This results in infinite loops in the crypto performance tests applications because the hardware crypto features are not properly enabled.
This fix enables the crypto extension in the mcpu definition.

Fixes c02c01dbf907 ("config/arm: prefer strict use of -mcpu if supported")
---
 config/arm/meson.build | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
config/arm/meson.build index renamed from config/arm/meson.build +0 -0

35b7553e74..82661b7cfe 100644

config/arm/meson.build +5 -3
@@ -84,8 +84,7 @@ part_number_config_arm = {
         ]
     },
     '0xd42': {
-        'march': 'armv8.4-a',
-        'mcpu' : 'cortex-a78ae',
+        'mcpu' : 'mcpu_cortex-a78ae',
         'flags': [
             ['RTE_MAX_LCORE', 16],
             ['RTE_MAX_NUMA_NODES', 1]
@@ -689,6 +688,10 @@ mcpu_defs = {
         'march': 'armv8-a',
         'march_extensions': ['simd'],
     },
+    'mcpu_cortex-a78ae': {
+        'march': 'armv8.4-a',
+        'march_extensions': ['crypto']
+    }
 }
 
 '''
--

2.34.1

#2 lore raw
Quoted 10 lines
Quoted 10 lines

ARM cortex-a78ae configuration (part number 0xd42) is being built without the necessary crypto extensions. This results in infinite loops in the crypto performance tests applications because the hardware crypto features are not properly enabled.
This fix enables the crypto extension in the mcpu definition.

Fixes c02c01dbf907 ("config/arm: prefer strict use of -mcpu if supported")
Quoted 8 lines

config/arm/meson.build mcpu_defs = { · line 694

Quoted 6 lines

---

config/arm/meson.build +4 -0
+    'mcpu_cortex-a78ae': {
+        'march': 'armv8.4-a',
+        'march_extensions': ['crypto']
+    }

Applied, thanks.