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 78A5CA04BC; Fri, 9 Oct 2020 00:09:06 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BC7EF1BC82; Fri, 9 Oct 2020 00:09:03 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 25A651BC7F for ; Fri, 9 Oct 2020 00:09:00 +0200 (CEST) IronPort-SDR: UqnWYTbKvYu23xqkf/WpPUr3e7U/2eJjXFhCQKvzVZhQ4obDBabDyL4ReX/VVOnfjX76GzdgYI TpxCb6b7WUCQ== X-IronPort-AV: E=McAfee;i="6000,8403,9768"; a="144734317" X-IronPort-AV: E=Sophos;i="5.77,352,1596524400"; d="scan'208";a="144734317" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Oct 2020 15:08:59 -0700 IronPort-SDR: klJ/axZwhg8cL5bZY9xslp1mb1bnR4JdDS9TBH6qcVOCOySF8NfujoTUPhgFBV27MwJ+UZPdWk u2TS8LnNBY8Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,352,1596524400"; d="scan'208";a="528669578" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orsmga005.jf.intel.com with ESMTP; 08 Oct 2020 15:08:58 -0700 Received: from orsmsx601.amr.corp.intel.com (10.22.229.14) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 8 Oct 2020 15:08:58 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Thu, 8 Oct 2020 15:08:58 -0700 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (104.47.74.49) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Thu, 8 Oct 2020 15:08:57 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GwJaalMd8b4jtxF0lYnpQea4DfadDAMZFqJEvZ1OqEQMlBh8gE14J1sO9/LIAgbnKX9+PfDG9W1K3nPxbM6H4QPGtqcNrvGDcdEAYz+mMVfTatM1xDSqUsmMMdVaoCbSgnyQ/rtXgKmm+e0hWZY8WbkMMkxbRl+q7aY9G2NgGb3DN7BQgGy3vyz7kIwzaEIAMW9XLCaCAINyptTdZ27fxY/6zh6rVme1XgoUOmNiXuAd5Pquo4TUdvRg38+ZdYeak2rXeUKNSOVtwHdyhnm3jasdYbmcIjhvC4NExxakYw6/HP2i1FPQs3mNrii+1Y1FRkRhNqO1HLVnW1ihD6ktoA== 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=RX1jeeQtFwlg2g+k2h471zCEpS3/IKaP+dgp+fcM0hU=; b=CaQAlPaN1sbKbncd+rwvWFfeNXqc2PHzDhoXGpxYtOpbu4sXyRccytF4xmbdkowMrGlEOR2zQOBPqo1BvSQ0KT6qiOZ1jRrlH1h8em6+U2eg5a3Um2fqvg5aJ1tDpM9Hr3ovtVHR2t3bsq6TYdzKu51VgEoyYqIkjwQjvbALvfAklLUhnLdaD/Uhho9UMCaaXhkQBJggAJU9yCK8trV1awCQUsLAs9UoHJtHstHQq0PQ4q72hl+8ztgVo3EcbdYBQXwbIHnvb2ch0+XRe3MpEUYvht60kChjcxxljVeoDhgRwR2xOdwov+5TEP+AXAmithS3rnB+JBFa5aA/pf88vQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RX1jeeQtFwlg2g+k2h471zCEpS3/IKaP+dgp+fcM0hU=; b=n96b0WmqD7gmuUIRtaO0Ty+Tc0vIKNQv09sbFPP9PhN1iHlqcYHJp5k+jEmIOv2QNJVQArjon/m6NrgppD0tqsrZaCXwkLuguO78rTIPniv8JTHhdik0vhHFrUYc9pWA1hmzXv/PCXW9iwpnFNE1WO5pRPk+v0hZgo8L1YSFBz8= Received: from BYAPR11MB3301.namprd11.prod.outlook.com (2603:10b6:a03:7f::26) by BYAPR11MB3301.namprd11.prod.outlook.com (2603:10b6:a03:7f::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3455.21; Thu, 8 Oct 2020 22:08:55 +0000 Received: from BYAPR11MB3301.namprd11.prod.outlook.com ([fe80::f5a4:3f6b:ade3:296b]) by BYAPR11MB3301.namprd11.prod.outlook.com ([fe80::f5a4:3f6b:ade3:296b%3]) with mapi id 15.20.3455.023; Thu, 8 Oct 2020 22:08:55 +0000 From: "Ananyev, Konstantin" To: "Ma, Liang J" , "dev@dpdk.org" CC: "Hunt, David" , "stephen@networkplumber.org" , "Burakov, Anatoly" Thread-Topic: [PATCH v4 01/10] eal: add new x86 cpuid support for WAITPKG Thread-Index: AQHWmMYNNv+btP0CkESa1izhAwLvU6mOTW/g Date: Thu, 8 Oct 2020 22:08:54 +0000 Message-ID: References: <1599214740-3927-1-git-send-email-liang.j.ma@intel.com> <1601647919-25312-1-git-send-email-liang.j.ma@intel.com> In-Reply-To: <1601647919-25312-1-git-send-email-liang.j.ma@intel.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.5.1.3 authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [46.7.39.127] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: bb1cce1a-410f-487a-fa3c-08d86bd6bf73 x-ms-traffictypediagnostic: BYAPR11MB3301: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3631; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: SKekIbyNGOzx8Z+h3jy53CFVKPxwkYioE84b11fCHdCMNFNhf96ryRLUiPBiDh/a9zgQJ7wGB1Tk8NapH2pp1fEm45oTtj1+nqw1Aypc4tAEtDu7GjM4sppix8cIItFvBwqRzIFQghfVfYT1A1UUQ8cDVRpLdufToAcoJt/vt9blmHvFHkjAqFDkrDvP/+4UT8vLcJC5hQW6XkAMaSyqDOM6I/doxkeuxsQZNmevtGZQvcu8/vh+qyWSLBA2c78kGv3srUNRltXTVq+3Ckx4m3LjIUIYUE2TPrS5xQ9C2GZ8P1QSgxWw48DQiJ7DAz/GBcyv++EpXb+joMX6rAHpAA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR11MB3301.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(396003)(366004)(39860400002)(136003)(376002)(66556008)(64756008)(66476007)(4326008)(54906003)(55016002)(5660300002)(107886003)(186003)(316002)(86362001)(478600001)(110136005)(66446008)(76116006)(9686003)(52536014)(71200400001)(66946007)(26005)(8676002)(2906002)(7696005)(33656002)(6506007)(8936002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: YzF6kthpz4qEFPVrrmdZGrjFyC8+9UTImDHsPWbx0U8I5BoLitOWIcY20EoeH8SpxnXf+YJHdpwbxg/U3r/bvNeW1Wy5LRIqNs7szWVZXJRhRNVLoQ1Gxi46yAMJ64MlBItTVOSbH08c/CdqTD8pqvt00iFwzovW8veH+w5rwsAp7H733SY8CITelmwhC7ZouN9Ll/4z09pHQVKaqz9SJl2xlSVN87Xz7pwf2Gwug1N97UbtmBtmbvVZifcYp6Zbds7LxV47rSyPc5s8cPKY1TeAbCLsKXvhVCxSWRVkja80q9wY39QHnpoljg46CRF/waOFR+wQPQuXLlJTnblVkrSvS5sjY/JzB6PK4+riRkMODx2AT/+fUpQISdOYwWL6vLgvtEGUGeSOps0BrIp/z/zk4A6zxhy1Ej/CjXbBVe5VGZ0p924nww7F2gbpZeRiKOegzJGZpjrmU2wDs5LwSc+Vpb7uJQ3Pwg+jUHPAyyjOaJQb8Awx/Sl4JVzrxgscVud1R7t9Jd7Laj55eZkstHL7oTKZJqgT7hVwfGZnDTiS8YN3HoVmO0z/xMkq+XzA0PNyEIeriVWS3ihsSSLCKYg2tcw4IAQsz/pGtVr/xS9Wf/yRDdcmt4IVrf3ibEK+P7co4tYiMeREpww1+lgVBw== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR11MB3301.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: bb1cce1a-410f-487a-fa3c-08d86bd6bf73 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Oct 2020 22:08:55.1078 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: eXfndEfX+k+jj1HQto4xLNcue9/Zhih5JvQ9Kk+5nBu6aLPyugwCahL9sp8ALs5zbs2uTow6dxQjVzXk72guwYO8n5Vd1DSHh683/vtkPY4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR11MB3301 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v4 01/10] eal: add new x86 cpuid support for WAITPKG 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" > Add new x86 cpuid support for WAITPKG. > This flag indicate processor support umwait/umonitor/tpause > instruction. >=20 > Signed-off-by: Liang Ma > Signed-off-by: Anatoly Burakov > --- > lib/librte_eal/x86/include/rte_cpuflags.h | 2 ++ > lib/librte_eal/x86/rte_cpuflags.c | 2 ++ > 2 files changed, 4 insertions(+) >=20 > diff --git a/lib/librte_eal/x86/include/rte_cpuflags.h b/lib/librte_eal/x= 86/include/rte_cpuflags.h > index c1d20364d1..5041a830a7 100644 > --- a/lib/librte_eal/x86/include/rte_cpuflags.h > +++ b/lib/librte_eal/x86/include/rte_cpuflags.h > @@ -132,6 +132,8 @@ enum rte_cpu_flag_t { > RTE_CPUFLAG_MOVDIR64B, /**< Direct Store Instructions 64B = */ > RTE_CPUFLAG_AVX512VP2INTERSECT, /**< AVX512 Two Register Intersecti= on */ >=20 > + /**< UMWAIT/TPAUSE Instructions */ > + RTE_CPUFLAG_WAITPKG, /**< UMINITOR/UMWAIT/TPAUSE */ > /* The last item */ > RTE_CPUFLAG_NUMFLAGS, /**< This should always be the last= ! */ > }; > diff --git a/lib/librte_eal/x86/rte_cpuflags.c b/lib/librte_eal/x86/rte_c= puflags.c > index 30439e7951..0325c4b93b 100644 > --- a/lib/librte_eal/x86/rte_cpuflags.c > +++ b/lib/librte_eal/x86/rte_cpuflags.c > @@ -110,6 +110,8 @@ const struct feature_entry rte_cpu_feature_table[] = =3D { > FEAT_DEF(AVX512F, 0x00000007, 0, RTE_REG_EBX, 16) > FEAT_DEF(RDSEED, 0x00000007, 0, RTE_REG_EBX, 18) >=20 > + FEAT_DEF(WAITPKG, 0x00000007, 0, RTE_REG_ECX, 5) > + > FEAT_DEF(LAHF_SAHF, 0x80000001, 0, RTE_REG_ECX, 0) > FEAT_DEF(LZCNT, 0x80000001, 0, RTE_REG_ECX, 4) >=20 > -- Acked-by: Konstantin Ananyev > 2.17.1