Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp447529lqr; Wed, 5 Jun 2024 10:25:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWIXl9R+ZRb8M2/2DoadBKt6D5PUpFUoud2W3MGGHduxy7LyVo0TSQUkiuV3kjTtr0fCWVgAWkBEcT8/Y+MmxFkia0aoIHwXCiBrz8biA== X-Google-Smtp-Source: AGHT+IFYeAwRkYsyjxAY2jV2Tdvn7VMsNYDjbt3o4sbhuV7L4QiheKsPYHptGACPGYODJXGoH2n6 X-Received: by 2002:a05:6a21:789f:b0:1b2:a780:2d05 with SMTP id adf61e73a8af0-1b2b710b773mr3759845637.44.1717608311998; Wed, 05 Jun 2024 10:25:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717608311; cv=pass; d=google.com; s=arc-20160816; b=fpQ0NBexwzIrssKetN2di0am47tpl/6Vh51Qcehg6/aKDZPd+IrGljjGZkWIx/W2iN CmIYNbfGxtfAK8Fc53f7hE69j2dSAO72JauGN8mzdA1SkkiZr/gRWmFtlo/GsWCmdvCF E8027SqU4rtkhi02fWYgJv5UhzFz46k0nri6fB/abAmUv3n64wkqc6mx5viELybYjLO8 p0x25Qg1kW034YSllO2JHL6MdPdsAZNefN7FNIpGU8Wdv4kDnZ+hy2Ohz/mh6yZTfVCP 3uq4SM2mlwzoXKTm/dgpcaD0mLGUlGovBdmbai1xBdtnTHJlBzVZCvHFVL0G52gFVs9N b+gw== 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:message-id:subject:cc :to:from:date:dkim-signature; bh=TKRxRsXITwcKcSFEnZCeS4yIdLc+hSCdiKd4uSyqC6s=; fh=P1PKveq3ZX8avuPBIHJLkbxF4g1WBryaXnWD/0sNL5U=; b=y74cZvE4SMDLNF37FgQNG+7mjduscuqytbuYvsqfm/AKwBxoWvexo8kpO0TSh1BKuP PnR0I0oI3Q/EUi8P7cqOuS9/owLz7N4BP+zHoHnAL2/sQmZxmBOqrwC/K5Q55C0Dtad2 hD9N17EwC9n40bBrn6QfVDrAsOH+jIF2mMOOe67NVWDJcznEsMSglv/eg03Ha94gGZxM ZYMyzevslRHSW31uQJXgrY6akEm5QpKSCYR7cttSar2vPqW68/iUz7Z/RzvR4OZPBQH5 wABgmuhnK0d++BVyKufg+cCm0+hexYkPA5bur7nBxy49d/eQiNTLtmP3U0snt7QrUQVW Mq1g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=AJ6erTjX; 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-202956-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202956-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c3540fac9csi2937138a12.74.2024.06.05.10.25.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 10:25:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202956-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=@gmail.com header.s=20230601 header.b=AJ6erTjX; 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-202956-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202956-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 77DC0B225B4 for ; Wed, 5 Jun 2024 17:06:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 45D5C18F2CD; Wed, 5 Jun 2024 17:05:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="AJ6erTjX" Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (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 0A1DB3211; Wed, 5 Jun 2024 17:05:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717607153; cv=none; b=aTeHUd7n3ip/h3pA4sdxC22xa5XG2G0y+fAvPVMNnvyKKjW1I9MsPU65rohfn88ISsQM6JnSJ4smhxb8DMaZfSy6z7RW/Wiz9vXbwyebHrUEzU3nl4dfcxdgxybXIayVn7yB4YUQQfqU4MMBpzg402IHZeMRF689uIrnZeLq+bQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717607153; c=relaxed/simple; bh=ppfVXkaZDara5XI4iOutK/rvFfYiOX7bKQQ9Goyz6Us=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=e3C7Y3oC1JwLpTO1b8gt9r4CTPQWqI8rG2i1JbpnmFsUvuyBpd9mKgGibj+hPqsFgUkw+RmwcaU/lKUTH1WLUL32ZW3HAd17DpYQXTKtXIgZoULfw6TyWQvrXNBuCVqdO/hTcnXVOt1YkW+zWv+lmKsmjNJWWAGYjflDxBk+ftc= 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=AJ6erTjX; arc=none smtp.client-ip=209.85.128.43 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-wm1-f43.google.com with SMTP id 5b1f17b1804b1-42155dfc484so556865e9.1; Wed, 05 Jun 2024 10:05:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717607150; x=1718211950; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=TKRxRsXITwcKcSFEnZCeS4yIdLc+hSCdiKd4uSyqC6s=; b=AJ6erTjXJ3QI7Ykqzssps5LkH24ku0R+GBOgbLjai0gBVTRVyIruQIfURvppZLzXg1 yP5lp+R+wPaM0PrRlW6s/Oi4RKCVBkpPx/My/wmMSatFFY8SUlyOudT6o3jTwNtGQEqs cCcxpl+dcyFMQywGo7n4j4gaioKihe81Tkk89FtBuJID0TCWLYSfsZpPDTaJ5EbR23Ry 0Q4usK+FREVps4meVbnY7xxs0m391OAgdKVSlLl+27y0frFTKgEVGB3XFvvn8aDPFRdL v54QFaRAkPnCbf5ze5HJ5KXInyF+ADy6pu6oPywlNtwiMxxpQ9RqspWoD/z5VVbOutBP yMyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717607150; x=1718211950; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=TKRxRsXITwcKcSFEnZCeS4yIdLc+hSCdiKd4uSyqC6s=; b=Yay4q+UZInyMyk8tvSlYYcSPZxBixkVxJaiNgSZaWM6SRkjvyjzhNMHE5k7XGlRqkv lHara3qOpJjgfH6q5atnkq3Z6qTim0hifjXNk8rBlWrdOMB+qFZ6zE8wGPvSOUkUBoe4 yZowq0Fr8AJfD49csvICBcBcLviP+7XJBZuGCe+WEaOZ+6G3D5eBiJLvsNx/Mq08ZPEb zaWoL7klZvTqA9z5PVFLtnD6jtL3Idg0IPt4QJp+mMcnKqNddS/F/07nnuyZMGnkt7Rr qgBl/ZbBWnyQDoX3XnFpufOOb49hMk4W3YUE+KrShcm9ZGQPMhqAHn89phK4Z9rVMX3j aEPQ== X-Forwarded-Encrypted: i=1; AJvYcCVgay/Fn1giF+dOl91icod3imYK0fHY48jtJh5uD6hnfsRzfgv5mskqzpx7vhjog+9WpUuwZN7NJDyRHRpF+FtIz61+q9Y4V/uE9Vc4qFoBCzqjd/vYb990xmVyMSqRjjcJmwYiX6XP6Q== X-Gm-Message-State: AOJu0Ywr4T0ehKAtk0EtwskKyHDNvBmEdUtO+M2hDGaC1bnWiJzrXwc6 7930ZisKFklFDANtjGIpG+V3lpPqsy1J852NuBPq10KgYK1UkZJ8 X-Received: by 2002:a05:600c:5487:b0:420:2cbe:7efd with SMTP id 5b1f17b1804b1-42156338a6bmr28684595e9.31.1717607150174; Wed, 05 Jun 2024 10:05:50 -0700 (PDT) Received: from andrea ([151.76.32.59]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-35e7d399d15sm5861541f8f.63.2024.06.05.10.05.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 10:05:49 -0700 (PDT) Date: Wed, 5 Jun 2024 19:05:45 +0200 From: Andrea Parri To: Alan Stern Cc: 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, paulmck@kernel.org, akiyks@gmail.com, dlustig@nvidia.com, joel@joelfernandes.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, hernan.poncedeleon@huaweicloud.com, jonas.oberhauser@huaweicloud.com Subject: Re: [PATCH] tools/memory-model: Document herd7 (internal) representation Message-ID: References: <20240524151356.236071-1-parri.andrea@gmail.com> <28bdcf4c-6903-4555-8cbc-a93704ec05f9@rowland.harvard.edu> 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: <28bdcf4c-6903-4555-8cbc-a93704ec05f9@rowland.harvard.edu> > > > A patch to fix the problem and reorganize the code a bit for greater > > > readability is below. I'd appreciate it if people could try it out on > > > various locking litmus tests in our archives. > > > > Thanks for the quick solution, Alan. The results from our archives look > > good. > > Here's a much smaller patch, suitable for the -stable kernels. It fixes > the bug without doing the larger code reorganization (which will go into > a separate patch). Can you test this one? Testing in progress..., first results are good. (+1 on splitting the patches) Andrea