Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp2685734rwe; Sun, 28 Aug 2022 19:45:27 -0700 (PDT) X-Google-Smtp-Source: AA6agR6jmvbqtn6r1f4Gf+DQB6hyv+x3SC+eGt/fgBS8ucTrWAEEbYPM5Dcwy52LmwpK6J20e4cT X-Received: by 2002:a05:6a00:140d:b0:52a:d561:d991 with SMTP id l13-20020a056a00140d00b0052ad561d991mr14545452pfu.46.1661741127318; Sun, 28 Aug 2022 19:45:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661741127; cv=none; d=google.com; s=arc-20160816; b=x4ZtPeENXclxFwq7hnXVHkqjkw9AsNBuUCrtSZb2mhHqAFLdRGkJlAEncrX4QUJ47+ TZnc0xEXWfCP0vgz3Ea8zYYALK/IcF7gUU8n93A7YAQn/aig70K70kyn6ClcmhhbvOQA mrb4TNPR8NX6sd/Nqa+918I/8lQ3STRQ69h2+J23eYHHHZDUqenArHRt7VyyKV99XPlm +5/ePm+nxiddx2ZrdS2/wtBg1RuzvNUv5mBToBBJGZpwS0UJ3WZWDBLFJSATVk/1qsqF Ogvg9LD33sNO92Zzzv9FFEzKIxU+bjILronIMTa6vfAZ+/kkDh52vNL3xUzl0QCDb+e6 fa0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=L51GDzPSG19BfJI114hwBB3IlYH+VcFb/yVVpkhA/C0=; b=K0+2fGTyALxXDI/fdIWNfFmbxawt/Jyqu8WGM3MSzOCWGJYAGWWxIOQD+/n6El92sX i4h1ntBdHpVa2x89vP3/DnZaWjziK7CcMS0xu1SSAR1+Ch+N5snGENYo8ysr9JlTsjYw HPV1auAoRB7s253nNtwCId6sTaFHJ6SzqzeTf5+rxClphkNKj3Fs72p/p4ZrvDmNHZoA dA4DGtHviPbMZNIXwri70vqblnxbd7m+pMayinNxECr+kIkxZpoma3WazWMby7no0yQb 1A0h2Zwx1MrwhAQ5XrwqmpXnFydW7PGtYzKDunpiZ7vvOYniPEvNU3r8lNMzdnAWUDl9 f7mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ly+BJ+KV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g123-20020a636b81000000b0041a4f4a2afdsi8347513pgc.766.2022.08.28.19.45.16; Sun, 28 Aug 2022 19:45:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ly+BJ+KV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229634AbiH2Cdc (ORCPT + 99 others); Sun, 28 Aug 2022 22:33:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbiH2Cdb (ORCPT ); Sun, 28 Aug 2022 22:33:31 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF39630F6D; Sun, 28 Aug 2022 19:33:29 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id gb36so12986541ejc.10; Sun, 28 Aug 2022 19:33:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc; bh=L51GDzPSG19BfJI114hwBB3IlYH+VcFb/yVVpkhA/C0=; b=ly+BJ+KVFpL+n5YzFS01gEAHFL6WgRg35f6oW2wkxW6uXnx09LaB9uj4AX8+PzRJsv O903MaDO1aAGhzIflMg6+W4xBWakprYZ9koGcGsWmkCcLGCQBFWHidSnb72UJaCJMp/t QexAj/9737cNalhQ0Sr70OYu3G05/VMZumDanYkr+3LNLZZaxM6F/p0P4JMf8pt8OF3Q WSYZLVK7T+hcg2Td82MCAdWbRe7ZIjwk0DhUi5csmUZJzbCVlNXerSFncKYdI1crnvHf kYWqpJq8f+TaP749QtlKMf29mOBVbzrnA27O9DIdmIew7QMuV1EZ/LevbfrCDPMgq8b6 +l+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc; bh=L51GDzPSG19BfJI114hwBB3IlYH+VcFb/yVVpkhA/C0=; b=m+a4Oar0ZWMwtUuaZl3veExP9ItntBW9Vvbm5dpAk9NG1Q0gMVy+2JB2ZST+qwNgN2 RCZeVxICswisJDmznnfPV8cQQ/SRHsSvLKR/7VPRuMMkpjLn1HcWqFWb8fQtzOTibfro RlmH3u+THCNaaCjweR3+gVfaHT25Vr4MUvfKpQjAzD9yCIOyZLtRJdOWq2yGCVuSdDjT f1K5Xt/ZGYnEiuqwg2ZKR9Cw3GmagO0PQEeRyX2o1A6vii1AUTy7CXcVQbDTHi/BRZHG xJAsDPYqCfH919w12o7ueyuTVNeGbUcao+6v/b1HZgR3gPye7H8B8DocqITmnafJDitn INoQ== X-Gm-Message-State: ACgBeo2Q6ddKVlYi6BdurVYRetw0gGvYtfkUKDyofPnl0m+rbPNmdhzy FUU4QQKmfiM6nELKcut3OAQ= X-Received: by 2002:a17:906:3a15:b0:73d:80bf:542c with SMTP id z21-20020a1709063a1500b0073d80bf542cmr12215431eje.633.1661740408294; Sun, 28 Aug 2022 19:33:28 -0700 (PDT) Received: from anparri (host-95-238-28-128.retail.telecomitalia.it. [95.238.28.128]) by smtp.gmail.com with ESMTPSA id u21-20020a170906781500b0072f42ca292bsm3824851ejm.129.2022.08.28.19.33.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Aug 2022 19:33:27 -0700 (PDT) Date: Mon, 29 Aug 2022 04:33:23 +0200 From: Andrea Parri To: "Paul E. McKenney" Cc: stern@rowland.harvard.edu, 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, akiyks@gmail.com, dlustig@nvidia.com, joel@joelfernandes.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org Subject: Re: "Verifying and Optimizing Compact NUMA-Aware Locks on Weak Memory Models" Message-ID: References: <20220826124812.GA3007435@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220826124812.GA3007435@paulmck-ThinkPad-P17-Gen-1> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 26, 2022 at 05:48:12AM -0700, Paul E. McKenney wrote: > Hello! > > I have not yet done more than glance at this one, but figured I should > send it along sooner rather than later. > > "Verifying and Optimizing Compact NUMA-Aware Locks on Weak > Memory Models", Antonio Paolillo, Hern?n Ponce-de-Le?n, Thomas > Haas, Diogo Behrens, Rafael Chehab, Ming Fu, and Roland Meyer. > https://arxiv.org/abs/2111.15240 > > The claim is that the queued spinlocks implementation with CNA violates > LKMM but actually works on all architectures having a formal hardware > memory model. > > Thoughts? Section 4 ends with a discussion about certain "spurious" data races. Do we have litmus tests with them? (I could repro with Dartagnan...) Thanks, Andrea