Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1662894yba; Thu, 25 Apr 2019 03:44:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqzC0JDGc6Pq7u+paKEzP9BsYIpN+pX7pg8ENtQZmYw8/+uotzQjYRTQHIrpkjVQk7MPa0DE X-Received: by 2002:a63:ee01:: with SMTP id e1mr26288087pgi.20.1556189066204; Thu, 25 Apr 2019 03:44:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556189066; cv=none; d=google.com; s=arc-20160816; b=dY+mdvIZV/ctY88vJsd0GdYcLPOwa3fQrMsBG+Pld6FnkL8w+276R6+z1umAsU83Fx z/9w6isRdN8tLG+FbrvYrk65RQFtnoff5Qt43FNzRUwD0jDHWe5Vz55A6rVsUja7ddKo m87q2/g/mNWca04zRlFzC71HBa2TZDqC8wOz6jgAk6xp8zB4yJIPEUuqKeZaLvtbUnIo hBGBbCQRFcB+PkUVIMKV8Jf3x+3DgrNdzIvkcrPmyrPdORPHJ4k/KCZl1sw4cb/g8AJk QKu02lRR3jngSE74JgdKwM1EWDVe6O+6eCpet5VC/KuKdCDArfn6VzdLhmcK5iwcTDB6 eC6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:mime-version :content-transfer-encoding:references:in-reply-to:subject:cc:to:from :date; bh=LLusYNpZyYB8J6zKcDUlDMFCjmvE7A/U803ICoMZ8MU=; b=MP7BTOSP8M62Ia/NgqzUtmuhAb56Cz4m10PqJjaBsatH6+WQQIcnWNfDUIDDbjif5J li0awjxOdr6dXhz5PWFhxOaSYg3x+kh+WlD+vtdo55n3gKhhhrP7e9sJq8W1jZCEJntx H42SK3O/JPGAyDfEVe9CZaXoONV1czTMOzyyBqLEALEvUWXJgrL+zfoQYMOa+tIIH7CO /5FZGMulnSaM7IfqUZ+n4toOvTCGXicqHIrh/vp8qQGMGM2enl4JjTpd2wHGbDSSIW84 dd7hAkhqc40DS44dOl0wbFUr1LCnjL5wiXfbI5++qe+Yu1saVKITYsLunr5p63RUNHCw bZog== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cl15si22228841plb.117.2019.04.25.03.44.11; Thu, 25 Apr 2019 03:44:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728961AbfDYFKh (ORCPT + 99 others); Thu, 25 Apr 2019 01:10:37 -0400 Received: from mail.loongson.cn ([114.242.206.163]:49482 "EHLO mail.loongson.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727254AbfDYFKg (ORCPT ); Thu, 25 Apr 2019 01:10:36 -0400 X-Greylist: delayed 635 seconds by postgrey-1.27 at vger.kernel.org; Thu, 25 Apr 2019 01:10:35 EDT Received: by ajax-webmail-mail (Coremail) ; Thu, 25 Apr 2019 12:58:50 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 X-Originating-IP: [222.210.139.220] Date: Thu, 25 Apr 2019 12:58:50 +0800 (GMT+08:00) From: huangpei@loongson.cn To: "Paul Burton" Cc: "Peter Zijlstra" , "stern@rowland.harvard.edu" , "akiyks@gmail.com" , "andrea.parri@amarulasolutions.com" , "boqun.feng@gmail.com" , "dlustig@nvidia.com" , "dhowells@redhat.com" , "j.alglave@ucl.ac.uk" , "luc.maranget@inria.fr" , "npiggin@gmail.com" , "paulmck@linux.ibm.com" , "will.deacon@arm.com" , "linux-kernel@vger.kernel.org" , "torvalds@linux-foundation.org" , "Huacai Chen" Subject: Re: Re: [RFC][PATCH 2/5] mips/atomic: Fix loongson_llsc_mb() wreckage X-Priority: 3 X-Mailer: Coremail Webmail Server Version XT3.0.6a_preview build 20150605(69773.7394) Copyright (c) 2002-2019 www.mailtech.cn loongson In-Reply-To: <20190424211759.52xraajqwudc2fza@pburton-laptop> References: <20190424123656.484227701@infradead.org> <20190424124421.636767843@infradead.org> <20190424211759.52xraajqwudc2fza@pburton-laptop> X-SendMailWithSms: false Content-Transfer-Encoding: base64 X-CM-CTRLDATA: uVvNfmZvb3Rlcl90eHQ9NDMzNjo3MzQ= Content-Type: text/plain; charset=UTF-8 MIME-Version: 1.0 Message-ID: <2b2b07cc.bf42.16a52dc4e4d.Coremail.huangpei@loongson.cn> X-CM-TRANSID: QMiowPDxpuSKPsFctH7JAA--.11140W X-CM-SenderInfo: xkxd0whshlqz5rrqw2lrqou0/1tbiAQALAVEBqdXGLQAAsM X-Coremail-Antispam: 1Ur529EdanIXcx71UUUUU7IcSsGvfJ3iIAIbVAYjsxI4VWkCw CS07vEb4IE77IF4wCS07vE1I0E4x80FVAKz4kxMIAIbVAFxVCaYxvI4VCIwcAKzIAtYxBI daVFxhVjvjDU= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SW4gbXkgb3Bpbmlvbi4gcGF0Y2ggMi8zIGlzIGFib3V0IExvb25nc29uJ3MgYnVnLCBhbmQgcGF0 Y2ggNC81IGlzIGFub3RoZXIgdGhlbWUuIA0KDQpMZXQgbWUgZXhwbGFpbiB0aGUgYnVnIG1vcmUg c3BlY2lmaWM6DQoNCnRoZSBidWcgT05MWSBtYXR0ZXJzIGluIGZvbGxvd2luZyBzaXR1YXRpb246 DQoNCiMuIG1vcmUgdGhhbiBvbmUgY3B1IChhc3N1bWUgY3B1IEEgYW5kIEIpIGRvaW5nIGxsL3Nj IG9uIHNhbWU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