Received: by 10.223.176.5 with SMTP id f5csp296245wra; Thu, 1 Feb 2018 20:44:44 -0800 (PST) X-Google-Smtp-Source: AH8x226juPKUQdqEi3MXPxIgAzLZCB4Vi9x27/AZtknQ02GWQDJwlmAUJzG55l81uOWBNPRHvDFx X-Received: by 2002:a17:902:6ec5:: with SMTP id l5-v6mr34497384pln.443.1517546684730; Thu, 01 Feb 2018 20:44:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517546684; cv=none; d=google.com; s=arc-20160816; b=AUFIoy2LOfwzDnFKZGz13YQ/HtwGCAtGNBehhGqfVd2xGgP3VIwXMLCFyd/0Rf7NuK J7MB7ARt9e3Qo9ZlpWUlhDTwlMZDOZ2O0SolKeYQWBbuKqh0EZW3lco8KIH4B1pNyeZE cIEEv/vZ4yoy38RBVi84ChmpKtZvNyQbhxJ9116mL+5nynio8Ir+penPlh75Yx5rOJFo 5Yrwyo/STj4dm2z1gI8TTBHKN6FJFZtHwKXlqzrpVS+uDDaAHy2NFe6yQwv5VApvbsZH KIO8wEm+EYtb1fnJ23tRv37A/2wrgwOSrUBoReprGeEsN5BtQCbZasBw4B/hqUI0omJB YRrQ== 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=CmGv1Rw6Hsn9ANgA9Lj33b8S5Re5rMQKA6t24p0YuLw=; b=tCXlYCDW6kpO5sXFrVD+Zi6NiH/akQx2D/08J2pL8BBC5J3Znc2Wp4cuciiV8VglZp RC2LE+LZooUbU5r1NAdGtkyyuPz51NZAzc9f6jGt3PTSv+5tvIOFMG37gXwB1sn+xYUW sE+cV7Ram2mHf0ES+vBnJIK96RHfNaTqmv00hijwA8uK5QqZdSsJM2raHTyxkZYew5tX ZV7JPh9DjJoGh7g14ZrJal3VcdiPPG7OtjzazCzo+iOPhfSbYt4SfCjnOhm6/iqaxJm0 O4ppFkh9kLYWF4+mEeJNEtdASPRWxMxIp+aXtuBkVGTfL28KnRUvyltRlgG9zBjStRXB Cqug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=obTGLR9T; 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=NONE 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 v11-v6si1069800plz.285.2018.02.01.20.44.29; Thu, 01 Feb 2018 20:44:44 -0800 (PST) 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=obTGLR9T; 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=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751655AbeBBEnH (ORCPT + 99 others); Thu, 1 Feb 2018 23:43:07 -0500 Received: from mail-ot0-f196.google.com ([74.125.82.196]:43427 "EHLO mail-ot0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751530AbeBBEnB (ORCPT ); Thu, 1 Feb 2018 23:43:01 -0500 Received: by mail-ot0-f196.google.com with SMTP id q12so1804696otg.10; Thu, 01 Feb 2018 20:43:00 -0800 (PST) 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=CmGv1Rw6Hsn9ANgA9Lj33b8S5Re5rMQKA6t24p0YuLw=; b=obTGLR9TVlklJ4JDKxF1hF4uvbX9HJsAeV62H1S7A+cBypKARPHS0bHlXgamp0gxzq FR0QvNt6E8e8N/Yin/eAumW6WSBVjTzlibb+tPn0NoUJ9yrzS0BBGPGPJBNSltapBv9f zguWQ8fdvLbZZLcoFCsOa45hAF5YYyPn/3+N9EeeIh3mv0axIW5gr7g5/7ZO/CAH8dqK SPXU2T4SNqE3KKaJCLY4g+yKuJQzhVi0+GnnYVF1cZSHWbYKp1Ljqwbo6dboEd8B3yST BY+Fk2d+aF5P9ZWCcxC7H/2EURL8VkuEzwB9wE4J5AWDmMmeik63SfNl5EzEF5r4UZxa /Few== 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=CmGv1Rw6Hsn9ANgA9Lj33b8S5Re5rMQKA6t24p0YuLw=; b=qGAyDnAZLuoUm0lcKOx/eV7A2XH2jtok/XhEcGFgDIf8M4ZGTlKYEE6MKuA6NXpKhx lPNDFWCB5eJBI2knpW1MgwfbEcVtNm8v0FXrtDwboZDM8+/l/Y9MzMoZQdhOdFC1e7rz xYCUegUcDysmulUCIh+SvXC+azJ3RARWa2pFIX1sNiJtkiUvZjslNPNc+ULuBCjdD23H FjS5O9xDGG55N//eoOa4/3oe+VCp2pFRwHqSqR8+JAnut1u9CDdxHNEVHiqYqbPsWFoJ aE9E/KqUrP8zhu3UZJZfvb1zXkwLX7b99VKns9HYzXtu4VDZgoZw7y5qWekLqZWu9YNp Epjg== X-Gm-Message-State: AKwxytfdfzhECA1zHJiUrQdXEucNC7NUxeUzvCI4D6yj2vk4SCbsVqM4 47q0JcHl+EFrsHzH9yxEyG4= X-Received: by 10.157.83.46 with SMTP id g46mr12940543oth.284.1517546580586; Thu, 01 Feb 2018 20:43:00 -0800 (PST) Received: from auth1-smtp.messagingengine.com (auth1-smtp.messagingengine.com. [66.111.4.227]) by smtp.gmail.com with ESMTPSA id v29sm667916otf.66.2018.02.01.20.42.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Feb 2018 20:42:59 -0800 (PST) Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailauth.nyi.internal (Postfix) with ESMTP id E9D5520CDD; Thu, 1 Feb 2018 23:42:57 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute6.internal (MEProxy); Thu, 01 Feb 2018 23:42:57 -0500 X-ME-Sender: Received: from localhost (unknown [45.32.128.109]) by mail.messagingengine.com (Postfix) with ESMTPA id 3FF6E24522; Thu, 1 Feb 2018 23:42:57 -0500 (EST) Date: Fri, 2 Feb 2018 12:46:03 +0800 From: Boqun Feng To: "Paul E. McKenney" Cc: Ingo Molnar , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, stern@rowland.harvard.edu, parri.andrea@gmail.com, j.alglave@ucl.ac.uk, luc.maranget@inria.fr, will.deacon@arm.com, peterz@infradead.org, npiggin@gmail.com, dhowells@redhat.com, elena.reshetova@intel.com, mhocko@suse.com, akiyks@gmail.com, Thomas Gleixner , Peter Zijlstra , Linus Torvalds Subject: Re: [GIT PULL tools] Linux kernel memory model Message-ID: <20180202044603.i2z3q25jeftbct5c@tardis> References: <20180125093440.GA875@linux.vnet.ibm.com> <20180129065724.ybrdsabvktq7fbqg@gmail.com> <20180129095449.GT3741@linux.vnet.ibm.com> <20180131090006.onaopgyqthppoysi@gmail.com> <20180201011728.GL3741@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="hxzmqihrdkbwwur2" Content-Disposition: inline In-Reply-To: <20180201011728.GL3741@linux.vnet.ibm.com> User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --hxzmqihrdkbwwur2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 31, 2018 at 05:17:28PM -0800, Paul E. McKenney wrote: [...] > > - A long term question: have you considered and would it make sense to = generate a > > memory-barriers.txt like file directly into Documentation/locking/, u= sing the > > formal description? That way any changes/extensions/fixes to the mode= l could be > > tracked on a high level, without readers having to understand the for= mal > > representation. >=20 > I hadn't considered this at all, actually. ;-) >=20 > The sections of memory-barriers.txt dealing with MMIO ordering would need > to stay hand-generated, but they are a very small fraction of the total. > The herd7 tool is capable of generating cool diagrams sort of like > this one: https://static.lwn.net/images/2017/mm-model/rmo-acyclic.png, > which might replace at least some of the hand-generated ASCII-art > diagrams. >=20 Which reminds me, one thing we could start with is to try to convert all the examples with litmus tests. Has this been done somewhere (e.g. in your litmus github repo)? If not, I can try if you think that's a good idea. Regards, Boqun > Although I do confess harboring some skepticism about being able to > generated high-quality text, there is no denying that it would be > valuable to be able to do so. >=20 > > In any case, the base commit is certainly nice and clean and I've pulle= d it into=20 > > tip:locking/core for a v4.17 merge. >=20 > Very good! >=20 > > I believe these additional improvements (to the extent you agree with d= oing them!)=20 > > could/should be done as add-on commits on top of this existing commit. >=20 > Sounds good! >=20 > Would you prefer a pull request or a patch series for these? >=20 > Thanx, Paul >=20 --hxzmqihrdkbwwur2 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEj5IosQTPz8XU1wRHSXnow7UH+rgFAlpz7QgACgkQSXnow7UH +rgRLQf+LTeuFTeKP7AbS36x2B/vyKxi2rzUFeoM2bPBLNZmiW80YpnerEoExADu FVMtGVV1dGKmUhkQoQ4ZnOaIrLd8D22NfLKXlzFkQ34EcIl5BtkzpLXQZoIpeAUT K+d64s+saWRhq4G+bOngWACQDMkrvWmsagSnGpI0Hb/AWyDNTF+Xqbw9rIWvOf+6 +B6CV3kiTm6E/5ymS25JsAc0pvi3gbS+7gbN54398j30WmBWGZ7Yl/H58YLn1/pt gIw0jYsIsvxcuaEEpMY+0WIlqwzqIK17Nr/uOfrNet/0gF8/GFhZGnGYCv5o3DWI wgfCG5moGho84HjDwj6NJXdK9iUJDg== =Fp9Y -----END PGP SIGNATURE----- --hxzmqihrdkbwwur2--