From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 07A9EA0096 for ; Thu, 14 Mar 2019 03:36:46 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id AC5644C96; Thu, 14 Mar 2019 03:36:44 +0100 (CET) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00066.outbound.protection.outlook.com [40.107.0.66]) by dpdk.org (Postfix) with ESMTP id C705B37B0; Thu, 14 Mar 2019 03:36:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LKdrwMDELdZdBN0ItAdEcmcj0DFl8umQ3Y70ks3BJio=; b=pxlpMSaZkX2U7dTO+xA/01E0FVDLiMhqZ4t6rx90PB3C4AcClv6ZaKImgR4HXRweHefVP6PaNVcIYTuOKu74B7dj+3jOyKr5GiWlnodZq3nDuJ2Xkgy4tli+qqcS1k4kzb9EyaUqUO+MVByGE/FkmPRdTBWqyS7W4CJkyOp2cOk= Received: from VI1PR08MB3167.eurprd08.prod.outlook.com (52.133.15.142) by VI1PR08MB3582.eurprd08.prod.outlook.com (20.177.61.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1665.19; Thu, 14 Mar 2019 02:36:40 +0000 Received: from VI1PR08MB3167.eurprd08.prod.outlook.com ([fe80::707a:b455:dcb2:9d40]) by VI1PR08MB3167.eurprd08.prod.outlook.com ([fe80::707a:b455:dcb2:9d40%2]) with mapi id 15.20.1686.021; Thu, 14 Mar 2019 02:36:40 +0000 From: "Gavin Hu (Arm Technology China)" To: Honnappa Nagarahalli , "jerinj@marvell.com" , "dev@dpdk.org" CC: "i.maximets@samsung.com" , "chaozhu@linux.vnet.ibm.com" , nd , "Nipun.gupta@nxp.com" , "thomas@monjalon.net" , "hemant.agrawal@nxp.com" , "stable@dpdk.org" , "Gavin Hu (Arm Technology China)" Thread-Topic: [EXT] [PATCH v8 3/3] spinlock: reimplement with atomic one-way barrier builtins Thread-Index: AQHU1YSHLQz7DkuQqkWylwvuBlEyyqYIG7qAgAIzwICAACHDAA== Date: Thu, 14 Mar 2019 02:36:40 +0000 Message-ID: References: <20181220104246.5590-1-gavin.hu@arm.com> <1552031797-146710-4-git-send-email-gavin.hu@arm.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Gavin.Hu@arm.com; x-originating-ip: [113.29.88.7] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 8ce34662-348a-4dc8-df3f-08d6a825e384 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(4618075)(2017052603328)(7153060)(7193020); SRVR:VI1PR08MB3582; x-ms-traffictypediagnostic: VI1PR08MB3582: x-ms-exchange-purlcount: 3 x-ld-processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr nodisclaimer: True x-microsoft-exchange-diagnostics: 1; VI1PR08MB3582; 20:0bmRf3CQQuJMIA+BOcX09KhgfKXz2X+Y5wWveJyyNQYpGMlD8N256Z+XOYMYmcAhKbc0MzNe1PR0dKC9l+dQBno9OO5CSK8aFavK6BIL7yK8LmalXh7y/amXFe65fDtzL3k3mefehrVvoRtGasfFVRTgW9g705+6VVDrTx0oxJ4= x-microsoft-antispam-prvs: x-forefront-prvs: 09760A0505 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(376002)(396003)(366004)(346002)(39860400002)(199004)(189003)(13464003)(26005)(105586002)(9686003)(106356001)(66066001)(486006)(97736004)(68736007)(8936002)(25786009)(5660300002)(14454004)(229853002)(72206003)(6116002)(3846002)(966005)(4326008)(55016002)(256004)(7696005)(305945005)(7736002)(53936002)(86362001)(11346002)(71200400001)(6436002)(478600001)(2501003)(99286004)(316002)(6306002)(446003)(186003)(93886005)(14444005)(33656002)(476003)(55236004)(6246003)(54906003)(81156014)(76176011)(71190400001)(53546011)(110136005)(6506007)(2201001)(8676002)(81166006)(2906002)(74316002)(102836004)(52536014); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR08MB3582; H:VI1PR08MB3167.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: sDSqchQFfLsOWtVUGTXKxQ3lGdw8F4+Ithn69FNBlEaOCKGN42tyr02EPwJC8nLMLiPMtHfF1mmL7Ubsyb0961I+tGk9daQOAc3Xz6pKmT0K0HrAuTT9bCfstrhqbmAIaA06ztGAW37XZRcpUv1/BYn9p9DceVVAYBpxkFKwDVjVCncaupbYvj5kz3nuoMpmoVQgr5pfq8Y8vQhzEmzSiwePc2U9VDHo/x9FXDpHhYqGuYNt0hXFzW+m1fnucuE9tMa7SU2nyIUCBa42PfE3I74PUf81XG3OCW0vQ0ndK0Vp4kWPrwStfraRqbPeBEl+us2wtXIs9fkAy6WWbfQCt3/re4RM/ksU3DquoE5/Ak/pYcN7iJkD89ETcMH942wdu5weAOAzPtYUsoulXoEbbRHWCMKM9JL+rKSlS9vC8B0= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8ce34662-348a-4dc8-df3f-08d6a825e384 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Mar 2019 02:36:40.2285 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB3582 Subject: Re: [dpdk-dev] [EXT] [PATCH v8 3/3] spinlock: reimplement with atomic one-way barrier builtins 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" Message-ID: <20190314023640.s6p_g-_993LuzY9d-GmIqu4IACususCLpxAGSMVUgZQ@z> DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogSG9ubmFwcGEgTmFnYXJh aGFsbGkgPEhvbm5hcHBhLk5hZ2FyYWhhbGxpQGFybS5jb20+DQo+IFNlbnQ6IFRodXJzZGF5LCBN YXJjaCAxNCwgMjAxOSA4OjMxIEFNDQo+IFRvOiBqZXJpbmpAbWFydmVsbC5jb207IEdhdmluIEh1 IChBcm0gVGVjaG5vbG9neSBDaGluYSkNCj4gPEdhdmluLkh1QGFybS5jb20+OyBkZXZAZHBkay5v cmcNCj4gQ2M6IGkubWF4aW1ldHNAc2Ftc3VuZy5jb207IGNoYW96aHVAbGludXgudm5ldC5pYm0u Y29tOyBuZA0KPiA8bmRAYXJtLmNvbT47IE5pcHVuLmd1cHRhQG54cC5jb207IHRob21hc0Btb25q YWxvbi5uZXQ7DQo+IGhlbWFudC5hZ3Jhd2FsQG54cC5jb207IHN0YWJsZUBkcGRrLm9yZzsgbmQg PG5kQGFybS5jb20+DQo+IFN1YmplY3Q6IFJFOiBbRVhUXSBbUEFUQ0ggdjggMy8zXSBzcGlubG9j azogcmVpbXBsZW1lbnQgd2l0aCBhdG9taWMgb25lLQ0KPiB3YXkgYmFycmllciBidWlsdGlucw0K PiANCj4gPiA+IC0tLS0tLS0tLS0tLS0tLS0tLS0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