Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp4731675ybe; Mon, 16 Sep 2019 18:01:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqz9z998wVP4VjRwvqRIF+gI8qdo6wWXkpPJfRD6IhLI5VYbOS5FzFyT2sjZWJVFf7J99YH8 X-Received: by 2002:aa7:cf97:: with SMTP id z23mr2133148edx.29.1568682099219; Mon, 16 Sep 2019 18:01:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568682099; cv=none; d=google.com; s=arc-20160816; b=qR4LvRcyo+iYIJwBcB1QHu55VNMInjln+qSPWsGNCvXSiI6kKHCZmarquyZPixDNqG GeuAo/3GGtErxiZoQP93D92mrAxbZNtI8lgXnP4KIyLRgl3LhjoD83yHMl/UFCFaRdDE b6Vm42ZjR1vpa8iqtJ2P9fQvAmXf4a6PNvxLRJ1+8Yp5OVWwurhh0jkJa2U6tdO4TdQr JRMHX+TF2M5tF0OWAQtmtbjvYAcelrZ2e6VzASELt12JCYLTzKZ5K8CkfegoSWeb4oj0 c9m094eIiN69IaS355XVfQUitxpmdDU7s2nCquHuE5NU8np7XT7fltzh1FWzUi0gcQg1 5NMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:in-reply-to :subject:cc:to:from:date; bh=zMqa2pqG6SK1LsMFB1Z1sK0qCfpoat1cdZv/8h+nWR4=; b=McW1CgN/9831y6/XCNeQtuuv1xPI3oh+eTY6R4A+EMQ2qYTZS9c4Xs1H0ycsNBeApY Ig2+AR9qR4pyM9PWsBOURGhktQRMX0xjunJG7R9dzIJTsaMpojuQn+qxVCYXJEjPkGmh FgBuork/Z5BopsT+LSC9Zpzmx3vOBTIOdrTF5Ltfe9LJYqTuOVrEyIk5JNZC8O6XbB1S g8stTfA4vUhMZvLe5Rai2vJDQz6WWejznQNrAIVqDPJMp7FAPYZk0XvSY3XAmmkI9LKo i2TFC9U+si/F6MUeEERT5gYfFk+TM1dNFQjPseBgPHPtqPmIN7Hg+3/nk+IY5edi640X 8KTA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id op27si303837ejb.253.2019.09.16.18.01.15; Mon, 16 Sep 2019 18:01:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389032AbfIPPZI (ORCPT + 99 others); Mon, 16 Sep 2019 11:25:08 -0400 Received: from iolanthe.rowland.org ([192.131.102.54]:51056 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1726389AbfIPPZI (ORCPT ); Mon, 16 Sep 2019 11:25:08 -0400 Received: (qmail 3474 invoked by uid 2102); 16 Sep 2019 11:25:07 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 16 Sep 2019 11:25:07 -0400 Date: Mon, 16 Sep 2019 11:25:07 -0400 (EDT) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Boqun Feng cc: LKMM Maintainers -- Akira Yokosawa , Andrea Parri , Daniel Lustig , David Howells , Jade Alglave , Luc Maranget , Nicholas Piggin , "Paul E. McKenney" , Peter Zijlstra , Will Deacon , Kernel development list Subject: Re: Documentation for plain accesses and data races In-Reply-To: <20190916115254.GB29216@tardis> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 16 Sep 2019, Boqun Feng wrote: > > In other words, we can define ->vis as: > > > > let vis = prop ; ((strong-fence ; [Marked] ; xbstar) | (xbstar & int)) > > > > Hmm.. so the problem with this approach is that the (xbstar & int) part > doesn't satisfy the requirement of visibility... i.e. > > X ->prop Z ->(xbstar & int) Y > > may not guarantee when Y executes, X is already propagated to Y's CPU. Yes, it doesn't guarantee this. But the reason it doesn't guarantee this is because of the prop. The (xbstar & int) part is okay. In other words, if Z ->(xbstar & int) Y then it is certainly true that any store propagating to Z's CPU before Z executes also propagates to Y's CPU (which is the same one) before Y executes. Alan