From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 4B06644C3; Tue, 12 Mar 2019 15:53:54 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x2CEniKm014084; Tue, 12 Mar 2019 07:53:50 -0700 Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-0016f401.pphosted.com with ESMTP id 2r69g01386-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 12 Mar 2019 07:53:50 -0700 Received: from m0045851.ppops.net (m0045851.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.27/8.16.0.27) with SMTP id x2CErnnT017356; Tue, 12 Mar 2019 07:53:49 -0700 Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0b-0016f401.pphosted.com with ESMTP id 2r69g01381-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 12 Mar 2019 07:53:49 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Tue, 12 Mar 2019 07:53:48 -0700 Received: from NAM03-CO1-obe.outbound.protection.outlook.com (104.47.40.52) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Tue, 12 Mar 2019 07:53:47 -0700 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=vSGXTNsD6B7rz1mqqmEEFC2LlE/6DS9eaYcH/vde7D0=; b=Tq3G2yT51MRgVVP9nmzkpbm6fGUqCZ4ByODRVLi63w06mgzVLHj56QFoT2U4TOmG6CVxP0wE3tsiPDprouEo7xf3Pnlftdje94CcRWufsemcnzgdQmicCOmj577pKNy02pxEFSlppFRYjMURSexPhGpyGQv2A+HsyVCgXqD9nI8= Received: from BYAPR18MB2424.namprd18.prod.outlook.com (20.179.91.149) by BYAPR18MB2696.namprd18.prod.outlook.com (20.178.207.225) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1709.13; Tue, 12 Mar 2019 14:53:42 +0000 Received: from BYAPR18MB2424.namprd18.prod.outlook.com ([fe80::2cce:b981:61da:f92b]) by BYAPR18MB2424.namprd18.prod.outlook.com ([fe80::2cce:b981:61da:f92b%2]) with mapi id 15.20.1686.021; Tue, 12 Mar 2019 14:53:42 +0000 From: Jerin Jacob Kollanukkaran To: "gavin.hu@arm.com" , "dev@dpdk.org" CC: "i.maximets@samsung.com" , "chaozhu@linux.vnet.ibm.com" , "nd@arm.com" , "nipun.gupta@nxp.com" , "thomas@monjalon.net" , "hemant.agrawal@nxp.com" , "stable@dpdk.org" , "Honnappa.Nagarahalli@arm.com" Thread-Topic: [EXT] [PATCH v8 3/3] spinlock: reimplement with atomic one-way barrier builtins Thread-Index: AQHU1YSJmx87sBuVNEKqZcZOtIR4ZKYIG7kA Date: Tue, 12 Mar 2019 14:53:41 +0000 Message-ID: References: <20181220104246.5590-1-gavin.hu@arm.com> <1552031797-146710-4-git-send-email-gavin.hu@arm.com> In-Reply-To: <1552031797-146710-4-git-send-email-gavin.hu@arm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [106.200.236.159] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b5d83794-3809-4492-f4d4-08d6a6fa84dd x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(2017052603328)(7153060)(7193020); SRVR:BYAPR18MB2696; x-ms-traffictypediagnostic: BYAPR18MB2696: x-microsoft-antispam-prvs: x-forefront-prvs: 09749A275C x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(136003)(396003)(376002)(346002)(366004)(199004)(189003)(81156014)(66066001)(2501003)(81166006)(446003)(36756003)(186003)(486006)(476003)(7416002)(11346002)(2616005)(4326008)(118296001)(7736002)(53936002)(97736004)(6246003)(25786009)(8676002)(305945005)(6512007)(5660300002)(99286004)(71190400001)(71200400001)(6506007)(68736007)(76176011)(478600001)(6116002)(3846002)(8936002)(2906002)(14454004)(6486002)(106356001)(86362001)(54906003)(316002)(110136005)(14444005)(6436002)(256004)(26005)(102836004)(229853002)(105586002); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR18MB2696; H:BYAPR18MB2424.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX: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: a6yjXBc/37+1KeWextYSPEhOHNCXb7WP+6vkDX/Q/a3jzEQoWf/1MPk+dzCj81PbhD4sZV/a5GFgPqc/qARf4yNwDa9X6Fg6qPwiXgN9uz/S77HeuIGCi/MpoYOPdHB53k+JUpt9sH6vpSPeGKPNd0bmcWWPp7YI7Rx5CYobYWE4u1DFSOWoFT5u5u7kd3WXRM2swUdSC6DKZnZ2JvuxWK0xgnO1AHITit1yFVQiSF2Ku5It1Xm4RjrEqr4HtOT3KOL3NkaDis2GXmkiak8LM2+NmZRatcOA7T0mf9OD/FGD0steZHY0WOkEM1KY4g6woMAV/BsopzPwu4Md0uP/mCgnDFfmkrFurzoGY7+AKJGZ+KhMWNSl2R16awEi9EDZ1YlAGdnnZ9HWyUQdZLAjaI2hpcJmqkTCfqfOwXFEEWk= Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: b5d83794-3809-4492-f4d4-08d6a6fa84dd X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Mar 2019 14:53:41.9486 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR18MB2696 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-03-12_08:, , signatures=0 Subject: Re: [dpdk-stable] [EXT] [PATCH v8 3/3] spinlock: reimplement with atomic one-way barrier builtins X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Mar 2019 14:53:54 -0000 T24gRnJpLCAyMDE5LTAzLTA4IGF0IDE1OjU2ICswODAwLCBHYXZpbiBIdSB3cm90ZToNCj4gLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLQ0KPiAtLS0NCj4gVGhlIF9fc3luYyBidWlsdGluIGJhc2VkIGltcGxlbWVudGF0aW9u IGdlbmVyYXRlcyBmdWxsIG1lbW9yeQ0KPiBiYXJyaWVycw0KPiAoJ2RtYiBpc2gnKSBvbiBBcm0g cGxhdGZvcm1zLiBVc2luZyBDMTEgYXRvbWljIGJ1aWx0aW5zIHRvIGdlbmVyYXRlDQo+IG9uZSB3 YXkNCj4gYmFycmllcnMuDQo+IA0KPiANCj4gIGxpYi9saWJydGVfZWFsL2NvbW1vbi9pbmNsdWRl L2dlbmVyaWMvcnRlX3NwaW5sb2NrLmggfCAxOA0KPiArKysrKysrKysrKysrLS0tLS0NCj4gIDEg ZmlsZSBjaG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