Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1479960imm; Thu, 12 Jul 2018 02:37:14 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcDeV9i+DcS/PmjSQMC4Ejx6efluYaSrDXQidYJcv3U0msbrjvlltMIqYjnLOKWIOO98na/ X-Received: by 2002:a17:902:583:: with SMTP id f3-v6mr1452628plf.115.1531388234611; Thu, 12 Jul 2018 02:37:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531388234; cv=none; d=google.com; s=arc-20160816; b=IVdZ6r2f+OvMlF4ki1cenWd0P9i08Y77FFVVTQS0/VANr0B1fOsp7qphboZZrdKkJq byBl7RMAjsIP/7tLO+v8eOdhd2sGJOcXcUK5pcegUwCGmVxDns2j3tehH93po75OX3/B kvK5/C9YD6AkmlGxX1fihMXpt32VY+/nQrXbEAvAqasPoCo+NllPamjYGBAwD1j0bWIo Ml4AMmb1ZiIvEFBZro44GP7IjR8jay7Jk/oaCe3XYM+SN48pBaEc4qAZrTxlCdjQY11Z NYwQsJjxi133Po9VJTaRjgGUPxYg9s+BDWtBdkdMFyE3l43LNhbn4CCYwP10uL9cj0hp df/Q== 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=K9kHwCrkZuarUV9PLn+jwerAcV8U/pvZCk4ekwKm6D0=; b=k8fSBJ0OdykuFLFpW1RmzbVv1p07eLmIF6fq2uslLttRv/02qEZS6iMdPuBVhI0IJ1 DG+F2Ac3G/N5WBTxXYTTTPCTSA129aOBArfitSf59HAoyfXJDJXidqVh87/FK+7ATgDl czFAd1hNCN2ZvC+iiqgs4wIATN3GcWz69Km5havUiBYr7551D6QLqLydhkfT6iA0E8Ao 0xdy6UHit3WoaxeMQbJlFQKUiLe+0RJ1b6T3DSXuWV/NoGCoEHurl5PM/W/K4qN2UFvY Ysa0HGbilJS2BHLRB3y5Cp9r364WrzpnwsZDK35/cYE7ZZZc7fLQgSbNZR3wXa5mAavb Dq1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=eBnuJkkh; 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 r24-v6si20923388pgo.295.2018.07.12.02.36.58; Thu, 12 Jul 2018 02:37: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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=eBnuJkkh; 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 S1727037AbeGLJnd (ORCPT + 99 others); Thu, 12 Jul 2018 05:43:33 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:41326 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726186AbeGLJnd (ORCPT ); Thu, 12 Jul 2018 05:43:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.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=K9kHwCrkZuarUV9PLn+jwerAcV8U/pvZCk4ekwKm6D0=; b=eBnuJkkhwnN/qR4Mho72aN9xX INr6LoJIH5nhOrYL/t033OrA3ZrFfEUhBW4NXB3yVSFJhYEbbM8YaMGXTuVaZyBXbHQdeVRer8CEX 80DGygTCDfRK2sXt5q05Wy0256SxQuUuWXp/gL2bR+DM+XDYN55A8JRqRCqqn08dY3MFGo9EErCbn HVEXoFiovh/SpwLOiXG20Nsky23Qe2gRY+ghKWxN6yW7EfxlogGPKYwp6tMyU1SxuV29NFurcEbwd PpTtD7HURaI59VrY5d2TRHUbvQSSkTruhxMmOZ5E1xs+RtWe1cEwljz+tMJuzPfYbkkZQNuFRJDja GpIS+KfFA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fdXzd-00068B-W5; Thu, 12 Jul 2018 09:34:34 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 232A820291063; Thu, 12 Jul 2018 11:34:32 +0200 (CEST) Date: Thu, 12 Jul 2018 11:34:32 +0200 From: Peter Zijlstra To: Andrea Parri Cc: Will Deacon , 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: <20180712093432.GV2512@hirez.programming.kicks-ass.net> References: <20180710093821.GA5414@andrea> <20180711094310.GA13963@arm.com> <20180711123421.GA9673@andrea> <20180712074040.GA4920@worktop.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180712074040.GA4920@worktop.programming.kicks-ass.net> 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 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.