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 1EAD9A04AF; Wed, 19 Aug 2020 04:27:44 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0088858C4; Wed, 19 Aug 2020 04:27:43 +0200 (CEST) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20058.outbound.protection.outlook.com [40.107.2.58]) by dpdk.org (Postfix) with ESMTP id CFA921DB9 for ; Wed, 19 Aug 2020 04:27:42 +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=lVFCSbud7/r+aBXx8NgzEK0duNtUeBXCIJQiJpajA8Y=; b=7SpCnciVOj8uGSWqiAnJE93dWHvadsg4gjEUDM+CRuJGg01quQz6TMOMmMUS3GMaP2CISyRBrPfXnV+FCdAZSLtAvTTerPr1h22le7anfuklSc7QUE+6lyQ4JYOcb255CYwTEFlX/Eoiaglbnp0MnihS/1WksQR9Ht1MvgAt4Ck= Received: from AM7PR02CA0016.eurprd02.prod.outlook.com (2603:10a6:20b:100::26) by AM0PR08MB3090.eurprd08.prod.outlook.com (2603:10a6:208:56::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3305.24; Wed, 19 Aug 2020 02:27:41 +0000 Received: from VE1EUR03FT043.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:100:cafe::84) by AM7PR02CA0016.outlook.office365.com (2603:10a6:20b:100::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3283.16 via Frontend Transport; Wed, 19 Aug 2020 02:27:41 +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 VE1EUR03FT043.mail.protection.outlook.com (10.152.19.122) 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 02:27:40 +0000 Received: ("Tessian outbound 7161e0c2a082:v64"); Wed, 19 Aug 2020 02:27:40 +0000 X-CR-MTA-TID: 64aa7808 Received: from bb349e7b11fb.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id E1BE8BA3-FB5A-4DCF-B265-43F27CDB00DF.1; Wed, 19 Aug 2020 02:27:35 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id bb349e7b11fb.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 19 Aug 2020 02:27:35 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=F6tu1XVlSNdVhcaV0ycPaRoB2KKluIWcl8t+nbHj19fSthATLHSgJ3z6dkRUZCo+VxnTaVFQMWa+foMp9S6ehJEwyJZ4N/HV3gjdBpVYdxGPIiDhODnGVmd3422PD0vyWDYF8rl3vOxMEbDlzXkBBQkrfM/GbdyVGwjpe2KAEX0BcmVRuUr+rV5CGObSJuPC9XxxGQcJ87wBxAkk6X8n83V4wVhf3yF78si/ceINKn3Uu9TAGt28VxOUFNImd79DVabHKiTEsIywC0SVKndkzYpPmG4s9XC3l1J93ftBEyQSYPFj3a06kk2qMa7FAvyqEDyVI8Uh3n1BlFZHtEJ4Ow== 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=lVFCSbud7/r+aBXx8NgzEK0duNtUeBXCIJQiJpajA8Y=; b=EJmIWl4yD7YhpybYQY07Z4BDtzVp62qoW1UPRP2k/6f6nHM+Yuohvilp6G64AnvdXOyYMMFKXmAmwN5+c7Z2goSUUbS65hxqQ3wMwUoUC4+XDCu8bp9l241MF8ESPu2sXPMwn0uYxn+AI/Bc41XihyRG5GT/B76W5dyNYBtJmT1kFFSoVRQWsiPCkI6O0bbkd9HNAVHo5cK+ZPDB1sD5tFACFzn/BxJYeL5/trodAtFSueaMguyPkjv0+QDVuEdwsSFhvQH6mI/TLuF7fp0ADcNyvIUeTFI/Q8PJGrS0t7c1WKbwMH6+RuhfHLy9UKlRN11/Yc+HsAiRUR7/NWc2TA== 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=lVFCSbud7/r+aBXx8NgzEK0duNtUeBXCIJQiJpajA8Y=; b=7SpCnciVOj8uGSWqiAnJE93dWHvadsg4gjEUDM+CRuJGg01quQz6TMOMmMUS3GMaP2CISyRBrPfXnV+FCdAZSLtAvTTerPr1h22le7anfuklSc7QUE+6lyQ4JYOcb255CYwTEFlX/Eoiaglbnp0MnihS/1WksQR9Ht1MvgAt4Ck= Received: from HE1PR0801MB2025.eurprd08.prod.outlook.com (2603:10a6:3:50::14) by HE1PR08MB2635.eurprd08.prod.outlook.com (2603:10a6:7:2b::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3283.23; Wed, 19 Aug 2020 02:27:32 +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 02:27:31 +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 v4 1/2] eal/arm64: update CPU flags Thread-Index: AQHWdTbp5if4Gq52iESTryk8ohjPW6k+thMg Date: Wed, 19 Aug 2020 02:27:31 +0000 Message-ID: References: <20200817124703.58157-1-huwei013@chinasoftinc.com> <20200818080904.5173-1-huwei013@chinasoftinc.com> <20200818080904.5173-2-huwei013@chinasoftinc.com> In-Reply-To: <20200818080904.5173-2-huwei013@chinasoftinc.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: AABB868FEEB98249A6781B460D57066F.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: 93412033-d9b5-44d1-4a02-08d843e77272 x-ms-traffictypediagnostic: HE1PR08MB2635:|AM0PR08MB3090: x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:843;OLM:843; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: POL6DRPXr9jS9YaPYQ6DkfHKxgnTYjuc/3lTbuSxcF/QRNahcxqitWAHoawzhgeVPkW/GXQ9uOVNgwntqF83quehVepoXxQzm8VrnYlEybRCuUg+NhiqkIKuUa16lSbiukySdnDzloye++XzdRYxXIqJn5DMftwvwEE+NNU46bWR6NEO5HIA9WRKNEnL+V0497b0gmWkli6xoTxf2vQ/iNcKYGWt52X6+RkwMll3HBx4EuET37A+vEuMR1DKYe3I/kcdRdPXdYREphn0ysw8iZvUwNWs4g0hVBoH9NylWNybdEHT+hg10qawiOXu7wuSnrK0zk/opprP8M1NcclIXg== 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)(39850400004)(396003)(366004)(376002)(346002)(136003)(33656002)(54906003)(4326008)(7696005)(6506007)(478600001)(26005)(83380400001)(53546011)(110136005)(186003)(316002)(9686003)(71200400001)(64756008)(66946007)(76116006)(2906002)(8936002)(86362001)(52536014)(15650500001)(66446008)(66556008)(5660300002)(66476007)(8676002)(55016002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: k6IqSgbzKot839+vozjfYKoeTWY2yd6+jV0xC08ufWr9ejmgCAro7j7LJV7P71NZIdXbKcTZLe/t0rmrCQllUDjcYOM7nsFfdH/SPLil9eVCxxB4+x8mfU8SP3Jmk6NRVnIJFN0NpxVKAkyMxA6RatPGDSc+L3/O6ayuKTwsL4Q+6qmgAWmf+E9boiPgeB5lpk6d2LS0fw0LLRvHsw49aVNaOIJ+KPzmJtTecMsNbt+bRwq0KxJVQ3tH8vLv+XiEIkH25oomWIK23jS4tRO/uc6E8GOw+Ahi2brGyYIuC0no82talxKGMfxf8K4ABN7GEP+5k2++jCT/yr06yqdzIKjaDNbKM+LnqjiUsZvyes3/GXdiOAvCay3D+rnELT0XPlFbkd2/vbRJPDDkqfH0kmXhA95+ugFwDJaOayfIq4Zxfe7xDzTCPICyJ1qXEDzaZf2opkqEl4sasn3EW9jGnb3tlgbnX0yIVrxTxd9rruvZtBwPRHeHcYnSLTIh0j2+1IRr/ubbZIiX7A1RBs2LrwREzkjrt8XPuOCV9thMJ3OxNi4VCeJgHjAyCSrkBpgsoYMgbr5o5WRrlG+xZV7wyfUTYE08j4hDeNJp05G0dzt4bURnA3UPvMpdlJvp7vB/y0cIjF8sU4V3xzIUIi8mZw== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR08MB2635 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: VE1EUR03FT043.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 5b44db28-6267-4e64-bea3-08d843e76d1b X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xuWbH3jyTHefKJ0TrQAZb0LV2gVtCUOxADVIQTa5JKm7sehZx2NfkHcI6OaepNMNzniPR9561bJlfk05Bbuf6VQHab65385NNshCVNbN9o+TIAbry72wAfHtKiTMTVe7FufauCz7g7yZV4MWzFnviMGmW4BnuPyi0jbUbHshP2GhrhpTSNgz9Vs8BGkukaAj1fM5sP2e8iR5wpa90b+EGOpOXPUpckQ3oejPi1D6MrRA7yTxbC1zN1ewtVY3ui0O+bXYF0Y1jOKRAB52WQ0rZPDLvaFvnUMnNN0mIwDw/0aX+CaFlIhRjNiR7dlKfljM+wbm4EwbRBZLazCgm2KOlgzhw7+qPgKKqF8oyHCM8p3INzmkwRV+LDhUw0V7tDAU6ZiNiXRPJB7lgHrPV0z9Og== 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)(376002)(346002)(39860400002)(396003)(46966005)(2906002)(53546011)(26005)(15650500001)(110136005)(8676002)(54906003)(8936002)(5660300002)(33656002)(4326008)(83380400001)(356005)(9686003)(55016002)(82740400003)(82310400002)(7696005)(52536014)(186003)(6506007)(81166007)(47076004)(70586007)(336012)(478600001)(36906005)(316002)(70206006)(86362001); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Aug 2020 02:27:40.8464 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 93412033-d9b5-44d1-4a02-08d843e77272 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: VE1EUR03FT043.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB3090 Subject: Re: [dpdk-dev] [PATCH v4 1/2] eal/arm64: update CPU flags 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: Tuesday, August 18, 2020 4:09 PM > To: dev@dpdk.org > Cc: nd ; Honnappa Nagarahalli > ; Ruifeng Wang > ; jerinjacobk@gmail.com; > xavier.huwei@huawei.com > Subject: [PATCH v4 1/2] eal/arm64: update CPU flags >=20 > From: "Wei Hu (Xavier)" >=20 > ARM64 Linux kernel updated the CPU flags using the HWCAP scheme. > The related marco definition can be found in linux kernel: > arch/arm64/include/uapi/asm/hwcap.h >=20 > This patch incorporates those changes to the eal library. >=20 > Signed-off-by: Chengwen Feng > Signed-off-by: Wei Hu (Xavier) > --- > v3 -> v4: > Update commit log. > v2 -> v3: > 1. Change commit log. > 2. Add HWCAP2_FLAGM2 and HWCAP2_FRINT to > rte_cpu_feature_table[]. > 3. Add the flags for newly added items into enum rte_cpu_flag_t. > v1 -> v2: > Adds more sve-related definition to rte_cpu_feature_table, > sunch as SVE2, etc. > --- > lib/librte_eal/arm/include/rte_cpuflags_64.h | 13 +++++++++++++ > lib/librte_eal/arm/rte_cpuflags.c | 13 +++++++++++++ > 2 files changed, 26 insertions(+) >=20 > diff --git a/lib/librte_eal/arm/include/rte_cpuflags_64.h > b/lib/librte_eal/arm/include/rte_cpuflags_64.h > index 95cc01474..aa7a56d49 100644 > --- a/lib/librte_eal/arm/include/rte_cpuflags_64.h > +++ b/lib/librte_eal/arm/include/rte_cpuflags_64.h > @@ -22,6 +22,19 @@ enum rte_cpu_flag_t { > RTE_CPUFLAG_SHA2, > RTE_CPUFLAG_CRC32, > RTE_CPUFLAG_ATOMICS, > + RTE_CPUFLAG_SVE, > + RTE_CPUFLAG_SVE2, > + RTE_CPUFLAG_SVEAES, > + RTE_CPUFLAG_SVEPMULL, > + RTE_CPUFLAG_SVEBITPERM, > + RTE_CPUFLAG_SVESHA3, > + RTE_CPUFLAG_SVESM4, > + RTE_CPUFLAG_FLAGM2, > + RTE_CPUFLAG_FRINT, > + RTE_CPUFLAG_SVEI8MM, > + RTE_CPUFLAG_SVEF32MM, > + RTE_CPUFLAG_SVEF64MM, > + RTE_CPUFLAG_SVEBF16, > RTE_CPUFLAG_AARCH64, > /* The last item */ > RTE_CPUFLAG_NUMFLAGS,/**< This should always be the last! */ > diff --git a/lib/librte_eal/arm/rte_cpuflags.c > b/lib/librte_eal/arm/rte_cpuflags.c > index caf3dc83a..7b257b787 100644 > --- a/lib/librte_eal/arm/rte_cpuflags.c > +++ b/lib/librte_eal/arm/rte_cpuflags.c > @@ -95,6 +95,19 @@ const struct feature_entry rte_cpu_feature_table[] =3D= { > FEAT_DEF(SHA2, REG_HWCAP, 6) > FEAT_DEF(CRC32, REG_HWCAP, 7) > FEAT_DEF(ATOMICS, REG_HWCAP, 8) > + FEAT_DEF(SVE, REG_HWCAP, 22) > + FEAT_DEF(SVE2, REG_HWCAP2, 1) > + FEAT_DEF(SVEAES, REG_HWCAP2, 2) > + FEAT_DEF(SVEPMULL, REG_HWCAP2, 3) > + FEAT_DEF(SVEBITPERM, REG_HWCAP2, 4) > + FEAT_DEF(SVESHA3, REG_HWCAP2, 5) > + FEAT_DEF(SVESM4, REG_HWCAP2, 6) > + FEAT_DEF(FLAGM2, REG_HWCAP2, 7) > + FEAT_DEF(FRINT, REG_HWCAP2, 8) > + FEAT_DEF(SVEI8MM, REG_HWCAP2, 9) > + FEAT_DEF(SVEF32MM, REG_HWCAP2, 10) > + FEAT_DEF(SVEF64MM, REG_HWCAP2, 11) > + FEAT_DEF(SVEBF16, REG_HWCAP2, 12) > FEAT_DEF(AARCH64, REG_PLATFORM, 1) > }; > #endif /* RTE_ARCH */ > -- > 2.27.0 Reviewed-by: Ruifeng Wang