Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp465540lqr; Wed, 5 Jun 2024 10:59:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUuG+PRjCUnxLFBe/+H1UVDsR/llH3TuDQ5w3IbFP/ZzKRytd9V1H1Ic3cEJq/7xBo1c61zDw46irRePU4JeWO2b5aittoBk/xq0wGyaQ== X-Google-Smtp-Source: AGHT+IEc0rr4+BHR7YlPJJ50L/3F4BFgX+J+KeOBq4oaPkj+JcfMps+D3v8C0rM/Pu+HobHTyENl X-Received: by 2002:a05:6a00:114e:b0:702:78a2:8d26 with SMTP id d2e1a72fcca58-703e5aacd2bmr2820846b3a.33.1717610343666; Wed, 05 Jun 2024 10:59:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717610343; cv=pass; d=google.com; s=arc-20160816; b=JCKGbyRSw5EFK65B7Dczs7xdrBaPQJlQjf5+uTCWhot+v3Fcmx9mBnY/YxI2g27vsZ PH5Wr4sb0vwM5VnE8Gv1zEIr5wEnHcivwYzC/y6n2c3I90+lOMJw7IZ6slJ6JqrsKStd HsVi/yLp6hdA08Nj38jcNfECVjiEjMpkaBoVgm4SyeGj09/4E9IzGzaLOnqVZV5dDvq0 Y2lmstTrdro1q9afE/2I8UrazqreK8fFthod1D4Q5rbGBn2Az7cJKmQLAViGsbk7cmX5 58SV6q5Qk7t0DoDFtzUF4J0ABMpdRcg1cEGZSUiGLkjFALhgDiyE9thXvpuGDjcVbv6p VnJw== 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; bh=UMOhVhELEVIHOvWKG3fH1Q0uQRQQ1ammyh6NgwQTuzQ=; fh=whT3whL0/0FAvwqCmtO4yry5pVUddBhTkNU2KPPAJts=; b=byRFC1A7hEZYNOn491J3USyyddTPH/LSZ1PW8zhINck+5+7Fm/aig5loq3uVa7itLs z3aVSayVmCBPGYv3TkyfUgs8FSy4tmvTK1fRDApV1i0OC7orLN6PSSgE6BeAdJIWhykq IPli7BzzG049UIFJmsQRVZbxCF81APRxffBp9Tj8anUYR4s+KNUDjyKJNunZKO1tPia5 sVjRYoqwhgHlm7PrwmvQv/L5LeIduhzoaO2DLCDz0ko1e+ffNi1ZBrvDXkXD5Ltu4mSq 5iDK6dkwbZsB8mqmrc8gCmSTaaiSynrw8qt9GS4czaZQO7nguQH/o3o4/ukt6LH0jdci KyJw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=netrider.rowland.org); spf=pass (google.com: domain of linux-kernel+bounces-202993-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202993-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=harvard.edu Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d2e1a72fcca58-70263eeefc1si6991186b3a.38.2024.06.05.10.59.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 10:59:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202993-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; arc=pass (i=1 spf=pass spfdomain=netrider.rowland.org); spf=pass (google.com: domain of linux-kernel+bounces-202993-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202993-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=harvard.edu 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 E83CAB22B1D for ; Wed, 5 Jun 2024 17:55:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1D534194AF3; Wed, 5 Jun 2024 17:55:12 +0000 (UTC) Received: from netrider.rowland.org (netrider.rowland.org [192.131.102.5]) by smtp.subspace.kernel.org (Postfix) with SMTP id E4308139D00 for ; Wed, 5 Jun 2024 17:55:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.131.102.5 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717610111; cv=none; b=skIzvEcvp0GPHS0UFz6ZPHGnzpdI0iFTHfD4Tkv5Ibt/EeBUReXrBCvX2IFZ84fws5gv+N0f+3G8aqUJEejuGgKzzm51+hROVjtGc3tJqfiECWkCVLrtmUEQYilwqC3g5p7P864BW6osC1LBFBrfIYNLN749zcXorA4YWp/GL0M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717610111; c=relaxed/simple; bh=H48mGkc8+WH0pYSHPbA6ngIUjU6HxfjtscVbuGhTGRY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=h+BBpDGpUlYWZMGB6ySPBF2YQmxdwZkE0s97l9OF55QSLV69hcNX+iH2lU9nqb3vpkLOiRNqSkNFeGbF1r3uE1CsclmP4eyXxHKgtvZRzygH+lNXbhPtbQPHpRQdwWr4OqZTqw0SzZCRtPQweLV5Sy5pJo7HutQDIkHbqxbeMvE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=rowland.harvard.edu; spf=pass smtp.mailfrom=netrider.rowland.org; arc=none smtp.client-ip=192.131.102.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=rowland.harvard.edu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=netrider.rowland.org Received: (qmail 203982 invoked by uid 1000); 5 Jun 2024 13:55:08 -0400 Date: Wed, 5 Jun 2024 13:55:08 -0400 From: Alan Stern To: Andrea Parri 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 v2] tools/memory-model: Document herd7 (abstract) representation Message-ID: <010bd7e9-de81-4ff7-8532-18c41318123e@rowland.harvard.edu> References: <20240605134918.365579-1-parri.andrea@gmail.com> <037bc316-3e8c-4748-bade-ffdad4239646@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: On Wed, Jun 05, 2024 at 06:52:18PM +0200, Andrea Parri wrote: > > I wonder if we really need a special notation for lk-rmw. Is anything > > wrong with using the normal rmw notation for these links? > > I don't think we need the special notation: in fact, herd7 doesn't know > anything about these lk-rmw or rmw links between lock events until after > tools/memory-model/ (the .cat file) has established such links cf. > > (* Link Lock-Reads to their RMW-partner Lock-Writes *) > let lk-rmw = ([LKR] ; po-loc ; [LKW]) \ (po ; po) > let rmw = rmw | lk-rmw > > I was trying to be informative (since that says "lk-rmw is a subrelation > of rmw) but, in order to be faithful to the scope of this document (herd > representation), the doc should really just indicate LKR ->po LKW. > > Thoughts? I agree; be faithful to the document's scope and just say LKR ->po LKW. Were there other things like this in the table? I didn't notice any. Alan