Skip to contentSkip to conversation

config/x86: config support for AMD EPYC processors

PATCH Superseded Sivaprasad Tummala 4 participants 6 messages Dec 20, 2023 – Feb 13, 2024 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 config/x86: config support for AMD EPYC processors

On x86 platforms, max lcores are limited to 128 by default.

On AMD EPYC processors, this limit was adjusted for native builds in the previous patch.
https://patches.dpdk.org/project/dpdk/patch/
[email protected]/

As agreed earlier in mailing list, this patch adjusts the limit for specific AMD EPYC target/cross builds.

---
 config/x86/meson.build | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
config/x86/meson.build +9 -1
index 5355731cef..f2df4c2003 100644
@@ -91,13 +91,21 @@ epyc_zen_cores = {
     '__znver1__':128
     }
 
-if get_option('platform') == 'native'
+cpu_instruction_set = get_option('cpu_instruction_set')
+if cpu_instruction_set == 'native'
     foreach m:epyc_zen_cores.keys()
         if cc.get_define(m, args: machine_args) != ''
             dpdk_conf.set('RTE_MAX_LCORE', epyc_zen_cores[m])
             break
         endif
     endforeach
+else
+    foreach m:epyc_zen_cores.keys()
+        if m.contains(cpu_instruction_set)
+            dpdk_conf.set('RTE_MAX_LCORE', epyc_zen_cores[m])
+	    break
+        endif
+    endforeach
 endif
 
 dpdk_conf.set('RTE_MAX_NUMA_NODES', 32)
Signature · 1 line
2.25.1
Acked-by on v1 1/1
#1 lore raw
Quoted 15 lines

From: Sivaprasad Tummala [mailto:[email protected]]
Sent: Wednesday, 20 December 2023 08.11

On x86 platforms, max lcores are limited to 128 by default.

On AMD EPYC processors, this limit was adjusted for native builds in the previous patch.
https://patches.dpdk.org/project/dpdk/patch/
[email protected]/

As agreed earlier in mailing list, this patch adjusts the limit for specific AMD EPYC target/cross builds.

---

[...]

config/x86/meson.build epyc_zen_cores = { · line 106

Quoted 4 lines
config/x86/meson.build +4 -0
+    foreach m:epyc_zen_cores.keys()
+        if m.contains(cpu_instruction_set)
+            dpdk_conf.set('RTE_MAX_LCORE', epyc_zen_cores[m])
+	    break

The indentation of "break" uses a mix of tab and spaces, and should be fixed.

#2 lore raw

[AMD Official Use Only - General]

Hi Morten,

Quoted 31 lines

-----Original Message-----
From: Morten Brørup <[email protected]>
Sent: Wednesday, December 20, 2023 12:58 PM
To: Tummala, Sivaprasad <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Yigit, Ferruh <[email protected]>
Cc: [email protected]
Subject: RE: [PATCH] config/x86: config support for AMD EPYC processors

Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.

Quoted 10 lines

From: Sivaprasad Tummala [mailto:[email protected]]
Sent: Wednesday, 20 December 2023 08.11

On x86 platforms, max lcores are limited to 128 by default.

On AMD EPYC processors, this limit was adjusted for native builds in the previous patch.
https://patches.dpdk.org/project/dpdk/patch/
[email protected]/

Quoted 5 lines

As agreed earlier in mailing list, this patch adjusts the limit for specific AMD EPYC target/cross builds.

---

Quoted 8 lines

[...]

config/x86/meson.build epyc_zen_cores = { · line 106

Quoted 4 lines
config/x86/meson.build +4 -0
+    foreach m:epyc_zen_cores.keys()
+        if m.contains(cpu_instruction_set)
+            dpdk_conf.set('RTE_MAX_LCORE', epyc_zen_cores[m])
+         break

The indentation of "break" uses a mix of tab and spaces, and should be fixed.

Thanks for spotting this. Will fix this in v2.

Quoted 2 lines
#3 lore raw

PATCH v2 1/1 config/x86: config support for AMD EPYC processors

In reply to Sivaprasad Tummala

On x86 platforms, max lcores are limited to 128 by default.

On AMD EPYC processors, this limit was adjusted for native builds in the previous patch.
https://patches.dpdk.org/project/dpdk/patch/
[email protected]/

As agreed earlier in mailing list, this patch adjusts the limit for specific AMD EPYC target/cross builds.

---
 config/x86/meson.build | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
config/x86/meson.build +9 -1
index 5355731cef..8087b9ae91 100644
@@ -91,13 +91,21 @@ epyc_zen_cores = {
     '__znver1__':128
     }
 
-if get_option('platform') == 'native'
+cpu_instruction_set = get_option('cpu_instruction_set')
+if cpu_instruction_set == 'native'
     foreach m:epyc_zen_cores.keys()
         if cc.get_define(m, args: machine_args) != ''
             dpdk_conf.set('RTE_MAX_LCORE', epyc_zen_cores[m])
             break
         endif
     endforeach
+else
+    foreach m:epyc_zen_cores.keys()
+        if m.contains(cpu_instruction_set)
+            dpdk_conf.set('RTE_MAX_LCORE', epyc_zen_cores[m])
+            break
+        endif
+    endforeach
 endif
 
 dpdk_conf.set('RTE_MAX_NUMA_NODES', 32)
Signature · 1 line
2.25.1
Acked-by on v2 1/1
#4 lore raw
Quoted 36 lines

On x86 platforms, max lcores are limited to 128 by default.

On AMD EPYC processors, this limit was adjusted for native builds in the previous patch.
https://patches.dpdk.org/project/dpdk/patch/
[email protected]/

As agreed earlier in mailing list, this patch adjusts the limit for specific AMD EPYC target/cross builds.

---
 config/x86/meson.build | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
config/x86/meson.build +3 -1
index 5355731cef..8087b9ae91 100644
@@ -91,13 +91,21 @@ epyc_zen_cores = {
     '__znver1__':128
     }
 
-if get_option('platform') == 'native'
+cpu_instruction_set = get_option('cpu_instruction_set')
+if cpu_instruction_set == 'native'
     foreach m:epyc_zen_cores.keys()
         if cc.get_define(m, args: machine_args) != ''
             dpdk_conf.set('RTE_MAX_LCORE', epyc_zen_cores[m])
             break
         endif
     endforeach
+else

config/x86/meson.build epyc_zen_cores = {

Quoted 10 lines
config/x86/meson.build +6 -1
+    foreach m:epyc_zen_cores.keys()
+        if m.contains(cpu_instruction_set)
+            dpdk_conf.set('RTE_MAX_LCORE', epyc_zen_cores[m])
+            break
+        endif
+    endforeach
 endif
 
 dpdk_conf.set('RTE_MAX_NUMA_NODES', 32)
--
Quoted 1 line

2.25.1

#5 lore raw

02/01/2024 19:18, Konstantin Ananyev:

Quoted 8 lines
Quoted 8 lines

On x86 platforms, max lcores are limited to 128 by default.

On AMD EPYC processors, this limit was adjusted for native builds in the previous patch.
https://patches.dpdk.org/project/dpdk/patch/
[email protected]/

Quoted 7 lines
Quoted 5 lines

As agreed earlier in mailing list, this patch adjusts the limit for specific AMD EPYC target/cross builds.

Applied, thanks.