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 1D346A0565; Tue, 10 Mar 2020 10:38:48 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A8C471C012; Tue, 10 Mar 2020 10:38:47 +0100 (CET) Received: from huawei.com (szxga03-in.huawei.com [45.249.212.189]) by dpdk.org (Postfix) with ESMTP id 193711C002 for ; Tue, 10 Mar 2020 10:38:47 +0100 (CET) Received: from DGGEML404-HUB.china.huawei.com (unknown [172.30.72.57]) by Forcepoint Email with ESMTP id 3FA2E901B8CB052D4B91; Tue, 10 Mar 2020 17:38:45 +0800 (CST) Received: from DGGEML421-HUB.china.huawei.com (10.1.199.38) by DGGEML404-HUB.china.huawei.com (10.3.17.39) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 10 Mar 2020 17:38:44 +0800 Received: from DGGEML502-MBX.china.huawei.com ([169.254.2.18]) by dggeml421-hub.china.huawei.com ([10.1.199.38]) with mapi id 14.03.0439.000; Tue, 10 Mar 2020 17:38:37 +0800 From: Linhaifeng To: Jerin Jacob CC: Gavin Hu , "dev@dpdk.org" , "thomas@monjalon.net" , chenchanghu , xudingke , "Lilijun (Jerry)" , Honnappa Nagarahalli , Steve Capper , nd Thread-Topic: [PATCH v2] cycles: add isb before read cntvct_el0 Thread-Index: AQHV9rrLYRYotwsNGUSXPhE7KaDzfqhBj4hA Date: Tue, 10 Mar 2020 09:38:36 +0000 Message-ID: <4099DE2E54AFAD489356C6C9161D53339729F5C9@DGGEML502-MBX.china.huawei.com> References: <4099DE2E54AFAD489356C6C9161D53339729F575@DGGEML502-MBX.china.huawei.com> In-Reply-To: Accept-Language: en-GB, zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.133.215.248] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Subject: Re: [dpdk-dev] [PATCH v2] cycles: add isb before read cntvct_el0 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" DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogSmVyaW4gSmFjb2IgW21h aWx0bzpqZXJpbmphY29ia0BnbWFpbC5jb21dDQo+IFNlbnQ6IFR1ZXNkYXksIE1hcmNoIDEwLCAy MDIwIDU6MDMgUE0NCj4gVG86IExpbmhhaWZlbmcgPGhhaWZlbmcubGluQGh1YXdlaS5jb20+DQo+ IENjOiBHYXZpbiBIdSA8R2F2aW4uSHVAYXJtLmNvbT47IGRldkBkcGRrLm9yZzsgdGhvbWFzQG1v bmphbG9uLm5ldDsNCj4gY2hlbmNoYW5naHUgPGNoZW5jaGFuZ2h1QGh1YXdlaS5jb20+OyB4dWRp bmdrZQ0KPiA8eHVkaW5na2VAaHVhd2VpLmNvbT47IExpbGlqdW4gKEplcnJ5KSA8amVycnkubGls aWp1bkBodWF3ZWkuY29tPjsgSG9ubmFwcGENCj4gTmFnYXJhaGFsbGkgPEhvbm5hcHBhLk5hZ2Fy YWhhbGxpQGFybS5jb20+OyBTdGV2ZSBDYXBwZXINCj4gPFN0ZXZlLkNhcHBlckBhcm0uY29tPjsg bmQgPG5kQGFybS5jb20+DQo+IFN1YmplY3Q6IFJlOiBbUEFUQ0ggdjJdIGN5Y2xlczogYWRkIGlz YiBiZWZvcmUgcmVhZCBjbnR2Y3RfZWwwDQo+IA0KPiBPbiBUdWUsIE1hciAxMCwgMjAyMCBhdCAx OjM5IFBNIExpbmhhaWZlbmcgPGhhaWZlbmcubGluQGh1YXdlaS5jb20+IHdyb3RlOg0KPiANCj4g UGxlYXNlIGNoYW5nZSB0aGUgc3ViamVjdCB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