Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp56774lqr; Tue, 4 Jun 2024 21:06:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUmBc5A1pDTYpPYW0mbWpMlhYkJJFNg7YI4qIXJmdyGlHWMV3mrU9JZiMG/eQyHYntmxS1NSb0Wx1zaSwDMnlpwDX2dpwUCZvc/qnwHsw== X-Google-Smtp-Source: AGHT+IEv3Z71q3HmewaowJFlbpuueGS0Z0fZMCtJkpFPe0YfA2cjl47nDYWQjS8Wc/fD/AgXflh+ X-Received: by 2002:a17:906:c357:b0:a5a:5b1a:e2e4 with SMTP id a640c23a62f3a-a699cfb9170mr128534166b.20.1717560369767; Tue, 04 Jun 2024 21:06:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717560369; cv=pass; d=google.com; s=arc-20160816; b=Kyq0rhFdHca8JtjtnMnv6FAToVO9vvtybDSp/0GhKWMWJpDU+ffYt3/qfQ748Dkide 8Rny9yyo6kdVB6CpwOt+omP1ffEEFTg5QqpWKR1kdQFCiIJGf6JpjNaAD51jvvwD8JlA BFOFLWjAsogkfPU30PJX+fb9rbgmvv09e0tIEJTGSJNQ9r/RUt0P0EdDvKBMzuKkTug1 F2C6o01yW2QYeXcYFy8O0hxa6ojWWXBmLk1tTp1VOWrj51VbDFqu9k+22Ow8ThAQKBIM IkNnNfivQSzCPRYnS+SEMvupCz9tyoYaBKI5hWwLjysTfnZtIdRJxehggwuxYDdR3ymr umeA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=w6FkCe1xJVGG02ZDEYBcbF1BNwFhc4uFJe1d/uVetSo=; fh=azRphUMOUvl9R0Z/M1rQxLQefAv9CyQk60mSDR+WfC0=; b=l5XoG5esvep1/An2PoO0okilu6bfoLxjiNW8Arl6tDZltFKDCuniYn6h/yoj7xtvFq kMyvUJ7gxAbM83XPxmQLQzgA89L4wj/DQsNCGLKFdD6QxvY/vk5PGjaVGjpsC9VJsQH4 kSNcNdHs+qrzDK8xPN8iYcFmvWyGyoRiLtG/h5X27CHaTxyNdAyv6ZGM372M/y0v5b0D Y5so0a9D3b160n14r2HIe2qRFoEbTz8xV9Q0TG7aSymCOuiaeqtHhtPQVkAdYlojV6ev zd6BDB8qTowKgPKbhm7zgiYG6w0gpk+hlJacMMrvrDhKxF8NFaV/6NKEhQOsPjnKtSc/ M60g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PGDMG7dj; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-201741-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201741-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a69064f8a4fsi262874666b.283.2024.06.04.21.06.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 21:06:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201741-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PGDMG7dj; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-201741-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201741-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 808921F22540 for ; Wed, 5 Jun 2024 04:06:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D855F7346F; Wed, 5 Jun 2024 04:06:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="PGDMG7dj" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0A6B925777; Wed, 5 Jun 2024 04:06:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717560362; cv=none; b=obxhxIe9XshJPwvMWAgChS3pIQJAWYL5kA0eQBBqI1eEDOdvh3LULixfZjoA5XXM0MWfxzsK47mfVHUe47qPqzTeN8fetfWmRqZWLAouHOvhBx74JJJTlz8s7kPCa7pRAY7u5FAMFtjvFuUzk6pd6Ckqqs+4WClSoqrCnF3jIlo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717560362; c=relaxed/simple; bh=rLGPqPmytPuP+ypZgU32vsrIIMSLhcGGZabsJT7wtxg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jVNG12fF7xY/YeSSShpnXWtiutOrtEgjjIB0qA4rkQphrYvUOBN3J2xNjU014uT1TKzygjivDaekGHrc+LAcS0iUrHTFntjTnzpvCCiZpeyj5Jo5s7ULH+0Mgobpk9EtfWUTznh9n9Xx0UXnjtDxmKb6vGVr9L1U9MH2jYBEV1w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=PGDMG7dj; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8FB68C32781; Wed, 5 Jun 2024 04:06:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717560361; bh=rLGPqPmytPuP+ypZgU32vsrIIMSLhcGGZabsJT7wtxg=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=PGDMG7dj2DMj09huh2fYRJ4AhUnZCxFgC1ZlmmNwKMzL9FY6345f3ABeGwMCNYtpX gQDQfo7ICLjrnUJyas5NSfA8z/QZtFdxqauoqvknNGq5Bi2Pm35MWw8U0/3Juc1J59 zwfUxBIkQj2FUA8S7jaRj85/KpKgwIgINa0kOw6X2RTd1b79FB4xPPT5rI8RpQxWJS zIW5tZCWAy7vNK1yNwr5e29u2JPS/8LcTVlEj5rviZd7OiYBq7shnr2sX7/1c9tkXH SAHDLInw7ro8r9Qh4unuNrdKUoXMQuG5/3fSWADPX2j7XDNyLFiovoXD86JRihzrWQ awoKr2egCa5/A== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 2C2FACE3ED6; Tue, 4 Jun 2024 21:06:01 -0700 (PDT) Date: Tue, 4 Jun 2024 21:06:01 -0700 From: "Paul E. McKenney" To: Akira Yokosawa Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, kernel-team@meta.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, Puranjay Mohan , Daniel Lustig , Joel Fernandes Subject: Re: [PATCH memory-model 1/3] tools/memory-model: Add atomic_and()/or()/xor() and add_negative Message-ID: <42383b44-5d65-44cd-af98-608e4dd7dfa2@paulmck-laptop> Reply-To: paulmck@kernel.org References: <20240604221419.2370127-1-paulmck@kernel.org> <99545c09-4a14-4f8d-9d3b-c687fc318714@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <99545c09-4a14-4f8d-9d3b-c687fc318714@gmail.com> On Wed, Jun 05, 2024 at 09:27:12AM +0900, Akira Yokosawa wrote: > Hi, > > On Tue, 4 Jun 2024 15:14:17 -0700, Paul E. McKenney wrote: > > From: Puranjay Mohan > > > > Pull-849[1] added the support of '&', '|', and '^' to the herd7 tool's > > atomics operations. > > > > Use these in linux-kernel.def to implement atomic_and()/or()/xor() with > > all their ordering variants. > > > > atomic_add_negative() is already available so add its acquire, release, > > and relaxed ordering variants. > > > > [1] https://github.com/herd/herdtools7/pull/849 > > > > Signed-off-by: Puranjay Mohan > > Acked-by: Andrea Parri > > Reviewed-by: Boqun Feng > > Signed-off-by: Paul E. McKenney > > Cc: Alan Stern > > Cc: Will Deacon > > Cc: Peter Zijlstra > > Cc: Nicholas Piggin > > Cc: David Howells > > Cc: Jade Alglave > > Cc: Luc Maranget > > Cc: Akira Yokosawa > > Pull-849 and Pull-855 at herdtools7 happened after the release of 7.57. > So I thought patches 1/3 and 2/3 needed to wait a next release of > herdtools7. > > But these changes don't affect existing litmus tests. > So I don't oppose them to be merged into 6.11. > > It's up to Paul! I do not intend to send these to mainline before the herd7 changes are officially released. But why not be optimistic? Hence sending the patches for v6.11. If the herd7 release is not forthcoming in time for the next merge window, I will rebase the documentation update underneath the two RMW patches, and send only the documentation update. But maybe I should do that rebase sooner rather than later... Less opportunity to forget that way. Thanx, Paul