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 E5635A04DB; Fri, 16 Oct 2020 11:03:13 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 515751DCF7; Fri, 16 Oct 2020 11:03:12 +0200 (CEST) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2073.outbound.protection.outlook.com [40.107.21.73]) by dpdk.org (Postfix) with ESMTP id 044051DA5F for ; Fri, 16 Oct 2020 11:03:10 +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=5oHwyXzkUjiYLxkn/dyWxzPuIKYmr1E52nZEvjtqHlw=; b=uhad+yYLpI9rrtpUW+3dqd5n8D12BHa33WmBTKYiZxhKJPs0MPOhsHJIdg9weE6s6QEf441e99s0u31koWUVcH8AMjN8UxZvs3b9MQhA33Ge1KUpoAkQXPLGG8ILs3cT4psTgHE0lfa83+cK6NGLyDLz9WSQztGl/UT0VJdH2JY= Received: from AM6P194CA0030.EURP194.PROD.OUTLOOK.COM (2603:10a6:209:90::43) by DB6PR08MB2791.eurprd08.prod.outlook.com (2603:10a6:6:17::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3455.28; Fri, 16 Oct 2020 09:03:07 +0000 Received: from AM5EUR03FT032.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:90:cafe::fd) by AM6P194CA0030.outlook.office365.com (2603:10a6:209:90::43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.22 via Frontend Transport; Fri, 16 Oct 2020 09:03:07 +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 AM5EUR03FT032.mail.protection.outlook.com (10.152.16.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.21 via Frontend Transport; Fri, 16 Oct 2020 09:03:07 +0000 Received: ("Tessian outbound c189680f801b:v64"); Fri, 16 Oct 2020 09:03:07 +0000 X-CR-MTA-TID: 64aa7808 Received: from 1d08ce9d6b26.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id DFD95227-33FE-4B2D-88BB-943984F1063E.1; Fri, 16 Oct 2020 09:03:02 +0000 Received: from EUR04-DB3-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 1d08ce9d6b26.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 16 Oct 2020 09:03:02 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OP+z90t5ALmFkITwKM/ExykgPF6s6Q6BEe89+6bmSWn67usP/seNAPKueY3tSaEqIboYcJ2+zuBlTY/tX7XzV0P3S6j8XS34XzRRca769SWpQm+SGxihMmeFzG6AOn5mPESDMAuL4qYT9uxoS46cXcVOp4ZDC+aonoTdjXoiIy7SaW/2A3ju3QyTzu3k0h10bPcdoMfw5E6tqw8h+4TpN/OwAxllS3BLBwOooeSsWzpX34vmtA4gZ/cVxgTAYQqdgsVuO80WyrlfC5+h9WdAvDD4OFyY3hg0TwvSAKP8r4S3hdZAOFVQq2j1E8YKgu7n+Vkz7OJ3YAaSfiVTR5yVUg== 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=5oHwyXzkUjiYLxkn/dyWxzPuIKYmr1E52nZEvjtqHlw=; b=MCEmR8kFDEsW2CmGuyfKKRW6OkTEsNdWtQCMRNH+elf38aQtjLvIRzjYl8odpq2i419VkEdEyGPqvQXHlYNCni69cSqT/QnDjoyjaF9JkhfVVL6av9b8gE5SSR2I3jx9c+zYQx+GiH67zojEWE450U+TDVaZ5ipMaUQylwl/8jRbsTPj2fgdV7sF8z2DBMLs9+ixsPlmRIF8qBnTprVB0U91B3zBIMJ86RJseHAa7J0bkj4BgyqHOM4fTRxZOiiv6TBGURSLHHpu8sD3BW1N1D06aS/9QsKiyJuGMjcaFwl1lLaK3aH7hjIAcX3l0JripLmEq024Z61S+Dm19m5fDg== 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=5oHwyXzkUjiYLxkn/dyWxzPuIKYmr1E52nZEvjtqHlw=; b=uhad+yYLpI9rrtpUW+3dqd5n8D12BHa33WmBTKYiZxhKJPs0MPOhsHJIdg9weE6s6QEf441e99s0u31koWUVcH8AMjN8UxZvs3b9MQhA33Ge1KUpoAkQXPLGG8ILs3cT4psTgHE0lfa83+cK6NGLyDLz9WSQztGl/UT0VJdH2JY= Received: from VI1PR0802MB2351.eurprd08.prod.outlook.com (2603:10a6:800:a0::10) by VI1PR08MB4429.eurprd08.prod.outlook.com (2603:10a6:803:100::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.20; Fri, 16 Oct 2020 09:02:59 +0000 Received: from VI1PR0802MB2351.eurprd08.prod.outlook.com ([fe80::14d4:6ade:368a:204b]) by VI1PR0802MB2351.eurprd08.prod.outlook.com ([fe80::14d4:6ade:368a:204b%3]) with mapi id 15.20.3455.031; Fri, 16 Oct 2020 09:02:59 +0000 From: Ruifeng Wang To: Anatoly Burakov , "dev@dpdk.org" CC: Jan Viktorin , David Christensen , Ray Kinsella , Neil Horman , Bruce Richardson , Konstantin Ananyev , "david.hunt@intel.com" , "liang.j.ma@intel.com" , "jerinjacobk@gmail.com" , "thomas@monjalon.net" , "timothy.mcdaniel@intel.com" , "gage.eads@intel.com" , "chris.macnamara@intel.com" , nd Thread-Topic: [PATCH v7 03/10] eal: add intrinsics support check infrastructure Thread-Index: AQHWoutoU4syvQMkJUOHE26Oca66WqmZ791Q Date: Fri, 16 Oct 2020 09:02:59 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: 6A207197B0FC5B408B71A3B62B13C321.0 x-checkrecipientchecked: true Authentication-Results-Original: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=arm.com; x-originating-ip: [203.126.0.113] x-ms-publictraffictype: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 1e665f0e-28a4-4a7e-663f-08d871b24c7c x-ms-traffictypediagnostic: VI1PR08MB4429:|DB6PR08MB2791: x-ld-processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:7219;OLM:7219; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: nzNVFTYWe6435pkrklZFKHw3gQ5Nhgzz1E2hqG5hsdoXcKVRnI6A2/J5ZenY9M+ou4nQqCEziOuNJNI9hxFeZSBFkYjd9op/wOujk9zNmos5PVup7ssEGvqX6iMWo1UpnKDUVCe24neYvrXXXavNkNOYPtUGHkxc1pmMiU4kKFqOGv1iD5yHEfnHxJblnSJmFt04knokCVJHdQGyVvywAuHzBStiDYXGUiwRZOeimEagd5cAF7ka0XQgYnnlb6K/7iObW3V8/nblqiqdioIBjCCeHrJcFTaHs4bVMsmSTPxX8U5WXB+PJ4A+nsACDIES X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR0802MB2351.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(396003)(376002)(136003)(366004)(346002)(83380400001)(8676002)(8936002)(33656002)(54906003)(110136005)(316002)(9686003)(71200400001)(66556008)(64756008)(52536014)(66476007)(66446008)(2906002)(7696005)(86362001)(5660300002)(76116006)(55016002)(4326008)(6506007)(186003)(53546011)(7416002)(26005)(478600001)(66946007); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: UGIhGj1IxUmeEQdpIuCqnEwsqfZJHreefUxciIMoIeNFH+NGEezZNJzK+XrMjTRe7MWaskXkqfYoBvCewdq+wAAjJBe4HhVHGMwB26QxGRUIStMonxM5rEnRcd4KxnA8Bg5jzlnYyGmt4vnwKmXCf/eIFdBWY3RyMqZWjScSz+Oe4hu9nUM2zieyBYkrrqZTg+jQYi7m9Z5E5OXOUNCPCEzcnJ0BxVBr3e6un44R7IIHQCFWjF8GsHcmMHVV1Nu1gnoGG1koFEFhWvYFL9j8i7q1nCchytwpdo0F7LUo8FsQIKT4OtXju/vNZGqOW3ds+XajLBx9J6wnSlBpCD4XnW1jfvwQGaTjqSahKn07h1K4uDHTwvro3P7jAPUmzeLMZQlPjUz2LcmHB4KfO+aP0PLtBoarPHS2kujYZ1myys47mpGO8VRS8ln45WYN9DJarIGUTZmgHqSWlcU52Rwk9Vyeodoby4RNjDNjZ8ZmGylQcuG9TBS08t692IjAU5iFSZ3V3GnHNWUoM7LvHucuITYts7m7m9LVJGIuLnbYkHFU5C8ZhhNlIVg1wISSimGppLwRATIeWglpS3vvXsV8IVG7q+VCR5DE13IejxscDJf6XOgdDcF9nwRpCSar4PeL2S6ipZMAv3lVKK1CTY4e3Q== 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: VI1PR08MB4429 Original-Authentication-Results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT032.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: f01468f6-8d05-48b3-9a06-08d871b247de X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NiFBeug+m2+6Hky8FyClccDtGzBSty0egh84kSTbo960eewzwYTMeY+rVMSISUd/1TxTRRH8TYTpL3aj/y5lBhxjLF6XTBySBDVJKaPcqbgRyxHeYbzwl7v77i9ZmYIbPnCIt4BMfdgkL+XLgLMXdiROk8MKqbkEXd7+Ctjaxr+MYWz/xOLuWVEySIIjuLcSfefqPau5nwdrdzIc+zZhFBlnelBfbWJwzAuTrgMkx3cdWPKABKEOaz0KhBzb4VAX3zB4u2wp9c4BnyUznQsqm+vFE2OREmigdj5rX3KDV0vUAcquTQ4fz+I3fovQoBCDukJdtlGMT9Utt/YXYtukjO6N/RzRWNHrCimLQxFtBS+pHft6hYwS3BxnIsI/eFZYbpp4VERrHqCcItI0TkcOHw== 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)(39860400002)(346002)(136003)(396003)(376002)(46966005)(70206006)(110136005)(33656002)(8676002)(83380400001)(9686003)(82310400003)(36906005)(4326008)(356005)(316002)(336012)(54906003)(478600001)(70586007)(2906002)(86362001)(81166007)(52536014)(53546011)(6506007)(8936002)(7696005)(26005)(55016002)(5660300002)(82740400003)(186003)(47076004); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Oct 2020 09:03:07.3693 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1e665f0e-28a4-4a7e-663f-08d871b24c7c 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: AM5EUR03FT032.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR08MB2791 Subject: Re: [dpdk-dev] [PATCH v7 03/10] eal: add intrinsics support check infrastructure 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: Anatoly Burakov > Sent: Thursday, October 15, 2020 8:04 PM > To: dev@dpdk.org > Cc: Jan Viktorin ; Ruifeng Wang > ; David Christensen ; > Ray Kinsella ; Neil Horman ; > Bruce Richardson ; Konstantin Ananyev > ; david.hunt@intel.com; > liang.j.ma@intel.com; jerinjacobk@gmail.com; thomas@monjalon.net; > timothy.mcdaniel@intel.com; gage.eads@intel.com; > chris.macnamara@intel.com > Subject: [PATCH v7 03/10] eal: add intrinsics support check infrastructur= e >=20 > Currently, it is not possible to check support for intrinsics that are pl= atform- > specific, cannot be abstracted in a generic way, or do not have support o= n all > architectures. The CPUID flags can be used to some extent, but they are o= nly > defined for their platform, while intrinsics will be available to all cod= e as they > are in generic headers. >=20 > This patch introduces infrastructure to check support for certain platfor= m- > specific intrinsics, and adds support for checking support for IA power > management-related intrinsics for UMWAIT/UMONITOR and TPAUSE. >=20 > Signed-off-by: Anatoly Burakov > Acked-by: David Christensen > Acked-by: Jerin Jacob > --- >=20 > Notes: > v6: > - Fix the comments >=20 > lib/librte_eal/arm/rte_cpuflags.c | 6 +++++ > lib/librte_eal/include/generic/rte_cpuflags.h | 26 +++++++++++++++++++ > .../include/generic/rte_power_intrinsics.h | 12 +++++++++ > lib/librte_eal/ppc/rte_cpuflags.c | 7 +++++ > lib/librte_eal/rte_eal_version.map | 1 + > lib/librte_eal/x86/rte_cpuflags.c | 12 +++++++++ > 6 files changed, 64 insertions(+) >=20 Acked-by: Ruifeng Wang