Received: by 10.223.185.116 with SMTP id b49csp726427wrg; Tue, 20 Feb 2018 06:58:02 -0800 (PST) X-Google-Smtp-Source: AH8x227FRSG0iq0TVGWIO7XCFLi3YUekb2wpLiOtdNvF2WyF/IgQ++ipbu+Dcx3ZWQ6LunE/XD0F X-Received: by 10.98.98.194 with SMTP id w185mr18379764pfb.9.1519138682749; Tue, 20 Feb 2018 06:58:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519138682; cv=none; d=google.com; s=arc-20160816; b=Rs/jAHuZrtqhvVWb+KzijHNAYFdMlKiT/rCT8UBy96iU6iuSTCuK9hl2HewDukdC4M ccinta2XY9ZpiP6iHYF9E6js8qNc8OWmymDEfTcNeGPiwQqK5sD+Um7bOhM1iUHu2aBh Dp0EhzLmhCYuZadVHMflA4l8LXUVt2qIhxyrCQo8L59VlAoAI3JSJ8Dd//pHnuifxIgU DhiiJjhEUg2a6rKitL1ekGHfxdyRFUXXxfZ3HdKbhTDbjdcF5QKQEmm2/3wAPriU3x2s eKqtLi2ge8LAkwHKsuNc6ld6x60FeQwkqMI29YqfKOJhOpHcO/uQ3YaSBsDUn/hcT692 oruw== 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=M9H2QRYUETCLOYu/wtcwcMB4E4z5xtPdXNnzQxNO3P8=; b=M9L0QyEBaUEqhwR9cjQHuqSUk0ifgAzyQ4EoCpAe1DBSxtS+Z6dAxIDfKyfU1i0aJd yrBzO/JOsPFaKJRnfOGL1LnOck4juTLgexNz12kc11ZaBhh3i5zhDPZ9LrV2OPEfbY9g olkScXPHdG6hrCXmAFj9FuR+F93bwRAX+twZU8TCPc1NmYOnFBWcOG0KTGeX6ShMC4Y4 pejEpT4MMiYQl7hx+2rHixvJR1ZRTVPFDWRW2afc35jG/o39ZrduPn3WYUm9ioLhDH+p g7qmw2KerdB64xQKT9mWoXdaQwmI057RPAtf6+9YATzpxltpXgsJNkfbJ2JwMNfkKNDk oDNA== 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 b5si1226195pff.349.2018.02.20.06.57.48; Tue, 20 Feb 2018 06:58:02 -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 S1751893AbeBTO5F (ORCPT + 99 others); Tue, 20 Feb 2018 09:57:05 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:59196 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751000AbeBTO5D (ORCPT ); Tue, 20 Feb 2018 09:57:03 -0500 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w1KEuwX5025315 for ; Tue, 20 Feb 2018 09:57:03 -0500 Received: from e17.ny.us.ibm.com (e17.ny.us.ibm.com [129.33.205.207]) by mx0a-001b2d01.pphosted.com with ESMTP id 2g8j3kt9yg-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 20 Feb 2018 09:57:03 -0500 Received: from localhost by e17.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 20 Feb 2018 09:57:00 -0500 Received: from b01cxnp23034.gho.pok.ibm.com (9.57.198.29) by e17.ny.us.ibm.com (146.89.104.204) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 20 Feb 2018 09:56:57 -0500 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp23034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w1KEuuhv45678676; Tue, 20 Feb 2018 14:56:56 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 144FCB2054; Tue, 20 Feb 2018 10:59:15 -0500 (EST) Received: from paulmck-ThinkPad-W541 (unknown [9.80.232.163]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP id C0B1AB204E; Tue, 20 Feb 2018 10:59:14 -0500 (EST) Received: by paulmck-ThinkPad-W541 (Postfix, from userid 1000) id 0FF2116C8693; Tue, 20 Feb 2018 06:57:20 -0800 (PST) Date: Tue, 20 Feb 2018 06:57:20 -0800 From: "Paul E. McKenney" To: Akira Yokosawa Cc: linux-kernel@vger.kernel.org, mingo@kernel.org, stern@rowland.harvard.edu, parri.andrea@gmail.com, will.deacon@arm.com, peterz@infradead.org, boqun.feng@gmail.com, npiggin@gmail.com, dhowells@redhat.com, j.alglave@ucl.ac.uk, luc.maranget@inria.fr, Patrick Bellasi Subject: Re: [PATCH v2] tools/memory-model: Make compat with herd7 7.47 ("-" -> "_") Reply-To: paulmck@linux.vnet.ibm.com References: <20180209141832.GA17505@linux.vnet.ibm.com> <20180210010703.GE3617@linux.vnet.ibm.com> <0ad5ff99-32e9-df65-70d3-ba4e9ec0f6c9@gmail.com> <20180214225238.GV3617@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 x-cbid: 18022014-0040-0000-0000-000003FA01EF X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008563; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000254; SDB=6.00992515; UDB=6.00504241; IPR=6.00771861; MB=3.00019656; MTD=3.00000008; XFM=3.00000015; UTC=2018-02-20 14:57:00 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18022014-0041-0000-0000-000007FB06FC Message-Id: <20180220145720.GI3617@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-02-20_06:,, 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-1802200189 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 19, 2018 at 12:46:51AM +0900, Akira Yokosawa wrote: > On 2018/02/14 14:52:38 -0800, Paul E. McKenney wrote: > > On Thu, Feb 15, 2018 at 07:20:35AM +0900, Akira Yokosawa wrote: > >> On 2018/02/09 17:07:03 -0800, Paul E. McKenney wrote: > >>> On Sat, Feb 10, 2018 at 08:46:25AM +0900, Akira Yokosawa wrote: > >>>> >From 7c1f497a9a51e8db1a94c8a7ef0b74b235aaab88 Mon Sep 17 00:00:00 2001 > >>>> From: Akira Yokosawa > >>>> Date: Fri, 9 Feb 2018 04:51:05 -0800 > >>>> Subject: [PATCH v2] tools/memory-model: Make compat with herd7 7.47 ("-" -> "_") > >>>> > >>>> As of herd7 7.47, these '-'s are not permitted and end up in > >>>> errors such as: > >>>> > >>>> File "./linux-kernel.def", line 44, characters 29-30: > >>>> unexpected '-' (in macros) > >>>> > >>>> Partial revert of commit 2d5fba7782d6 ("linux-kernel*: Make RCU > >>>> identifiers match ASPLOS paper") in the repository at > >>>> https://github.com/aparri/memory-model can restore the compatibility > >>>> with herd7 7.47. > >>>> > >>>> Reported-by: Patrick Bellasi > >>>> Suggested-by: Andrea Parri > >>>> Signed-off-by: Akira Yokosawa > >>>> --- > >>>> Paul, > >>>> > >>>> FWIW, this is a squashed version relative to patch 07/10 in the RFC series. > >>> > >>> Thank you, Akira! > >>> > >>> I am going to hold off on this for a bit to see if we can instead get > >>> a new release of herd7, but if we can't. this might well be a very good > >>> way to go. > >> > >> So, herdtools7.7.48 is now available by "opam update; opam upgrade". > >> Maybe mentioning the required version of herdtools7 in README would help. > > > > Or have some way for the memory model's .cat files to state what version > > they need, but in the meantime please see the patch below. But even with > > such version specification, we probably want to have the version in the > > README... > > > >> One glitch I'm aware of is one of the output of klitmus7 fails to > >> compile on kernels prior to 4.14, because of smp_mb__after_spinlock() > >> used in Z6.0+pooncelock+poonceLock+pombonce.litmus. > > > > This is one advantage of having the memory model in the kernel source > > itself -- the versions match. And people can always fire up a different > > kernel version (for example, within a VM) to run the output of klitmus7. > > > > There is another unfortunate mismatch in kernel and herdtools7 updates. > > klitmus7 in herdtools7 7.48 requires definition of ACCESS_ONCE() in kernel > headers, but it has been removed in Linux 4.15. This means klitmus7 of > herdtools7 7.48 works only on Linux 4.14. > > In the repository of herdtools7, with the suggestion of Andrea, commit > e87d7f9287d1 ("klitmus: Use WRITE_ONCE and READ_ONCE in place of deprecated > ACCESS_ONCE in "user" synchronization barrier") has addressed the issue. > > This series is intended to be merged in Linux 4.17 merge window, > and hopefully we can have another update of herdtools7 by the time the merge > window opens... > > Dependency to out-of-tree tools looks quite tricky. We need some neat way to > manage things. > > Umm... Yes, dependencies on out-of-tree tools is quite tricky, witness the "fun and excitement" provided even by GCC from time to time. I agree that another herdtools7 release is required, and I do very much thank you for testing this and finding this issue! Thanx, Paul