Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3711672ybt; Tue, 23 Jun 2020 08:56:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzANbhNATOOI9FM0+kQJrrsCXMHaieUBfe5lyjh4AY8R1RHSXUOdTi2sTls/3G+0g83nSFG X-Received: by 2002:aa7:d15a:: with SMTP id r26mr19043373edo.161.1592927809619; Tue, 23 Jun 2020 08:56:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592927809; cv=none; d=google.com; s=arc-20160816; b=UIoNW5pELD1vaE7KCW+Cju/1EAIf0sUAvwibZjyUkr0UIc8DBF6zB5exS9VcjaOPQ/ nu/M6TbcaAO8MKaWb86mFZCyq70x0ZWJc1Am6AJlNaxQ9nDE+zvIokvRNBUvAuMtU4ye 06IlfvZmy7MCdylmkMTbmf4LjmIo7zBIhAW9AZui9I26tH4RMBNV/Una74mE+xfgIonx LximUmf0VifBEULj9GP0X6/DJpVVu5oNN/kEwECXoWPgoE17nov694Bg1hEk8w2mB/JC G2JtLHF4fEfrOnDcEy/PNHvDo3HGSAwBpcu8o+kWx0K5T3zjEWnfPOX2RZRGOCmc8hpR 1OKg== 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:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=2T1WXO4L2xp4x9yRWp76LVxZWk1X5V2A4Md8ay5UBOw=; b=GbPrcmjynkM/yJLWYYtVpVxSdiqmGKDRjG3sb1EvUU7iNoSZmJ7XzHJPszHVPvO2h4 /qJ+anNXIVSKOvSJ551iiGmR7nXV0taKtBnHeVPxiS9uUKp/pd6xawyZyUnaeDVgvQ5u wBpj0tv/2QFhQGHhkDcmdzab8kg/N35WrrUrIMWLmqU7+eF2L8t+t5ZAk6fEpkMJfMWY R0D0fH3IBAjrh4vmj1u566veWo1DfQ5EzGU97PeHb0KI4MgUJ1N6t8i1zDlGk1WdhR+Q iHFKmbWlxOVPgAx++Vr5B1pQngW7/8sXjMVr/+2O3IBINNbHK1Mh3Oua5YHUYLsOIaWc 6kPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="W/u8qXH8"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g1si11074349edv.486.2020.06.23.08.56.27; Tue, 23 Jun 2020 08:56:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="W/u8qXH8"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732978AbgFWPyU (ORCPT + 99 others); Tue, 23 Jun 2020 11:54:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:44716 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732781AbgFWPyU (ORCPT ); Tue, 23 Jun 2020 11:54:20 -0400 Received: from paulmck-ThinkPad-P72.home (50-39-105-78.bvtn.or.frontiernet.net [50.39.105.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 440CE2073E; Tue, 23 Jun 2020 15:54:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592927659; bh=6SrOT80UTSn/ROCESG3xoWDGTuarvycjZLf+Tqy5hbo=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=W/u8qXH8J2KikHKNIe6/s8WAM1SvEVKNzSZI/H/gZrTbWEHdjMJoJtw5D9p+6pVAy XVsc+LAJJDOCEATmPuc//0YGBOE7SlmmJtOc0Q04OJcWi2dau7aXrnCp3+qHHIXZKi mLI+6OZ3AOPmXvFhYGV48ANqfoIyV8mLtVlxWYiM= Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id 2C5613522657; Tue, 23 Jun 2020 08:54:19 -0700 (PDT) Date: Tue, 23 Jun 2020 08:54:19 -0700 From: "Paul E. McKenney" To: Akira Yokosawa Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, kernel-team@fb.com, mingo@kernel.org, stern@rowland.harvard.edu, parri.andrea@gmail.com, will@kernel.org, peterz@infradead.org, boqun.feng@gmail.com, npiggin@gmail.com, dhowells@redhat.com, j.alglave@ucl.ac.uk, luc.maranget@inria.fr Subject: Re: [PATCH tip/core/rcu 13/14] tools/memory-model/README: Expand dependency of klitmus7 Message-ID: <20200623155419.GI9247@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org References: <20200623005152.GA27459@paulmck-ThinkPad-P72> <20200623005231.27712-13-paulmck@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 23, 2020 at 11:37:32PM +0900, Akira Yokosawa wrote: > On Mon, 22 Jun 2020 17:52:30 -0700, paulmck@kernel.org wrote: > > From: Akira Yokosawa > > > > klitmus7 is independent of the memory model but depends on the > > build-target kernel release. > > It occasionally lost compatibility due to kernel API changes [1, 2, 3]. > > It was remedied in a backwards-compatible manner respectively [4, 5, 6]. > > > > Reflect this fact in README. > > > > [1]: b899a850431e ("compiler.h: Remove ACCESS_ONCE()") > > [2]: 0bb95f80a38f ("Makefile: Globally enable VLA warning") > > [3]: d56c0d45f0e2 ("proc: decouple proc from VFS with "struct proc_ops"") > > [4]: https://github.com/herd/herdtools7/commit/e87d7f9287d1 > > ("klitmus: Use WRITE_ONCE and READ_ONCE in place of deprecated ACCESS_ONCE") > > [5]: https://github.com/herd/herdtools7/commit/a0cbb10d02be > > ("klitmus: Avoid variable length array") > > [6]: https://github.com/herd/herdtools7/commit/46b9412d3a58 > > ("klitmus: Linux kernel v5.6.x compat") > > > > NOTE: [5] was ahead of herdtools7 7.53, which did not make an > > official release. Code generated by klitmus7 without [5] can still be > > built targeting Linux 4.20--5.5 if you don't care VLA warnings. > > > > Acked-by: Andrea Parri > > Signed-off-by: Akira Yokosawa > > Signed-off-by: Paul E. McKenney > > --- > > tools/memory-model/README | 30 ++++++++++++++++++++++++++++-- > > 1 file changed, 28 insertions(+), 2 deletions(-) > > > > diff --git a/tools/memory-model/README b/tools/memory-model/README > > index b9c562e..90af203 100644 > > --- a/tools/memory-model/README > > +++ b/tools/memory-model/README > > @@ -28,8 +28,34 @@ downloaded separately: > > See "herdtools7/INSTALL.md" for installation instructions. > > > > Note that although these tools usually provide backwards compatibility, > > -this is not absolutely guaranteed. Therefore, if a later version does > > -not work, please try using the exact version called out above. > > +this is not absolutely guaranteed. > > + > > +For example, a future version of herd7 might not work with the model > > +in this release. A compatible model will likely be made available in > > +a later release of Linux kernel. > > + > > +If you absolutely need to run the model in this particular release, > > +please try using the exact version called out above. > > + > > +klitmus7 is independent of the model provided here. It has its own > > +dependency on a target kernel release where converted code is built > > +and executed. Any change in kernel APIs essential to klitmus7 will > > +necessitate an upgrade of klitmus7. > > + > > +If you find any compatibility issues in klitmus7, please inform the > > +memory model maintainers. > > + > > +klitmus7 Compatibility Table > > +---------------------------- > > + > > + ============ ========== > > + target Linux herdtools7 > > + ------------ ---------- > > + -- 4.18 7.48 -- > > + 4.15 -- 4.19 7.49 -- > > + 4.20 -- 5.5 7.54 -- > > + 5.6 -- HEAD > > + ============ ========== > > Paul, > > I was planning to send an update on this one. > herdtoolds7 7.56 will be released later this week (now tagged 7.56-rc1). > > Andrea tested klitmus7 7.56-rc1 against Linux 5.7 and 5.8-rc1. > I tested it against Linux 5.7.4. > klitmus7 worked fine in all these test. > > So I think we can safely update the bottom row of the table as: > > > + 5.6 -- 7.56 -- > > Can you amend this one directly? > Or do you want me to send a follow-up patch? A follow-up patch is probably best. This can't be the only place that must change? Or maybe we set this up better than I remember? ;-) Thanx, Paul