Skip to contentSkip to conversation

config/arm: update config for Neoverse N2

PATCH In review Ruifeng Wang 5 participants 9 messages May 29, 2023 – Jun 8, 2023 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 config/arm: update config for Neoverse N2

Updated maximum number of lcores and numa nodes to support platforms with multiple numa nodes.
Added mcpu compiler option.

---
 config/arm/meson.build | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
config/arm/meson.build +3 -2
index 5213434ca4..9e55e9f2a4 100644
@@ -91,11 +91,12 @@ part_number_config_arm = {
     '0xd49': {
         'march': 'armv8.5-a',
         'march_features': ['sve2'],
+	'compiler_options':  ['-mcpu=neoverse-n2'],
         'flags': [
             ['RTE_MACHINE', '"neoverse-n2"'],
             ['RTE_ARM_FEATURE_ATOMICS', true],
-            ['RTE_MAX_LCORE', 64],
-            ['RTE_MAX_NUMA_NODES', 1]
+            ['RTE_MAX_LCORE', 128],
+            ['RTE_MAX_NUMA_NODES', 2]
         ]
     }
 }
Signature · 1 line
2.25.1
#1 lore raw

PATCH 2/2 build: fix warning when running external command

Meson gives warnings on calls to run_command when there is a missing "check" parameter. Most of the occurrences has been fixed. Fixed the remaining one in this change.

Fixes ecb904cc4596 ("build: fix warnings when running external commands")
---
 config/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
config/meson.build +1 -1
index fa730a1b14..65087ce090 100644
@@ -366,7 +366,7 @@ if max_numa_nodes == 'detect'
         error('Discovery of max_numa_nodes not supported for cross-compilation.')
     endif
     # overwrite the default value with discovered values
-    max_numa_nodes = run_command(get_numa_count_cmd).stdout().to_int()
+    max_numa_nodes = run_command(get_numa_count_cmd, check: true).stdout().to_int()
     message('Found @0@ numa nodes'.format(max_numa_nodes))
     dpdk_conf.set('RTE_MAX_NUMA_NODES', max_numa_nodes)
 elif max_numa_nodes != 'default'
Signature · 1 line
2.25.1
Acked-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] build: fix warning when running external command

Quoted 10 lines · Ruifeng Wang

Meson gives warnings on calls to run_command when there is a missing "check" parameter. Most of the occurrences has been fixed. Fixed the remaining one in this change.

Fixes ecb904cc4596 ("build: fix warnings when running external commands")

---

Acked-by on v1 1/2
#3 lore raw
In reply to Ruifeng Wang
Quoted 33 lines · Ruifeng Wang

Updated maximum number of lcores and numa nodes to support platforms with multiple numa nodes.
Added mcpu compiler option.

---
 config/arm/meson.build | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
config/arm/meson.build +3 -3
index 5213434ca4..9e55e9f2a4 100644
@@ -91,11 +91,12 @@ part_number_config_arm = {
     '0xd49': {
         'march': 'armv8.5-a',
         'march_features': ['sve2'],
+       'compiler_options':  ['-mcpu=neoverse-n2'],
         'flags': [
             ['RTE_MACHINE', '"neoverse-n2"'],
             ['RTE_ARM_FEATURE_ATOMICS', true],
-            ['RTE_MAX_LCORE', 64],
-            ['RTE_MAX_NUMA_NODES', 1]
+            ['RTE_MAX_LCORE', 128],
+            ['RTE_MAX_NUMA_NODES', 2]
         ]
     }
 }
--

2.25.1

#5 lore raw
In reply to Ruifeng Wang
Quoted 15 lines

Updated maximum number of lcores and numa nodes to support platforms with multiple numa nodes.
Added mcpu compiler option.

---
 config/arm/meson.build | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
config/arm/meson.build +0 -0
index 5213434ca4..9e55e9f2a4 100644

