Received: by 10.192.165.156 with SMTP id m28csp940594imm; Wed, 11 Apr 2018 09:36:05 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/btJAMaSyZTc7rMJABa5+YrO3G84fxPD4mBjEWVK3ooxIXVvHfsvNWzqOY7eqtmRn6OiaU X-Received: by 10.98.34.89 with SMTP id i86mr4645712pfi.224.1523464565336; Wed, 11 Apr 2018 09:36:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523464565; cv=none; d=google.com; s=arc-20160816; b=fPfGjgknSRzBilauNm3gIp4CjX4het7h4uZ9boEHS+/N1kyXpZ4lzf8jtO0Jt4I6CO mJ3go+tGBx7tr0lM2h2vkYLPn+ipHSp0v/QwaPiKDUqfIFsjzoMF1dA/1uTM8ZXblEGw oviT/VFzCcUqJ+5slhRayQtrSPjbongCVdDvYeh9K0+6+8ec6qdkQJe0Jj0OtyTZndNw fxnnXhWG4Qrv3myvBEFheAf9LhC54LpTGP6m65XF/qp1maPKbGJ1/I1TJ0QTmmMrLvok YWUZHeDs3yz7ThClcBshielEWT9lnUhYqdYeD0Cs81g8Ly8k21jm4h3cEc7je2q2AqFM dh9Q== 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=4gE3jx2vtFsMm1+hFi0Rciori9yQM9+ZBzn6twNKESs=; b=vMdxYD8999ZNZrgAr+BH4tBhcEIOn6wYLsG6lR0Q6Jg7hhcYceUY8gP5gA98ZG6v6k TgnHblWXmXsAhbfjZD3rlRMM9yANaBWsAIUWzC50gKHp826aKiLHEt36TKsTR6+A4Xp9 TOMVWJqJk9qd2KZQc53CBI9MPkZuH1ikNwOV/Lil67iPVET+Xi47XaBKu33GIni3Xl99 Xl3azKCz/fkFGfkcI9No6yT/+cxOV4oxeIc0uxx2WPWxPRl7VP3BiERRM+0XMKH6Fblr WoUsdeHbRarsFe1xHrpNGkigHfSs/SkMau7uIMIxsfECP1L1KkA5deJDUXXqztEzUJA/ D4Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=NhFKMe/Z; 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 z2si955673pgu.655.2018.04.11.09.35.19; Wed, 11 Apr 2018 09:36:05 -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=NhFKMe/Z; 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 S1753244AbeDKQcJ (ORCPT + 99 others); Wed, 11 Apr 2018 12:32:09 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:39098 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752664AbeDKQcH (ORCPT ); Wed, 11 Apr 2018 12:32:07 -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=4gE3jx2vtFsMm1+hFi0Rciori9yQM9+ZBzn6twNKESs=; b=NhFKMe/ZG1LNgIoR4AezvZ8PU 1aKOOpr78QNsEJWG+yf9Wn+Wa/U+FpcWD6rsEl9AfZowczvpvE7loyPltAlcL2J4WBjpJ4bh7CsI3 1MtI8cvTVEWQnQ70P9+/6myUi5Y0aQS7Zzhrtz9y+hd2rF0ALxZsLIi2fdf9/3BkUDoxZ5uLHAsFT L7TlgWJNhfjpd+XJ26N7WBDjLQAk3uMVPNzrk8RVx/JV8ekc1JH+ZU9vMqLQoY1pWmkZ401YZdoP5 lEsfJnOeI0q5sUFWC+ylgTiidbLvL2riHglgEM5hmciZ08rFAYoDRabqVl3YmOcy+8ilbcRpVTrop fhDmMf6eQ==; 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 1f6If9-00081L-In; Wed, 11 Apr 2018 16:31:59 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id D92002029F86F; Wed, 11 Apr 2018 18:31:57 +0200 (CEST) Date: Wed, 11 Apr 2018 18:31:57 +0200 From: Peter Zijlstra To: "Paul E. McKenney" Cc: Paolo Bonzini , linux-kernel@vger.kernel.org, Alan Stern , Andrea Parri , Will Deacon , Boqun Feng , Nicholas Piggin , David Howells , Jade Alglave , Luc Maranget , Akira Yokosawa Subject: Re: [PATCH] memory-model: fix cheat sheet typo Message-ID: <20180411163157.GQ4082@hirez.programming.kicks-ass.net> References: <1523292618-10207-1-git-send-email-pbonzini@redhat.com> <20180409184258.GP3948@linux.vnet.ibm.com> <20180410203214.GA19606@linux.vnet.ibm.com> <8cbda122-6aa3-365b-fd09-52dca0644cbd@redhat.com> <20180410213434.GC3948@linux.vnet.ibm.com> <156ac07b-7393-449f-518a-6b1c2cff8efb@redhat.com> <20180411161956.GQ3948@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180411161956.GQ3948@linux.vnet.ibm.com> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 11, 2018 at 09:19:56AM -0700, Paul E. McKenney wrote: > > > > Prior Operation Subsequent Operation > > --------------- --------------------- > > R W RMW SV R W DR DW RMW SV > > - - --- -- - - -- -- --- -- > > smp_store_mb() Y Y Y Y Y Y Y Y Y Y I'm not sure about that, the generic version of that reads: include/asm-generic/barrier.h:#define __smp_store_mb(var, value) do { WRITE_ONCE(var, value); __smp_mb(); } while (0) Which doesn't not have an smp_mb() before, so it doesn't actually order prior; or I'm failing to read the table wrong.