Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3576913imm; Mon, 25 Jun 2018 00:33:49 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ0VJNBTc+wtx9+yA2E62C//Qa45YJTzxBuJbYD+Z55mgjyvkPHDZxvJ5WaTb8GXLs146K0 X-Received: by 2002:a17:902:5854:: with SMTP id f20-v6mr8643514plj.206.1529912029327; Mon, 25 Jun 2018 00:33:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529912029; cv=none; d=google.com; s=arc-20160816; b=UJTWJH8UbXIO8N0yUSZavdSYn2mHZI/+e2aABYH3jr1PspK5RYVkKSISzwaAPtGmeP ZhWoZcAypEownkACIll7/cXlfeFbSWDw0Xi/HAFVLQ5Gj+sAanzZ52i4x9Q+iLUGKghX VPx4ft3Qpbi328ehKd1ib6r4dr38vt74L1fK+dnnVJMnGLwkBiPlcJJXOwlBWqP3NSLK nsbkAud6OqLYRGU3xSGgPdtGR5u4TdvpLCsLdF2PhPlZMXRNrF5N2242mKJ92Z6Gftes FGuo0zBoW/qIug9m02mSVzst5HJ4b/WU7SWulno/KCajdtiJqqXN3vvQnAFXIvqCSABE fKuA== 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=PBoGhVkgWYUIk3bBP0fqjg5MBz1BZqi9g6zFYvCLoS0=; b=JozfKUlyTfdpIUq9vkrxKjTBqyeDJJ7PiA14O7eWWsBhzN39k8dWoMKldKzICzB9aE w76p/Uf/+E0QpQRsD1rYKC+36bv4/OBD+jcjFmJtK0EHZTqXvo1WTBY/Mo3cQvF+TDWn GOio/keiVGLgBVtFoOcLM1a317zvPJe3XNwgr+Ic/aXF00rNuz/NQ/0nJzFRObIO7GXj 3L3dA5Fn9gKJM7mRfLrDmJ7VuOmlpqwe5eZetHC82XF35gLJuFoEXB0u3zC0pq+Sy0KR mmApYbQYRXeVKQOxNu5M//tN5vHrLbR/nalslFzLj/wPIq5phu2121yN3+H+e3bQhOs9 bKaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=aA0SUllj; 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 u6-v6si13478813pld.74.2018.06.25.00.33.34; Mon, 25 Jun 2018 00:33:49 -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=fail header.i=@infradead.org header.s=merlin.20170209 header.b=aA0SUllj; 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 S1752449AbeFYHc4 (ORCPT + 99 others); Mon, 25 Jun 2018 03:32:56 -0400 Received: from merlin.infradead.org ([205.233.59.134]:45214 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751631AbeFYHcz (ORCPT ); Mon, 25 Jun 2018 03:32:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=PBoGhVkgWYUIk3bBP0fqjg5MBz1BZqi9g6zFYvCLoS0=; b=aA0SUlljz1mn9p8MP55/Xajx9 5tIhpLjgqK9jDn7lcV2Dm90lp7W0Q7xrt2XN5dZwqPm1MWYgJqfjIxEK+yG6Ej0vHXxqkBJbHaiEa oEun85AE+dqaDFdBV/f1gE1wVlLP4pNwBPGo4xuE6yf+Sq9t667dvDq4f1IR2vakYWcbsqWAGBD0G ClCWl9jEw966mwEOHiFAiN7YtOFW8jrH/vswZVnZ/zpby4SmRdbMHzqGbZ1++R+v+sFgnLtJTVAqD PFsKqrWVnQHMz+Hl1dka+fZSz2wzFDvU8loMKjxrtSeIOn+X704vipDm4s/zUcazFNXbMWqrYd57Z A53pwZXww==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fXLzE-00065s-U4; Mon, 25 Jun 2018 07:32:33 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 8ED402029FA0A; Mon, 25 Jun 2018 09:32:29 +0200 (CEST) Date: Mon, 25 Jun 2018 09:32:29 +0200 From: Peter Zijlstra To: Alan Stern Cc: Will Deacon , LKMM Maintainers -- Akira Yokosawa , Andrea Parri , 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: <20180625073229.GR2494@hirez.programming.kicks-ass.net> References: <20180622080928.GB7601@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.