Received: by 10.223.176.5 with SMTP id f5csp475054wra; Fri, 2 Feb 2018 00:43:51 -0800 (PST) X-Google-Smtp-Source: AH8x224s12Dv95N3w2XvM1bAGFrH7+Y2+jGDSPrv8+aNvfKN0dveA5U0E98IJn7T/LWOXAiTMvu+ X-Received: by 10.98.182.16 with SMTP id j16mr8382469pff.220.1517561031693; Fri, 02 Feb 2018 00:43:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517561031; cv=none; d=google.com; s=arc-20160816; b=Hvyl+Ykxihj9SMSdmKaqcRj2J7+uCH/XlgBiBYz2klIWjzTLX/6w65SGTISftnRzT6 +pNHVtzdxc96oBWwRBcUnhvomO2CjAMgB/6Hbowup3NVq60UhpMYxFOhouE0m7YgHtLW V3QLMh8qySNBZ4KNc+jihoIBZ2ic2G1Hqj/Ezp+kB6lOzb/DOTV5pBQ9nLRpztw/T08Q 8ay9L2RuTJhjTTmuX+caRj1N/Niz+JabvJie4QGPpW5MDcF+5HqJT9eupAoZ3utttvvL eExWuD9Oao2iJcLkvG9se6+xNLE/5rFbBLXx5Jn3WeBEV2JniYD8ffheKan+H1kJ7cNh v4ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:subject:cc:to :from:date:arc-authentication-results; bh=2hExHQmZcmcq6mc9y4LcThc2G+KJ7WbSaCoT528aLCc=; b=MnGcF16ByEZgYfedfAMNlW0+ideq6CrsT8Ww2VqP/rYdxzRPcJhP65NTsvaUuaZthE AJ5/x+5fXFSk3CevFUNGSSh+mEN7jsfO9RqJPDOIh/ly8w8NQNBasKmFdGZ5xPWsSHRt mvwA5teex015weMAfM6JttgIaWJk9HSnVocA40vVp+tLquZOdq6IebaICRzrxVwCfCsq +VWGLBH5lumx3P+IyZn8fN+nI5+CsPk4Gjtgme3WObZHFBke7pRSfdkBOmTqgC+h5Wcz Jh8cqIV0Z+5f2KlCVqlsG9Fr5TlYM0yQaZXUyNVvWy4KbIaPjjr+56wfv8PxHCri2yVf ttvQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t19-v6si1368720plo.128.2018.02.02.00.43.37; Fri, 02 Feb 2018 00:43:51 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751970AbeBBIlY (ORCPT + 99 others); Fri, 2 Feb 2018 03:41:24 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:54998 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750795AbeBBIlH (ORCPT ); Fri, 2 Feb 2018 03:41:07 -0500 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w128eeg9060065 for ; Fri, 2 Feb 2018 03:41:05 -0500 Received: from e13.ny.us.ibm.com (e13.ny.us.ibm.com [129.33.205.203]) by mx0b-001b2d01.pphosted.com with ESMTP id 2fvks7tgua-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Fri, 02 Feb 2018 03:41:02 -0500 Received: from localhost by e13.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 2 Feb 2018 03:40:52 -0500 Received: from b01cxnp22035.gho.pok.ibm.com (9.57.198.25) by e13.ny.us.ibm.com (146.89.104.200) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 2 Feb 2018 03:40:46 -0500 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp22035.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w128ejmf48103518; Fri, 2 Feb 2018 08:40:46 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7D730B2050; Fri, 2 Feb 2018 03:37:42 -0500 (EST) Received: from paulmck-ThinkPad-W541 (unknown [9.85.207.237]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP id 3BCD0B2046; Fri, 2 Feb 2018 03:37:41 -0500 (EST) Received: by paulmck-ThinkPad-W541 (Postfix, from userid 1000) id 92B1716C0EFE; Thu, 1 Feb 2018 21:40:13 -0800 (PST) Date: Thu, 1 Feb 2018 21:40:13 -0800 From: "Paul E. McKenney" To: Boqun Feng 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 Reply-To: paulmck@linux.vnet.ibm.com 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> <20180202044603.i2z3q25jeftbct5c@tardis> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180202044603.i2z3q25jeftbct5c@tardis> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 x-cbid: 18020208-0008-0000-0000-000002CB98A0 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008461; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000248; SDB=6.00983875; UDB=6.00499021; IPR=6.00763153; BA=6.00005808; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00019331; XFM=3.00000015; UTC=2018-02-02 08:40:50 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18020208-0009-0000-0000-0000381FE7F5 Message-Id: <20180202054013.GV3741@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-02-02_01:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1802020103 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 02, 2018 at 12:46:03PM +0800, Boqun Feng wrote: > 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/, using the > > > formal description? That way any changes/extensions/fixes to the model could be > > > tracked on a high level, without readers having to understand the formal > > > representation. > > > > I hadn't considered this at all, actually. ;-) > > > > 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. > > 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. That would be very helpful, thank you! There are probably some that are already in the litmus-tests directory, but I suspect that most are not yet converted. So please do! Thanx, Paul > 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. > > > > > In any case, the base commit is certainly nice and clean and I've pulled it into > > > tip:locking/core for a v4.17 merge. > > > > Very good! > > > > > I believe these additional improvements (to the extent you agree with doing them!) > > > could/should be done as add-on commits on top of this existing commit. > > > > Sounds good! > > > > Would you prefer a pull request or a patch series for these? > > > > Thanx, Paul > >