From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id C4A37A04AF; Wed, 19 Aug 2020 10:11:54 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id ADAB114581; Wed, 19 Aug 2020 10:11:53 +0200 (CEST) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20071.outbound.protection.outlook.com [40.107.2.71]) by dpdk.org (Postfix) with ESMTP id C5C2AAAD5 for ; Wed, 19 Aug 2020 10:11:52 +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=uy9xjx3PHSed+UasWtBh4r48LD7qXselxlq7FbLMVpM=; b=T3D137nOylN8WYuDWg6F9KRss9GeuenahR6WQqE0dGuDNgg61CXI6nsPbsA9J73+CVV20v8XjGqP3fE3iffoccD+M6QZRrM+4S+FCKM+KMOud9ILSVEBGkOFd8eBNgKgeJIHDdUco/M6O+HdKGQg3FNxCag3rGkXXWo8E7YbNYc= Received: from AM5PR0701CA0020.eurprd07.prod.outlook.com (2603:10a6:203:51::30) by AM6PR08MB5159.eurprd08.prod.outlook.com (2603:10a6:20b:e2::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3283.15; Wed, 19 Aug 2020 08:11:50 +0000 Received: from VE1EUR03FT032.eop-EUR03.prod.protection.outlook.com (2603:10a6:203:51:cafe::35) by AM5PR0701CA0020.outlook.office365.com (2603:10a6:203:51::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3305.10 via Frontend Transport; Wed, 19 Aug 2020 08:11:50 +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=bestguesspass 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 VE1EUR03FT032.mail.protection.outlook.com (10.152.18.121) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3305.24 via Frontend Transport; Wed, 19 Aug 2020 08:11:50 +0000 Received: ("Tessian outbound e8cdb8c6f386:v64"); Wed, 19 Aug 2020 08:11:49 +0000 X-CR-MTA-TID: 64aa7808 Received: from 7679f1515b08.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 8FEF21D1-DE50-4180-8332-74517B375F24.1; Wed, 19 Aug 2020 08:11:44 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 7679f1515b08.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 19 Aug 2020 08:11:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Pex37gSralu7JLrafCNIvTTwUeQ2PDoAsovCsB0F7JdwNLqPgQ4XF9H3c8hlR9ODj2IT+sJ8a6OC3mQsd/YIGPzKhpyuLJzB6AakBBpW/hd1nqhAxXOdlTm91FHBNLOBBrFW1hFYR7uenyE61ht2h5wWu0F726/8l2CJa1CjkIyyrzi8gb0j7avIj4UL/LWKMWteXlNGdNp8hx3H0qFG8+M2uD4bfYZfTEi1BtDlGJTe5lgbtSUmzWh9+Gh90It6RTb6DCWWnnBam0pY3ksYtyRWzNrqGdHJEioaLY/bEqjMWhAG7y1KTLnHv+GQbkpJT4EnjtuvtlSiTtHHNT81xw== 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=uy9xjx3PHSed+UasWtBh4r48LD7qXselxlq7FbLMVpM=; b=U/Rk8NvyTh+FGl86TLt46Xo255wN/wfyw19lFEMo/llqsMmJk3cmQmZ4XsT4EpEIbFYtWbD620/cyqTXEfLv24QzmbBsrNa134ezepQ6jg0A3y2Vni8EWeMRxR6VYMf+pjFvy0CtDp/Kr/+IgVNTfwftnaAzYjgXE8TQmVa6NC+Zu9yPtl9og1CMyhRQ7bSh+2bCWVFcHk0vtylHouNXr32AzGnZVMA0Yr3uZQknk1Flqc7ZBk/l6F50SmYvcdfC4MRjwdnpGyi7wEDZ4qNmCqYmXaDwjOVdZc91HTfWUGVYlJ8tW0XhcIZHVtfHI2gOIUfnSur+sFHcReOwkhok2g== 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=uy9xjx3PHSed+UasWtBh4r48LD7qXselxlq7FbLMVpM=; b=T3D137nOylN8WYuDWg6F9KRss9GeuenahR6WQqE0dGuDNgg61CXI6nsPbsA9J73+CVV20v8XjGqP3fE3iffoccD+M6QZRrM+4S+FCKM+KMOud9ILSVEBGkOFd8eBNgKgeJIHDdUco/M6O+HdKGQg3FNxCag3rGkXXWo8E7YbNYc= Received: from HE1PR0801MB2025.eurprd08.prod.outlook.com (2603:10a6:3:50::14) by HE1PR0802MB2298.eurprd08.prod.outlook.com (2603:10a6:3:c4::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3283.20; Wed, 19 Aug 2020 08:11:40 +0000 Received: from HE1PR0801MB2025.eurprd08.prod.outlook.com ([fe80::4029:c2b7:7e14:fb28]) by HE1PR0801MB2025.eurprd08.prod.outlook.com ([fe80::4029:c2b7:7e14:fb28%4]) with mapi id 15.20.3283.028; Wed, 19 Aug 2020 08:11:40 +0000 From: Ruifeng Wang To: "Wei Hu (Xavier)" , "dev@dpdk.org" CC: nd , Honnappa Nagarahalli , "jerinjacobk@gmail.com" , "xavier.huwei@huawei.com" , nd Thread-Topic: [PATCH v5 2/2] test/cpuflag: add new flags for ARM64 platform Thread-Index: AQHWdfcSWQj2Bp7xP06Azuf1uwPvPak/Esxw Date: Wed, 19 Aug 2020 08:11:40 +0000 Message-ID: References: <20200817124703.58157-1-huwei013@chinasoftinc.com> <20200819070408.25949-1-huwei013@chinasoftinc.com> <20200819070408.25949-3-huwei013@chinasoftinc.com> In-Reply-To: <20200819070408.25949-3-huwei013@chinasoftinc.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: 6C411490CF536B47835970B1B3B0FB32.0 x-checkrecipientchecked: true Authentication-Results-Original: chinasoftinc.com; dkim=none (message not signed) header.d=none;chinasoftinc.com; dmarc=none action=none header.from=arm.com; x-originating-ip: [203.126.0.111] x-ms-publictraffictype: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 92ba4dbe-b47c-43e6-fd81-08d844178666 x-ms-traffictypediagnostic: HE1PR0802MB2298:|AM6PR08MB5159: x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:8273;OLM:8273; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: +GMsBnYvwzBp9L1GV0ul6gej+f07K8iTBoTNkdTbpxypjfRdkfSOVYqeXU9Qp+BVSnSMfQBSw3I11Uqp1m09FVfpf60WFYKeWyUH649KdWwFMzUqC91zXvQbia9rSCrFLUdE3UBbKUDM2BgzMssgj0i90fzKXXE7RrcbqyXzI6oxxY82hxZ2y1DZRlzidEmsUH8ekogV375NciSjaPKk0nhu1OaQQSjbWcCKEvKl7vTKPiMrfwy2eBxzsO8iI2zmzB9NQDsmE0VKlB0tbniJWZIYIIZOU2YPhju9yzpyvUY4I8SUIG8Oq4dLAOfCN4Ez X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR0801MB2025.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(346002)(396003)(136003)(376002)(366004)(71200400001)(6506007)(8676002)(66946007)(7696005)(186003)(66476007)(53546011)(76116006)(26005)(66556008)(52536014)(66446008)(64756008)(2906002)(5660300002)(8936002)(86362001)(316002)(9686003)(55016002)(4326008)(478600001)(83380400001)(54906003)(110136005)(33656002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: pxAzmlYVHoEuypvVWM7fOT4jXAufHXwVBafV7eSecj1ewDxMY+6ROASRXvfWoSd9YybPp8gvpGDxlbEtPshTRn/Q1EQ5BAjSly6xORKFEEPLUvctl+b/SfQbcRHgCo/qO+ZmodOwimzRRBkY+RpzndAovc2XNJO926mSy/U74cCrvXxkVINn+AD+KIuAIl1wyJSY/tal8W2wND54NFRHntTjDQxCE85oECMWyEloFOzWfOVvZBXBbnm7xvzqqxMvScc1tEBtjJ0X2Hh/vbqyLLXvCZub3QXMgS338Fx7U5TZCL01TfaoG83UsQBdvjv3wlqfNgYyh7G6R7icVSJKaixy7dLfo0uOZpRdRZbTbLVE9SQfny7/E8yppV/oiFRrr2zwIN+drYx7Ph34G86QofuGztUkUNvK8KwzuWULLCBM4x0ZgzfonJRj8UL3dC6sbXFSKrBYfnd2ag/lVXNUCSgxPfl707HxL4aI/c09+fLHHfq5JiqBdpRdjKNJDsDJDg4u4L8FFCZdnKpgCmA1561OFlPRHhBLP3tftmC5cxz0MreXUJlI2B1LeaNBMplc1TwvNzt/IiK4bziF/ksTihxPr1aw/RfIVDgF7DOoGs3lMq2UtFaA0L1R0UWPltLn7CG8Y98oUBQ/68Nuq5tsjw== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0802MB2298 Original-Authentication-Results: chinasoftinc.com; dkim=none (message not signed) header.d=none;chinasoftinc.com; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT032.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 69e85277-e7b6-457c-c583-08d8441780d1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6oUMDLgWMbC20wP0z8ZwKeXfPelF5Ut4QLOWrbeQuayqCx8d4eUdf/8U2NsIOo9QKT5czUpehvbyyFHj0ZP0kS/6xM3WrXK/KWYgKZnEGx2VXvZFizzocEnxajERlDtBjd4zdt99JWkSffZAhIKNdvKBMGDt8tFSjjSbgRNns0EdLf5ZbW3OuawnFlIMZJYJC0b/EyGEPX97Yywu7E6ROKdlszw8+54sgvR3lqcaziehBAx+zzpY5YltdTF5IEGWPh8QXZiGzKUc6rglPiYfVen1eQUcO5JtiKqUg0TFFtvsOnunJ1q5/g//A3r+n7CtNedhT3envx7h1W7fkrSY6tuWdKaSkx6OCZXTI+Q43nTJwLvKpTgyn+uUppJzuYfANjS45CXOo37j/4TBl7GSBg== 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)(136003)(346002)(376002)(39860400002)(396003)(46966005)(83380400001)(55016002)(70586007)(2906002)(356005)(52536014)(82310400002)(47076004)(9686003)(86362001)(33656002)(4326008)(70206006)(82740400003)(5660300002)(81166007)(7696005)(478600001)(316002)(8676002)(8936002)(110136005)(26005)(336012)(6506007)(54906003)(36906005)(53546011)(186003); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Aug 2020 08:11:50.0949 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 92ba4dbe-b47c-43e6-fd81-08d844178666 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: VE1EUR03FT032.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB5159 Subject: Re: [dpdk-dev] [PATCH v5 2/2] test/cpuflag: add new flags for ARM64 platform X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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: Wei Hu (Xavier) > Sent: Wednesday, August 19, 2020 3:04 PM > To: dev@dpdk.org > Cc: nd ; Honnappa Nagarahalli > ; Ruifeng Wang > ; jerinjacobk@gmail.com; > xavier.huwei@huawei.com > Subject: [PATCH v5 2/2] test/cpuflag: add new flags for ARM64 platform >=20 > From: "Wei Hu (Xavier)" >=20 > This patch adds new flags into the test_cpuflags() functions for ARM64 > platform, such as RTE_CPUFLAG_SVE, etc. >=20 > Signed-off-by: Wei Hu (Xavier) > Reviewed-by: Ruifeng Wang > --- > v4 -> v5: Use double '\t' for better alignment. > v4: Initial patch. > --- > app/test/test_cpuflags.c | 39 > +++++++++++++++++++++++++++++++++++++++ > 1 file changed, 39 insertions(+) >=20 > diff --git a/app/test/test_cpuflags.c b/app/test/test_cpuflags.c index > 06718631f..7c71ffef1 100644 > --- a/app/test/test_cpuflags.c > +++ b/app/test/test_cpuflags.c > @@ -118,6 +118,45 @@ test_cpuflags(void) >=20 > printf("Check for ATOMICS:\t"); > CHECK_FOR_FLAG(RTE_CPUFLAG_ATOMICS); > + > + printf("Check for SVE:\t\t"); > + CHECK_FOR_FLAG(RTE_CPUFLAG_SVE); > + > + printf("Check for SVE2:\t\t"); > + CHECK_FOR_FLAG(RTE_CPUFLAG_SVE2); > + Sorry if I didn't make it clear. In v4, I meant we need double '\t' when checking for 'SVE' and 'SVE2' to al= ign the check results with that of other flags. You can check this by running cpuflags_autotest. Thanks. /Ruifeng > + printf("Check for SVEAES:\t\t"); > + CHECK_FOR_FLAG(RTE_CPUFLAG_SVEAES); > + > + printf("Check for SVEPMULL:\t\t"); > + CHECK_FOR_FLAG(RTE_CPUFLAG_SVEPMULL); > + > + printf("Check for SVEBITPERM:\t\t"); > + CHECK_FOR_FLAG(RTE_CPUFLAG_SVEBITPERM); > + > + printf("Check for SVESHA3:\t\t"); > + CHECK_FOR_FLAG(RTE_CPUFLAG_SVESHA3); > + > + printf("Check for SVESM4:\t\t"); > + CHECK_FOR_FLAG(RTE_CPUFLAG_SVESM4); > + > + printf("Check for FLAGM2:\t\t"); > + CHECK_FOR_FLAG(RTE_CPUFLAG_FLAGM2); > + > + printf("Check for FRINT:\t\t"); > + CHECK_FOR_FLAG(RTE_CPUFLAG_FRINT); > + > + printf("Check for SVEI8MM:\t\t"); > + CHECK_FOR_FLAG(RTE_CPUFLAG_SVEI8MM); > + > + printf("Check for SVEF32MM:\t\t"); > + CHECK_FOR_FLAG(RTE_CPUFLAG_SVEF32MM); > + > + printf("Check for SVEF64MM:\t\t"); > + CHECK_FOR_FLAG(RTE_CPUFLAG_SVEF64MM); > + > + printf("Check for SVEBF16:\t\t"); > + CHECK_FOR_FLAG(RTE_CPUFLAG_SVEBF16); > #endif >=20 > #if defined(RTE_ARCH_X86_64) || defined(RTE_ARCH_I686) > -- > 2.27.0