Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp1146704rwb; Sat, 3 Sep 2022 09:14:25 -0700 (PDT) X-Google-Smtp-Source: AA6agR4yLpY1sYkN+KdzcHiOARsFo176BqqPO9+BSayX/wArez7CIwLWsokRxXXCkGW2U2A7mA7o X-Received: by 2002:a17:902:f542:b0:175:32e0:1e32 with SMTP id h2-20020a170902f54200b0017532e01e32mr21229261plf.170.1662221665147; Sat, 03 Sep 2022 09:14:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662221665; cv=none; d=google.com; s=arc-20160816; b=nkcnz5xx3SxJH4B8DbxaUjdp1+sH3iELhfAc3Oyo7xCYMaCeOAEL0yby1s08g+S9Mr Vs+WRqlrm5ZYB/Lcos5qoU3yuelEDIQPU3GUqJ04F4itZM70HVM5XfbjaAubHxVyOhRq tVs6i7kwXRne1zhsX7vHuQ2pvyIP5lCAQZhbZS+lguuDb+qGJSynx/av/oDbC5gy41rh o05j2G9FRwS32hwCHARn/ksJypLqFPulEFQxLYhimQ0vht+OgpHAIoAr7InIfHkAkEL/ 5nshfSRo+nFStbXbU7MPyMNyLsaqnb5gnyxeLKMt10VwU1zJ6YguYKclmc7SCC8+MONY f3AQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ya/9zTvsw+y+JwF3gF+rDYBmNkXFGAWN+SRIqgUEupQ=; b=ka3YbRqIIkl6yFPNomQkDNgWwrXXUaw4w51FlyxYQ1FteuIOy42f0zZC/QLMJG06pP 3qExEq3zvFfFBgzA4EUWtuNfiepQSSo6pLcWP4m3/S/ClO8afYRCZqpSTaU9J9+vE4G6 2aeebUxmGioJ/u04y/SnU0u3dtch7bE5I0RIji/RmktFDM3TLO+zS9LpjFWMytddLIdy 6ZIVdGMzr7K2JhvyH1aGK9XySUxu6NzC31g+jENNPZWbiIKTYV7MluRIrCEqIjTho2Xb V/vPefT4ivGCe5YOg7ZuS3kHEGVJTyfPkBhVqYG4Xf34rVLk0HDPvGFJPF3E99wsrMPt 56Cg== 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 p12-20020a17090ab90c00b001f317742b05si620555pjr.145.2022.09.03.09.14.09; Sat, 03 Sep 2022 09:14:25 -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 S231396AbiICPyd (ORCPT + 99 others); Sat, 3 Sep 2022 11:54:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229698AbiICPya (ORCPT ); Sat, 3 Sep 2022 11:54:30 -0400 Received: from netrider.rowland.org (netrider.rowland.org [192.131.102.5]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 5F618389D for ; Sat, 3 Sep 2022 08:54:28 -0700 (PDT) Received: (qmail 304901 invoked by uid 1000); 3 Sep 2022 11:54:27 -0400 Date: Sat, 3 Sep 2022 11:54:27 -0400 From: Alan Stern To: Paul =?iso-8859-1?Q?Heidekr=FCger?= Cc: Andrea Parri , Will Deacon , Peter Zijlstra , Boqun Feng , Nicholas Piggin , David Howells , Jade Alglave , Luc Maranget , "Paul E. McKenney" , Akira Yokosawa , Daniel Lustig , Joel Fernandes , Michael Ellerman , LKML , linux-arch , Marco Elver , Charalampos Mainas , Pramod Bhatotia , Soham Chakraborty , Martin Fink Subject: Re: [PATCH v3] tools/memory-model: Weaken ctrl dependency definition in explanation.txt Message-ID: References: <20220902211341.2585133-1-paul.heidekrueger@in.tum.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit 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, Sep 03, 2022 at 01:41:34PM +0200, Paul Heidekr?ger wrote: > On 3. Sep 2022, at 03:27, Alan Stern wrote: > > > On Fri, Sep 02, 2022 at 09:13:40PM +0000, Paul Heidekr?ger wrote: > >> +Finally, a read event X and another memory access event Y are linked by > >> +a control dependency if Y syntactically lies within an arm of an if > >> +statement and X affects the evaluation of the if condition via a data or > >> +address dependency (or similarly for a switch statement). Simple > >> +example: > >> > >> int x, y; > > Hang on, shouldn't this read "a write event" instead of "another memory > access event"? Control dependencies only provide ordering from READ_ONCE to > WRITE_ONCE, not from READ_ONCE to (READ | WRITE)_ONCE? > > Or am I missing something? Whoops, you're right. Somehow I missed that. Go ahead and change it; you can keep by S-O-B. Alan