config/x86: config support for AMD EPYC processors
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
@@ -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
Quoted 15 lines
From: Sivaprasad Tummala [mailto:[email protected]]
Sent: Wednesday, 20 December 2023 08.11On 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.
Signed-off-by Sivaprasad Tummala <[email protected]>---
[...]
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.
[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 processorsCaution: 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.11On 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.
Signed-off-by Sivaprasad Tummala <[email protected]>---
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]) + breakThe 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
Acked-by Morten Brørup <[email protected]>
PATCH v2 1/1 config/x86: config support for AMD EPYC processors
In reply to Sivaprasad TummalaOn 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
@@ -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
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.
Signed-off-by Sivaprasad Tummala <[email protected]>Acked-by Morten Brørup <[email protected]>--- config/x86/meson.build | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)config/x86/meson.build +3
-1@@ -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
Thomas Monjalon
Applied02/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.
Signed-off-by Sivaprasad Tummala <[email protected]>Acked-by Morten Brørup <[email protected]>
Applied, thanks.