[PATCH v2] config/x86: config support for AMD EPYC processors
Konstantin Ananyev
konstantin.ananyev at huawei.com
Tue Jan 2 19:18:51 CET 2024
> 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/
> 20230925151027.558546-1-sivaprasad.tummala at amd.com/
>
> As agreed earlier in mailing list, this patch adjusts the limit
> for specific AMD EPYC target/cross builds.
>
> Signed-off-by: Sivaprasad Tummala <sivaprasad.tummala at amd.com>
> Acked-by: Morten Brørup <mb at smartsharesystems.com>
> ---
> config/x86/meson.build | 10 +++++++++-
> 1 file changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/config/x86/meson.build b/config/x86/meson.build
> index 5355731cef..8087b9ae91 100644
> --- a/config/x86/meson.build
> +++ b/config/x86/meson.build
> @@ -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)
> --
Acked-by: Konstantin Ananyev <konstantin.ananyev at huawei.com>
> 2.25.1
More information about the dev
mailing list