Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1512769rwe; Sat, 27 Aug 2022 09:42:06 -0700 (PDT) X-Google-Smtp-Source: AA6agR7NQN1sI9vzXYXTzgpLE2Vw0cAX4VrVKl+r7etrK997IUBl409C+PyandxRaj1DDOCYcl+w X-Received: by 2002:a17:907:743:b0:740:ef93:2ffc with SMTP id xc3-20020a170907074300b00740ef932ffcmr4505208ejb.514.1661618526540; Sat, 27 Aug 2022 09:42:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661618526; cv=none; d=google.com; s=arc-20160816; b=jhBSl0FszkLTqIAoUXtckuxjQ4jcx/aog+eBp6NK5pADHrZ7fFUPRsC/wd+uVs6ez8 KptKxSj5BoEQ956QZdLC/32uQ0H5M/U6UzeokW8B4rVr5biNoHmsJ3n2lf1sYLDuPziJ NxVKo0U6ReWeAB6HG9m6+XOmzFMKg7HCYPtx4mCEQqMgeMAYNxmSmSvj8KxILawYr4ff GtqBz/jIR/y2UjEJ5H8NtkycOk6dIcTLty2ULRbQfbqnoXnYVD56DQsRyNvxVvH0xlDy d3FaL5NaHYANT4RhQuyfBn6wfwEMruZilnMO/lmsIINTlYs6IBe070/vfb7P2fS5T7iv icew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=UoP5x9TSD8b+RmHK+xrdJFrRITG40jucV3AWk4bUwxE=; b=fBXuoCqApXGLGimLRuTzKViV3tPsJ6j0KVKthhYycwuKpp95n+3GIiHn/1zghwS8ta RfwdH1GOOGFg5s14yI21z8GWTKYOaO7rUYb6WxFENOimzr/vRJDUxHbH0d+P1UIoZm6+ yQ6N1Ecr38jg/P7OyfbUll/2iMP3DU3n7pk0UMlyS6mTrpN7ytYRzqn8Nyww6II7I2HI yY2kvAjVGKcEV8OtmLgYgeQvF9Iycr8RBiHPRR9DhqGqvh96zIa1hKL1OTp471MYpOn0 JK4StJElIqhzHl6nHcNvLDiNd0/rlD8S/WIm4bYLXAgRlj/yofoMnJeMiuR6/zjKTnBU itpw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o16-20020a170906975000b0073099685059si3753083ejy.591.2022.08.27.09.41.38; Sat, 27 Aug 2022 09:42:06 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233308AbiH0QFh (ORCPT + 99 others); Sat, 27 Aug 2022 12:05:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231920AbiH0QFf (ORCPT ); Sat, 27 Aug 2022 12:05:35 -0400 Received: from netrider.rowland.org (netrider.rowland.org [192.131.102.5]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 1B70F1ADB3 for ; Sat, 27 Aug 2022 09:05:34 -0700 (PDT) Received: (qmail 70715 invoked by uid 1000); 27 Aug 2022 12:05:33 -0400 Date: Sat, 27 Aug 2022 12:05:33 -0400 From: Alan Stern To: Peter Zijlstra Cc: "Paul E. McKenney" , parri.andrea@gmail.com, will@kernel.org, boqun.feng@gmail.com, npiggin@gmail.com, dhowells@redhat.com, j.alglave@ucl.ac.uk, luc.maranget@inria.fr, akiyks@gmail.com, dlustig@nvidia.com, joel@joelfernandes.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org Subject: Re: "Verifying and Optimizing Compact NUMA-Aware Locks on Weak Memory Models" Message-ID: References: <20220826124812.GA3007435@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 On Sat, Aug 27, 2022 at 01:47:48AM +0200, Peter Zijlstra wrote: > On Fri, Aug 26, 2022 at 01:10:39PM -0400, Alan Stern wrote: > > > > - some babbling about a missing propagation -- ISTR Linux if stuffed > > > full of them, specifically we require stores to auto propagate > > > without help from barriers > > > > Not a missing propagation; a late one. > > > > Don't understand what you mean by "auto propagate without help from > > barriers". > > Linux hard relies on: > > CPU0 CPU1 > > WRITE_ONCE(foo, 1); while (!READ_ONCE(foo)); > > making forward progress. Indeed yes. As far as I can tell, this requirement is not explicitly mentioned in the LKMM, although it certainly is implicit. I can't even think of a way to express it in a form Herd could verify. > There were a few 'funny' uarchs that were broken, see for example commit > a30718868915f. Ha! That commit should be a lesson in something, although I'm not sure what. :-) Alan