Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3228608ybb; Sun, 22 Mar 2020 18:58:52 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtX0iF4LwibfE6q+/v6maAm04QG5ZciGmWiDbyZM2oik3PKoOmfnaVMOkW/BxfGOtVkCdgO X-Received: by 2002:a54:480f:: with SMTP id j15mr14990079oij.178.1584928731994; Sun, 22 Mar 2020 18:58:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584928731; cv=none; d=google.com; s=arc-20160816; b=sjK0LITd6KBqsf6sm8ECCjLpoajcW2otAVKoIYfvq5hXlfP2TCkRLB11fWQzU/1UYj jNKLsGO9KuL2yEtJWA5sm1Gp9esmnMf4xeq4LcZosSvMxXJzWkZyEIW2w/6P3O0qUClK Yp0xzqPEL+tv0a5fY0ZruCLv/gqJFg+htdOXSci3tfwon0bJPk/aLf0u+d/Cm9pNoAjt GvvRLKKYWcGR1SGIaFshLUENfKIkj9kTmZdXKlr5P2l+5U10oJV10eD3eQu18ixwDwIo ivZ43/jviWMTypHrE8qH2SsXwb6xPtMWFCcVD5ms7wBz+x7ofgoYYl3BurY2tf8CCw1+ un9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Sh3ZQXA8/fcOyDAMpc+/YELK5mbWwAuzgrwXdRovqek=; b=lXRMustVNQ6cA3rs5vrAlghUCIZASRLPqSkxy+xicDkksvbWqyvsj4WJITB0MgeBWv HlcjpmrIRY//D8rzuOLReKgscn3lbpv9tbx51BhN47grSfnAc0ACFlet0YCQoKJsx1hn 8e5KrYkTKzwfZrv2bzVdaMksJytd/6sx+fBC0zT+8WpNNdFYWb7LS3OHLi5tsHdtDS/f fHc7ubeIfJMpFMnc49RnvbTm073WyR4WgOK49imA1BY1NF5NXPbEySw0jFVBh4O1Gxta wnyPEeuIHo8ue9k9+XIz7AqWok9t8ALUbiUhkn21f8Eqse1mRGu7HKl40rggQB4aBrvI 8awA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=gs956uTh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c23si6655852oic.53.2020.03.22.18.58.40; Sun, 22 Mar 2020 18:58:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=gs956uTh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727022AbgCWB5p (ORCPT + 99 others); Sun, 22 Mar 2020 21:57:45 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:43883 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726954AbgCWB5o (ORCPT ); Sun, 22 Mar 2020 21:57:44 -0400 Received: by mail-qt1-f196.google.com with SMTP id a5so3251949qtw.10 for ; Sun, 22 Mar 2020 18:57:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Sh3ZQXA8/fcOyDAMpc+/YELK5mbWwAuzgrwXdRovqek=; b=gs956uThpOltmLqXIt+nbE6Rhd0UEn0Ql4aR97Sadj6fmyYgxDFKl5q0OnMA0As6Y2 om2Ms+zMVB53ikwKASnQLtWL8thktq+a43aCcCVn63aCzaGCoW/Ldc8384u/p7fGFpHm tdo13KND88UkOwMF33F8znWrk3CgJ+gxz9C/I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Sh3ZQXA8/fcOyDAMpc+/YELK5mbWwAuzgrwXdRovqek=; b=m4DknqFrknXnaoxKnLd/V+TDut5zlwip7KFF9zedCNNSAj1KoiRR/O8jVkUM9oe2tV Lx1td4lIzBlSOAwgDRu34cSBniNymQExS8lJZAIuKQh5DmHgRNevIH0EMXaqd0AfoczB mvOwqhEvBfVlwBTK/YdpKh6qC2nXEB2WeMbGzzxdhs9OhKPRCOr/0gA05P66md5ROHyg slysx7yljOEExpPH0NHDhaleaKgqcP1f8EWAFammjQsGfFGmVDbV3cAHLva8y7ckktay kTzIGpGNlWMJe1/go84LCeOMKFeT6CnS+Z+bUkIMu5Aa7vQw/2t6dTsYMLrfuF+lqBsF 1nwg== X-Gm-Message-State: ANhLgQ0OnwdNhNqZlrCjtu2af340dbT0V3RVFwFhxSEopmKBs7Eihj+D jI3ZmibGAUW/nhZaOun5kU/++XrIuOk= X-Received: by 2002:ac8:5159:: with SMTP id h25mr19800618qtn.165.1584928661954; Sun, 22 Mar 2020 18:57:41 -0700 (PDT) Received: from joelaf.cam.corp.google.com ([2620:15c:6:12:9c46:e0da:efbf:69cc]) by smtp.gmail.com with ESMTPSA id e66sm10146233qkd.129.2020.03.22.18.57.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Mar 2020 18:57:41 -0700 (PDT) From: "Joel Fernandes (Google)" To: linux-kernel@vger.kernel.org Cc: "Joel Fernandes (Google)" , vpillai@digitalocean.com, Jonathan Corbet , Alan Stern , Andrea Parri , Will Deacon , Peter Zijlstra , Boqun Feng , Nicholas Piggin , David Howells , Jade Alglave , Luc Maranget , "Paul E. McKenney" , Akira Yokosawa , Daniel Lustig , linux-doc@vger.kernel.org Subject: [PATCH v2 1/4] Documentation: LKMM: Move MP+onceassign+derefonce to new litmus-tests/rcu/ Date: Sun, 22 Mar 2020 21:57:32 -0400 Message-Id: <20200323015735.236279-1-joel@joelfernandes.org> X-Mailer: git-send-email 2.25.1.696.g5e7596f4ac-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Move MP+onceassign+derefonce to the new Documentation/litmus-tests/rcu/ directory. More RCU-related litmus tests would be added here. Signed-off-by: Joel Fernandes (Google) --- Cc: vpillai@digitalocean.com Documentation/litmus-tests/README | 9 +++++++++ .../litmus-tests/rcu}/MP+onceassign+derefonce.litmus | 0 tools/memory-model/litmus-tests/README | 3 --- 3 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 Documentation/litmus-tests/README rename {tools/memory-model/litmus-tests => Documentation/litmus-tests/rcu}/MP+onceassign+derefonce.litmus (100%) diff --git a/Documentation/litmus-tests/README b/Documentation/litmus-tests/README new file mode 100644 index 0000000000000..84208bc197f2e --- /dev/null +++ b/Documentation/litmus-tests/README @@ -0,0 +1,9 @@ +============ +LITMUS TESTS +============ + +RCU (/rcu directory) +-------------------- +MP+onceassign+derefonce.litmus + Demonstrates that rcu_assign_pointer() and rcu_dereference() to + ensure that an RCU reader will not see pre-initialization garbage. diff --git a/tools/memory-model/litmus-tests/MP+onceassign+derefonce.litmus b/Documentation/litmus-tests/rcu/MP+onceassign+derefonce.litmus similarity index 100% rename from tools/memory-model/litmus-tests/MP+onceassign+derefonce.litmus rename to Documentation/litmus-tests/rcu/MP+onceassign+derefonce.litmus diff --git a/tools/memory-model/litmus-tests/README b/tools/memory-model/litmus-tests/README index 681f9067fa9ed..79e1b1ed4929a 100644 --- a/tools/memory-model/litmus-tests/README +++ b/tools/memory-model/litmus-tests/README @@ -63,9 +63,6 @@ LB+poonceonces.litmus As above, but with store-release replaced with WRITE_ONCE() and load-acquire replaced with READ_ONCE(). -MP+onceassign+derefonce.litmus - As below, but with rcu_assign_pointer() and an rcu_dereference(). - MP+polockmbonce+poacquiresilsil.litmus Protect the access with a lock and an smp_mb__after_spinlock() in one process, and use an acquire load followed by a pair of -- 2.25.1.696.g5e7596f4ac-goog