From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id AF2CD432C6; Tue, 7 Nov 2023 13:59:48 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 330A0402E3; Tue, 7 Nov 2023 13:59:48 +0100 (CET) Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by mails.dpdk.org (Postfix) with ESMTP id E2091402BC for ; Tue, 7 Nov 2023 13:59:46 +0100 (CET) Received: from frapeml100008.china.huawei.com (unknown [172.18.147.201]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4SPpBC0ysfz6K5yg; Tue, 7 Nov 2023 20:56:19 +0800 (CST) Received: from frapeml500007.china.huawei.com (7.182.85.172) by frapeml100008.china.huawei.com (7.182.85.131) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Tue, 7 Nov 2023 13:59:44 +0100 Received: from frapeml500007.china.huawei.com ([7.182.85.172]) by frapeml500007.china.huawei.com ([7.182.85.172]) with mapi id 15.01.2507.031; Tue, 7 Nov 2023 13:59:44 +0100 From: Konstantin Ananyev To: Sivaprasad Tummala , "bruce.richardson@intel.com" , "konstantin.v.ananyev@yandex.ru" CC: "dev@dpdk.org" Subject: RE: [PATCH] config/x86: config support for AMD EPYC processors Thread-Topic: [PATCH] config/x86: config support for AMD EPYC processors Thread-Index: AQHZ78KbXliBjVbRkU2FOhRFhM9cHrBvFMMA Date: Tue, 7 Nov 2023 12:59:44 +0000 Message-ID: <7a7a1fc0a6aa445090eff7d509918ab8@huawei.com> References: <20230925151027.558546-1-sivaprasad.tummala@amd.com> In-Reply-To: <20230925151027.558546-1-sivaprasad.tummala@amd.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.81.194.200] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-CFilter-Loop: Reflected X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org > -----Original Message----- > From: Sivaprasad Tummala > Sent: Monday, September 25, 2023 4:10 PM > To: bruce.richardson@intel.com; konstantin.v.ananyev@yandex.ru > Cc: dev@dpdk.org; Sivaprasad Tummala > Subject: [PATCH] config/x86: config support for AMD EPYC processors >=20 > From: Sivaprasad Tummala >=20 > 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. >=20 > The patch adjusts the limit specifically for native compilation > on AMD EPYC CPUs. >=20 > Signed-off-by: Sivaprasad Tummala > --- > config/x86/meson.build | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) >=20 > diff --git a/config/x86/meson.build b/config/x86/meson.build > index d8ef50fb40..5355731cef 100644 > --- a/config/x86/meson.build > +++ b/config/x86/meson.build > @@ -83,4 +83,21 @@ endif >=20 > dpdk_conf.set('RTE_CACHE_LINE_SIZE', 64) > dpdk_conf.set('RTE_MAX_LCORE', 128) > + > +epyc_zen_cores =3D { > + '__znver4__':512, > + '__znver3__':256, > + '__znver2__':256, > + '__znver1__':128 > + } > + > +if get_option('platform') =3D=3D 'native' > + foreach m:epyc_zen_cores.keys() > + if cc.get_define(m, args: machine_args) !=3D '' > + 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 =20 > 2.34.1