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 F093643923; Mon, 22 Jan 2024 07:32:21 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9684940A80; Mon, 22 Jan 2024 07:32:21 +0100 (CET) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2082.outbound.protection.outlook.com [40.107.21.82]) by mails.dpdk.org (Postfix) with ESMTP id 7F2D240696 for ; Mon, 22 Jan 2024 07:32:16 +0100 (CET) ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=ArD4qCa6S0+lQMAGPkaaLtV64FSiYILMxaug/n8ihpCyAtQCJuWxa3cR3MvD7a4bJiuaulRHrn4RQdAYY0D9ukOTjv3tWhhMRAEdH/7D/OMUKeeBvPI294xTG7H+welq7xWXRAJAMpWO374j8BovI4G+2pGL80HZiMH7pTzHJL0yiMaYYZApQjPW4MFyT0+wH8vldiK40F3P0rnpzCfTqomDyui5J2hbN/0TeYOvkl8r8U8VgHm0czxelclCdh6V3BV3TA+KWytiZWla9myWsYPg3nZzRCLbrjvHyS+pos5u/GLwn4NnYVayLAbpxpYGB0dD9O1FawT1FMjo8LNmfw== ARC-Message-Signature: i=2; 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=QWfFIwi8alh/5QHNM2oaIKyxvyzrH56P89yF6WOAXQc=; b=ewE7ZDJLPOZz8cRItBSxNxTMdEeeMQhc42Trrx4tQlbIVyIq/5qT3jIqay93TVJziaDhzyIjTcSO/tZwuBWs25BxuCdxTLUCu/xrRsoPNSA7/GirJQUqXa+dQi6dKGCBqY6prZ5n47IoPgq6DYs0up2XQZlBIYLfwxG7iBPYaxeeSWpWlQ99xAhLz/MnIqbPUUVpgPvjx4R/TfVQXXOrxst6X8Kbv8DjIqVrWQydZweTp4JAhZiqeBMNkDTWjieAPRO2si2dv1iHLwMheQ+nmk/EEpE8L7VCsDiEj1IHQth4Xwmkzuo5KeCN66Q0yyE6k0WM2Tygr13rgcoinuNIwA== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=dpdk.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QWfFIwi8alh/5QHNM2oaIKyxvyzrH56P89yF6WOAXQc=; b=MXQBHyXhc7pl+NYbmnixQoZrx3naqTchUzC+V5N3yuJySAbJUFitVXMMSZwhTxqwDAv/XmuO4IrOX+FPw/uYGxSvqiUC8+YDh+L6brkmViZlxOExw75eCCNSyokM8hpuVigv3TmSxF7WqerV7A68VOpwobEF4gypwLYHePYvf3o= Received: from AS9PR04CA0049.eurprd04.prod.outlook.com (2603:10a6:20b:46a::34) by PAWPR08MB10308.eurprd08.prod.outlook.com (2603:10a6:102:369::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7202.32; Mon, 22 Jan 2024 06:32:13 +0000 Received: from AMS0EPF00000194.eurprd05.prod.outlook.com (2603:10a6:20b:46a:cafe::2b) by AS9PR04CA0049.outlook.office365.com (2603:10a6:20b:46a::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7202.32 via Frontend Transport; Mon, 22 Jan 2024 06:32:13 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AMS0EPF00000194.mail.protection.outlook.com (10.167.16.214) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7202.16 via Frontend Transport; Mon, 22 Jan 2024 06:32:12 +0000 Received: ("Tessian outbound 1076c872ecc6:v228"); Mon, 22 Jan 2024 06:32:12 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 3419094170c8cee4 X-CR-MTA-TID: 64aa7808 Received: from 858882b8599e.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 86BAF8BE-5757-4CE1-8DD1-F7BA7B9EA80A.1; Mon, 22 Jan 2024 06:30:44 +0000 Received: from EUR01-VE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 858882b8599e.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 22 Jan 2024 06:30:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lEvSJq9xYP/tNO1qmxsoxMvQpDEEiAjJM8xdXW3NmiNaNW4A+la1L/1y6jW7b0/ZPLd67/UDR383pVrKZAtYqML8loQ34g/GKEkJx1L+Cge3PhidHVXjPohNITnVioNI76nRgIvX0pgYQ9jhZ+FrkHDQ+mn9/Q/lrTTwLpGNpOZWeH3R1DNVccDt8SxcEryA5Q3vwSskj2iNPhkamyimCjr5dC08TKIOCPLx4PjgGc5TojcYfDuVGeViwM68y44iongCnxjxuzj3jbYuJwdGWMttyajMaLb1DO+O036tTVnN5wLxtY6RAmXXczYEjI34u72fpWsI0t4tq2pTjgz+Vg== 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=QWfFIwi8alh/5QHNM2oaIKyxvyzrH56P89yF6WOAXQc=; b=GYw1SJuMWXLQYoUktaZm7S+U0crNkP20E5F+vL0D9LCmtEayINzlPhMAFEW8brg6zVQlSNuV9I9LA+0G3oBuFPq/r1z1agp7v/3lO5QhtENPC074B51T4pb8BsEECHLbz3r2efnwcQ4h2RUY/vXRE83hU2LiYKD+wITcmtVOyE19HmHa/wg6XCsLY+opnLBv2gaStuUPyENreWnOYxMEuAsiLZhp0E0hDZw1NmhcIyUPQ71kHhATCaGTvqNQoiWDPzLfnw/prmGxJjPgYHySOoR3xWnKO/UcnHaGEh6WX7PQZkDNISTKtEjhUdNFThuVAi9IgcLlA/P7S9BQPbGGcw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QWfFIwi8alh/5QHNM2oaIKyxvyzrH56P89yF6WOAXQc=; b=MXQBHyXhc7pl+NYbmnixQoZrx3naqTchUzC+V5N3yuJySAbJUFitVXMMSZwhTxqwDAv/XmuO4IrOX+FPw/uYGxSvqiUC8+YDh+L6brkmViZlxOExw75eCCNSyokM8hpuVigv3TmSxF7WqerV7A68VOpwobEF4gypwLYHePYvf3o= Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from AS8PR08MB7080.eurprd08.prod.outlook.com (2603:10a6:20b:401::19) by PAWPR08MB9783.eurprd08.prod.outlook.com (2603:10a6:102:2ee::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7202.30; Mon, 22 Jan 2024 06:30:42 +0000 Received: from AS8PR08MB7080.eurprd08.prod.outlook.com ([fe80::319d:a297:886d:b817]) by AS8PR08MB7080.eurprd08.prod.outlook.com ([fe80::319d:a297:886d:b817%5]) with mapi id 15.20.7202.031; Mon, 22 Jan 2024 06:30:42 +0000 Message-ID: <55dd22a8-60ed-4c99-bc7b-734109387673@arm.com> Date: Mon, 22 Jan 2024 14:30:39 +0800 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/2] config/arm: add support for fallback march Content-Language: en-US To: pbhagavatula@marvell.com, jerinj@marvell.com, Bruce Richardson , juraj.linkes@pantheon.tech, Honnappa Nagarahalli Cc: dev@dpdk.org, nd@arm.com References: <20240121093653.2890-1-pbhagavatula@marvell.com> <20240121093653.2890-2-pbhagavatula@marvell.com> From: Ruifeng Wang In-Reply-To: <20240121093653.2890-2-pbhagavatula@marvell.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SI2PR02CA0047.apcprd02.prod.outlook.com (2603:1096:4:196::14) To AS8PR08MB7080.eurprd08.prod.outlook.com (2603:10a6:20b:401::19) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: AS8PR08MB7080:EE_|PAWPR08MB9783:EE_|AMS0EPF00000194:EE_|PAWPR08MB10308:EE_ X-MS-Office365-Filtering-Correlation-Id: 930c7936-bcf2-46c4-6157-08dc1b13de4b X-LD-Processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: SHVg3LQsqfTbCrCKHWdqmSj0CicLUBL1v8VRJzU0CPEdvuL7HTp9ipg1aCWqkffTzmc7F6w+OtvEN5T5auCUCSDNvKaaFuFvlZS981Y2xb/x+VOwM/C2MZOFZc5oDxIxFnRu+286KzmV5kupt4k5ta1NrqJacSwbw941m+q5wwjZ9WXk/awOfCnGwuoZYtI0TF5o2x2YHCVCuziWhP3jQQzkhAoMDIUa9rFsv0GHqjwWkTBBFh1wjOfJ4zG7KqGHtqwLK/TE9QWgDLUmD/0HN5Z1slPy/sMU+e/3YXfH2zP8GAqeKnQ3kKdFGX+aTpAja4Q6Se+69cCW7F3x/fPys7I6xBErZ9+lGHvPc03tsJvk6Tb7R7Ruu+wAQKrjuC4fqpRGV6JK+zeCSD0v4Ua3aZybv9v+doBZh+sPasKCvhxeLgAkjeUX8glODn+kf4wU8EZpRKoqQ3wfIsNtKltwkplH+qSMokMxA2Lh7fjIKs0C8+A18Bape2y0iR70oTj+jB8h9DyqyG3N/i6kfQwa8KNr5QG2/vCp6axnkfD8snNVIerD3e/EdoSIOzRQvSwc9FW9AVzCe5lles5n4OAwwaDiRilMXhDNpOlbfsPONw7fsxL/zLI3MEfCy/VayoxpVyLh7MwhpxVc7nkg6+W9mHpPu4uvbWgzK1MkUENQzj60janhQceTCSpSKFgagcrV X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8PR08MB7080.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(136003)(39860400002)(346002)(376002)(366004)(396003)(230273577357003)(230173577357003)(230922051799003)(186009)(451199024)(64100799003)(1800799012)(26005)(6512007)(6666004)(6506007)(2616005)(53546011)(5660300002)(83380400001)(2906002)(66556008)(8936002)(6486002)(66476007)(8676002)(4326008)(31696002)(66946007)(478600001)(316002)(6636002)(110136005)(86362001)(36756003)(38100700002)(41300700001)(31686004)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR08MB9783 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AMS0EPF00000194.eurprd05.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 63cf75a3-74f3-4911-6cfe-08dc1b13a808 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: i33rzH5fTRIk6doTxYgdsA6mGXFkO5mmZPwONxe1W/5l+tJtNX4L/yvTv/U6VFcKylQy7ubvTzgNWo3OjUQ7o9tptWeoKD/n1Jtbw43nOYECx9Lv88zViuZxKnkqSrjEZrCKp4wcmuVLtvVEsHyUzIAsmNB28dh87J4ShkwMk5FZ48McVpDtvBayYJAx2TQQQL6Pq/pJrVj2DKnZOF97N9nWCQkDj662YWQJt/Tg/cNI5KkAn6bu/BX7nJ/HTXJ/onj6y1Ln/sB5UIgc8b7iAnacekOm36kwPEISsybYfjcJZXdxLCRtnDLdh5rUO6SoJhib8nQZO+ALzOx3LfOQz/rQKHn5GgV2KVtyOINhm3DsYnW9L6Ik8zNT4HU/3dRopGbIdMCv0PSYW5BlElp7sMMIGF8Twz/dXW9ckm7XDw5xnrRzrSJ7HVYb/d7b+yWDbkx5ocf7NOOWNJ9hGE2KXvSULqOUguVPYh60YZvMX7DBxRhmFKq735gI/2kcGsGrPHAchFOlV8IIwiOJCJ8NS4bdyN+DVjxVob0A/jfc5HxPo7Uj99EZrIOfaoqM3de/AHxCta0bsIksUzP6J4JY7MAvxjlh5PV4VCCwG4iTx55CjAC51vLxhgFeHLWpHk3WrvBqDKjwqs6Do3FrxzsttVfsGFievZmJ7CLfReZvhRATKIqtt9wHBKkmyDSDKWmqULuhbYmDHIYqSoT9U1qQDmJqLUOrEr2ODe8e6HRRQL4ETqubGvXjh/oVgq6rgBkPaYxG0OrpekRPq3VkxbbCMemU1/nJvoq5N3C36p4gYtdk9t9nVVtEdlPY4FltHRH+ X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230031)(4636009)(136003)(39860400002)(346002)(376002)(396003)(230273577357003)(230173577357003)(230922051799003)(186009)(451199024)(64100799003)(1800799012)(82310400011)(36840700001)(46966006)(40470700004)(6506007)(26005)(6666004)(336012)(53546011)(356005)(2616005)(6512007)(36860700001)(5660300002)(83380400001)(47076005)(2906002)(41300700001)(4326008)(316002)(6486002)(70586007)(110136005)(70206006)(8936002)(8676002)(6636002)(478600001)(36756003)(81166007)(31696002)(86362001)(82740400003)(31686004)(40480700001)(40460700003)(43740500002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jan 2024 06:32:12.6953 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 930c7936-bcf2-46c4-6157-08dc1b13de4b X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AMS0EPF00000194.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR08MB10308 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 +Cc On 2024/1/21 5:36 PM, pbhagavatula@marvell.com wrote: > From: Pavan Nikhilesh > > Some ARM CPUs have specific march requirements and > are not compatible with the supported march list. > Add fallback march in case the mcpu and the march > advertised in the part_number_config are not supported > by the compiler. > > Example > mcpu = neoverse-n2 > march = armv9-a > fallback_march = armv8.5-a > > mcpu, march not supported > machine_args = ['-march=armv8.5-a'] > > mcpu, march, fallback_march not supported > least march supported = armv8-a > > machine_args = ['-march=armv8-a'] > > Signed-off-by: Pavan Nikhilesh > --- > config/arm/meson.build | 15 +++++++++++++-- > 1 file changed, 13 insertions(+), 2 deletions(-) > > diff --git a/config/arm/meson.build b/config/arm/meson.build > index 8c8cfccca0..2aaf78a81a 100644 > --- a/config/arm/meson.build > +++ b/config/arm/meson.build > @@ -94,6 +94,7 @@ part_number_config_arm = { > '0xd49': { > 'march': 'armv9-a', > 'march_features': ['sve2'], > + 'fallback_march': 'armv8.5-a', > 'mcpu': 'neoverse-n2', > 'flags': [ > ['RTE_MACHINE', '"neoverse-n2"'], > @@ -709,14 +710,14 @@ if update_flags > > # probe supported archs and their features > candidate_march = '' > + supported_marchs = ['armv9-a', 'armv8.6-a', 'armv8.5-a', 'armv8.4-a', > + 'armv8.3-a', 'armv8.2-a', 'armv8.1-a', 'armv8-a'] > if part_number_config.has_key('march') > if part_number_config.get('force_march', false) or support_mcpu > if cc.has_argument('-march=' + part_number_config['march']) > candidate_march = part_number_config['march'] > endif > else > - supported_marchs = ['armv8.6-a', 'armv8.5-a', 'armv8.4-a', 'armv8.3-a', > - 'armv8.2-a', 'armv8.1-a', 'armv8-a'] > check_compiler_support = false > foreach supported_march: supported_marchs > if supported_march == part_number_config['march'] > @@ -733,6 +734,16 @@ if update_flags > endif > > if candidate_march != part_number_config['march'] > + if part_number_config.has_key('fallback_march') and not support_mcpu > + fallback_march = part_number_config['fallback_march'] > + foreach supported_march: supported_marchs > + if (supported_march == fallback_march > + and cc.has_argument('-march=' + supported_march)) > + candidate_march = supported_march > + break > + endif > + endforeach > + endif > warning('Configuration march version is @0@, not supported.' > .format(part_number_config['march'])) > if candidate_march != '' > -- > 2.25.1 >