Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp964555ybg; Wed, 3 Jun 2020 19:37:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVmjgysJolItdRkHQhK9vJMVnuHH2LD6LzU7B4cdPe0dby5GgAG9tNw14vX9LOKaXMMAyr X-Received: by 2002:aa7:d2d6:: with SMTP id k22mr2292890edr.109.1591238238327; Wed, 03 Jun 2020 19:37:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591238238; cv=none; d=google.com; s=arc-20160816; b=kmS8rtgZQAspVVFeaDnoKlnZexMVbb2UzxGrUl6gsb2EvA7QxgjjFhh9gUnPK7oMfC XNmptYC0e8Gdu+fqFTDJICrtHo99s0HYyM/WZiw8688FBMyrcvK/dcQdwQh00/xl9usU pllFyHUecSvviwzK4zNlgrDD3fQx3aNczQuAVZ3hMC8e1ldyhsD/J0Nm+k9PGpklmSoL Ns8rEOtzRM89sThnzfCNZ+/QkxyYm0hrAOUKg9kkZP7JvH5nv29z2js+WRbOIXqMHF5n 9gqtuOIUfJZmcEhoFekxkaqcE9FJ8cXn3wxxcvRVWhWjbiT4tUMcNskyd8lcg/bpDxkL B6cA== 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=OPPLyiuDo0krY/FQIAUjZATC6I/Kx8RlgKimwIG5LCM=; b=eMk/98vlDp93FtR/6t0zptLSPwxZeMaVIxgtv4BK0eDWB+oh9YisE4JdvjZqqureEX aRYGomr+sNAg3zIs6HHds6qzk/lWjEq8tfWLdZLQmneOPG9var3eXlKN/17E6h/jAJ3S b3q4DiNdfRwJpkc6o1dCSSpPfEoSiTXtTAlemDJLfstAw7AOtNLYOwLUbFJkJCVJ2RtW 9Xbw0TWFAAU8+oUhRFl62y1CnWPA+oc5In7BgHg62Ys7aZ4SI/d7D+J7M4KeXoXe54nk fjbLMq0x/hSZNo7MyRIrx5RK+Q//fUDFtWSBFQygyul65LGfZBG/JzljsTJ+yad/Qncm /oVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VDAsQwAP; 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 s5si879651ejv.64.2020.06.03.19.36.55; Wed, 03 Jun 2020 19:37:18 -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=VDAsQwAP; 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 S1726846AbgFDCdA (ORCPT + 99 others); Wed, 3 Jun 2020 22:33:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:47750 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726337AbgFDCc7 (ORCPT ); Wed, 3 Jun 2020 22:32:59 -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 07D7120657; Thu, 4 Jun 2020 02:32:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591237979; bh=nkcDQQdUvb7qTq1n10CXRDABnrT77AQLwUdiWRqhWYE=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=VDAsQwAP33wgORMvfS0T+A9ovT5WL/cPjVJ2dfiljT19QNdJcCOpYO3tSZPsGnOKq 00BWW2zwYry1ftG5Zye5MhDZ8JG3au1ubrQi+reBdrw1ZvsLbv4rJNJKR98BPz1k1e PcwPUhM4XAgeqRffBrlkM/H4EZkGXQD7wYVjW1Mg= Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id DB1073522946; Wed, 3 Jun 2020 19:32:58 -0700 (PDT) Date: Wed, 3 Jun 2020 19:32:58 -0700 From: "Paul E. McKenney" To: Andrea Parri Cc: Akira Yokosawa , Boqun Feng , Jade Alglave , Luc Maranget , Joel Fernandes , Alan Stern , Will Deacon , Peter Zijlstra , Nicholas Piggin , David Howells , Daniel Lustig , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org Subject: Re: [RFC PATCH -rcu lkmm] tools/memory-model/README: Expand dependency of klitmus7 Message-ID: <20200604023258.GV29598@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org References: <4a05e568-aa30-423a-badc-f79f0af815a0@gmail.com> <20200601043433.GA21675@andrea> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200601043433.GA21675@andrea> 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 Mon, Jun 01, 2020 at 06:34:33AM +0200, Andrea Parri wrote: > On Mon, Jun 01, 2020 at 12:37:20AM +0900, Akira Yokosawa wrote: > > From 87048d7212f6cb16b0a2b85fa6d2f34c28b078c0 Mon Sep 17 00:00:00 2001 > > From: Akira Yokosawa > > Date: Sun, 31 May 2020 20:04:32 +0900 > > Subject: [PATCH RFC] tools/memory-model/README: Expand dependency of klitmus7 > > > > 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. > > > > Signed-off-by: Akira Yokosawa > > Acked-by: Andrea Parri Queued, thank you both! Thanx, Paul > Andrea > > > > --- > > Hi all, > > > > Recent struggle of Andrii with the use of klitmus7 on an up-to-date > > Linux system prompted me to add some explanation of klitmus7's dependency > > in README. > > > > As herdtools7 7.56 is still under development, I called out just HEAD > > in the compatibility table. Once 7.56 is released, the table can be > > updated. > > > > I'm not sure if this is the right place to carry such info. > > Anyway, I'd be glad if this patch can trigger a meaningful update of > > README. > > > > Thanks, Akira > > -- > > 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 b9c562e92981..90af203c3cf1 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 > > + ============ ========== > > > > > > ================== > > -- > > 2.17.1 > >