From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 481E037B7 for ; Thu, 27 Dec 2018 08:42:28 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id wBR7dVnE005433; Wed, 26 Dec 2018 23:42:23 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=pfpt0818; bh=8hEhCstrU0HpgkH+wO7L5wqnocZShAo69kI9xPScMTY=; b=vGcaTf9SfRXD1LBOcVsac57gc2zpDkRxEMJQXXz8urXDq/6yoyRtnW3yOOhJVQNvT+1i bpW8oKyfDg8fYGDlxw+LOiMFgJPNM0Z+SwtzYR+EuT4lFyLKQIcYacAAdRznUk3xdq8Q 7rbzQ87u3326eOZTQhg0kot3CNMhlQZx7PqbK81Kzu4qh1gdK2vn0nixuuRXueX9xEZd bb3zgGEkQbZIOfZ0xeuY4vQJodxP2MdCsHgLzEo0A8682Gu4UdrYiuOlYrhV7CYMw+/5 dzV58oVbf1xpw95F4EtE7/oV7FacHjKLSiu4DM+04sVVu+EltGrWXO08z5hTBh4d8bhP LA== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0a-0016f401.pphosted.com with ESMTP id 2pm2ysx699-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 26 Dec 2018 23:42:23 -0800 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 26 Dec 2018 23:42:22 -0800 Received: from NAM03-BY2-obe.outbound.protection.outlook.com (104.47.42.55) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Wed, 26 Dec 2018 23:42:22 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8hEhCstrU0HpgkH+wO7L5wqnocZShAo69kI9xPScMTY=; b=W5Pn0C53Nxk13QlTaNGNbN1lFq/9zSCSTngU5SImU8FZzAx4SwBUhmerKap82gGffBhDwqEOO2fEtOlv07O+ESic9EQ9oJt41cuZKhQr2qdqUBYIkwFH52OLU+C23pShfrJhNqT5Ifhjunmiuk69EkcDhrm/Ec3x0CsNvorpWu8= Received: from BYAPR18MB2424.namprd18.prod.outlook.com (20.179.91.149) by BYAPR18MB2421.namprd18.prod.outlook.com (20.179.91.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1471.20; Thu, 27 Dec 2018 07:42:21 +0000 Received: from BYAPR18MB2424.namprd18.prod.outlook.com ([fe80::1d21:75dc:c1d9:65f1]) by BYAPR18MB2424.namprd18.prod.outlook.com ([fe80::1d21:75dc:c1d9:65f1%2]) with mapi id 15.20.1471.019; Thu, 27 Dec 2018 07:42:21 +0000 From: Jerin Jacob Kollanukkaran To: "gavin.hu@arm.com" , "dev@dpdk.org" CC: "david.marchand@redhat.com" , "chaozhu@linux.vnet.ibm.com" , "nd@arm.com" , "bruce.richardson@intel.com" , "thomas@monjalon.net" , "hemant.agrawal@nxp.com" , "stephen@networkplumber.org" , "Honnappa.Nagarahalli@arm.com" Thread-Topic: [EXT] [PATCH v3 5/6] spinlock: reimplement with atomic one-way barrier builtins Thread-Index: AQHUnZqud7oVI0KliEao/CrJe85DLKWSNC6A Date: Thu, 27 Dec 2018 07:42:21 +0000 Message-ID: References: <20181227041349.3058-1-gavin.hu@arm.com> <20181227041349.3058-6-gavin.hu@arm.com> In-Reply-To: <20181227041349.3058-6-gavin.hu@arm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [106.208.111.21] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; BYAPR18MB2421; 20:qNMzm8iI2M+oivkZG3/55P3YjUz2Dl97QW2JJyOl99Gkwli2rBlH7skQVFAQG/eEETlewlDQVAXmmPRhn8Xr3yAYxvyPVEPeJvrw1gvq8k7Xwzj2CwsfsPendQbByYMUURQFgp6N1T4gGEl0pHCSM0NbiTk2b7mXQZtTN/7IaaI= x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 8f5f79b9-5bf0-4ea4-30c2-08d66bced5a8 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:BYAPR18MB2421; x-ms-traffictypediagnostic: BYAPR18MB2421: x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(3230021)(908002)(999002)(5005026)(6040522)(2401047)(8121501046)(3231475)(944501520)(52105112)(10201501046)(93006095)(93001095)(3002001)(6041310)(20161123564045)(20161123560045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(201708071742011)(7699051)(76991095); SRVR:BYAPR18MB2421; BCL:0; PCL:0; RULEID:; SRVR:BYAPR18MB2421; x-forefront-prvs: 0899B47777 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(396003)(346002)(376002)(39850400004)(366004)(189003)(199004)(2906002)(105586002)(6512007)(14454004)(53936002)(2501003)(6246003)(478600001)(14444005)(256004)(25786009)(8676002)(106356001)(5660300001)(11346002)(26005)(446003)(4326008)(68736007)(54906003)(81156014)(78486014)(86362001)(8936002)(81166006)(476003)(102836004)(6436002)(305945005)(6486002)(4001150100001)(229853002)(186003)(66066001)(486006)(6506007)(110136005)(76176011)(97736004)(71200400001)(316002)(2616005)(7416002)(7736002)(6116002)(118296001)(3846002)(36756003)(71190400001)(99286004); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR18MB2421; H:BYAPR18MB2424.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: YyPMklJG0aDQDx/8MhfWUhWrZjS4l3GY3guTPFjqTl6S6FMv7j2zwr5RjHARUL668W4stq5O77yvvXNeLsxJJBglr94p9i5OenSh6t/DqE9P9CtRGfuEpPOhRRFnhc2oPDgixaaSarNx/g0G9O3QJudu4YY56bPpeznaK78BOM/AqNRbOBDLv7fmRSnfrSS1z0mEe6V9FknC/5nEuzZgIOWzSzprtoenmj2ogroPKvUjcWazIERnp74rFKHmB8M8VXmd/9alHRGXv8An+Vmz3+6U0EikA10jzz9tpuczPRaWyacesXx8HymUUTjcEvAm spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <1BD4D0BB9CF3CC429EEAA77DA843DC44@namprd18.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 8f5f79b9-5bf0-4ea4-30c2-08d66bced5a8 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Dec 2018 07:42:21.0127 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR18MB2421 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-12-27_05:, , signatures=0 X-Proofpoint-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=754 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1812270072 Subject: Re: [dpdk-dev] [EXT] [PATCH v3 5/6] 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: , X-List-Received-Date: Thu, 27 Dec 2018 07:42:28 -0000 T24gVGh1LCAyMDE4LTEyLTI3IGF0IDEyOjEzICswODAwLCBHYXZpbiBIdSB3cm90ZToNCi0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0NCj4gLS0tDQo+IFRoZSBfX3N5bmMgYnVpbHRpbiBiYXNlZCBpbXBsZW1lbnRhdGlvbiBn ZW5lcmF0ZXMgZnVsbCBtZW1vcnkNCj4gYmFycmllcnMNCj4gKCdkbWIgaXNoJykgb24gQXJtIHBs YXRmb3Jtcy4gVXNpbmcgQzExIGF0b21pYyBidWlsdGlucyB0byBnZW5lcmF0ZQ0KPiBvbmUgd2F5 DQo+IGJhcnJpZXJzLg0KPiANCj4gSGVyZSBpcyB0aGUgYXNzZW1ibHkgY29kZSBvZiBfX3N5bmNf Y29tcGFyZV9hbmRfc3dhcCBidWlsdGluLg0KPiBfX3N5bmNfYm9vbF9jb21wYXJlX2FuZF9zd2Fw KGRzdCwgZXhwLCBzcmMpOw0KPiAgICAweDAwMDAwMDAwMDA5MGYxYjAgPCsxNj46ICAgIGUwIDA3 IDQwIGY5IGxkciB4MCwgW3NwLCAjOF0NCj4gICAgMHgwMDAwMDAwMDAwOTBmMWI0IDwrMjA+OiAg ICBlMSAwZiA0MCA3OSBsZHJoICAgIHcxLCBbc3AsICM2XQ0K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