Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1486251imm; Thu, 12 Jul 2018 02:45:25 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfjpf4NEQ4ldWdlwxgzLAocItv8W4jRzId6rchTxK3UwFd9ycYHtzp+Bpenyk8srOmrkL3z X-Received: by 2002:a17:902:a5:: with SMTP id a34-v6mr1526822pla.60.1531388725420; Thu, 12 Jul 2018 02:45:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531388725; cv=none; d=google.com; s=arc-20160816; b=eOheBXPCgu0Rzg0xP4UrlmnUN7lEqbzs+K+UN4jsYYTGWkxa0DsLBklgRDt8Tg7zI9 uQkO0g3ttXWJeMxpp8gqdq6D4mfiiN4yRQHpwH8wU4f6moBkwm9jC2Yz1okXIb3Ueukr skLTLR//webxLcp96bHwKnysgkyZkDfNcAnOeYEKNhOTV9v/EGFsc9cSprS2IBC+aoF8 0ULdNjhqmj2PZHCc0dTcH6++9b9XhklCtJN6TIokT+G37XpniuRSGqVT4niLTnTLlPbI 7r//DeaQtPdYvrDjs45+xNv+l3jhOqlMnLNWGgw9lUfUHcm0flv8YF4+Fr6MjmEci1rJ S9XQ== 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:arc-authentication-results; bh=qC/vXctI2NT1y38sQ/mFZS7LIZ9/YVQSrPKNVB3iIyQ=; b=DkSGPUTCIu/8tEOcdB0ptygoIU/ixOC+WLn3BugbtyXYrI6XMAvpmmFdhfqIIMa4xY 94uxb/3951QV2QB65o2fkt7juxTQ4xpyx8jQrtAv8sn/ODP02XoyaEvVm3TMdcBZ1bG9 mHgbWceZzOOf6W1EuC1islK/56RM0zr5ZbFkWKh5LZL1cpwaK8P/xMKQv7hekNd9sVHM FOHn/1rkPtOaS7v6yUtDqQAulb8t4oxepLEEmGm6N/E/7Go6nX3tt03UFZ8kNImi0p7P TgPu0W4mdL+1s9f9r/atlJOXnCijYDgF7BRVPvx+0pjpn+PxQBXeK4nG9CGuV1wxQLJi QY2A== 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 g10-v6si23415528pfd.86.2018.07.12.02.45.07; Thu, 12 Jul 2018 02:45:25 -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 S1726653AbeGLJxQ (ORCPT + 99 others); Thu, 12 Jul 2018 05:53:16 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:48864 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726594AbeGLJxQ (ORCPT ); Thu, 12 Jul 2018 05:53:16 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id CEAF980D; Thu, 12 Jul 2018 02:44:28 -0700 (PDT) Received: from edgewater-inn.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 9F4353F589; Thu, 12 Jul 2018 02:44:28 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id EC3FD1AE53ED; Thu, 12 Jul 2018 10:45:10 +0100 (BST) Date: Thu, 12 Jul 2018 10:45:10 +0100 From: Will Deacon To: Peter Zijlstra Cc: Andrea Parri , Alan Stern , "Paul E. McKenney" , LKMM Maintainers -- Akira Yokosawa , Boqun Feng , Daniel Lustig , David Howells , Jade Alglave , Luc Maranget , Nicholas Piggin , Kernel development list Subject: Re: [PATCH v2] tools/memory-model: Add extra ordering for locks and remove it for ordinary release/acquire Message-ID: <20180712094510.GA23415@arm.com> References: <20180710093821.GA5414@andrea> <20180711094310.GA13963@arm.com> <20180711123421.GA9673@andrea> <20180712074040.GA4920@worktop.programming.kicks-ass.net> <20180712093432.GV2512@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180712093432.GV2512@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 12, 2018 at 11:34:32AM +0200, Peter Zijlstra wrote: > On Thu, Jul 12, 2018 at 09:40:40AM +0200, Peter Zijlstra wrote: > > And I think if we raise atomic*_acquire() to require TSO (but ideally > > raise it to RCsc) we're there. > > To clarify, just the RmW-acquire. Things like atomic_read_acquire() can > stay smp_load_acquire() and be RCpc. I don't have strong opinions about strengthening RmW atomics to TSO, so if it helps to unblock Alan's patch (which doesn't go near this!) then I'll go with it. The important part is that we continue to allow roach motel into the RmW for other accesses in the non-fully-ordered cases. Daniel -- your AMO instructions are cool with this, right? It's just the fence-based implementations that will need help? Will