Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1083691rdh; Fri, 24 Nov 2023 05:05:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IH0Odnye77+WzyyfySspootXaio3Q85jwi4tY/n+VPy9QGv3w/7gteTvq71MQnDXvkfYdfI X-Received: by 2002:a05:6820:1694:b0:58a:7c8d:9562 with SMTP id bc20-20020a056820169400b0058a7c8d9562mr2409103oob.2.1700831149279; Fri, 24 Nov 2023 05:05:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700831149; cv=none; d=google.com; s=arc-20160816; b=v8yM14UxMi34v7GKWcVN0ugPCUB9EPEbWmZQjOG2ze2eaZt3yHqdVmuaWA2F2n6cNT qouz4fXE8GMB+Pg1wdN1lo7+kfy1E5lQqQo+chMKBoODoHflg1TUcbUzRyqawgAvYKLy eOYz1EMs4WvlmMvzAjtqMkHxgpT2JJiaLEAiRkMWVCe1IGu7/iKIVzdQcvwAp4PC1b6p zjoUxO2SsB3p2b/kj9HLWqWXW6mQm9lknbwtqLkL93vBy6YtSysEFmFogzIUEaY/+bN7 IiCs7q8G8VXnpZtviXWx7SKJttWuUJCPIPDxxAY79wikAuhD6CxmZ3D5dj8Vftlna9mC TQog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=6Y8qQKiNapfxIiyPU0awITssjjLEv8Lqe9dkOsuewfU=; fh=0LPfgQdm6sVttivYbJUQT8oYsYP8Vz2p6oF9fPhnABk=; b=IVoKTKsz3v5MYoIZ3thkWlpz+bXojLlsj7wRqpeGOpT47ECk4oJTrSHwl8cb3Dh/dC /TJXfFePH+XmmXPJa+Teqp67GGCIRBdEbRgwXIF80NksIA60yWyKfQG1Fv+RVVSSSNsl hczZ5FoD7u5a0DTCwGlqTragjTHDncuM0QBMbzcRG/2lMnSmxcc4mrc+qc/QeTxFgON/ mROW8JXxRXJ5A7d4u2Hhq4QU4CQR8NG3dBh2KY35kUkFp2k8y6GbgZGx/ev7YwLvEA5W B505bIEeUr3FxkVOE6QVD7Uyd2w2pHo9RpvdZSvW8OEa2K2PajmM+LBGIxwue9CO/27b Q3bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=Muf2VTyw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id g23-20020a4a2517000000b0058cf95b12a1si1124489ooa.100.2023.11.24.05.05.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 05:05:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=Muf2VTyw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 512D680AE56A; Fri, 24 Nov 2023 05:05:44 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345207AbjKXNF0 (ORCPT + 99 others); Fri, 24 Nov 2023 08:05:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230439AbjKXNFY (ORCPT ); Fri, 24 Nov 2023 08:05:24 -0500 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0279D71; Fri, 24 Nov 2023 05:05:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ellerman.id.au; s=201909; t=1700831128; bh=6Y8qQKiNapfxIiyPU0awITssjjLEv8Lqe9dkOsuewfU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Muf2VTywqEgHzegB/nAYDtxju24jHb7b6xljhCIq+59yo1LqKOiMI8hHN6TIOQj/t JOZD4Ol4zOUuz//nId6dzwBldfv9dLBQoc4UI5Dp3ykNfbtRGTdZzdEzf9Y6v0Wg1O 0VXZwf9FDnMLX+W/BaGAdfkK1N0pQBZKgeAA33boLATaOM+7T7QOo3aNyvWElDUhN2 jmnA8eUVZfkfo9aeoHFOMrzbRMCT4mu+SyCm18IPUmCOPybpxWQ4rJsG6sKGgTwQBt ewBl8pQYuqBGWOSUCH2d7wN8BzI3M2I5i/g2OjApQ8plVpz84DtFeRrbzd0DwlcHVz pa11Xh/2NXhTQ== Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4ScFZm6CGZz4xNt; Sat, 25 Nov 2023 00:05:20 +1100 (AEDT) From: Michael Ellerman To: Peter Zijlstra , Jonas Oberhauser Cc: Christoph Muellner , linux-riscv@lists.infradead.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Palmer Dabbelt , Paul Walmsley , Albert Ou , Andrew Morton , Shuah Khan , Jonathan Corbet , Anup Patel , Philipp Tomsich , Andrew Jones , Guo Ren , Daniel Henrique Barboza , Conor Dooley , =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= , Alan Stern , Andrea Parri , Will Deacon , Daniel Lustig Subject: Re: [RFC PATCH 0/5] RISC-V: Add dynamic TSO support In-Reply-To: <20231124115430.GS3818@noisy.programming.kicks-ass.net> References: <20231124072142.2786653-1-christoph.muellner@vrull.eu> <20231124101519.GP3818@noisy.programming.kicks-ass.net> <59da3e41-abb3-405a-8f98-c74bdf26935b@huaweicloud.com> <20231124115430.GS3818@noisy.programming.kicks-ass.net> Date: Sat, 25 Nov 2023 00:05:16 +1100 Message-ID: <87plzzqp2r.fsf@mail.lhotse> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Fri, 24 Nov 2023 05:05:44 -0800 (PST) Peter Zijlstra writes: > On Fri, Nov 24, 2023 at 12:04:09PM +0100, Jonas Oberhauser wrote: > >> > I think ARM64 approached this problem by adding the >> > load-acquire/store-release instructions and for TSO based code, >> > translate into those (eg. x86 -> arm64 transpilers). >> >> >> Although those instructions have a bit more ordering constraints. >> >> I have heard rumors that the apple chips also have a register that can be >> set at runtime. > > Oh, I thought they made do with the load-acquire/store-release thingies. > But to be fair, I haven't been paying *that* much attention to the apple > stuff. > > I did read about how they fudged some of the x86 flags thing. > >> And there are some IBM machines that have a setting, but not sure how it is >> controlled. > > Cute, I'm assuming this is the Power series (s390 already being TSO)? I > wasn't aware they had this. Are you referring to Strong Access Ordering? That is a per-page attribute, not a CPU mode, and was removed in ISA v3.1 anyway. cheers