config/arm/meson.build part_number_config_arm = { · line 94

Quoted 4 lines
config/arm/meson.build +1 -0
@@ -91,11 +91,12 @@ part_number_config_arm = {
     '0xd49': {
         'march': 'armv8.5-a',
         'march_features': ['sve2'],
+	'compiler_options':  ['-mcpu=neoverse-n2'],

Hi Ruifeng,
I see the following warning when compiling with GCC 12

cc1: warning: switch '-mcpu=neoverse-n2' conflicts with '-march=armv8.5-a+sve2+crypto' switch

Removing 'armv8.5-a' from the list makes the warning go away but what's the correct march for neoverse-n2? Armv9.0-a is not a supported march flag in GCC.

Quoted 12 lines
config/arm/meson.build +2 -3
         'flags': [
             ['RTE_MACHINE', '"neoverse-n2"'],
             ['RTE_ARM_FEATURE_ATOMICS', true],
-            ['RTE_MAX_LCORE', 64],
-            ['RTE_MAX_NUMA_NODES', 1]
+            ['RTE_MAX_LCORE', 128],
+            ['RTE_MAX_NUMA_NODES', 2]
         ]
     }
 }
--

2.25.1

#6 lore raw
Quoted 18 lines

-----Original Message-----
From: Pavan Nikhilesh Bhagavatula <[email protected]>
Sent: Wednesday, June 7, 2023 11:12 PM
To: Ruifeng Wang <[email protected]>; [email protected]
Cc: [email protected]; [email protected]; Honnappa Nagarahalli <[email protected]>; Feifei Wang <[email protected]>; nd <[email protected]>
Subject: RE: [EXT] [PATCH 1/2] config/arm: update config for Neoverse N2

Quoted 10 lines

Updated maximum number of lcores and numa nodes to support platforms with multiple numa nodes.
Added mcpu compiler option.

---
 config/arm/meson.build | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Quoted 11 lines

config/arm/meson.build part_number_config_arm = { · line 94

Quoted 9 lines
config/arm/meson.build index renamed from config/arm/meson.build +0 -0

5213434ca4..9e55e9f2a4 100644

config/arm/meson.build +1 -0
@@ -91,11 +91,12 @@ part_number_config_arm = {
     '0xd49': {
         'march': 'armv8.5-a',
         'march_features': ['sve2'],
+	'compiler_options':  ['-mcpu=neoverse-n2'],

Hi Ruifeng,

Hi Pavan,

Quoted 8 lines

I see the following warning when compiling with GCC 12

cc1: warning: switch '-mcpu=neoverse-n2' conflicts with '-march=armv8.5-a+sve2+crypto' switch

Removing 'armv8.5-a' from the list makes the warning go away but what's the correct march for neoverse-n2?
Armv9.0-a is not a supported march flag in GCC.

Thanks for pointing this out.
Neoverse-n2 is v9.0-a. The corresponding march flag in GCC is 'armv9-a' [1].
'armv8.5-a' should be removed from the list. It was used when armv9-a/neoverse-n2 is not available in compilers.

[1] https://gcc.gnu.org/onlinedocs/gcc-12.3.0/gcc/AArch64-Options.html

Quoted 13 lines
Quoted 13 lines
config/arm/meson.build +2 -3
         'flags': [
             ['RTE_MACHINE', '"neoverse-n2"'],
             ['RTE_ARM_FEATURE_ATOMICS', true],
-            ['RTE_MAX_LCORE', 64],
-            ['RTE_MAX_NUMA_NODES', 1]
+            ['RTE_MAX_LCORE', 128],
+            ['RTE_MAX_NUMA_NODES', 2]
         ]
     }
 }
--

2.25.1

#7 lore raw
Quoted 53 lines

-----Original Message-----
From: Ruifeng Wang <[email protected]>
Sent: Thursday, June 8, 2023 9:59 AM
To: Pavan Nikhilesh Bhagavatula <[email protected]>; [email protected]
Cc: [email protected]; Jerin Jacob Kollanukkaran <[email protected]>; Honnappa Nagarahalli <[email protected]>; Feifei Wang <[email protected]>; nd <[email protected]>; nd <[email protected]>
Subject: RE: [EXT] [PATCH 1/2] config/arm: update config for Neoverse N2

Quoted 5 lines

-----Original Message-----
From: Pavan Nikhilesh Bhagavatula <[email protected]>
Sent: Wednesday, June 7, 2023 11:12 PM
To: Ruifeng Wang <[email protected]>; [email protected]
Cc: [email protected]; [email protected]; Honnappa Nagarahalli

<[email protected]>;

Quoted 4 lines

Feifei Wang <[email protected]>; nd <[email protected]>
Subject: RE: [EXT] [PATCH 1/2] config/arm: update config for Neoverse N2

Quoted 1 line

Updated maximum number of lcores and numa nodes to support

platforms

Quoted 9 lines
Quoted 9 lines

with multiple numa nodes.
Added mcpu compiler option.

---
 config/arm/meson.build | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Quoted 11 lines

config/arm/meson.build part_number_config_arm = { · line 94

Quoted 9 lines
config/arm/meson.build index renamed from config/arm/meson.build +0 -0

5213434ca4..9e55e9f2a4 100644

config/arm/meson.build +1 -0
@@ -91,11 +91,12 @@ part_number_config_arm = {
     '0xd49': {
         'march': 'armv8.5-a',
         'march_features': ['sve2'],
+	'compiler_options':  ['-mcpu=neoverse-n2'],

Hi Ruifeng,

Hi Pavan,

Quoted 3 lines

I see the following warning when compiling with GCC 12

cc1: warning: switch '-mcpu=neoverse-n2' conflicts with '-march=armv8.5-

a+sve2+crypto'

Quoted 3 lines

switch

Removing 'armv8.5-a' from the list makes the warning go away but what's

Quoted 8 lines

the correct march

Quoted 2 lines

for neoverse-n2?
Armv9.0-a is not a supported march flag in GCC.

Thanks for pointing this out.
Neoverse-n2 is v9.0-a. The corresponding march flag in GCC is 'armv9-a' [1]. 'armv8.5-a' should be removed from the list. It was used when armv9- a/neoverse-n2 is not available in compilers.

I see, should I send a fix?

Quoted 22 lines

[1] https://urldefense.proofpoint.com/v2/url?u=https-
3A__gcc.gnu.org_onlinedocs_gcc-2D12.3.0_gcc_AArch64- 2DOptions.html&d=DwIFAg&c=nKjWec2b6R0mOyPaz7xtfQ&r=E3SgYMjtKCM VsB-fmvgGV3o- g_fjLhk5Pupi9ijohpc&m=v0RqCjWj9zEynw7pgt6ghZX4BNI5Vnk0UxA4sYAxRr RtO8lLHUhKYCNTniy2Jb5L&s=tEj1y2WPKFeatDFYUFqX49tv- 2rG2wx0UiWklOYUvhY&e=

Quoted 13 lines
Quoted 13 lines
config/arm/meson.build +2 -3
         'flags': [
             ['RTE_MACHINE', '"neoverse-n2"'],
             ['RTE_ARM_FEATURE_ATOMICS', true],
-            ['RTE_MAX_LCORE', 64],
-            ['RTE_MAX_NUMA_NODES', 1]
+            ['RTE_MAX_LCORE', 128],
+            ['RTE_MAX_NUMA_NODES', 2]
         ]
     }
 }
--

2.25.1

#8 lore raw
Quoted 69 lines

-----Original Message-----
From: Pavan Nikhilesh Bhagavatula <[email protected]>
Sent: Thursday, June 8, 2023 12:35 PM
To: Ruifeng Wang <[email protected]>; [email protected]
Cc: [email protected]; [email protected]; Honnappa Nagarahalli <[email protected]>; Feifei Wang <[email protected]>; nd <[email protected]>; nd <[email protected]>
Subject: RE: [EXT] [PATCH 1/2] config/arm: update config for Neoverse N2

Quoted 59 lines

-----Original Message-----
From: Ruifeng Wang <[email protected]>
Sent: Thursday, June 8, 2023 9:59 AM
To: Pavan Nikhilesh Bhagavatula <[email protected]>; [email protected]
Cc: [email protected]; Jerin Jacob Kollanukkaran <[email protected]>; Honnappa Nagarahalli <[email protected]>; Feifei Wang <[email protected]>; nd <[email protected]>; nd <[email protected]>
Subject: RE: [EXT] [PATCH 1/2] config/arm: update config for Neoverse N2

Quoted 5 lines

-----Original Message-----
From: Pavan Nikhilesh Bhagavatula <[email protected]>
Sent: Wednesday, June 7, 2023 11:12 PM
To: Ruifeng Wang <[email protected]>; [email protected]
Cc: [email protected]; [email protected]; Honnappa Nagarahalli

<[email protected]>;

Quoted 5 lines

Feifei Wang <[email protected]>; nd <[email protected]>
Subject: RE: [EXT] [PATCH 1/2] config/arm: update config for Neoverse N2

Quoted 1 line

Updated maximum number of lcores and numa nodes to support

platforms

Quoted 9 lines
Quoted 9 lines

with multiple numa nodes.
Added mcpu compiler option.

---
 config/arm/meson.build | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Quoted 11 lines

config/arm/meson.build part_number_config_arm = { · line 94

Quoted 9 lines
config/arm/meson.build index renamed from config/arm/meson.build +0 -0

5213434ca4..9e55e9f2a4 100644

config/arm/meson.build +1 -0
@@ -91,11 +91,12 @@ part_number_config_arm = {
     '0xd49': {
         'march': 'armv8.5-a',
         'march_features': ['sve2'],
+	'compiler_options':  ['-mcpu=neoverse-n2'],

Hi Ruifeng,

Hi Pavan,

Quoted 4 lines

I see the following warning when compiling with GCC 12

cc1: warning: switch '-mcpu=neoverse-n2' conflicts with '-march=armv8.5-

a+sve2+crypto'

Quoted 4 lines

switch

Removing 'armv8.5-a' from the list makes the warning go away but what's

the correct march

Quoted 2 lines

for neoverse-n2?
Armv9.0-a is not a supported march flag in GCC.

Quoted 6 lines
Quoted 4 lines

Thanks for pointing this out.
Neoverse-n2 is v9.0-a. The corresponding march flag in GCC is 'armv9-a' [1]. 'armv8.5-a' should be removed from the list. It was used when armv9- a/neoverse-n2 is not available in compilers.

I see, should I send a fix?

Sure. Please go ahead.
Thanks.

Quoted 23 lines
Quoted 23 lines

[1] https://urldefense.proofpoint.com/v2/url?u=https-
3A__gcc.gnu.org_onlinedocs_gcc-2D12.3.0_gcc_AArch64- 2DOptions.html&d=DwIFAg&c=nKjWec2b6R0mOyPaz7xtfQ&r=E3SgYMjtKCM VsB-fmvgGV3o- g_fjLhk5Pupi9ijohpc&m=v0RqCjWj9zEynw7pgt6ghZX4BNI5Vnk0UxA4sYAxRr RtO8lLHUhKYCNTniy2Jb5L&s=tEj1y2WPKFeatDFYUFqX49tv- 2rG2wx0UiWklOYUvhY&e=

Quoted 13 lines
Quoted 13 lines
config/arm/meson.build +2 -3
         'flags': [
             ['RTE_MACHINE', '"neoverse-n2"'],
             ['RTE_ARM_FEATURE_ATOMICS', true],
-            ['RTE_MAX_LCORE', 64],
-            ['RTE_MAX_NUMA_NODES', 1]
+            ['RTE_MAX_LCORE', 128],
+            ['RTE_MAX_NUMA_NODES', 2]
         ]
     }
 }
--

2.25.1