Received: by 10.223.185.116 with SMTP id b49csp2850370wrg; Sun, 18 Feb 2018 08:02:31 -0800 (PST) X-Google-Smtp-Source: AH8x226lXHltZBZHcpBD6MGRQO3qvtqnmmDiChBgZpQ9CGkG0dyPvbrFTn38PtrpNE8JudUlaKes X-Received: by 10.99.151.74 with SMTP id d10mr857982pgo.249.1518969681638; Sun, 18 Feb 2018 08:01:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518969681; cv=none; d=google.com; s=arc-20160816; b=e0o8sGgBsXTAfIgoV0BuAps6HZYp0PBJUjSHAXvpUFyzO6V0Vg6jxVBeesmWnjR8Pz UhCkZUI4ekSyvdeLWI0c9T1M1TBA4lqk0csjB2DuJ/cnRgrFezz9I8zMvASs4dwqJHwb 2nd+zj5BBRkaJaWfQdbWC3QPObKDBUF1oM6JmPdQFHJtV+1C6Wk5I5GFdPKzFWuAxf2c fItAMNl8VOtmyZEuisgulBcgzVF58M2zs6GjaMUGtdxmzUaBrv0V0jUuHmaipoahTIHz PgQEZEpRk1etisnXRB+iqfirXNwQvIZDsAr8js5TIlMnu7FUPWPtN4SIHdcEzLDf5DWN G5KQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=7JxaHzzHMrT3RkwrfpJmKR2yvqhvRkpQtWqymIZMWRM=; b=KEwX9tGQDDIZCBJwU29pEBwc48JY6Eewdj1U325jsSz4BqP2Qk6NTY4+JO7T//ZAI5 3OepHzBL34YEmPwBLcM4mmV8oTh83Ec1oK0x5lGKfhdvEJVEh1gUrWJTPyYjMvtKWQwh 4OunIKEhB8M+KF1RG4XbOgYkYvwSFMVxp4J7na9wOgxpWsgjrOFXms4CdkuGfgvm8UZN j6IzHOHmDf6/Ey/4vEg8mMJAVDSr73QJNgMrZyVmlWu+h1MvZglHztXWm6tfAUEWtm73 cNKXIzgzkKaUN8qMTNGfrC5n9Tj6oa+MxcwKoLTgP7Q2BFH5ivctan/Gf/f+qNJ3uvJ5 suDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QKQNilIr; 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 i9-v6si4622143plt.544.2018.02.18.08.00.35; Sun, 18 Feb 2018 08:01:21 -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=QKQNilIr; 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 S1751501AbeBRPrC (ORCPT + 99 others); Sun, 18 Feb 2018 10:47:02 -0500 Received: from mail-pl0-f68.google.com ([209.85.160.68]:40158 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751337AbeBRPrB (ORCPT ); Sun, 18 Feb 2018 10:47:01 -0500 Received: by mail-pl0-f68.google.com with SMTP id g18so4339791plo.7 for ; Sun, 18 Feb 2018 07:47:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=7JxaHzzHMrT3RkwrfpJmKR2yvqhvRkpQtWqymIZMWRM=; b=QKQNilIrQ0/0N03qP0qhCU9GxP7X31Tbidg5xnKXxIi9KZiAl+EiOIKFBqxM85dgcR OovtFDMKpqhvy0AJz8j3P0qN0NRYlF4wj5loA2Q4ucJLQcIss1zTb257cDDpm0j2w+sr DDrXSdRntL0f6zAqVgxU+uiUYeRdlgw/GFy0PVQN3rlmRGSNNWW39KuZlqC7SOGqWdz9 4EqrpXoSmI9+CtFEmG3a5K82BHCD/dL+g+C0LCNLxkrA6ad/ApRZk11xHTV26sPcaonu /fmCMInOhCh+QtjUMCodYCHazNbmXlbU/RAukW2tqhEJSx1S7IAn7c1V2Qdb6NhTaByW 5WeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=7JxaHzzHMrT3RkwrfpJmKR2yvqhvRkpQtWqymIZMWRM=; b=HJeMtk84fBqQFnfO2ZQVvt2HeGBsYGV8J471Jasi+z71gEUFBN3HcKYoLs5bVOE7hA zVrd98d+VzevDw5wUoU9UJ1pSL4DExFnTZew4q4jp8gL1XoisBigXJ5ZoRgBFJeFf8oX FubqEEr1gD88xKSpRE7SK7TgR4m67m1X44dAKGuuFUudwcLByYE+jEAsGbjlUVwhPvsI p03hQbwaBJ/zDDEmhAXDOy8CK/ik0gToTmqWBP7OB2l5w09ZW4JPoF8uUSgGxBMs0ASK d7wljyOMP39SPTcEiGh58op9ZHgPkMRW546QC+YWxxif3oxC5I9slJVUhpqCRNqKWmZJ pLYg== X-Gm-Message-State: APf1xPDR/FLtJHTQhgCKOCuGzieeDcCLJ2gppFggIbPNypNnD/HcGG5o PE6QntryKK/M3oSj2UZq2kY= X-Received: by 2002:a17:902:aa87:: with SMTP id d7-v6mr5229319plr.237.1518968820819; Sun, 18 Feb 2018 07:47:00 -0800 (PST) Received: from [192.168.11.4] (KD106167171201.ppp-bb.dion.ne.jp. [106.167.171.201]) by smtp.gmail.com with ESMTPSA id e127sm11331714pfe.157.2018.02.18.07.46.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Feb 2018 07:47:00 -0800 (PST) Subject: Re: [PATCH v2] tools/memory-model: Make compat with herd7 7.47 ("-" -> "_") To: "Paul E. McKenney" 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 , Akira Yokosawa 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> From: Akira Yokosawa Message-ID: Date: Mon, 19 Feb 2018 00:46:51 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180214225238.GV3617@linux.vnet.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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... Thanks, Akira [...]