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 B70BCA04AA; Fri, 1 May 2020 11:48:04 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 10FCA1D9CB; Fri, 1 May 2020 11:48:04 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id E268F1D927 for ; Fri, 1 May 2020 11:48:02 +0200 (CEST) IronPort-SDR: Nu2363I78ZS65gkn1lSWp2vKe7gnuvnVO4NrkWzlf9Uiboc1MtUndCyY7bsPCVDIl0mlwTi8JP KRLocMCADB4g== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 May 2020 02:48:00 -0700 IronPort-SDR: ud2Ds2F3mr39zXdQ5u0ue1/FBNVVb4zR4pat5q61Ihsj87raQ0Bhvj3a7gKna5ZFSWuTHltwaZ pVp9P67oC2xg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,339,1583222400"; d="scan'208";a="249990292" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga008.fm.intel.com with ESMTP; 01 May 2020 02:48:01 -0700 Received: from fmsmsx112.amr.corp.intel.com (10.18.116.6) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 1 May 2020 02:48:01 -0700 Received: from FMSEDG002.ED.cps.intel.com (10.1.192.134) by FMSMSX112.amr.corp.intel.com (10.18.116.6) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 1 May 2020 02:47:59 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.42) by edgegateway.intel.com (192.55.55.69) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 1 May 2020 02:48:01 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NN2jOkp8HG2jHro7WcUknn7QhriCPBRuTFC+yVCzcNUqW21pWcLt3XsMjPwf/A91cdPpeJv8mYplQ74irjAzEZKhzgo4aZtASAaDZCluHC3fM175wfDCSUSPUrbe/7Lc1KyeKwm1HcgfgXc/MtgQUhnIn4BnazEx24HoY1G5I//kLzyigmDAa1k9fZRsGb9rwacN77AVH5IyY+tQfro7moXfmSZOWoCaq2qNfPxcnzNWuVFHx5h+3nBkLjLOqDRiTHHXtxSHWsWH6+2OT+Jj5A7MjkLmA2XlVB66rNNPtEG3NlIYx0+VsCU4vAjTE6L2kVOb+PZzGu5ynBvJ2KXv0A== 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=4zTq/CCEt4q1xUxifZglSfWrfVMytMjV+VFT8clLRgQ=; b=V9h3+yq/A91n4HGYbsg24OkQT26G8q063qszdfIvlTvqVP+e9ZqkYdzOQfgmrFU/ZTRClVgRmO8KbqZk64pPwVeXlBFHu7mupZQNuMiwHoeKJKbqbwm52zjawmEJf6w4g5xKM8UeNStAOsLZLCsJnP24RRL/hmEDCCOJp+mZze30Bj8tGCPG9Ku7MvYVphwo/xsdCnYmdtSsASM/fumJFXRfigl3hlnh8kv/unQzaUQvlBGeRtbPfrQNz1eTNwCu7xSuZcecgpkZFMscxlfGNcpUXQZOskEM6fG9ky/50zFWiOQc/Z0HppQO7Ow9cg5kZDTaS8kUKRWrp9sBgCFOdg== 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=4zTq/CCEt4q1xUxifZglSfWrfVMytMjV+VFT8clLRgQ=; b=eVVpfE8KKqxl0zusXkg+7YqSYpT0ygFbIRSN5i+RdzQAax8qZsO5as9doFUZAwwv7vBuufPva06syy2XJOTd3HcQtBhDWQDAdaum4r8MAnNBjsPEsiZ0H2VjEmCaFic4buKu/A8RqmvbuLiX9jOx7rEfAnyCdH1FwCqwfUAf5A8= Received: from BYAPR11MB3301.namprd11.prod.outlook.com (2603:10b6:a03:7f::26) by BYAPR11MB3816.namprd11.prod.outlook.com (2603:10b6:a03:f8::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2958.20; Fri, 1 May 2020 09:48:00 +0000 Received: from BYAPR11MB3301.namprd11.prod.outlook.com ([fe80::f8cb:58cd:e958:fff4]) by BYAPR11MB3301.namprd11.prod.outlook.com ([fe80::f8cb:58cd:e958:fff4%6]) with mapi id 15.20.2937.028; Fri, 1 May 2020 09:48:00 +0000 From: "Ananyev, Konstantin" To: Gavin Hu , "dev@dpdk.org" CC: "nd@arm.com" , "david.marchand@redhat.com" , "thomas@monjalon.net" , "jerinj@marvell.com" , "Honnappa.Nagarahalli@arm.com" , "Ruifeng.Wang@arm.com" , "Phil.Yang@arm.com" , "Joyce.Kong@arm.com" Thread-Topic: [dpdk-dev] [PATCH v2 0/2] Use WFE for spinlock and ring Thread-Index: AQHWG6ZKKovwLVbNYEW+vsesxl3NMaiTA5tQ Date: Fri, 1 May 2020 09:47:59 +0000 Message-ID: References: <20200424070741.16619-1-gavin.hu@arm.com> <20200426083909.897-1-gavin.hu@arm.com> In-Reply-To: <20200426083909.897-1-gavin.hu@arm.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.2.0.6 authentication-results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.198.151.188] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b7a70d55-3274-4fb9-bd5a-08d7edb4bbfd x-ms-traffictypediagnostic: BYAPR11MB3816: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6790; x-forefront-prvs: 0390DB4BDA x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ZKDnQmOTayBB1cznvTxhxxdqvADDJ9Z85KLIbHtMN74jjwdQ6INM4+qkfqLsgEUclDQdSeQee1HmYd4JiDu5jxVCJ5xguNq1Q9Sa3inSZL12ynEmZuHC1H0anNSx8h/cVrTkwvANrnRozWtn1wy8wd5raBA6kxNtUb9khXQ2zyeysD8vPo2m/o966UnH5a7tjVOvbiSKoZWCsovzrGFa+M0yQI5K9p3JO45fO8rz/IyBlRbrO67Nw9ucD+rWkAK0PBOxc9MkXtOWzgj8f/6fCnNQ+cG0T7ytegz/JoZLWis6IHf5oD5jghndEubVjCs81Qn0pvmcuXUoYBzgbhHkuZqYnEndePm3xc6Z2eMlG/uh9UMtI9SdALGQGKk3/Qi2nxcU8Z8UunVx8ouk9QejjVOGsC0yiWeepe0sbIzXr+McyLHeGVDhTAnigSqc/W1wjDY9rfyFO1ZuV6UThGe6Mrmfy0X5UOqjxgj3WDctJMGCqdtfFrvaTKjXGO9YWFx/9+1OQYpTx+HXgTtNvMcBfgO6zua0sBJvXDHsU9SVTUlfIiaX8gs8JF3tpuWvGQvD 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; SFTY:; SFS:(346002)(396003)(136003)(376002)(366004)(39860400002)(55016002)(7696005)(66946007)(64756008)(66556008)(66476007)(66446008)(76116006)(54906003)(86362001)(316002)(8936002)(8676002)(110136005)(7416002)(52536014)(33656002)(4744005)(5660300002)(2906002)(478600001)(26005)(966005)(186003)(71200400001)(4326008)(6506007)(9686003)(21314003); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: dXKxak3n50KQRmRsKdTEGPwBh7/Y7P/wWZJ5oNUovR1StLddPqXb9ainFJ9wIgf/iY/DJaNVRojHbrMZmnDqowWDNdxdt6nmNf4ZDcPwvG09YkPjKjtvuS8bkvUFZWzl9N0Z2aghSHkqxbqGzJI3RRTd9WI6JVKjgAkXBmTBch2VtShqTXytW3xDOnPAj4RTrv4JNvlp3vSaeShcWzKZPOxhMv4LJxeF3ugQEHRX3hzKTq9VkEOxlCt4Y9gPf5WOCWXmHabmaEMLT4kSzoPGHmrcTN7Nj8SsyjDCckYhW/T+3eH87aJAe5Ge8He8G65bcDr0ueRphaj92fpBjWLfQADjtI58UsO0MCpPCTPgKoOvSypyhE9DHvQBk77bBojtH9cCwZ1l7IvRa0w9f5NkWqVvkhogzQ8F4xuUuO2MR12zrG664P4XHVlIeXA+lMKbUdLX7TqNUWczVfIVzmQojZbX2tlWLUCCfH41rMObQjzya9X8borAYKAaMIRQCrmHewgFs3V5akTvCaSoCqatZ1OSCGg0d5Vk3mhtJAOi2yvnj/Ncjm62uT5zhh0oRbYhGylfzjWxDlymUC6mRgUTRsMOle77SuHaQ+XN7W5R4k8ZlcaO9ay8XRka/ZSqXty4vIp7bg9eJiRtKceQw48EZodr1ZVPro3LE8QKtRzxJUf2HOoBk+dfi1hS2zIs49FKKdp64zL+UZE9a0E6Z+4zkIS75TICl3VC+GL4EWF4in2Sv0U+jrj9/NemM3GHcd5kh1MWXwWnZXFCekAe4c/YeO0a/Z2ERnwmjaFnGXNqrkwCbEqa1Er4Hx+lqSqnRUIw 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-CrossTenant-Network-Message-Id: b7a70d55-3274-4fb9-bd5a-08d7edb4bbfd X-MS-Exchange-CrossTenant-originalarrivaltime: 01 May 2020 09:47:59.7320 (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: AxfbADyFlCz5yDu55KTnjs1qI4rD5gBQFitENmTIaDOQ8bUFLSuNurIrbbCmCvxPuTzE0EsQTT0+VZ12BqizqpCDc5kGfZZ6+RNSVyarVng= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR11MB3816 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v2 0/2] Use WFE for spinlock and ring 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" >=20 > The rte_wait_until_equal_xxx APIs abstract the functionality of 'polling > for a memory location to become equal to a given value'[1]. >=20 > Use the API for the rte spinlock and ring implementations. >=20 > [1] http://patches.dpdk.org/cover/62703/ >=20 > Gavin Hu (2): > spinlock: use wfe to reduce contention on aarch64 > ring: use wfe to wait for ring tail update on aarch64 >=20 > lib/librte_eal/include/generic/rte_spinlock.h | 4 ++-- > lib/librte_ring/rte_ring_c11_mem.h | 4 ++-- > lib/librte_ring/rte_ring_generic.h | 3 +-- > 3 files changed, 5 insertions(+), 6 deletions(-) >=20 Series Acked-by: Konstantin Ananyev > -- > 2.17.1