Received: by 10.223.176.5 with SMTP id f5csp625884wra; Fri, 9 Feb 2018 04:43:35 -0800 (PST) X-Google-Smtp-Source: AH8x2268Dvejczv84dv5Q4AkKYE0fUfIewGuurn3ozeMdzC+AqIWwtOqmQaqJc66f2gsjFsXVBM/ X-Received: by 10.99.174.7 with SMTP id q7mr2292402pgf.170.1518180215252; Fri, 09 Feb 2018 04:43:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518180215; cv=none; d=google.com; s=arc-20160816; b=TH/E7BAlAv0T6yKVgOt+Big9PMMkLHdWbam27Sp+IMla8O0Mhihj20qhNideyN5AM4 PfVGpv8rSE+Ej+HwfU/g1tApsS+dsWztQh3MZru/9PkgTRvfNI03tUQpFRQKPjhyPckT nwEiHhLE6p6iBWV9RQNQK5L7Jjup8rDouW0ChnYWpnqOaqKDehab9pbkw4GZr50lUY4J m4XyLxWWZ5B7L9UgSNI3wn883n+NHZhCU+llo4em4oE4N8+ZARKed6BbdmaJ76tVP0mW J90fBBdA31zyQEgHtGTu1DaavZP8LkdY/FLHHF8mWO4edXBKhZR1UAfM2Xtk6mqmnc1T 5HkQ== 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=4+Cys2lq80ni4N/JNFgBsW14z+SwNJC0gvmQBDed4tI=; b=UZzEpROoYktncDBO758mFzvwt6cigceBWMFFwWlpHgzJwx1++qphUgkD7u1hc2MWWw Pb/Gqtk7E7HZAOHbhm6iWJ/42AdWPfaudvpqKf2I69ZncH6avBz4XgEPac3bD/+QHYC1 0bIAqkzqP2Yi6YT6OovvRzbgftzAvs6fGlGmDgqmiuF6roOhC7LmbWmAO/vGJ/wJfe+Z FwLyzMaYwerxR+gvFzwof7HCADn3GvPFO3Pnym3MTk9miR3MM0g1rMoztMG8gPghhdvr TpUMaeGk5vEwkjwCoXWwRUGlf5z8E43XclEvZkUi9QUKDW7Qlb5b+PluUu8liJpSICvl BNwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MLEulD/4; 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 k9-v6si1485311pll.578.2018.02.09.04.43.20; Fri, 09 Feb 2018 04:43:35 -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=MLEulD/4; 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 S1751113AbeBIMlW (ORCPT + 99 others); Fri, 9 Feb 2018 07:41:22 -0500 Received: from mail-wr0-f193.google.com ([209.85.128.193]:46964 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751071AbeBIMlU (ORCPT ); Fri, 9 Feb 2018 07:41:20 -0500 Received: by mail-wr0-f193.google.com with SMTP id 111so5213020wrb.13; Fri, 09 Feb 2018 04:41:19 -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=4+Cys2lq80ni4N/JNFgBsW14z+SwNJC0gvmQBDed4tI=; b=MLEulD/4Xd5HSoka2so+YzRaD+/8Vh8gT9T9rlrLOTD9k+s+jtNLXUo23JztI1begd 0oEtzBnrkHP6jXl8oF7b7uZ4udo+05S7eJ0hPx/DQAPtSU7ojnQFZFNqu1FCS/BfzIfw h5F5eKYrsDabuIiS8YEOYxqygDF74GOwApsfr2uJWGAW/44IijW9PJ0+JRtZpTfv6sbl 6Aboi2XjLhRcLBtRWzbd8QA8RVV49O8jbw2JAPVU/MfmGFAK71PMTp/EqAnojS2Ab+2l PbCDyIAxzhjSOUdjJzKZsn7J+yTCsF4iHcRzLhaXTA9xriyXIXJexDPcCsGnLsvIpLBu p9Tw== 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=4+Cys2lq80ni4N/JNFgBsW14z+SwNJC0gvmQBDed4tI=; b=FpyECzA4uGiAslGxY05EGRp+yk+4/5a9VR5BlOgd2Li2gEyBfM3oGYe82a6VON0dwm nkNwoSwvzj+/vrqqazYTShzQ1TyN8f4GOrDjZ+V/WDXyzHss+CMP0Oaf772yLwOQT8zF 5+WRCJFc6oiMdAtD6C+WN6eVrNhcvrGHVSuKEVzmpEDNvFg41RuigvpGdAsGqq0xjdvC w2ldSLX6Ge4RHLsEaTMPx+e2NRjHQ4cYC/uslhl6WRoTGpgodvkXWPC3p0dsVjX5nojc MET1GtLqfilSpXjm1Pdxvbcb9G9dDUExFDoOPcrQOnaUDx+umEG7zTCVp+phPbwM4dEP Zljw== X-Gm-Message-State: APf1xPAvOuswg9nB09cZJJ0hvbeuCvzSa1hLjFXAYfKJxLai0XiVlLVS EYdb2KYp4/uhF5QfzPl3hyE= X-Received: by 10.223.198.200 with SMTP id c8mr2432357wrh.79.1518180078955; Fri, 09 Feb 2018 04:41:18 -0800 (PST) Received: from andrea (85.100.broadband17.iol.cz. [109.80.100.85]) by smtp.gmail.com with ESMTPSA id j44sm3630468wre.86.2018.02.09.04.41.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Feb 2018 04:41:18 -0800 (PST) Date: Fri, 9 Feb 2018 13:41:12 +0100 From: Andrea Parri To: "Paul E. McKenney" Cc: Peter Zijlstra , Patrick Bellasi , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, stern@rowland.harvard.edu, j.alglave@ucl.ac.uk, luc.maranget@inria.fr, boqun.feng@gmail.com, will.deacon@arm.com, npiggin@gmail.com, dhowells@redhat.com, elena.reshetova@intel.com, mhocko@suse.com, akiyks@gmail.com Subject: Re: [GIT PULL tools] Linux kernel memory model Message-ID: <20180209124112.GA21524@andrea> References: <20180125093440.GA875@linux.vnet.ibm.com> <20180208184106.GA17043@e110439-lin> <20180208200219.GE25181@hirez.programming.kicks-ass.net> <20180209091110.GA14128@andrea> <20180209112937.GU3617@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180209112937.GU3617@linux.vnet.ibm.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 09, 2018 at 03:29:37AM -0800, Paul E. McKenney wrote: > On Fri, Feb 09, 2018 at 10:11:10AM +0100, Andrea Parri wrote: > > On Thu, Feb 08, 2018 at 09:02:19PM +0100, Peter Zijlstra wrote: > > > On Thu, Feb 08, 2018 at 06:41:06PM +0000, Patrick Bellasi wrote: > > > > Hi Paul, > > > > thanks to you and all the involved guys for this useful tool. > > > > > > > > I give it a try today and found that by installing herd7 by just > > > > following the instruction in herdtools7/INSTALL.md, and precisely > > > > installing it via: > > > > > > > > opam install herdtools7 > > > > > > > > it seems to give you a tool which fails to run the basic example in > > > > your README with this error: > > > > > > > > File "./linux-kernel.def", line 44, characters 29-30: unexpected '-' (in macros) > > > > > > > > As suggested by Will, by building instead herd7 HEAD (commit 44d69c2) > > > > everything works fine. > > > > > > > > Maybe it's a know issue, in case just ignore me. :) > > > > > > > > Otherwise, maybe it can be worth to add to the README a note on which > > > > minimum version of the herd7 tool is required. > > > > > > > > opma version (not working) : 7.47, Rev: exported > > > > master version (working for me) : 7.47+7(dev), Rev: 44d69c2b1b5ca0f97bd138899d31532ee5e4e084 > > > > > > Urgh. So that's why it wouldn't work. > > > > > > I remember Paul saying you needed the latest version, which is why I > > > rebuild from opam, but building top of git is a bit much. > > > > +1 > > > > _Sadly_ enough, co-developers and I were aware of this issue, > > but it was only mildly reported here (c.f., > > > > https://marc.info/?l=linux-kernel&m=151638196427685&w=2 ). > > > > This bisects to that (crazy): > > > > 2d5fba7782d669c6a1cc577dbc3bf507780273bb > > ("linux-kernel*: Make RCU identifiers match ASPLOS paper") > > > > From repo.: https://github.com/aparri/memory-model > > > > which not only did break 7.47, but also made the bell uglier > > by mixing dashes and underscores in a very same block. > > > > As a solution to this issue, I can envisage a partial revert > > of that commit (just replace those dashes); Paul, Jade, Luc: > > any better solution? > > > > (Sorry for being late on IRC, glad this came out here,) > > Or maybe a 7.48 release? This would work, _prior upgrade. (This's not my call of course). I do however want to iterate, looking again at the above commit: 'rb_dep (*smp_read_barrier_depends*) || - 'rcu_read_lock (*rcu_read_lock*) || - 'rcu_read_unlock (*rcu_read_unlock*) || - 'sync (*synchronize_rcu*) || + 'rcu-lock (*rcu_read_lock*) || + 'rcu-unlock (*rcu_read_unlock*) || + 'sync-rcu (*synchronize_rcu*) || 'before_atomic (*smp_mb__before_atomic*) || 'after_atomic (*smp_mb__after_atomic*) || 'after_spinlock (*smp_mb__after_spinlock*) The question arises: dash or underscore? This needs to be fixed. Andrea > > Thanx, Paul >