Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1428148rdh; Fri, 27 Oct 2023 14:08:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEnRUtbmZKIQR/fTzg17Vf8j9cMt5JrrBeeUGDicTkj4gzUQKKc4s4bQeRfow9l2casLKyN X-Received: by 2002:a81:410d:0:b0:5a7:ba17:15ac with SMTP id o13-20020a81410d000000b005a7ba1715acmr3837209ywa.41.1698440903433; Fri, 27 Oct 2023 14:08:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698440903; cv=none; d=google.com; s=arc-20160816; b=y3Y5wusslZgvEWPlTcQCC91/cbTQhr8Yg/33aJyBfi0UVVOvpBxWxwIbV8mXJbju1b QjPyImDZRHe2C2jxba6YK6bt+HWRG6TkYi9EIllHMKA9F8bWbjkoetHqRoZDGxFRtXsJ EEI/mhmCIh1PI8AD9Svqm+xbK11xAeK15FfhDgBO4hPQyq0O8kg+OGuoTL5TYz6UtlMo aLJaOND5MTGCIGiCDsS9E0aqTao9QQF0eOu8a2NMnK4Utz/9HHeQgyBsBo4MHIe3cvLZ a9HEdvMWzC7VK+0c1aC7YdyaJbxwsvck0lGKBV+HfdAyiygJr2Py/Q7J2Ec5LEcbtPxI pK3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:reply-to :message-id:subject:cc:to:from:date:dkim-signature; bh=1o0COSaHq5dKko4R9SO0rJ2SmzUto5kmpocB+QI7JYg=; fh=VsFaTMrCwOHvow6Hr5AEBmNxQpoV+aTEIdzRafghyE8=; b=GCgx+O/Onk7ir1VJhLFl5efjQwLzkErcnpUF1dqhmf75U1CpQXTpdEEAJnGm8bx3l+ jS1k2L2suGdhna7pQITKMKApd0EkgdjqgK4fKoryeHw6f0Sc36Va595lKgocWFZsgcAx 2YTyKe71ws4r0uSP4UuM9+rUECUGfudNsHW3lJWWg24pL8Fjo0kwxSzNdLFvujsFq9Xy yV8ttBAKwUtcs06gTOs8wXf0nFIge5U8BxHh/DjeS4cQij/GrQDbt7Rncal62OVrlJx5 hhphc0bqw3MiyGoZcklQQevrYI7bnc6Bg26mtqY5wk7lWwto4cyqbZHPMsoH09q/18Y0 DOyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="ErnTMBy/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id h188-20020a816cc5000000b0059262118d98si3490095ywc.570.2023.10.27.14.08.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 14:08:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="ErnTMBy/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 2B13183792F3; Fri, 27 Oct 2023 14:08:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232642AbjJ0VIV (ORCPT + 99 others); Fri, 27 Oct 2023 17:08:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230451AbjJ0VIU (ORCPT ); Fri, 27 Oct 2023 17:08:20 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7731B1B8; Fri, 27 Oct 2023 14:08:15 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED75BC433C8; Fri, 27 Oct 2023 21:08:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698440895; bh=JVg9o8t4kx7NkmThvEj5qCPKC7jZ1L/iglby5Zilnkg=; h=Date:From:To:Cc:Subject:Reply-To:From; b=ErnTMBy/oxMpX/l8GXxZU1fVuG6ioNxq91y3LTCvU+7/SnZlaFfBuT3moteliFEl9 Ep6ezq69YDQoxqYQJ2FgAfj99Us/c7XJP+/aWjDNP7sJ42ZbcWlufebe2xSfskggJ0 KC1WMd1G58gD5vXCu8VME+84xhUMpySMMPMRgamumvVtduEzaK3HHAdofV3Te8LvIy uorycD+VRHqeggKLTiA6NtvgY3mcUzypvZ8R0TPIEf6NfeqD089ua3BGFigErOp69C Wfc3M4tMg7GuDVMCcJjWuM8JA07x8gnk/g4Ud/jSERCY+hZxrZT8LshaK764GfAYN1 r1wUxFp2UBv9A== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id C5ECECE0F11; Fri, 27 Oct 2023 14:08:13 -0700 (PDT) Date: Fri, 27 Oct 2023 14:08:13 -0700 From: "Paul E. McKenney" To: j.alglave@ucl.ac.uk, will@kernel.org, catalin.marinas@arm.com, linux@armlinux.org.uk, mpe@ellerman.id.au, npiggin@gmail.com, palmer@dabbelt.com, parri.andrea@gmail.com Cc: linux-kernel@vger.kernel.org, linux-toolchains@vger.kernel.org, peterz@infradead.org, boqun.feng@gmail.com, davidtgoldblatt@gmail.com Subject: Fw: [isocpp-parallel] OOTA fix (via fake branch-after-load) discussion Message-ID: Reply-To: paulmck@kernel.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 27 Oct 2023 14:08:22 -0700 (PDT) Hello! FYI, unless someone complains, it is quite likely that C++ (and thus likely C) compilers and standards will enforce Hans Boehm's proposal for ordering relaxed loads before relaxed stores. The document [1] cites "Bounding data races in space and time" by Dolan et al. [2], and notes an "average a 2.x% slow down" for ARMv8 and PowerPC. In the past, this has been considered unacceptable, among other things, due to the fact that this issue is strictly theoretical. This would not (repeat, not) affect the current Linux kernel, which relies on volatile loads and stores rather than C/C++ atomics. To be clear, the initial proposal is not to change the standards, but rather to add a command-line argument to enforce the stronger ordering. However, given the long list of ARM-related folks in the Acknowledgments section, the future direction is clear. So, do any ARMv8, PowerPC, or RISC-V people still care? If so, I strongly recommend speaking up. ;-) Thanx, Paul [1] https://lukegeeson.com/blog/2023-10-17-A-Proposal-For-Relaxed-Atomics/ [2] https://dl.acm.org/doi/10.1145/3192366.3192421 ----- Forwarded message from David Goldblatt via Parallel ----- Date: Fri, 27 Oct 2023 11:09:18 -0700 From: David Goldblatt via Parallel To: SG1 concurrency and parallelism Reply-To: parallel@lists.isocpp.org Cc: David Goldblatt Subject: [isocpp-parallel] OOTA fix (via fake branch-after-load) discussion Those who read this list but not the LLVM discourse might be interested in: - This discussion, proposing `-mstrict-rlx-atomics`: https://discourse.llvm.org/t/rfc-strengthen-relaxed-atomics-implementation-behind-mstrict-rlx-atomics-flag/74473 to enforce load-store ordering - The associated blog post here: https://lukegeeson.com/blog/2023-10-17-A-Proposal-For-Relaxed-Atomics/ - David _______________________________________________ Parallel mailing list Parallel@lists.isocpp.org Subscription: https://lists.isocpp.org/mailman/listinfo.cgi/parallel Link to this post: http://lists.isocpp.org/parallel/2023/10/4151.php ----- End forwarded message -----