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 816B343731; Wed, 20 Dec 2023 08:11:19 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5562F40266; Wed, 20 Dec 2023 08:11:19 +0100 (CET) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on2073.outbound.protection.outlook.com [40.107.96.73]) by mails.dpdk.org (Postfix) with ESMTP id 8731B400EF for ; Wed, 20 Dec 2023 08:11:17 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QHfbvFEDQmOk3WVWPN64Ia7gJArRB2kJR0b/zWUK/CVx9FJezhdoVgU16ujyvlx5BhjVdB0WcbGHEfJ58VNsN13gkLNrd7WTGpasfXY258F534i7CvMHPej+PVUiRWbg6AQkl1X+96cJ6KcQsIslu4JU9T7cN98H248ZrDjlHC2eNkWRebPM+RltCrcLhQUATolhFx6VVPh/LhCYUau+UZTr3fI9o+qc8sWTAboOOpsN3F9op/BVC5ycmFm/eUb7x05pBoOxl4/SnQ8apGMHpN6kgJIoDNddZMXd1mW26WwddMrNOev9jqsw6NzItWpCgMxc01RuJohMiYlplAYbIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=DU6g4bhSdDcW86zAux5reUvQSYoCD21I80SNUYz7aH8=; b=BDNGpSKd9DY9hw0/KyN8sfJrwCq4n3ixEy3tnLt7sGee1hyIiKClT1FtCWD89RWr7QzcDih4Qmfa/CzvgrKuYHPIFRiurTvipAxLu4YkBNVCQTo2lx6utSxWpduYHnQ8I0HXdAIzbyJphD7vdbS5dPnaNuP0KVXLS0Sq4Pl1KLZXqMd9KGhZHbfhwdgw4l8Sxr1oMG9N5Z7VeHDp/Pj4z7VLnUj4+7k4HGQ1J4nd6ZeQN1U2vCw6kGcfidwyS58+I+S9PtaZJ/gJJ/P7aluf+6yAlbOdUDahWsqoZ3tq0XooDFCpTKbp5gUhcqAY9AyHGkisn8qvfRyfqmg/3Rac/g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=smartsharesystems.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DU6g4bhSdDcW86zAux5reUvQSYoCD21I80SNUYz7aH8=; b=Kap0GOLV38XN1XKBKWgLC8tb+GPCVwwNc2yK/wta/5Ztfzv7BFB9rzPEfOb6xXEBfILFEIWETf4Y87w8/KAr9rKTqAT8lI2a+XYS6NpypMB61JWVjuW6OB47lIENH4GIcHx3Cb+DcgrA2hzEEaR5GzZhHxLafachJ0zVKXL0YNQ= Received: from DM6PR05CA0061.namprd05.prod.outlook.com (2603:10b6:5:335::30) by SN7PR12MB7833.namprd12.prod.outlook.com (2603:10b6:806:344::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7113.18; Wed, 20 Dec 2023 07:11:15 +0000 Received: from DS2PEPF00003446.namprd04.prod.outlook.com (2603:10b6:5:335:cafe::10) by DM6PR05CA0061.outlook.office365.com (2603:10b6:5:335::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7113.17 via Frontend Transport; Wed, 20 Dec 2023 07:11:15 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by DS2PEPF00003446.mail.protection.outlook.com (10.167.17.73) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7113.14 via Frontend Transport; Wed, 20 Dec 2023 07:11:15 +0000 Received: from ubuntu2004.linuxvmimages.local (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Wed, 20 Dec 2023 01:11:05 -0600 From: Sivaprasad Tummala To: , , , , , , , , , CC: Subject: [PATCH] config/x86: config support for AMD EPYC processors Date: Wed, 20 Dec 2023 08:10:46 +0100 Message-ID: <20231220071046.2263-1-sivaprasad.tummala@amd.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS2PEPF00003446:EE_|SN7PR12MB7833:EE_ X-MS-Office365-Filtering-Correlation-Id: 4a39da82-8919-40f1-0f1b-08dc012adaea X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: WfMV3KdTZy5qR+QK+Z3n84KBtFWabg74nR+ll0D6YP7284eWbPbvGkeapL+hiqL9NPSdRJAy/kdOz+8ODVrSp+9oFQ44tdI/lk26D42d6vTI6tpShSzvXxg3S1ynRTWScKuuVH2jOBohqbRmpHCkjrL/M2/INzTeVYC2w2tm5bfp0/nZ/KvXJPNOhH7+k3zt20u/G+pbjRySXMHoblCD/WwVZA3PVKneIAa8MAgbxZNuAJ5qk2a84eZ6U7WVuHRq9t+HmhJVejdzc110FL3Pkf6Gc3n29hq+kZzF//o7OptRioGnThlEC/0ImheKBeNeE5t1r+seVKtvyEZais4IB5P96d1Li0G3Hu56FfIXtDzXMrc9vC/eiwSU1WZkrdFjsxz4UCpeg2IUU6EWmd3VZ2Vjb7vHxVEyDePiH2Lqj7WkSg/rcsSbdN0MwWRSiTnXOYOqZys2scFO5tiGPCaSRVA8H1GLo/2dVQrS9DCCH3zra49N74jDq9aq/oLhr+MHc3iSckLkYLXneDddpBOInnI3PHiToLfKVySjb/yeDwEFrM9/GOjid3DRX+FCQ8c29PnToe6dODb2VdFfsBaDzm0luO1P78Ies2ibqtMZe3kuwlnxXo83HQrKftKpB1eq8NawuImHt9FD22foGnru7+lffhXc3P3dLOQeDcv1VERXb+ZRSNFK0aaehGE/ey3zS6f39eXOcXOtqBjmBZd6vjwvAaPWpyeGZJBBFmP2aK+JpmsnpQAX2Xu8pkf4D6UpoBs/GqTLkiVzUCVkdT23smQfIwBJJbeP5+tnrQkdCYSFytJ3oTyhvSj6HtPhJqwPlnbE3CG6qe3TwhN7C984QQ== X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230031)(4636009)(376002)(346002)(136003)(396003)(39860400002)(230922051799003)(64100799003)(451199024)(1800799012)(82310400011)(186009)(46966006)(36840700001)(40470700004)(36860700001)(2906002)(47076005)(41300700001)(86362001)(81166007)(36756003)(82740400003)(356005)(6666004)(316002)(478600001)(110136005)(8936002)(8676002)(6636002)(70586007)(70206006)(966005)(336012)(426003)(16526019)(1076003)(7416002)(5660300002)(26005)(4326008)(83380400001)(2616005)(921008)(44832011)(40480700001)(40460700003)(83996005)(2101003)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Dec 2023 07:11:15.2013 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4a39da82-8919-40f1-0f1b-08dc012adaea X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DS2PEPF00003446.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB7833 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 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@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 --- 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..f2df4c2003 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) -- 2.25.1