Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp729156imm; Thu, 5 Jul 2018 07:59:23 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcKatNqQwMtqEnpngD7r2dmIkXAyKMrNsKCJEjkgKVhYzVuUEOk+0/KabfCCPLZHiqj6Ylo X-Received: by 2002:a65:614e:: with SMTP id o14-v6mr6065670pgv.308.1530802763494; Thu, 05 Jul 2018 07:59:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530802763; cv=none; d=google.com; s=arc-20160816; b=RWrFVYy2UAijQwwjWb4FDn0UHBZhu6Z0vQXyVgA7CEOpiLo8kSCAbD3fOeSBpy06LO hXlpxWWH/xtiFY0OCw2X5PmOd3KL4gY3eTm/wn5BS68rQbWKG5PfuhibuvRIUvbVrd56 jpLi/9Uf2GtNFeGi6SfUpslqbGsEHb3/yASe0HSVF5ExZOJ4PRaaluIp0bqFVB+0VdPe gyhFjloYbJtCo0cORa1/iYcKQnGPQ5kasFBJpCGiGHcPbY479hHk99R/b6OQIrHlfjOq TPjTqiQOPP17aIol2C0NHhWashtO9NSXrQsGuELWVvG8hVECi6lD7XWcft9EnFKzgc22 lOTQ== 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:arc-authentication-results; bh=TkCsdG6OTi8EVi1aLWU3nttGLz7pQ36nW6QIPAk4Yh8=; b=aeSSgXRE7Re/9HiXV82IHrunDgY5b/QLU390Lasbb8AoHEU9jZccT7zo9yGyagZS1w s4YKJll9yu5eFs7sVZHWDyybOU4kPzM9mIMpmbBdnxVo2HAkvoEMEmXna5ABFKOF5kfn Pw0UM/CQJbnhDeqLbJg+qk5+Yzrm3MDDXqH4N1nlzig4p0x9hFfjG0071zCOJexOm+AA QTtzxlBmGVGK9mS6uCLSnYoe9q7MdRmDnQDYv/AfXRtcuUiDbm43xjIPo1/W4VfZ8ZE2 d/JqYoRTioWB1i4JPRiI7RdRY/dqOqt0PFzr2iuW7rF9JQCGnTutX4aoABB3xyuC+qJg nRzw== 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 j1-v6si5954252plk.257.2018.07.05.07.59.09; Thu, 05 Jul 2018 07:59:23 -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 S1753931AbeGEO5a (ORCPT + 99 others); Thu, 5 Jul 2018 10:57:30 -0400 Received: from iolanthe.rowland.org ([192.131.102.54]:43230 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1753553AbeGEO53 (ORCPT ); Thu, 5 Jul 2018 10:57:29 -0400 Received: (qmail 23860 invoked by uid 2102); 5 Jul 2018 10:57:28 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 5 Jul 2018 10:57:28 -0400 Date: Thu, 5 Jul 2018 10:57:28 -0400 (EDT) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Will Deacon cc: Andrea Parri , LKMM Maintainers -- Akira Yokosawa , Boqun Feng , David Howells , Jade Alglave , Luc Maranget , Nicholas Piggin , "Paul E. McKenney" , Peter Zijlstra , Kernel development list , Subject: Re: [PATCH 2/2] tools/memory-model: Add write ordering by release-acquire and by locks In-Reply-To: <20180705144656.GF14470@arm.com> 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 Will: On Thu, 5 Jul 2018, Will Deacon wrote: > On Thu, Jul 05, 2018 at 10:21:36AM -0400, Alan Stern wrote: > > On Wed, 4 Jul 2018, Will Deacon wrote: > > > On Tue, Jul 03, 2018 at 01:28:17PM -0400, Alan Stern wrote: > > > > Would this be allowed if smp_load_acquire() was implemented with LDAPR? > > > > If the answer is yes then we will have to remove the rfi-rel-acq and > > > > rel-rf-acq-po relations from the memory model entirely. > > > > > > I don't understand what you mean by "rfi-rel-acq-po", and I assume you mean > > > rel-rfi-acq-po for the other? Sounds like I'm confused here. > > > > "rfi-rel-acq" is the relation which was removed by the first of my two > > patches (it is now back in business since Paul reverted the commits), > > and "rel-rf-acq-po" is the relation that was introduced to replace it. > > Sorry, yes, I realised this after I'd replied. Curious: but why do you name > the relations this way around, as opposed to e.g. rel-rfi-acq? It's > obviously up to you, but I just couldn't figure out what inspired the > ordering. I no longer remember the reason for naming "rfi-rel-acq" the way I did. As you say, it doesn't make a lot of sense. The reason for "rel-rf-acq-po" instead of "rel-rfi-acq-po" was because the second of the two patches uses that relation in a context where the release and the acquire might very well run on different CPUs. Alan > > At any rate, it looks like instead of strengthening the relation, I > > should write a patch that removes it entirely. I also will add new, > > stronger relations for use with locking, essentially making spin_lock > > and spin_unlock be RCsc. > > Thanks, Alan. I'll try to review them a bit more quickly this time, too. > > Will