Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp71257ybk; Thu, 14 May 2020 16:34:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxG7UBaFUQ0JhtkPS0BqgSrHXVcJ9MevLwsqoD24x7NorqVBVwLDsxgsWULtFYG5woRMhZW X-Received: by 2002:a17:906:b099:: with SMTP id x25mr428118ejy.290.1589499292173; Thu, 14 May 2020 16:34:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589499292; cv=none; d=google.com; s=arc-20160816; b=A6pKvcxARQdKGm4wUrbojVWPxBdndlubQWsqFrVJgepYNwSUZ5XL0RNKbIw2d4qj6E nMPzVGoUmJRdztcR1MjLtdOLmLpjqvndjNDnH2K/Ee3okEk5byNzr8bKB7sNLosBOA0z waJRK013/7GbNMNUM5rXgKNPNMA6MLmaQsPnL6LpPyzxwZRKWuJXgfqqxTkT5dAa/UgK 5xZy1S04uiRF2VLlxbaXkOqR7bTl+ngf+NxA+rXFARFZO0MhqlI/u6STm5gcKya3jFZc ioIFCIPqOdgnFrP585oxPxynuohvS/Tq1P9rmjOEBuA2w0oacpcfx4FDjuHohdiSmrB3 2oNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=dOARIjvmqHeCUyiWm5u4Elpfr7wFH+rG0H/kRXEw4uE=; b=MDT5NA1gE1ixqmJvmEcNYHd730BCatk1NBkniakGe3FT8n+CbY6JH/1H3RNz19LwVX DvsvrR0kCQ8o0IGaGhHZ2oZtL2f+awQ9KGrhBDu2M3eAJPTPpPdT1UotfPMgbMZ8i44D 7KzyQTXHU293StGuTqTc1UHx+HLOY3FbUE284vIh+nGix0s2H7UNUmqlVZg9x0v2oXkE wG5QTNQqUAS0G1KwRPj4F8at+sXJ7uZQw3qxH0z0gwSF412+lFLi82Wv8rJhMaUO6OiC wyFa3VEXu4Ir/yxjJJNGMnPNUpybV+zJkXuCE4JIDf5mv0DuTv75LVEhiO5naeheu/Vt YI7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="jhp1/LSP"; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n8si229029ejh.210.2020.05.14.16.34.28; Thu, 14 May 2020 16:34:52 -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=@kernel.org header.s=default header.b="jhp1/LSP"; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728835AbgENWqA (ORCPT + 99 others); Thu, 14 May 2020 18:46:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:47588 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728229AbgENWp7 (ORCPT ); Thu, 14 May 2020 18:45:59 -0400 Received: from paulmck-ThinkPad-P72.home (unknown [50.39.105.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E405B20709; Thu, 14 May 2020 22:45:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589496358; bh=FY5NOqukchhrNeV9wVFdk22hstkEqKG0er+b+kAAHZs=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=jhp1/LSPlhkyCxSn+ny0HloIVJhFQaQAlmQBM8Uxelgt6BFPx4N3d1nA3dS+WvnS+ lv0XmPCZsIYvUrimjd8T3pFr97wIrgpcFjdJsPZbXHMw5nN2A/xy3xm5yk89VQWjW/ RkGfKZx0wCqwyrJJ63rEIn7tZCLf0vAP8pLddnck= Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id D01A335229C6; Thu, 14 May 2020 15:45:58 -0700 (PDT) Date: Thu, 14 May 2020 15:45:58 -0700 From: "Paul E. McKenney" To: Akira Yokosawa Cc: Boqun Feng , Joel Fernandes , LKML , Vineeth Remanan Pillai , Jonathan Corbet , Alan Stern , Andrea Parri , Will Deacon , Peter Zijlstra , Nicholas Piggin , David Howells , Jade Alglave , Luc Maranget , Daniel Lustig , "open list:DOCUMENTATION" Subject: Re: [PATCH RESEND 3/4] Documentation/litmus-tests: Merge atomic's README into top-level one Message-ID: <20200514224558.GZ2869@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org References: <7809dbfa-7a76-8663-799a-908c4ead8d30@gmail.com> <21e1ba24-22d0-8083-770c-53d320ba5420@gmail.com> <20200512163022.GI2869@paulmck-ThinkPad-P72> <09a8f418-0a46-87ea-dbdb-a43efc66476c@gmail.com> <6d162e69-5d2f-1fbf-1588-ab19c30e7311@gmail.com> <20200514004618.GA94665@debian-boqun.qqnc3lrjykvubdpftowmye0fmh.lx.internal.cloudapp.net> <20200514171656.GR2869@paulmck-ThinkPad-P72> <0ded5099-fe59-914a-d0dd-999cc334ff0a@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0ded5099-fe59-914a-d0dd-999cc334ff0a@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 15, 2020 at 07:03:33AM +0900, Akira Yokosawa wrote: > On Thu, 14 May 2020 10:16:56 -0700, Paul E. McKenney wrote: > > On Thu, May 14, 2020 at 08:46:18AM +0800, Boqun Feng wrote: > >> On Wed, May 13, 2020 at 06:39:03AM +0900, Akira Yokosawa wrote: > >>> From 96fa6680e3b990633ecbb6d11acf03a161b790bd Mon Sep 17 00:00:00 2001 > >>> From: Akira Yokosawa > >>> Date: Sun, 10 May 2020 15:12:57 +0900 > >>> Subject: [PATCH RESEND 3/4] 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 > >>> Acked-by: Andrea Parri > >>> Acked-by: Joel Fernandes (Google) > >> > >> Acked-by: Boqun Feng > >> > >> Thanks! > > > > Applied, and thank you all! > > > > I rebased, cancelling the revert with the original, resulting in an > > updated lkmm branch on -rcu. There was one minor conflict, so could > > one of you please check to make sure that I resolved things appropriately? > > One thing I noticed. > > Commit b2998782ded4 ("Documentation/litmus-tests: Clarify about the RCU > pre-initialization test")'s change log says: > > Since this test returned to tools/memory-model/, make sure that it is > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > at least referenced from Documentation/litmus-tests/'s README. > > Because of the rebase, this needs amendment as well as the title. > > Something like > > Documentation/litumus-tests: Cite a relevant litmus test in tools/memory-model > > For ease of finding the RCU related litmus test under > tools/memory-model/, add an entry in README. > > ? Good catch, and yes, I will update that on the next rebase. Any other things in need of adjustment? Thanx, Paul > Thanks, Akira > > > > > Thanx, Paul > > > >> Regards, > >> Boqun > >> > >>> --- > >>> 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 > >>> > >>>