Received: by 10.192.165.156 with SMTP id m28csp1917140imm; Thu, 12 Apr 2018 05:52:18 -0700 (PDT) X-Google-Smtp-Source: AIpwx488DLahPNNx25S4ppzOot8QALn8/s25sm0ZYvdQMwQ0MOQ4AE42if7ha9q0mwSsFehb3UBE X-Received: by 10.99.143.3 with SMTP id n3mr640491pgd.136.1523537538837; Thu, 12 Apr 2018 05:52:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523537538; cv=none; d=google.com; s=arc-20160816; b=rUHQvlkJ/PSOl+3q5uuYzLYJaEDW8+zKNZqO+GFyQ+jJ8WRGIhY0tzEgmS3GKFGMUH 2FfgzJGZtuH0UM2SLoK2BR8wJPigyRc71CERJOr4o+RsLTGuqp/82jmUh6k3RgYjeKjI uUxzltemLOFgd/qWhyOTEHib9f2CW1Px32dV67XQXHMSmCIbr4QCDJqQ1z9YRa0EnJty rqrtoFyjlaxCG/pRKYad5Q1NC8jyuvOKIE1tuQSUhn/sA2PWTELM63LnwP1D4RFYweX6 R9d7LG7skKym5+O9yCwF3+LkyIqI2uiTA6C7GttzRPq1onHPOs5ypWb01NP/1+FdorER jV7A== 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=uTA2FOxF0eYCgqCx0KO8WYqk6hi6mDNaYaM22y7ncd8=; b=BTTsYf8UkFREFaxEWvBfFsqoEZeUtQVvzAZwZsfywM+pLYcNfGkH4fK8Lt3uvpWnRI b4NMxkc9TEOaNG2ZWko/3SpFASo/my+5iJba8zrTE4uGYu9FcSwFwyrJ/ANa0EFhx2+g CGsh4SN+Vy10Pvf45jb+qAc303wV7c6i2qqtepIAqhoUOmA+rC0df3pUYu6uBsHbjk2a YjqEQRGoS6so+r2gPVyQ7Ny4c1BzaJV963Dfzf1XF3GIRFY6yUJDM3/ZLly0yT1sDkwU UFWuMiyppV1HpFC0faycYCU7tAd3VPQ/4ITnYA41lyv+SjfBK8/B2jV3BOngeQSOdgmM 8+SA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cuhUqwAn; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u130si2220485pgc.86.2018.04.12.05.51.41; Thu, 12 Apr 2018 05:52:18 -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=@gmail.com header.s=20161025 header.b=cuhUqwAn; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752383AbeDLMsp (ORCPT + 99 others); Thu, 12 Apr 2018 08:48:45 -0400 Received: from mail-wm0-f49.google.com ([74.125.82.49]:54055 "EHLO mail-wm0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751589AbeDLMso (ORCPT ); Thu, 12 Apr 2018 08:48:44 -0400 Received: by mail-wm0-f49.google.com with SMTP id 66so11313247wmd.3 for ; Thu, 12 Apr 2018 05:48:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=uTA2FOxF0eYCgqCx0KO8WYqk6hi6mDNaYaM22y7ncd8=; b=cuhUqwAnHeg3p//5gJnM7SKRCf46WjyJg4JGc6DdtCkZgOOX9vjs+5YsApOtmqF/o/ O92ao+jxsBeZfAs8uuRsJp3bKUXbOV2OE9o87tiHQpRMQCJRI9VNOk7mdL4snVjdmLa5 aTgFzT2Ryr27aHFKUEHWFzCV8dvxW/bNaJ223Tt9WgO6j3YNJvAd/QwmDItjjGkeCiby jXf0TMNqCRykB6G0OMHX9ee+trCSSxdhA/6N5LoyA4AYojwr/Uo7HGdXhBt0hK/oYh3G dvi9f/Yh7+OQn3jJ8B/dbPvyU3Y1MWdWpNlRQhERfBnPVuiYta0m4fBlKdqiprM4bcly UC9A== 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=uTA2FOxF0eYCgqCx0KO8WYqk6hi6mDNaYaM22y7ncd8=; b=lpR1Qy2UN3tL0/VKMcL4z8yvAdLXBnb0u+FwIf+vR2G74qFkNDvZjb/hHmCQBcyXNz rBClIkt55Vh2WstkOT1BSxXjvXYglcfP5j4D8bGxrEuu8fMT4iQn3ovDm0pbdOZkOSq4 8qwqLLKmsTjQD9It4SNiiQtR7OhaMP0SED86Y/GdaQWwQJ4l20SSktAzTLnptpbs2bha yvdzoxkn5Uj4VcB5cDztTNy09zQcxanNZXAUnFMCZkBO6FzC1OnkHYVXKD/kGkyuRDJk 7gnnVtY2cj5ASNDC7ZHIzxxip6Jx6pvEe3psfbhOQgxnV88VXfvjis2S5bdkPqhtc8S+ WC8w== X-Gm-Message-State: ALQs6tC4sHeK+3gcYMmotHqtoJ3xoJ8oIa80GooZX99WVy+dKZyoi7vV j2urI51JfGzDYYwoY0Vu+On9gCrP X-Received: by 10.80.202.67 with SMTP id e3mr15381328edi.234.1523537323188; Thu, 12 Apr 2018 05:48:43 -0700 (PDT) Received: from auth1-smtp.messagingengine.com (auth1-smtp.messagingengine.com. [66.111.4.227]) by smtp.gmail.com with ESMTPSA id o16sm2242788edc.33.2018.04.12.05.48.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Apr 2018 05:48:42 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailauth.nyi.internal (Postfix) with ESMTP id 0805D2119B; Thu, 12 Apr 2018 08:48:40 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Thu, 12 Apr 2018 08:48:40 -0400 X-ME-Sender: Received: from localhost (unknown [45.32.128.109]) by mail.messagingengine.com (Postfix) with ESMTPA id 790C410268; Thu, 12 Apr 2018 08:48:39 -0400 (EDT) Date: Thu, 12 Apr 2018 20:52:50 +0800 From: Boqun Feng To: Paolo Bonzini Cc: Peter Zijlstra , "Paul E. McKenney" , linux-kernel@vger.kernel.org, Alan Stern , Andrea Parri , Will Deacon , Nicholas Piggin , David Howells , Jade Alglave , Luc Maranget , Akira Yokosawa Subject: Re: [PATCH] memory-model: fix cheat sheet typo Message-ID: <20180412125250.to46vdgztwa2jsbq@tardis> 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> <20180411163157.GQ4082@hirez.programming.kicks-ass.net> <70348608-e695-1977-d34e-d7d66b07ad25@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ywkyqeufzin4r2cq" Content-Disposition: inline In-Reply-To: <70348608-e695-1977-d34e-d7d66b07ad25@redhat.com> User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ywkyqeufzin4r2cq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 11, 2018 at 07:06:36PM +0200, Paolo Bonzini wrote: > On 11/04/2018 18:31, Peter Zijlstra wrote: > >>> Prior Operation Subsequent Opera= tion > >>> --------------- ----------------= ----- > >>> R W RMW SV R W DR DW RM= W 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: > >=20 > > include/asm-generic/barrier.h:#define __smp_store_mb(var, value) > > do { WRITE_ONCE(var, value); __smp_mb(); } while (0) > >=20 > > 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. >=20 > You're not, even better reason to document it. :) I was going from > memory for the x86 version. >=20 > I'll start tomorrow on fixes to the current document, while we discuss > the split format and what to do about cumulativity and propagation. >=20 Besides, since smp_store_mb() is a store, so there is no DR or DW for the subsequent operations I think, because dependencies come from a read rather than a write. Regards, Boqun > Paolo --ywkyqeufzin4r2cq Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEj5IosQTPz8XU1wRHSXnow7UH+rgFAlrPVp8ACgkQSXnow7UH +rjYGQf+Lvi6SFWCKieeCBR3ik5XNzFmsa9xrBbuUFyGdSWf0AkcmePu7wlMqk+x Y6w64jqe4sof5/A41KRW35ZDddXFhtpz5lMSzPoDOT7aIiA+MIAlEA6bL6iC0Ecd a2qlEFrrjPEgtjJ9yFHoYO6YC9dKijgAqqEa0MKQMznKlY6hfJcxIZL9+LDvncfk UovWxIPWuxnn57eDkcwJkaEGv09rxe9ZJsudzyLRF32oT0KyBMtkG4e7L19ER1pF dQ9eLlY7ElXTfV1OYhGe+SotJ9+GF4FLkoWKDhtxNQXtwkKeMh0bTd+Bq9TJ8rgn P2inAQtWlBW0yqzYJ3mZ8fr4AhOxVw== =dhHW -----END PGP SIGNATURE----- --ywkyqeufzin4r2cq--