Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3620811imm; Mon, 25 Jun 2018 01:32:14 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIwDxXzf3VvVyBF/BoA2+ANpCB8O3igM8TQAG72D7g6Be8w+CHaemoBPQ6+4Vfu8crFiFdY X-Received: by 2002:a62:119d:: with SMTP id 29-v6mr12152072pfr.102.1529915534261; Mon, 25 Jun 2018 01:32:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529915534; cv=none; d=google.com; s=arc-20160816; b=dC1/0z8W0s4sOL9ulEGhkZajkqhaotqDYYOPQozFadYNbgJnzVaZ2SfIkASn6+UuoP RDLbZDbpwe5vcB0vI7SulrwFdXIn6XLGvAXCfxt+Owc7MCvL/15kxobH60XeXktf5ELD gejL/RTtbSRu4T1dkIV0/IxjxcK85wpdRD4cSNNjIejuFl9+q/We1Beu/HR2aaAATL4b 2UhxheLPj+DMUSgcJB8adEL4YruZarr3Ed3Tv2l+H2H5duyNNoBN8+64bJY2y3lxsQra sQOWQXDW9ts196jKEI5N8oaFp3vzkpszHahRkuhha/PHzOo90mLEpXXj6JzLzWjJ6jSQ 5knA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=mnr+Nr+2rMhZCwmr3I2/Y2jpho0XSbY1HRMR/OFVW1k=; b=rp0cnHer5as2YoZn8CCt9JxjE04xHRbA2F/Jx5Ks7dSO3/6S/zWtXykphULKRRfMxx ViLlqKQZsEMLEhX+0hPslj7v/OoacoFnxlwif9JZygDLG/7DE1LcaFgGs5maxLDRSfmX WFQULeDQ9RmrjcFCMs34XHHEL/3uEyHxPcZ4vqN3jO7VecnHD9ya/TLxqIubwPNxIDw9 DmFTuQMInExs7DdJhu5L2OvcbA4Et5GJgo8DigwxltPtfeSk3UY/UBSlbE0qAjVYfCkr TUYNjzkoBT8q1mXUVWE6tLbgGO4dS4IlDQfBC3Fkic2oTjBVmBYIeujL1lvZIBUy46N9 1bVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=KmGu4WE3; 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 z5-v6si519675pgn.105.2018.06.25.01.32.00; Mon, 25 Jun 2018 01:32:14 -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; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=KmGu4WE3; 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 S1754319AbeFYI3d (ORCPT + 99 others); Mon, 25 Jun 2018 04:29:33 -0400 Received: from mail-wr0-f171.google.com ([209.85.128.171]:35583 "EHLO mail-wr0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754080AbeFYI3b (ORCPT ); Mon, 25 Jun 2018 04:29:31 -0400 Received: by mail-wr0-f171.google.com with SMTP id c13-v6so2750282wrq.2 for ; Mon, 25 Jun 2018 01:29:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=mnr+Nr+2rMhZCwmr3I2/Y2jpho0XSbY1HRMR/OFVW1k=; b=KmGu4WE3+OSSCrW7ptX9spj7hN1oMPj0CdLOndxUp+Na4pvRbXIewVlRBxOeU4pK2m Q+7PyV5ESlruENPKQDwDKO6to2j/J4chL+zKzWTw+Rkox68BkiaZKd3dNiiC8gzcGPxw dX2/EENPFfKyfH7SM+jEFZ2f6V/2Y6duT4ITc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=mnr+Nr+2rMhZCwmr3I2/Y2jpho0XSbY1HRMR/OFVW1k=; b=OZ7/p2xtXDUlufc+u2bPDhpEclmz0x1dEpnsf1bC7J560pUux+RjJi1/dScvk3vJ10 VzLwUeCYaQ73uVV3TDRR7+aIXfZ6xIXb8mZtTYKYiI5/i/kF9kZ/k16i+EwKaN3u46Rz Wa04oQxgdWF+3r3RvdAbHp1A/LXLTdKWlryWR6+AY8xC3YKfaGXVW1uqKAJxLTqqkvHL px5/ZymVr2nnuiJECkMAQpa1ZekELa5oS5EjKVoxvkJ1rRU0mTBOEVv/wfsE3WtWvzMb gaBEPPUNyWQk1D9vXEPDxEIcBnOI3NoaUy9DQ07jCRociwhknNtHky/kTY44yNKlBaZw AHyg== X-Gm-Message-State: APt69E2S/rwELoO9rSJwSh04ZeYU0DGfBRf5aXFPCcdphpQgCYbogESx pOW1hQWb/3fh9IrP+ttEZAjjYA== X-Received: by 2002:adf:e447:: with SMTP id t7-v6mr9607079wrm.145.1529915370472; Mon, 25 Jun 2018 01:29:30 -0700 (PDT) Received: from andrea (85.100.broadband17.iol.cz. [109.80.100.85]) by smtp.gmail.com with ESMTPSA id z128-v6sm10167931wmz.18.2018.06.25.01.29.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Jun 2018 01:29:29 -0700 (PDT) Date: Mon, 25 Jun 2018 10:29:23 +0200 From: Andrea Parri To: Peter Zijlstra Cc: Alan Stern , Will Deacon , LKMM Maintainers -- Akira Yokosawa , Boqun Feng , David Howells , Jade Alglave , Luc Maranget , Nicholas Piggin , "Paul E. McKenney" , Kernel development list Subject: Re: [PATCH 2/2] tools/memory-model: Add write ordering by release-acquire and by locks Message-ID: <20180625082923.GA5808@andrea> References: <20180622080928.GB7601@arm.com> <20180625073229.GR2494@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180625073229.GR2494@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 25, 2018 at 09:32:29AM +0200, Peter Zijlstra wrote: > > I have yet to digest the rest of the discussion, however: > > On Fri, Jun 22, 2018 at 02:09:04PM -0400, Alan Stern wrote: > > The LKMM uses the same CAT code for acquire/release and lock/unlock. > > (In essence, it considers a lock to be an acquire and an unlock to be a > > release; everything else follows from that.) Treating one differently > > from the other in these tests would require some significant changes. > > It wouldn't be easy. > > That is problematic, acquire+release are very much simpler operations > than lock+unlock. > > At the very least, lock includes a control-dependency, where acquire > does not. I don't see how this is relevant here; roughly, "if something is guaranteed by a control-dependency, that is also guaranteed by an acquire". Right? ;) Andrea