Received: by 2002:ab2:6046:0:b0:1fb:d597:ff75 with SMTP id a6csp652lqm; Tue, 4 Jun 2024 17:33:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX5s6XpQm4XKO4s9jhs80+aBcsRfTm+2zYk+WGz3GLw9jZhQbpnBTm4/cUNoBK2TpDcqq4P8/a9M9LQqpkJyMxWLqKBYk1ymi3wEz2DwQ== X-Google-Smtp-Source: AGHT+IF6PWjBwaJvdZP8GU4j8LRbgZZ/D9eRSfH4BaHda7Ks8mklCjizY0jKd41K7LS8aT9quebN X-Received: by 2002:a05:6a00:892:b0:6f8:b57f:5791 with SMTP id d2e1a72fcca58-703e5a13597mr1381238b3a.26.1717547637588; Tue, 04 Jun 2024 17:33:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717547637; cv=pass; d=google.com; s=arc-20160816; b=PThxhBG1GrRLQjOdMWRIkddPdFmg7aatw8O/maLP5seH2q27y3klXiDemQbAdrEqtP VZEFMhMhvQRL9LXLs596e7eA9mLy9L6+ojc85I/SU4vTRb4Aytp8l0lqy6ryMGtpDnjn TqxJ35DlWDdt/HBu6ZA/vt+dKQNi92aFxIz/KWTeoCnyVGFDw+YiXUxOjD/uMzCtVgGS 6JgWLJrm5XNrwUX0cXjqcLNF8TMplyoqS8rvSXjRsTWN0oEvevXumWZjjHSu0sjykbvX bogReW9Q6C05GzsW4+LxwxYa/g6l4lnF4i6QLnARqe+9EJZxwrMq7CQ6i+L4IHW5tTsX rMpw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=NBtLwt7lgRUR7ONP1Rg5DOx1RKZzwOytsyB0wwugp00=; fh=ypj5iRsmms2v9Jlb3Avxrgu+7ATfGrKa/M1/kXw4uAI=; b=udGJ4LU30uIoLWXonxO92bUlsVYgca0ZpMo9xoyyTa0DvSkPKI4EMae6Q0fx9XpBTd jEoVbfbRXDnVQsod9wuhkHo1bi8BIkiBqsezD7vbYtXfbhfzkEJkmr69qv15Rs/+puzp pUduRjf+eJLXr73YJhPjCevpVUaQsB1BRELlGPGV1UspaMwQNyZKDzAnyoLUyKbh11Of 59L03xwq1RAa0SW4DpStzCMt/xf5S/gkr/OiBfFc0lW9hMWhjXZFBeyu0AxaBuHHv/6j sNY8rkv/UME5MEM0q63Bau2TPkUP8yxR52bqLagh/olMDcAaCNi2jx46v9VjkDUArPbv KwXg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="L5/r5YYn"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-201620-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201620-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-7026a8e6ba6si4778986b3a.313.2024.06.04.17.33.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 17:33:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201620-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="L5/r5YYn"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-201620-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201620-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 315AB28004B for ; Wed, 5 Jun 2024 00:33:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4FA9917BCA; Wed, 5 Jun 2024 00:27:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="L5/r5YYn" Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 13587322E; Wed, 5 Jun 2024 00:27:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717547238; cv=none; b=md1vNfncCIwB5WPWu8cvbVQ01+bT2m6xuzrb0Rz7ki9gNG8KdrlB6OrJNuicqyb9rruCcFJ78kE0fiD3JJTb0tgR5KTxc6yqXTGgpeA/H6OKNJAS9V2AxILO8k2Eks1tKoGp+666uuKv91VJSNQzdHwEd+7bElHePSlkMikGsxc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717547238; c=relaxed/simple; bh=HENd5fiJMx/MtTkFeqvrO/93dIE7gf62GjvWxTdsVJ8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=S7t3qjgPAF70XosZSk98ApGD+rTgU+vhIt+aE7rm9yu7fwtVVOWrUup3pErZ/Yz5q29zLWXd27SnQEGlOZ1qOkFWwLmDriF0ABt0nbjWSP6nWnb7KNRvoNx9ex5RBwcl9muaSEHuxUhkMxn7Rp1RFN/ouyhbfPCQW9vxSKBnA9U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=L5/r5YYn; arc=none smtp.client-ip=209.85.214.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-1f47f07acd3so14749475ad.0; Tue, 04 Jun 2024 17:27:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717547236; x=1718152036; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=NBtLwt7lgRUR7ONP1Rg5DOx1RKZzwOytsyB0wwugp00=; b=L5/r5YYn7B10+ipxhrn5qPZr7DrCGY8hUMhfKhB0FsfTM5CqEhejlhk0S2NBhIan1P U8r8MbKW/SUUp8G7xM6jSaesXP6xZ4Ko0XChiuBVzRdv+wFZGSI4ojzYV7UQsSZhaJmC Mr6YFA/itamlmSPQCfQ/5C8BABQsi7Be0xxyPwzeAa2/jRIs7Z0lLQAkvGOuBHEnuRFI JsRECLrPnpFaYJGdDSzv+ha7sKX6ht+zKcjDEPRLxBCPH4j5tdUVk3MEOFYwXVNzrm1B 2oVP4OolKKNtpzGE8qZhBlQLExmihdWgwXNAdL07f6nIYyydsef6d0CY3yruNwkfKEzd ujAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717547236; x=1718152036; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=NBtLwt7lgRUR7ONP1Rg5DOx1RKZzwOytsyB0wwugp00=; b=FI6opS7yxQ8ZxdTxjki/L/nQcwY0ra3wBwLkKsby6+eFRXcR6WsTlgTNkVJcoMsnvB GYtPpXXWlOKvlxHU0eJ1AwftCGJE/gKsV3jU+IfWiBFrz9+rOw6dTYB74RNlwIB6dwwQ V0c3K0Je8v7M9fNtGCwB8IJt+jgzzI4zQPRWuiDsXw6yC92ZI0SsVY6JHBlo+ryIxyLl Crm88M2ksUBB8LWcNi/A9cqRMSxuO4yqjYoZoKLOS6Ic9k4FXL9DjjyNWEGszaI+H+lS SzecQWZOF9UfTeJBj2c5l4bv2vjEOZYc3LxX8mAdKtXnx3uCqox4uhcTR26uN1RPf5CL m8SQ== X-Forwarded-Encrypted: i=1; AJvYcCV+xOMJHwfa3E/lKPAjTIOKXjvzBjXdv/uuuj9eCyq587NJceSDRi62O4SA9dUApn64UI5/7Hj0aY2xf5QQF64iU8IwjR9Dt7J0oE2UvmX00cQgMUT7XD/a66OKq579NjE0hTKvrdBVcQ== X-Gm-Message-State: AOJu0YxOmQ0rFoJvuvmCdcWOJIhU3vIK3atH7ZKVlqOH+UOzjrcfc+tg pd+Ov/mmXy8D8FzSB1uP8T0saW0hHx6pU475FytNjZimqMsV6ae3 X-Received: by 2002:a17:903:41ce:b0:1f6:7c7a:a7a0 with SMTP id d9443c01a7336-1f6a5a9b0edmr11262675ad.59.1717547236099; Tue, 04 Jun 2024 17:27:16 -0700 (PDT) Received: from [10.0.2.15] (KD106167171201.ppp-bb.dion.ne.jp. [106.167.171.201]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f6323e9ae4sm89421725ad.191.2024.06.04.17.27.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Jun 2024 17:27:15 -0700 (PDT) Message-ID: <99545c09-4a14-4f8d-9d3b-c687fc318714@gmail.com> Date: Wed, 5 Jun 2024 09:27:12 +0900 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH memory-model 1/3] tools/memory-model: Add atomic_and()/or()/xor() and add_negative To: "Paul E. McKenney" , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, kernel-team@meta.com, mingo@kernel.org Cc: 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 , Akira Yokosawa References: <20240604221419.2370127-1-paulmck@kernel.org> Content-Language: en-US From: Akira Yokosawa In-Reply-To: <20240604221419.2370127-1-paulmck@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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! Thanks, Akira > Cc: Daniel Lustig > Cc: Joel Fernandes > Cc: