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 397D6A0547; Mon, 21 Jun 2021 07:56:52 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AA7E540040; Mon, 21 Jun 2021 07:56:51 +0200 (CEST) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2047.outbound.protection.outlook.com [40.107.22.47]) by mails.dpdk.org (Postfix) with ESMTP id 694864003F for ; Mon, 21 Jun 2021 07:56:50 +0200 (CEST) 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=GglL2mV50xwe2imqZ9/p4fqdRJ+Kunto4LXbQPGL1Qs=; b=LJEr+K5dsq3gYc69OJorlaet2sgnwecmrF3Rf5KVugjSHpn/3wb0+O0zRtluHle0tCnXvkr0TDku3tylPs6E8AF6Rbq9KIqH9t/qp8mO6r2a4IeWN5ZKoLXNsle54wdRdOGPN2ut3LKV2jSrXAxXDHMJ2XTYYYsKF/5Jv2k+e5Y= Received: from DB6PR0501CA0007.eurprd05.prod.outlook.com (2603:10a6:4:8f::17) by VI1PR08MB3070.eurprd08.prod.outlook.com (2603:10a6:803:3e::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.21; Mon, 21 Jun 2021 05:56:47 +0000 Received: from DB5EUR03FT016.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:8f:cafe::50) by DB6PR0501CA0007.outlook.office365.com (2603:10a6:4:8f::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.18 via Frontend Transport; Mon, 21 Jun 2021 05:56:47 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dpdk.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dpdk.org; 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; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT016.mail.protection.outlook.com (10.152.20.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.16 via Frontend Transport; Mon, 21 Jun 2021 05:56:47 +0000 Received: ("Tessian outbound 2df94acd389f:v96"); Mon, 21 Jun 2021 05:56:47 +0000 X-CR-MTA-TID: 64aa7808 Received: from ac6fe96735e0.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id E0E7C9A2-3846-4217-9669-0E78018DD5D6.1; Mon, 21 Jun 2021 05:56:41 +0000 Received: from EUR04-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id ac6fe96735e0.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 21 Jun 2021 05:56:41 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B8liPnSngt4PVadfPmk5CxkbCn4R6MU7TuOqNVlo8EdfiQ9zIWYD1ifoj6gJ1ag4Lp50lDaqAa6xkZqB3ZNPYxCb05VMy/0DXtIQXMe3WTYROzN4IytZzubhhmO9dPcrOed/APApAzBTtZCQOOe/fWcmVtnzEK6R+iYV5xWIred11AKiIiBFNgGLTEpwNbbT1RZ7uJDOU8HZSvvIZzsYrorGXi2qRgUu7pk51cZo5ANIg3gb4fHfBMKkUk+ZWwn2iOS8IuS3Hrfefzb3V1zB10jB4UjxTzqAe/VwB90KioPJmCj5ZqDdr/bKkWIiGfYaYJY8PZfWdhoK4nDwPKRXQA== 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-SenderADCheck; bh=GglL2mV50xwe2imqZ9/p4fqdRJ+Kunto4LXbQPGL1Qs=; b=lY5+GDUVC3wWiLIKZrIkL23mpq6WkEDgw0YaoFivhSaA1w7d4r73hIA6W1vI0ZI8UicMKA7NrTHpN13VUe1erUEsjWNvW8jtT839RDQqro85qbIWDvl3hVulR9fqcoEl78t3KBl19RH2DWoGUhifjwmRwQhbNZg91N3ZACUSaPNrKEptFHJ5Bi7DsM44GrRd2Oo3MOP/BtTEj9IcTWNtOraj0e6jUwShcf5ro+Ww484epFwCUJyXUGpsIjIhFrrhyDGNof+buYZ/FDNpfxv9n1ysOG/lKh4+KaOEEZhDNDrN0Xz+vzDVTK939SVl/Tt5ZCt8/ZrWuwxXy7FvuxIQRQ== 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=GglL2mV50xwe2imqZ9/p4fqdRJ+Kunto4LXbQPGL1Qs=; b=LJEr+K5dsq3gYc69OJorlaet2sgnwecmrF3Rf5KVugjSHpn/3wb0+O0zRtluHle0tCnXvkr0TDku3tylPs6E8AF6Rbq9KIqH9t/qp8mO6r2a4IeWN5ZKoLXNsle54wdRdOGPN2ut3LKV2jSrXAxXDHMJ2XTYYYsKF/5Jv2k+e5Y= Received: from AM5PR0802MB2465.eurprd08.prod.outlook.com (2603:10a6:203:9f::22) by AM5PR0801MB1668.eurprd08.prod.outlook.com (2603:10a6:203:3c::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.21; Mon, 21 Jun 2021 05:56:39 +0000 Received: from AM5PR0802MB2465.eurprd08.prod.outlook.com ([fe80::3d12:4220:b215:7c52]) by AM5PR0802MB2465.eurprd08.prod.outlook.com ([fe80::3d12:4220:b215:7c52%8]) with mapi id 15.20.4242.023; Mon, 21 Jun 2021 05:56:38 +0000 From: Ruifeng Wang To: Chengwen Feng , "thomas@monjalon.net" , "ferruh.yigit@intel.com" CC: "dev@dpdk.org" , "viktorin@rehivetech.com" , "jerinj@marvell.com" , "bruce.richardson@intel.com" , nd Thread-Topic: [PATCH] config/arm: add checking SVE cpuflag Thread-Index: AQHXTfKcisyiVXrYukS/+G5KPNVhuqseKDTg Date: Mon, 21 Jun 2021 05:56:38 +0000 Message-ID: References: <1621568034-29269-1-git-send-email-fengchengwen@huawei.com> In-Reply-To: <1621568034-29269-1-git-send-email-fengchengwen@huawei.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: 2A5341AD2E06154E8C9F01B4DE599184.0 x-checkrecipientchecked: true Authentication-Results-Original: huawei.com; dkim=none (message not signed) header.d=none;huawei.com; dmarc=none action=none header.from=arm.com; x-originating-ip: [203.126.0.111] x-ms-publictraffictype: Email X-MS-Office365-Filtering-Correlation-Id: 4ee2f718-500b-4054-be9e-08d934795aee x-ms-traffictypediagnostic: AM5PR0801MB1668:|VI1PR08MB3070: x-ld-processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:4502;OLM:4502; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: HzkNg4iMv1nLTyIvAKuq6sz5xc2aArqNCIDVg6X/kovXxNbxE1wiArk+txGOjS/kBUPmai3nNqPdpr3SINL+NRgXmO9pcCDg+N/FaXYG6ET1a6q0sVA3e40XPFkMJ5+UBrMPYe2MiLFMfjjDT1YGSwXpaJiRkOo3JQtpINaTF5T/eQN2ldaj7TqTlS6P3hYkfQSt6yFzcJbokPrMUwRpb2ewy3sPu9FWsM2MgLIF6N18pNh6b+++/1Vzj80wIbujnX4kQhTvQgrzPretjR8vyV7GPzYgeu6tCVCOZmD5iSRfoaCTbkTHCPWPkXWp7L77qtb7ldAzYsytVr+TSClBZ3ek25e1jPcGouX32G1y7RTGn1jB/3YcqNds2hwXWicG7qyJTHuSQgCamPn7vBTGm6LV+7HO2vIkCra1p3YjYKYudhA83Q+xNUA1Tp2+BcvdvXL9tu/ccX6J3gY14w7eug5nOjFj+hnGRNTt8+PFVjCfgEaUVxH4e6UpxvMf4/tfuiur/hLWsPj7Kdu5G6wmiHwy9C3MQqQzufxJm2VD4ZbTUulw8wtyxWVOLje1OP7dIZjSu97FEC5mR3J1/ypxPSZdQOFFBsOX6q5MapnqePGsoGePoA2e9SoyYTji0ta7Q3XhM4bOj7w+OoDTyiR115Y7R6oiR3tgcuFHel5lRnIKK+/Xd8tVw6BVSxQeuf7n48s9uPcWWVQ6LFpaYfgcSIP5ZA4BpHRrdlFTtlxug04= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM5PR0802MB2465.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39850400004)(396003)(366004)(136003)(376002)(346002)(33656002)(316002)(66556008)(66446008)(55016002)(64756008)(26005)(6506007)(186003)(83380400001)(86362001)(66476007)(110136005)(53546011)(8676002)(2906002)(54906003)(66946007)(5660300002)(76116006)(478600001)(966005)(71200400001)(8936002)(9686003)(4326008)(38100700002)(52536014)(7696005)(122000001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1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2nCrih6mu8yK3/bo8zM5ZIk7Li1GUPXXPIWNIjliyDRpxr2mx/Xn6L2?= =?us-ascii?Q?4X7TnRBMoxLTn7ixaTVbeORiTElcsphpI9szKVokMa8Nisc/HFvYb51VEdX9?= =?us-ascii?Q?JxD4URWtMiJ+hQSs+rq4TVEiYqWK5eXRQwYcRre+L1Qe4yqMY7D84iZQHP6z?= =?us-ascii?Q?nzRDXT+5+hoe9adajRTEvrJgg+j3splza0WGolhLXEQRklGSZ9SDqqDgyHlN?= =?us-ascii?Q?T7J7M0iOdiqwbgaNn7CDNtxgAeL1gIVNhTN+QKheHFETpqOjehIzXYQTjcDp?= =?us-ascii?Q?YWBapl3Zhjlut1nseb2egRIvwZ6Vqkf8hJ0LHS/cMAJTGgR3QGsfvW7x0f0t?= =?us-ascii?Q?dZKJpD164VGhvkGg9ZPReEVnJdckEYH9mq0xl49GqUQOqqOX041t1uog+KX/?= =?us-ascii?Q?PLRxFJ/ginYC4f4awf3MNwQbl3GNn6BrJrJlauWdY//EG3WgJoDBZIJRj2Kz?= =?us-ascii?Q?KE+LCHGpNrKxhLhtT/CfnLOn?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0801MB1668 Original-Authentication-Results: huawei.com; dkim=none (message not signed) header.d=none;huawei.com; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT016.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 9c65de2c-8c37-473e-168d-08d93479560b X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nlvTxP6G0tcuJrKs048E1pwrg2Ew82Zp2J/+uQGabFL3hGhaSfg4EjPbVq7tPqSiRjDrTVn/n289MvAgA2QyP8RWlsmD65ptT60VId8nHYiCpPe1haFKg3Sv6Dn20nwbO2X6qw3HiLoqFAOoiZ79onZTh0qJE6UmwK4dwabxUrItCUaca31U8G1s0rWjH3KHfXtI3t2MijtEZ7yvwByKsllRcpRN0N1LZ+YEasMHGvnaDlL4cYsW54HqgTru2MXpqmL/tHhLR8N0CHzYk3lB+VxN0vfSaEZEyvIY1tOC8PmPktGOnKQ+XAwe66uAzpMLUL8hDvoa7WSgyhYq2K814iF6pEm1YxCNYumWIdukhJw1On/muQAxcvDMFXg4z0irbFpse5e9eBKJMYWXZZGH61ccvKCNP08KwcSFY1apH45n+I/dBxAW31roA42KmIaf5kPcGW1FffdmqGsPboQwZEA5OrgjBJzMPKdbraCKUJKA2JxVSlHRIGViWsNdFrFYuprcMTsaGoLHSocFCVH9QGf4RhqOATiSSKczwtLXtLXOupQl17O1g5q5oQp3TgNvHjF8PzUQuyioZPX7xULgzNTsdC1Fux/HLXCzQPAG5O9hr84P0V48ioHOySQYscKwwPcNM3ymDVIBCCRQsktCc30gYnoMouXUevubRAz1GswLNJ2RtQAV+ecU5cu8L5H4fTPG+l2kXnGa6W26Ye1zL/MmcE/ZjAP414eqlTysbSybRbZQUThWqR/ViNQtdNyKuqb9McV/A9p7hT57vtax4A== 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:(4636009)(396003)(39850400004)(346002)(376002)(136003)(36840700001)(46966006)(70206006)(2906002)(70586007)(110136005)(52536014)(83380400001)(54906003)(336012)(5660300002)(86362001)(186003)(356005)(82740400003)(4326008)(53546011)(316002)(36860700001)(9686003)(8936002)(55016002)(47076005)(81166007)(966005)(8676002)(478600001)(33656002)(82310400003)(26005)(7696005)(6506007); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2021 05:56:47.0858 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4ee2f718-500b-4054-be9e-08d934795aee 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: DB5EUR03FT016.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB3070 Subject: Re: [dpdk-dev] [PATCH] config/arm: add checking SVE cpuflag 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 Sender: "dev" > -----Original Message----- > From: Chengwen Feng > Sent: Friday, May 21, 2021 11:34 AM > To: thomas@monjalon.net; ferruh.yigit@intel.com > Cc: dev@dpdk.org; viktorin@rehivetech.com; Ruifeng Wang > ; jerinj@marvell.com; > bruce.richardson@intel.com > Subject: [PATCH] config/arm: add checking SVE cpuflag >=20 > If compiled with SVE feature (e.g. "-march=3Darmv8.2-a+sve'), the binary = could > not run on non-SVE platform else it will encounter illegal instruction [1= ]. >=20 > This patch fixes it by add 'RTE_CPUFLAG_SVE' to compile_time_cpuflags, so > that rte_cpu_is_supported() will print meaningful log under above situati= on. >=20 > [1] http://mails.dpdk.org/archives/dev/2021-May/209124.html >=20 > Signed-off-by: Chengwen Feng > --- > config/arm/meson.build | 4 ++++ > 1 file changed, 4 insertions(+) >=20 > diff --git a/config/arm/meson.build b/config/arm/meson.build index > e83a56e..9b147c0 100644 > --- a/config/arm/meson.build > +++ b/config/arm/meson.build > @@ -480,6 +480,10 @@ if (cc.get_define('__ARM_NEON', args: > machine_args) !=3D '' or > compile_time_cpuflags +=3D ['RTE_CPUFLAG_NEON'] endif >=20 > +if cc.get_define('__ARM_FEATURE_SVE', args: machine_args) !=3D '' > + compile_time_cpuflags +=3D ['RTE_CPUFLAG_SVE'] endif > + > if cc.get_define('__ARM_FEATURE_CRC32', args: machine_args) !=3D '' > compile_time_cpuflags +=3D ['RTE_CPUFLAG_CRC32'] endif > -- > 2.8.1 Thanks for the patch. Acked-by: Ruifeng Wang