Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp658368lqo; Wed, 8 May 2024 10:39:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXyPLVReBYDho2SgghJuqmsUkEFIuAuJjzlZ2Qx6WYkWJ8UXRhHyTfXHnnUh0OTOPL19r9kfq/m1+rg2HBlN8SFxvasvjlif7wBwLYDbA== X-Google-Smtp-Source: AGHT+IFOE5Q1lfiUjo6TqIh9UbUMzipUvrNH5Ujk+et4F2lhkHrXkmgif4/6OY6QPgVDhDPnlEEj X-Received: by 2002:aa7:815a:0:b0:6ed:8aa9:4783 with SMTP id d2e1a72fcca58-6f49c208fdfmr3601950b3a.13.1715189990366; Wed, 08 May 2024 10:39:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715189990; cv=pass; d=google.com; s=arc-20160816; b=hDRWw4ttqCo37D1ci9o4xv44OTuO6j0puShLcpitlxYX3UASD9fEtdKu0ACld6W4N/ t0lT/IgH/wMkVmVz4pV8IOS2S8XLp3XtEW1AxFJt2cvI8h5yIPtzts1xEQMIVImHfaXp 3pGcpUN1yEiE53MeL97+3mUF0xXolSXy/4eRRy3MrvyDqqDcrwN6olDKmx9JEHW5S4K2 s/gVbhIKmqr3iHWZBVwsqkWrSSR/OfqA0UZz1Xa4bLmtOauVE/5pw5PKu6QUutryNYCq 4uOXE+rQK/Rsmn/G79KesFf0c1gVfNczj+sduGgapVctsTYAqQ+Yrb+h+dDo5psjNPzX lhOQ== 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=89Fcs5jt84C1JUiKoZfKzfk4IrJUXLJkfFlSpzLluII=; fh=YkZCcsS1+UmqVlKgFfEfKOtCPG1uO79sM+EUoL+QwTk=; b=o3zXm0Y4aDk1hbOR/OE72dawEX8WcF+qjPib3RdSS3Ag9/HKbd63edk+Ko27/WfSk7 sNLFsaeM17tp5JlFN5iArH+AgCgJmg45JsQgA55rGhaNHoFuiLS51O2legXHMBA8cU3p EncBV+dXMDGbm0sMPJoOPo2iNROzQYpw83lFbc852Dfb4GMITb7gLYXB+aupZUp4J1jV VzFqG6Y+7w9vJJ/WJ1E1N4CC74TYHPn6Mm0DjLZPqKk0P8Yr2iJgRG60kF7GG0Gz9FRX OxS/U9wTULW4kqxg6dsT+2xQBIESaXZC7oP9/0NOW6difS+1ni1KTBdPVohkCSY9ezpn yJ+g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uB5RMCHf; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-173637-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173637-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id w26-20020a63935a000000b0061b258e9eb4si12070927pgm.604.2024.05.08.10.39.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 10:39:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-173637-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uB5RMCHf; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-173637-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173637-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 5C386B254D1 for ; Wed, 8 May 2024 17:34:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9AC4D12AAE8; Wed, 8 May 2024 17:34:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uB5RMCHf" 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 BC0E1128829; Wed, 8 May 2024 17:34:14 +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=1715189654; cv=none; b=JC/mfW75gzpAhh3AkRnYT8AmLZrxKaz/KXHs1I5RqYmIdBgumf8Leijmar6zBJwk3TW7L/k+xESO8w72juHth8BPo3W9uEYcDqT7VT14Lj0V3fNIoiSaqvXjF8fnvYYdZt3KhgL0+oH1k8RjdmQspmJv0pXvH0WxI1+Gh+XP/o4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715189654; c=relaxed/simple; bh=RO+OX4OnuX/UqQFFPw0QJr4nwO4KwxnWWktJWf7Ariw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ry16IXrFB+ljcdtSVi/0OZBMAUi7FLvHSZtkSCKLsHGIIjzXWSNd4NZpTsNxartz77gGL7V/lYE53cHvga0oy9o/vF2VOulGhUm4TsBOW+oTTPKrUXs3T4QgP1ih5IDP/rEsmHoOaakLHImQg68X+nOnMauYzUAW0BLLEqGEFWI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uB5RMCHf; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B6A4C2BD11; Wed, 8 May 2024 17:34:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715189654; bh=RO+OX4OnuX/UqQFFPw0QJr4nwO4KwxnWWktJWf7Ariw=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=uB5RMCHf6dt8ZTnS4XNzG8fPZ6xjEtoj4wXKNZWDBJOUoLM12mvC2MPyW96PaJ/o2 u63561FB81vJC749FLbD2cpZv4Ttt8HIAheGsw2StAgOL4vcVIvpMJgAX7ivmA0zOj Ni4wEwwA3c/Y5iuQMKqmkoyJguzjPHmcejJvxVQT/HVvymZwzM1hUYaggD8U05PzDX +CYDeT1eEW3pmOlAi1nKyWB1SSQMjqIZmZUcF7eTf7oywsHAVFA6h9SYs3kHDHFlXI EOxLhJ4UpfrxmIUE9t4Zue94j0HxA2B+tjKt5X6n9hjNDyrHlK0BcPn/hviFBEhOUq 09ajS+d+CCwSQ== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 0FFF0CE0448; Wed, 8 May 2024 10:34:14 -0700 (PDT) Date: Wed, 8 May 2024 10:34:14 -0700 From: "Paul E. McKenney" To: Andrea Parri Cc: Puranjay Mohan , Alan Stern , Will Deacon , Peter Zijlstra , Boqun Feng , Nicholas Piggin , David Howells , Jade Alglave , Luc Maranget , Akira Yokosawa , Daniel Lustig , Joel Fernandes , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, puranjay12@gmail.com Subject: Re: [PATCH] tools/memory-model: Add atomic_and()/or()/xor() and add_negative Message-ID: Reply-To: paulmck@kernel.org References: <20240508143400.36256-1-puranjay@kernel.org> 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: On Wed, May 08, 2024 at 05:28:22PM +0200, Andrea Parri wrote: > On Wed, May 08, 2024 at 02:34:00PM +0000, Puranjay Mohan wrote: > > 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 Queued for review and testing, and thank you both! Thanx, Paul