[PATCH] config/x86: config support for AMD EPYC processors
Thomas Monjalon
thomas at monjalon.net
Sun Nov 12 14:48:54 CET 2023
25/09/2023 17:10, Sivaprasad Tummala:
> From: Sivaprasad Tummala <Sivaprasad.Tummala at amd.com>
>
> By default, max lcores are limited to 128 for x86 platforms.
> On AMD EPYC processors, this limit needs to be increased to
> leverage all the cores.
>
> The patch adjusts the limit specifically for native compilation
> on AMD EPYC CPUs.
>
> Signed-off-by: Sivaprasad Tummala <Sivaprasad.Tummala at amd.com>
> ---
> +epyc_zen_cores = {
> + '__znver4__':512,
> + '__znver3__':256,
> + '__znver2__':256,
> + '__znver1__':128
> + }
> +
> +if get_option('platform') == '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
> +endif
Acked-by: Konstantin Ananyev <konstantin.ananyev at huawei.com>
Acked-by: Morten Brørup <mb at smartsharesystems.com>
Agreed in techboard:
https://mails.dpdk.org/archives/dev/2023-October/279672.html)
Applied, thanks.
More information about the dev
mailing list