Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5235637rwb; Mon, 31 Jul 2023 22:00:22 -0700 (PDT) X-Google-Smtp-Source: APBJJlFa2P0PIy/M8syPId2ex9N3Ez5UTJvMfkmNd/KXBMfMoy3Wn7JtuRG45xRQjt5qGwpKDU1W X-Received: by 2002:a17:90a:a88e:b0:268:273e:b75d with SMTP id h14-20020a17090aa88e00b00268273eb75dmr10060099pjq.20.1690866022145; Mon, 31 Jul 2023 22:00:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690866022; cv=none; d=google.com; s=arc-20160816; b=0WjJbwhOQW23QyEb2dgzuISO81pvJxDuI+LCZoXo1EPGob0N60KCfirlaPS1UPRwID VNKec6TgyzxbhbrwDUluxsftzwwKqf6x9v99K4DXkFw7C2Yz6oszLWmwM79x5gq2O1MY KthTK1W7fvXI25PWxiZ72MQRyA1Uui9X+x5Hk5yaPvT6DVaQJCZD6HWH22i/Zd2GDgpG nbSYkKY5pDv69Gnk1dY4EwXTw4p1CpMpmlGLUTX437Eotvrsrq/B/NWe5u/ONnoTqNBc 7/m99ITG5YmTxvsqbN1dHYHp1gMr7bXT5Mbo9F4ieivuiQJogQtYYpVRzvePwsY/pADk /Mlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=o5T+kQNuX4fm5oyHji4BaVyoYdYzeQvuWfMgaOEgsDI=; fh=q5cuyRxdp1lGljg87Y79PnLu85d9X214yFyhCpoNIgI=; b=P4mGGH2u+ChrJ5P9bB70PW+jAL7mpeFIBoTO015BKX1sBkbohTeIdPGUW3nvEjLVBl lXwKW3uGiXHCL4h+7AQ6N3w46eG6JTOrwZfv+O5vfQ7PBzeNhR7YnEjy/Uhk3x9HI3G8 yDo0y5yk8hsPpOiplRx+9RIk250eku3qqUqkG1yqXWTUes5fJSLhrAekTjcUFp8xwmqJ t6ENErdBqFfGx8d7e2x2BcO4Hc0l+G4xFmAnZG8R68dLFQajyanVJgo9XaKaoLRRuWfw oZJ9utNfvi0Xkqc+yKJyeR0FpXEDNHX6xKCedhG7pim9XiGBExH8qArG//noQdhoAIfx jNZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=EWqvVrxi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e6-20020a170902cf4600b001bbc7b6492fsi8346792plg.8.2023.07.31.22.00.08; Mon, 31 Jul 2023 22:00:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=EWqvVrxi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229920AbjHADLR (ORCPT + 99 others); Mon, 31 Jul 2023 23:11:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229500AbjHADLQ (ORCPT ); Mon, 31 Jul 2023 23:11:16 -0400 Received: from xry111.site (xry111.site [IPv6:2001:470:683e::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B8CB19B0 for ; Mon, 31 Jul 2023 20:11:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1690859472; bh=o5T+kQNuX4fm5oyHji4BaVyoYdYzeQvuWfMgaOEgsDI=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=EWqvVrxikyW8hDHE1M0bLV4dBqFku6M5JFxdkgExjh7V77P1QoTCtCX4zWjjg73Pr 6Bp+lbzY4tT9Q4m9YpVlcv/1q7amCHf9BsrXXPUMZR6CRtZcQbjidfOm1Jwl7QVazx AIsGZtocu/lItXMvJR45uPjQSeJ6NCp+9S7w3jkE= Received: from [IPv6:240e:358:11f9:8b00:dc73:854d:832e:3] (unknown [IPv6:240e:358:11f9:8b00:dc73:854d:832e:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 75EA46599C; Mon, 31 Jul 2023 23:11:02 -0400 (EDT) Message-ID: <8573346a40ff1490cdc15d5e11d982a06e98d3bb.camel@xry111.site> Subject: Re: [PATCH] LoongArch: Fixup cmpxchg sematic for memory barrier From: Xi Ruoyao To: guoren@kernel.org, chenhuacai@kernel.or, kernel@xen0n.name, arnd@arndb.de, andi.shyti@linux.intel.com, wangrui@loongson.cn, andrzej.hajda@intel.com, peterz@infradead.org, will@kernel.org, boqun.feng@gmail.com, mark.rutland@arm.com Cc: loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, Guo Ren Date: Tue, 01 Aug 2023 11:10:55 +0800 In-Reply-To: <20230801011554.3950435-1-guoren@kernel.org> References: <20230801011554.3950435-1-guoren@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 User-Agent: Evolution 3.48.4 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gTW9uLCAyMDIzLTA3LTMxIGF0IDIxOjE1IC0wNDAwLCBndW9yZW5Aa2VybmVsLm9yZyB3cm90 ZToKPiBGcm9tOiBHdW8gUmVuIDxndW9yZW5AbGludXguYWxpYmFiYS5jb20+Cj4gCj4gV2hlbiBj bXB4Y2hnIGZhaWxlZCwgbm8gbWVtb3J5IGJhcnJpZXIgd2FzIG5lZWRlZCB0byB0YWtlLiBPbmx5 Cj4gd2hlbiBjbXB4Y2hnIHN1Y2Nlc3MgYW5kIHRoZSBuZXcgdmFsdWUgaXMgd3JpdHRlbiwgdGhl biB0aGUgbWVtb3J5Cj4gYmFycmllcnMgbmVlZGVkLgo+IAo+IMKgLSBjbXB4Y2hnX2FzbTrCoMKg IFVubmVjZXNzYXJ5IF9fV0VBS19MTFNDX1dCIGZvciB0aGUgZmFpbCBwYXRoIHdvdWxkCj4gwqDC oMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoCByZWR1Y2UgdGhlIHBlcmZvcm1hbmNlIG9m IHRoZSBjbXB4Y2hnIGxvb3AgdHJ5aW5nLgoKSSdtIG5vdCBhbiBleHBlcnQgaW4gbWVtb3J5IG1v ZGVscywgYnV0IGluIHByYWN0aWNlIHRoaXMgYmFycmllciBpcwpyZWFsbHkgbmVlZGVkIG9yIGNt cHhjaGcgd2lsbCBiZSAibm90IGF0b21pYyIuICBTZWUKaHR0cHM6Ly9sb3JlLmtlcm5lbC5vcmcv bGludXgtbWlwcy8xZDQ5ZGExMS01MWQ1LWUxNDgtY2IwMi05YmQwZWU1N2ZhZTZAZmx5Z29hdC5j b20vLgoKPiDCoC0gY21weGNoZ19zbWFsbDogTWlzcyBhbiBuZWNlc3Nhc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