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 05136A0096 for ; Thu, 14 Mar 2019 01:31:30 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 90C0C4C95; Thu, 14 Mar 2019 01:31:28 +0100 (CET) Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70055.outbound.protection.outlook.com [40.107.7.55]) by dpdk.org (Postfix) with ESMTP id DB3FA2C28; Thu, 14 Mar 2019 01:31:26 +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=5r5VZmkAGQqyTTqmbwhPeb0MEH+3eKHvC9bPKjTtjl0=; b=ALni6NMjbqjBOEdZ8M+yf4vKELcaux/J/deBxio4SzSe1yB3lawV2Gt0quuiiJ9iFdL9zrg73baV/NYtvMrcaIwbNO3xuwPIpv7k/wMymHxI91E5QKz771vslsJU6XxlN5+v4ZUXDXBu4TQksys6lQFb+QANRyPNVHlMes8tsXs= Received: from AM6PR08MB3672.eurprd08.prod.outlook.com (20.177.115.76) by AM6PR08MB5079.eurprd08.prod.outlook.com (10.255.121.213) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1709.13; Thu, 14 Mar 2019 00:31:25 +0000 Received: from AM6PR08MB3672.eurprd08.prod.outlook.com ([fe80::4d90:78f1:e670:14d5]) by AM6PR08MB3672.eurprd08.prod.outlook.com ([fe80::4d90:78f1:e670:14d5%3]) with mapi id 15.20.1686.021; Thu, 14 Mar 2019 00:31:25 +0000 From: Honnappa Nagarahalli To: "jerinj@marvell.com" , "Gavin Hu (Arm Technology China)" , "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" , nd Thread-Topic: [EXT] [PATCH v8 3/3] spinlock: reimplement with atomic one-way barrier builtins Thread-Index: AQHU1YSJmx87sBuVNEKqZcZOtIR4ZKYIG7kAgAIxdCA= Date: Thu, 14 Mar 2019 00:31:25 +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=Honnappa.Nagarahalli@arm.com; x-originating-ip: [217.140.111.135] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e4121676-d670-4ff6-449a-08d6a8146469 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM6PR08MB5079; x-ms-traffictypediagnostic: AM6PR08MB5079: x-ms-exchange-purlcount: 2 x-ld-processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr nodisclaimer: True x-microsoft-antispam-prvs: x-forefront-prvs: 09760A0505 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(376002)(366004)(346002)(136003)(39860400002)(199004)(189003)(229853002)(99286004)(55016002)(66066001)(14454004)(316002)(26005)(6436002)(110136005)(76176011)(7696005)(6506007)(446003)(33656002)(486006)(476003)(102836004)(11346002)(54906003)(186003)(305945005)(6306002)(74316002)(7736002)(478600001)(68736007)(71200400001)(6116002)(71190400001)(3846002)(5660300002)(97736004)(81166006)(256004)(81156014)(86362001)(9686003)(4326008)(53936002)(966005)(14444005)(8936002)(72206003)(106356001)(2906002)(8676002)(2501003)(6246003)(105586002)(25786009)(52536014); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR08MB5079; H:AM6PR08MB3672.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: ZBaqpsx+XOg/tG4MCOi/Z4z0UTV3AuYIzqNRkTgCxONQ16dRF6wY2mcC6NrGjX/xW2AwfbEZ9jUPOHRbnEX+BHyL4JSo+0C4YQHVM3HznjD9WucEfXXVNDidAznsxSKPEFUWWV2UCnlV2swvw+El47Yc9/R8U/OaF4jgU0b6gOqrKeCf9ef9fhuMzfWVL/wUnRIzdkhEYNSn2Et4aMyK1bgLtcz8qp60FAaZNoWTFKtRHD9FiTYd9G2tgAHP+AONFT+PXZR+6AITOpxhAVD1hxW1wcTQu3OmC+9olSA3CR0d0VrxEfswppel33UKL9ySt8WtZ2IgcAXPqlAHmdm1W8e3eUcsMD8T4FPWKy93jMyw1mGC8TuzHVPxnB0yquVkxJDG6MxoKM+j5SgwP6/J07KZKOMsscxMMiYt2f3Xlnw= 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: e4121676-d670-4ff6-449a-08d6a8146469 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Mar 2019 00:31:25.6176 (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: AM6PR08MB5079 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: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