Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp921879ybk; Sun, 10 May 2020 00:30:43 -0700 (PDT) X-Google-Smtp-Source: APiQypJ2ueE9OU3IuEjowqL8+hJLvlXIBlFSNlJxBSTR+HLExAl0nKyQhcOIhA00kdnK+23MKw+p X-Received: by 2002:a17:906:4542:: with SMTP id s2mr8928691ejq.34.1589095843518; Sun, 10 May 2020 00:30:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589095843; cv=none; d=google.com; s=arc-20160816; b=bcWkSgCdTDEfpHC42LFNh0d/hyyHV46PaifKomCCEvoF9HPyqhgyaDneQb6zK2JIEb HuZzDH7t7yE0EQaBcyy04s3InTovkCXyQ6jqhDlC1k2gg39ga6QVzQtLt16x17xsDBDH b5oHuI/wZhQ5KUZ01P8228Jp+ei/gEYeDmdiJylyQXKPiciDqxmOMA2gm9N9KAclNJIw V69SaiQ/4prwJ+ZvTSc+I5VDZKMc9/JMgFhBqn4fAUc5n8cA4zyEHXWZ6J4kd3eNPuAp esyY8c1u7Ue6ZhCOpu6UhZS2bFhkZScVx+Vf87zVGj5kcFyx3/PUHZAmvcrCqbrUcC7t tQ+A== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=thdeKBpE5waOs0Cn1rN+DeVJFAkWJi3N1KGywh2VHl0=; b=fEOD1aVNNx1ZpOcyQPXT8yycuVwk7bXSoUbU7MO0nTav2dPwsTyF0Eh8qEESXwidsA MQWtkX36yjJoV87oABGrswIh8oiYJmqcxGK332E280vKNLmUMJSFEmyWbtT2rVxEO5/x ZWcuH4sfIOWhTh2UipCigkoQ7M4GujaWTKSyZLwzBS0Mpc3MEHq2maJJhaSd3DiY10JX 2qemPgvUA1C/NfOe4wKegGVhJ8xz4kiE0PcpzUW4OgpEWDTl3d//gPWpFF0rXqKCB53o S3ZDShQjL4CHcHf9hIRcN40ARDkkLu0bMWp0AVbVwrt8j0RRmVorjyoyMZ6HU/JPo+Z9 FdLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JWpEgB5X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id co4si4102445edb.83.2020.05.10.00.30.20; Sun, 10 May 2020 00:30:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JWpEgB5X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1728238AbgEJH26 (ORCPT + 99 others); Sun, 10 May 2020 03:28:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725994AbgEJH25 (ORCPT ); Sun, 10 May 2020 03:28:57 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACA24C061A0C; Sun, 10 May 2020 00:28:57 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id a4so2996373pgc.0; Sun, 10 May 2020 00:28:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=thdeKBpE5waOs0Cn1rN+DeVJFAkWJi3N1KGywh2VHl0=; b=JWpEgB5X6znJ6reYx5p61WDTcKSLGCGgC+zhzPhsRixngH9n+2E6FrHLG580PmWpiC 0Y6Uvzgo1Ry+Oler/CU7CFdynHiUkuTt5qyKtYKqnWJawu/MgDiNNVTEmxHALjHYQCQW guW9GhiyV/O6b062jL9NeAhG7e0mO5dNU3O/so5KgX8OsLhhKHhy75w03oX0ss/GKRqx 7lp19JqX08qWsB2RjH2zqQoXP3l79AmVmS0bMx8C5cxpkcfQRUP/wPGZqCoqe3Qk1Hcj euhkJIRKmE/okxVzJbzSvSMKD6XIZASoEC+sxUXoCAwCTP5mWYkrZIvt6dMnFFJLuGD4 TqzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=thdeKBpE5waOs0Cn1rN+DeVJFAkWJi3N1KGywh2VHl0=; b=kRdTj8txEdzxfRBs7Sj0EgOFOBQ0J73zTNG8I+8aw5LAeOi4B46r7yhucayYL+3V7L le8I/vCWeOn7slBcr7DCe2I532w6afjtmltyS4BWrPOeUVl+PDoz0oerBjtbhsGfYHp6 Mo2CdNlhH/uSNQ7LHYTYhkGeDU0RNAlzGZGROJgR4XCF90bnZ6bGMoEVm1WL4SQwGf5P +LF+K40KKJ67RLJ0tjNFdPHLTMd5q4GTCTfE5m6AxBKWwbpycL9Sg85hIBEftDWgYXEn 1/3Drvpl5rb9I5pn1M7atYWB4wOHmcXvCgmc4RZxnVOLuU/PxGzzPzZFziYITG4PaIDo 14hA== X-Gm-Message-State: AGi0PuY0JC9LMhiwLwrOelbTnmY3C1RJkfzpYlUPvccyCpCcfcanzoLu 8x5opPruvOLRl8eZaWcmckM= X-Received: by 2002:a63:c842:: with SMTP id l2mr9647026pgi.221.1589095737328; Sun, 10 May 2020 00:28:57 -0700 (PDT) Received: from [192.168.11.3] (KD106167171201.ppp-bb.dion.ne.jp. [106.167.171.201]) by smtp.gmail.com with ESMTPSA id u188sm6227665pfu.33.2020.05.10.00.28.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 10 May 2020 00:28:56 -0700 (PDT) Subject: [PATCH 3/3] Documentation/litmus-tests: Merge atomic's README into top-level one To: "Joel Fernandes (Google)" , Boqun Feng , "Paul E. McKenney" Cc: linux-kernel@vger.kernel.org, vpillai@digitalocean.com, Jonathan Corbet , Alan Stern , Andrea Parri , Will Deacon , Peter Zijlstra , Nicholas Piggin , David Howells , Jade Alglave , Luc Maranget , Daniel Lustig , linux-doc@vger.kernel.org, Akira Yokosawa References: <20200323015735.236279-1-joel@joelfernandes.org> <7809dbfa-7a76-8663-799a-908c4ead8d30@gmail.com> <21e1ba24-22d0-8083-770c-53d320ba5420@gmail.com> From: Akira Yokosawa Message-ID: Date: Sun, 10 May 2020 16:28:52 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <21e1ba24-22d0-8083-770c-53d320ba5420@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From 1aa2c25f0ad16382a5bc597cdbdcc817645e01cd Mon Sep 17 00:00:00 2001 From: Akira Yokosawa Date: Sun, 10 May 2020 15:12:57 +0900 Subject: [PATCH 3/3] Documentation/litmus-tests: Merge atomic's README into top-level one Where Documentation/litmus-tests/README lists RCU litmus tests, Documentation/litmus-tests/atomic/README lists atomic litmus tests. For symmetry, merge the latter into former, with some context adjustment in the introduction. Signed-off-by: Akira Yokosawa --- Documentation/litmus-tests/README | 19 +++++++++++++++++++ Documentation/litmus-tests/atomic/README | 16 ---------------- 2 files changed, 19 insertions(+), 16 deletions(-) delete mode 100644 Documentation/litmus-tests/atomic/README diff --git a/Documentation/litmus-tests/README b/Documentation/litmus-tests/README index c4307ea9f996..ac0b270b456c 100644 --- a/Documentation/litmus-tests/README +++ b/Documentation/litmus-tests/README @@ -2,6 +2,25 @@ LITMUS TESTS ============ +Each subdirectory contains litmus tests that are typical to describe the +semantics of respective kernel APIs. +For more information about how to "run" a litmus test or how to generate +a kernel test module based on a litmus test, please see +tools/memory-model/README. + + +atomic (/atomic derectory) +-------------------------- + +Atomic-RMW+mb__after_atomic-is-stronger-than-acquire.litmus + Test that an atomic RMW followed by a smp_mb__after_atomic() is + stronger than a normal acquire: both the read and write parts of + the RMW are ordered before the subsequential memory accesses. + +Atomic-RMW-ops-are-atomic-WRT-atomic_set.litmus + Test that atomic_set() cannot break the atomicity of atomic RMWs. + + RCU (/rcu directory) -------------------- diff --git a/Documentation/litmus-tests/atomic/README b/Documentation/litmus-tests/atomic/README deleted file mode 100644 index 714cf93816ea..000000000000 --- a/Documentation/litmus-tests/atomic/README +++ /dev/null @@ -1,16 +0,0 @@ -This directory contains litmus tests that are typical to describe the semantics -of our atomic APIs. For more information about how to "run" a litmus test or -how to generate a kernel test module based on a litmus test, please see -tools/memory-model/README. - -============ -LITMUS TESTS -============ - -Atomic-RMW+mb__after_atomic-is-stronger-than-acquire - Test that an atomic RMW followed by a smp_mb__after_atomic() is - stronger than a normal acquire: both the read and write parts of - the RMW are ordered before the subsequential memory accesses. - -Atomic-RMW-ops-are-atomic-WRT-atomic_set.litmus - Test that atomic_set() cannot break the atomicity of atomic RMWs. -- 2.17.1