Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp248832ybt; Tue, 23 Jun 2020 21:08:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJgyo5Swi022jnaC/16Lz0wwajC5d52TcF2p75y/qArleTTawC7Gjbcm75tNF0QjocgNYY X-Received: by 2002:a17:906:8607:: with SMTP id o7mr14630225ejx.142.1592971707089; Tue, 23 Jun 2020 21:08:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592971707; cv=none; d=google.com; s=arc-20160816; b=K0WPB3ycEM5IhvDBfWJUAJubhhU3Jse1I6vdljSAPkzA9ANaEYZ8UrVoxC6NCQ+sCn tL4uFYmYIqkZWuE79JMSMgNU1h15Y14X6zHIs13sSbWHCkSpsTdPy+QYSadyg71ZmKeA U832I0vOjibNuy+ShePNUvexQfIWTGvGyDNnTpN64ctMQ9EmDkDyOSFmfM2wFumQMWur xwq/4q7Gj4w9nbvulEpZ6kpn2TONnSFcAIjC8AMDbU5mf573J2D14oKWHvXcLTnoIH99 UrFX+ICee8jLFXfCkPFbzqvVXjThKAAYONb9bxmUBjBg0pqU91tttjnzQkj5yNqUnH0b UYUw== 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=cj8PSMWZq4B2m/7UHb18zGtRFqRFJelauExRCTSQ0PE=; b=c6RGqj8ELNO1q5H+HtsjMCowNvIl4IXy2TIXRRVRTPxcPVR7683oWXh4rGzUDulEOH MrCMb0BRSK01Jqxjxyjvs6Kl97/PbdKb6C72AgaAEgjTF1bkMf7RCw94kMrRYpxBqfku j0EJqlo7Vev0dgOjVVnxVWkdAvKUvL4P7MvSZYtX56wI/nvhgr3dXTA/U5y/+/lEinY2 ddtGYeya0yBfpmjyqjxu1rtv2cEPoez7sSWNXWdNCk4Je9icRaBIr+Blbk5JLkyEQjW/ H6W43oPHJZ94xnZGhgmiI4pQmrkfW+DxGlbQDoeo36aslEjD507cbEvGWQ8TGm8xaC/7 Vrng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=G2fm4SY0; 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 r12si13085744edc.599.2020.06.23.21.08.03; Tue, 23 Jun 2020 21:08:27 -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=G2fm4SY0; 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 S1727957AbgFXEFG (ORCPT + 99 others); Wed, 24 Jun 2020 00:05:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:56600 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725765AbgFXEFF (ORCPT ); Wed, 24 Jun 2020 00:05:05 -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 CB1BA2070E; Wed, 24 Jun 2020 04:05:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592971504; bh=UN9AXOXZVMh4VcN/L7a9gqChekTy955irMIWoZV9chI=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=G2fm4SY0SO1gCyEyonbU08pLiG2aQZp/buBlZx/PMtFrFFx9xpfopeTtOA/9Gg/7r F17pnTMhzT8/CEIloxuTVFVbb4FlqmWCjd8x/2GBInM77wA76+0FaROqOCtYzaHP6J yjNoGLVYA2g0KGVBw5mvR7AvqBxmZ1DWvgncv6/8= Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id B3329352265B; Tue, 23 Jun 2020 21:05:04 -0700 (PDT) Date: Tue, 23 Jun 2020 21:05:04 -0700 From: "Paul E. McKenney" To: Andrea Parri Cc: Akira Yokosawa , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, kernel-team@fb.com, mingo@kernel.org, stern@rowland.harvard.edu, 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 2/2] Documentation/litmus-tests: Add note on herd7 7.56 in atomic litmus test Message-ID: <20200624040504.GB9247@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org References: <20200623005152.GA27459@paulmck-ThinkPad-P72> <20200623005231.27712-13-paulmck@kernel.org> <20200623155419.GI9247@paulmck-ThinkPad-P72> <9e1d448a-cf3c-523d-e0a6-f46ac4706c48@gmail.com> <20200623232425.GB418699@andrea> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200623232425.GB418699@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 Wed, Jun 24, 2020 at 01:24:25AM +0200, Andrea Parri wrote: > On Wed, Jun 24, 2020 at 07:09:01AM +0900, Akira Yokosawa wrote: > > From f808c371075d2f92b955da1a83ecb3828db1972e Mon Sep 17 00:00:00 2001 > > From: Akira Yokosawa > > Date: Wed, 24 Jun 2020 06:59:26 +0900 > > Subject: [PATCH 2/2] Documentation/litmus-tests: Add note on herd7 7.56 in atomic litmus test > > > > herdtools 7.56 has enhanced herd7's C parser so that the "(void)expr" > > construct in Atomic-RMW-ops-are-atomic-WRT-atomic_set.litmus is > > accepted. > > > > This is independent of LKMM's cat model, so mention the required > > version in the header of the litmus test and its entry in README. > > > > CC: Boqun Feng > > Reported-by: Andrea Parri > > Signed-off-by: Akira Yokosawa > > Frankly, I was hoping that we could simply bump the herd7 version in > tools/memory-model/README; I understand your point, but I admit that > I haven't being playing with 7.52 for a while now... Maybe in a few years it will no longer be relevant, and could then be removed? > Acked-by: Andrea Parri I queued both, thank you both! Thanx, Paul > Andrea > > > > --- > > Documentation/litmus-tests/README | 1 + > > .../atomic/Atomic-RMW-ops-are-atomic-WRT-atomic_set.litmus | 1 + > > 2 files changed, 2 insertions(+) > > > > diff --git a/Documentation/litmus-tests/README b/Documentation/litmus-tests/README > > index b79e640214b9..7f5c6c3ed6c3 100644 > > --- a/Documentation/litmus-tests/README > > +++ b/Documentation/litmus-tests/README > > @@ -19,6 +19,7 @@ Atomic-RMW+mb__after_atomic-is-stronger-than-acquire.litmus > > > > Atomic-RMW-ops-are-atomic-WRT-atomic_set.litmus > > Test that atomic_set() cannot break the atomicity of atomic RMWs. > > + NOTE: Require herd7 7.56 or later which supports "(void)expr". > > > > > > RCU (/rcu directory) > > diff --git a/Documentation/litmus-tests/atomic/Atomic-RMW-ops-are-atomic-WRT-atomic_set.litmus b/Documentation/litmus-tests/atomic/Atomic-RMW-ops-are-atomic-WRT-atomic_set.litmus > > index 49385314d911..ffd4d3e79c4a 100644 > > --- a/Documentation/litmus-tests/atomic/Atomic-RMW-ops-are-atomic-WRT-atomic_set.litmus > > +++ b/Documentation/litmus-tests/atomic/Atomic-RMW-ops-are-atomic-WRT-atomic_set.litmus > > @@ -4,6 +4,7 @@ C Atomic-RMW-ops-are-atomic-WRT-atomic_set > > * Result: Never > > * > > * Test that atomic_set() cannot break the atomicity of atomic RMWs. > > + * NOTE: This requires herd7 7.56 or later which supports "(void)expr". > > *) > > > > { > > -- > > 2.17.1 > > > >