Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp859658lqp; Thu, 23 May 2024 02:04:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWQd0qZ4/kn8djmDw7u1WPYCOBdE9vZrcO7iFlPa+JzE7h9GCzpkMBV+JiS97dTIiMW1XbWEpIx2K1m1sfmqL1Vcr3xQWSnZ4cgdaPT1g== X-Google-Smtp-Source: AGHT+IEy5eN3Mt/p2ShwPunwrnr9wqJE8DAdfPbDPBd2NaLbfU5pASWvD4uHVUrr0dyOiOAGEtEp X-Received: by 2002:a17:902:ced2:b0:1f2:fca9:731c with SMTP id d9443c01a7336-1f31c964884mr51791815ad.8.1716455080160; Thu, 23 May 2024 02:04:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716455080; cv=pass; d=google.com; s=arc-20160816; b=KRnhXmAHizaZxQ8V01xetSSt/tYk2hQbspXuvaX9+/FWcp9pdwP+GwIdUjbMYdUXw1 YKpvA+RCPuIvcP6vOudGWGVdh0ldGctbKprvTt0JhDZ2U7FaeyFwKgs9qRsIcxWKQ0xU TeD5hvI3xrssLkNcQBL41OfigKvcaBcQihg5ADix2b4qYoIGi0qdJek+aeTcT0K1jj2u rVckISGNKHiMMwoJVyRwYNBMh47B/1N7b2MNiuh3jU/pCM65nPQtpzqL871KYT2hLCLp z2vK0mverGolffATZllibjSKZl2VOMbdLIDz1o99Qm8nBflFaZwz8diUnlQkwhDaz+Am 0wFA== 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=xwT/Yuq4OgMz2tzy/XuZk3iW6O1XSg4X5ai7w04Ljms=; fh=+8yEkF65QOadc/I6XZT8oOCetHNgTbp0e3jYmQR4RaE=; b=QUgaMdwuBOT+3kvOP+sZORTqEChZXw7reEieHaa7GFgBP8itz2DEW5DIpZst8egGvM vgg2sM3tXaW/HHFePOKzdZcSy/ak2WZ2P3LAxErVPzApwCP+WQSkdo+c9Ef8/Qn1AVeu QcvoMiS3LEzQA9JjyIQYvxizk83/9t4xvhdv0CKCr3yIEe3jcubGuVYkj6+0v0QmjkfE cQ7aBghp+oKrVp6aOTDFee/Icc+9Yl9npYF2XDDGs6j2ypahOnr42rN0Dc/TfX18hg1/ RUytwwCJyW5stjMay7bdslvcE5kKYUUp0xOWv3Z8dkR3L3M763H14Xux3Bu6k2TxiiZV 8/+g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=W06XnCZk; 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-187220-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187220-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. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1f30de41e4fsi46340135ad.21.2024.05.23.02.04.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 02:04:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187220-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=W06XnCZk; 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-187220-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187220-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 56290B210CF for ; Thu, 23 May 2024 09:04:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1E0C713D28A; Thu, 23 May 2024 09:04:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="W06XnCZk" Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (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 BE14C13CF93; Thu, 23 May 2024 09:04:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716455064; cv=none; b=pFOrZI3cW89Fm/e5tpabDtHQVjwrpMJM3mHSm1SwskEUsyj05Sv8e7h3E7xN6A0UvVzPpop8NUBIUEAfptev3wTGW2Y5dye0pFRPbAgrTiFFu6OXZqjACgQQmQeSbtsr0k5ZPRLuAGBOMY3eQw6RAdV9jQIMZaeZhbuTQb4x48s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716455064; c=relaxed/simple; bh=mxjVwRe+KA59zffjuSJoN+F11EDx50GvARclkXrc3Pg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=I9vPa0IAo6j6RJudWX1wJ/fm35xP87W+Qgg5jvzhNAHrfW5o6IwjXiPrrtIqq7U9nEiPCa9JQH6HFrN2vcYFKYPRwkSbPME30Xik2w/7QiDNt9Q7JrIGsJ5Lf4/gf9TQ5bCtX2WFS4iX0aypVlTkbZioIFyemuPPqil973bLjrc= 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=W06XnCZk; arc=none smtp.client-ip=209.85.218.54 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-ej1-f54.google.com with SMTP id a640c23a62f3a-a5cec2c2981so462873866b.1; Thu, 23 May 2024 02:04:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716455061; x=1717059861; 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=xwT/Yuq4OgMz2tzy/XuZk3iW6O1XSg4X5ai7w04Ljms=; b=W06XnCZkl5CALs2SemXvlwKTJ9wIktVuqysY4ZEgFSp1kA7tNE8NVfyTuee2TJEFdQ alB/7FhEujFTdWxhDkr6TNlhEm1hrt2zPOMXzsBrUyDdnQ46GAvBpmMA+SlczoLiRjrP dP3q7ReaL/elnBHMkvJsZaAZ87l/ACqRYvIB2eRKLH2ep4LabWOZ3LeuR4eem2SzXJfD K//07t0A/fTaPco9XB4KpH3dyRhcBl4VS0XKtqKAGWAPBTWwI63goF9J6nJN8YdIPO8K DfiK5mF4D6flY0fvIT59UBMgblS3VtTiRkLgQwYCoJp5NdWgYnjPMEDkmgpuqKQ6yI7c gNYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716455061; x=1717059861; 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=xwT/Yuq4OgMz2tzy/XuZk3iW6O1XSg4X5ai7w04Ljms=; b=MhFuRRs8NBafoYuCCUh5eEAl+ycmEU/E/iBWzYJqvkFhx0REZdT/ATf19yg3FmIkN7 4JZ8IyLsIIlET/xN851xoz3C/KqAZWWDLm5Gdtcdz/t87vZ5i/hKLSfY06E7Y//yFZJL /MkJHaDRSFG1bMcT3ueAxWQl5UDSp6RdEoHIBzQlTj6IAFCki8oXHj63jcQyQtbec2Cl FgyKnPT9ed5STJJ4eW/b+W79U6+mdvde7Bn5C1xQVbyBCKTZeKIgfUPatcQrBaV/EUUa TTJavr/xhibj06PuCSZziKCrW43JWHcSs0zCo+bRQVrntyPJimDTpL9CqYjzw2PpvS+c Udow== X-Forwarded-Encrypted: i=1; AJvYcCXyoFzYSKHMPfYho1XPtpZ2gtAyI1W9NbGmGf6kfjn4ag/89iohC9dtRMUg/A47ghWjA2qwQ++21R6gjGw+/vby/3QSxowkC/gYSkqZdkyC81VXik3tcUWvpRAI3n4Gxa6n0Qd2QjQk4w== X-Gm-Message-State: AOJu0YzWyC0yN1vAFe0MD/4FTbimqQrwQQyZQRS+unUtv6xYgKGjYCzp jum1tG10I0370Zxi4RYuwp2Ag8IgYN8yZ21ROAkfyKZdWcO0T1Ro X-Received: by 2002:a50:8e17:0:b0:573:55cc:2f50 with SMTP id 4fb4d7f45d1cf-57832c585c5mr3541161a12.37.1716455060827; Thu, 23 May 2024 02:04:20 -0700 (PDT) Received: from andrea ([151.76.32.59]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5733c322dc2sm19648156a12.88.2024.05.23.02.04.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 02:04:20 -0700 (PDT) Date: Thu, 23 May 2024 11:04:16 +0200 From: Andrea Parri To: Hernan Ponce de Leon Cc: Alan Stern , Jonas Oberhauser , "Paul E. McKenney" , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, kernel-team@meta.com, boqun.feng@gmail.com, j.alglave@ucl.ac.uk, luc.maranget@inria.fr, Joel Fernandes Subject: Re: LKMM: Making RMW barriers explicit Message-ID: References: <2f20e7cf-7c67-4ad3-8a0c-3c1d01257ae4@rowland.harvard.edu> <0c309dd3-f8c1-4945-b8f1-154b2a775216@huaweicloud.com> <4286e5b2-5954-4c77-a815-c1c2735d9509@rowland.harvard.edu> <58042cf3-e515-4e5f-ab48-1d0d6123c9e9@huaweicloud.com> <6174fd09-b287-49ae-b117-c3a36ef3800a@rowland.harvard.edu> <22b9837b-16c2-5413-3cd7-4d3a47252a6a@huaweicloud.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: <22b9837b-16c2-5413-3cd7-4d3a47252a6a@huaweicloud.com> > It would be much simpler if > one could find all the information to support lkmm in tools/memory-model/ > (in the form of the model + some comments or a .txt to cover those things we > cannot move out of the tool implementation), rather than having to dive into > herd7 code. Got it. And I do find that very relatable to LKMM developers who, like me, are definitely not fluent in OCaml. :-/ Let me draft some .txt to such effect, based on but expanding and hopefully completing my previous remarks in https://lore.kernel.org/lkml/ZjrSm119+IfIU9eU@andrea/ Having something like that "on paper" can also help evaluate future changes to the tool and/or model. Thank you for the suggestion. Andrea