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 0B5D24373A; Thu, 21 Dec 2023 06:12:22 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8F35B402F1; Thu, 21 Dec 2023 06:12:21 +0100 (CET) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2083.outbound.protection.outlook.com [40.107.94.83]) by mails.dpdk.org (Postfix) with ESMTP id C2660402EA for ; Thu, 21 Dec 2023 06:12:19 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=G4iVmSovIJVx/81BuJxk5B4YaSTxXIqc6ab5vrankBgV0RWWdeiK4bCvyHP9A032giDck0PMZQGD+3bdPPMi8da3GKo9Q/b5OgIjh1KkybwqPwRnzfs0pYffE+HH9AT3JZlY011hSKnmqKp+r8+LP+O1xxLppR/TU7cCuzJR8vHkfNCDNHhkRom+5+/kOYDLQZYpZqv1tYlSx+KyZrqHAcfV++55V+pOItc+2R2FI5JCiHJZC0tw0TZprM1VbT9lx3NENbJp8GWQ6PIYTy1IfkTJe9Olcp0BLtPZh5NO8WKGuP4I/rcEx0Ys5AmTETl3mlKYy9HYAx2VSMzb1wnlbA== 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=232d4R4cxBnDMsYCbMm18KkqNy0Gm3CDrf1FmYOGD0U=; b=S7vz3MSwndtTg0jLi+vPeZX1QCPf6UoJMFoCM9x/Ua8fMbRDKFjD8+l4OLFZk11fL/LhW6sSGhragRp2rPptnN8e0quo5o5SSBYgY6v445mVkCKgETtV6vyTOmchL1f4Df8GcR3jpsMtFpLJJvpuSxrxVhONv5U/llL36LcOjfK92IULvQUjac8proxGnzkSJudodU+nFgAa1TwDSJ2JHRVcfFtTJ+sYcpBbVvfN01j7jlB+sj3aS0mt7oPRTRGDW32QNNwcstCR564M4koBd1S7PMCCaaL0ZDjwnOAhtp3js0x3cCJamDuRddDjKIsP+d43sDcRzQ/LOZShLG8Flw== 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=232d4R4cxBnDMsYCbMm18KkqNy0Gm3CDrf1FmYOGD0U=; b=Qm+1v0FDDUF2TAm41huAA2hSF+haAP/EldT/hxH/tjVmiJtv2MJRzEQDRQ0sF4irZqAx/2ofLheTuQ1LfYEwxo2eZVSsY9buPDx+HlGV0xFHypipyudtD8GO4emCZxnTMMl3Dyb8/oyDSVnK/2PZWvPfji0kqdmq1Vko+H7s+ME= Received: from BLAPR05CA0012.namprd05.prod.outlook.com (2603:10b6:208:36e::21) by DM6PR12MB4515.namprd12.prod.outlook.com (2603:10b6:5:2a1::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7113.20; Thu, 21 Dec 2023 05:12:15 +0000 Received: from BL6PEPF0001AB78.namprd02.prod.outlook.com (2603:10b6:208:36e:cafe::9d) by BLAPR05CA0012.outlook.office365.com (2603:10b6:208:36e::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7113.18 via Frontend Transport; Thu, 21 Dec 2023 05:12: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 BL6PEPF0001AB78.mail.protection.outlook.com (10.167.242.171) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7113.14 via Frontend Transport; Thu, 21 Dec 2023 05:12:14 +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 23:12:10 -0600 From: Sivaprasad Tummala To: , , , , , , , , , CC: Subject: [PATCH v2] config/x86: config support for AMD EPYC processors Date: Thu, 21 Dec 2023 06:11:52 +0100 Message-ID: <20231221051152.2450-1-sivaprasad.tummala@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231220071046.2263-1-sivaprasad.tummala@amd.com> References: <20231220071046.2263-1-sivaprasad.tummala@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit 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: BL6PEPF0001AB78:EE_|DM6PR12MB4515:EE_ X-MS-Office365-Filtering-Correlation-Id: 5b3bd9c9-ee7f-4401-c8e3-08dc01e36555 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: phheLns8MwP/jBTcM13M5uy35rsU2aqjPn6m8REyL5IYdfQcUaNfv+q89Cn79Sak2nI3HeF5FMwyB84MvjO17Nj7ckDAbQ/Vj867Fdw1aZRmmREbfGaePkKqTbzoJP3NHyUUG2sot/TzodTau8yfSLlE0RsP56yU0foQDnhkvjP7fIABBv/7vjpzOvSUsG0Mw/eV/QqpjpTUIOwVx4smEN6rHLZXDgxjGiHUgsjjk/7b9UCpTdXbD4WZRzogKm5BO9Ha4AkHnQaivhOrHdRXR1gfhJDScmtSc1d0/n0+MYNCeJ7qj98IGDOAQ98mGYKwGKev1eB/RGNfDeZF0JgED3R2Be3EibD0PB89Xv+VF+7/80NW1WMu+PJ4Cbcgdtf360BodMJ6oTFq6pFXeleilwL/x/u56YMGdkCmXpyHdQBD84AWvOvWCrgAhjhAglGlcSTLaLwWQIpvvwgl2eOrJOPuCdKcx1VeHFo+VBET3F3hMuayU8omn91nDDhZOBPucAnjJf+ijOG0xMtkkmThMZcGIxfM0XqphkQH1kvQsIosJ2rJJRtGmjm0t+k8nzquUmhcQpA2zsDrN/43dxKTScdSwxPOQ9PlPO8T0D/pI5BlNnb46uwG1rUN75GPMz/W0p43YlbWYKoa6S97yVQ/V0vE+urln2caGmr6dvcHIUf/BdaTEoZmQLp7VnxPdsXJQLRRw8tINnI04eBlveUFoVPKEWOJqek77hzUUMZsVdbedBSMCulShCjz9zr42KLFRWpknGRStoAPemgtOndD4TldzplcPQJP1l0cwLIpHUBfmFYakXYsgUUF3rNF2QgNBNSOaz0oCzZ+rIB1ZxEYkA== 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)(396003)(136003)(39860400002)(346002)(376002)(230922051799003)(64100799003)(82310400011)(186009)(451199024)(1800799012)(46966006)(40470700004)(36840700001)(40460700003)(16526019)(66574015)(2616005)(1076003)(26005)(336012)(426003)(6666004)(36860700001)(47076005)(83380400001)(5660300002)(7416002)(44832011)(4326008)(8676002)(8936002)(41300700001)(2906002)(966005)(478600001)(316002)(6636002)(70586007)(70206006)(110136005)(82740400003)(36756003)(86362001)(356005)(81166007)(921008)(40480700001)(83996005)(2101003)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Dec 2023 05:12:14.8623 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5b3bd9c9-ee7f-4401-c8e3-08dc01e36555 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: BL6PEPF0001AB78.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4515 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 Acked-by: Morten Brørup --- 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) -- 2.25.1