Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2879729lqo; Tue, 14 May 2024 12:02:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVSb8O16L/Gb8+taZQU0gqdQTCCmvGVSR0TQre8snxnOoSP/0JFp668jejl2r0seqSI6N4XeXOKOnWryPAWBfEQd1qZ+eF5ND3ofkbA+Q== X-Google-Smtp-Source: AGHT+IE6QZ4aFOFS0r6gTzS2j4BHbzOBKLVzwzQ9XVLTP+6fSzTNjPj6gzX2Gtrn/vi6V+IfIrek X-Received: by 2002:ac8:7e8f:0:b0:43a:b7da:ec97 with SMTP id d75a77b69052e-43dfdb92379mr168304021cf.50.1715713372869; Tue, 14 May 2024 12:02:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715713372; cv=pass; d=google.com; s=arc-20160816; b=tWdsMzOMFSaLPPzXf1a9fm8ct3Cn9M14kg+XFS33Y62sRnmF/kkcmUibGE5N4sSsap NECtp5jug2aUwsoqA9eOeffjxgp9t/bShVOnDx8jO0nHIWcPiEfEMNXVyobfp2uGQ9Ey t9kgq5Ze5/xKDxwMuLWvxGVgq3O7iHQ+xjsI4iw9PYwtIuB1HJwE8TNvz5xjUVqArkAC RAIbEwbQuB+3sB/SkC19UvcsGinf9HMdI2w9IjFjZ7UfImMiTcdNnhbLYntI6lkPcyUp wbYOmxv2ahq6E7utzQQDxDeS/ENJLO+e1dtadpGf93PIhx9a9tnB9w9GjxIen+xBZfdh wALg== 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=lE0wVtaV8HCxgWxnXSQy7mh88qUoqAt2NsYr2nRwNoY=; fh=YkZCcsS1+UmqVlKgFfEfKOtCPG1uO79sM+EUoL+QwTk=; b=RLGEm0FHaezgix10ZwEHYy0JB7EYpsGd6F5rt85tveaFyGMnLjFJ7KYFqmcrGxOAR0 MRWqGxp1jdmErKFM3y0ujqkoJp1RSFJi2SfqxUAKARXXGOZCD5zBwxHUx4rHkufMBCSV I/e3KUeXXLKIQ6exT3U9bjSDOpMlFStKnReyeOVJpySC5dOFWTzYxr3wiW3AOPfKnZdf tGpEK5K2YYgQ3Kry5t3uAMbfT0NrNO12ukQz5yUrpg0VMyQD7g1iUIoBhoqZacSkDvvo 1hmVQFdFPyS/9vFIiz0mZrHyIkrHdYyl6LI2h2VWXGdVuoQEC2gJuHFKZwbUso0O7OaV +TuA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="qu0sGo/S"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-179086-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179086-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43df549d022si116025981cf.116.2024.05.14.12.02.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 12:02:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-179086-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="qu0sGo/S"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-179086-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179086-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 923901C216D6 for ; Tue, 14 May 2024 19:02:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A0843180A9C; Tue, 14 May 2024 19:02:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="qu0sGo/S" 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 C4DF61E504; Tue, 14 May 2024 19:02:41 +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=1715713361; cv=none; b=XnPsZRIJJjY2SMBYT4u/TgKyZN14TC9Y893LO2ZGMiBU6qeCmmPcmTPbV3rf9hATtqX0IDxbN0RitjlBQXwtasA/cFPHm+lAhXAu06oOe0ycFw4vQo/gqRQznBzFOgbo9I9CULd9tNO/aF3d/iPWQAS3GYf41coZhskkmX7xdbc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715713361; c=relaxed/simple; bh=jxhYiv+J0iyFeK8LIFwYs1oTdF393tkXterG44SitaY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=oOfrYmY8oHkezzdqQAiBP46NT7Barqf5Ie9WfJM25Ry+9kH5GXdhLDyRaKQ4HMLpeBWBuJddkPsuWZN1hCsN/gDYh5YOQX360hTZOYZQGSF7jUiinbOlcJJiqbnKJZDwWtJj2FUT7KqVWt/pH3X6YvpR+uTKgA9PpffejO36mEY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=qu0sGo/S; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 334ECC2BD10; Tue, 14 May 2024 19:02:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715713361; bh=jxhYiv+J0iyFeK8LIFwYs1oTdF393tkXterG44SitaY=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=qu0sGo/SOXkdmYDDFLiu/c4BkLi7e/hwMKaAJssv5GtJxVfoRdhQpXei2KHLDbWb0 Ws7MEHdL6nziU6pdhumvzCxbb6BKHDfytpV/bMGe/II60T5U30mI9gGiRZbXVxigv2 9klutUeql7Y5CZB6jtLHa2T95mSmbcuWc8MZbePGYh1H3WZ5AxBnnUbxPo7rZSLFu4 d+6qIDewPuOuJE/3WDWDUFv7N9TfVJmfK9UzqyXPfYSkB1gcTKZ3WTOIpXoM/ez8W8 nYB6tcLHRWPJXSBG+nsxq6DigVOKp92sE3nRb71LuV0gvL4CjeqgYJgKsCaBXSDvdc xolQYn0AprKUA== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 81A4ACE098A; Tue, 14 May 2024 12:02:40 -0700 (PDT) Date: Tue, 14 May 2024 12:02:40 -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_andnot() with its variants Message-ID: Reply-To: paulmck@kernel.org References: <20240514094633.48067-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 Tue, May 14, 2024 at 01:11:22PM +0200, Andrea Parri wrote: > > C andnot > > > > { > > atomic_t u = ATOMIC_INIT(7); > > } > > > > P0(atomic_t *u) > > { > > > > r0 = atomic_fetch_andnot(3, u); > > r1 = READ_ONCE(*u); > > } > > > > exists (0:r0=7 /\ 0:r1=4) > > Fair enough for the changelog. If/when submitting proper tests, please > check their format using klitmus7 (besides herd7); say, > > $ mkdir mymodule > $ klitmus7 -o mymodule <.litmus file> > $ cd mymodule ; make > $ sudo sh run.sh > > Documentation/litmus-tests/ provides some examples litmus tests. > > > > Signed-off-by: Puranjay Mohan > > Acked-by: Andrea Parri Queued and pushed, thank you both! Again, I will hold off pushing this until herd7 releases a version supporting this. Thanx, Paul