Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1314521ybf; Thu, 27 Feb 2020 08:37:29 -0800 (PST) X-Google-Smtp-Source: APXvYqwjgtJdEje/4KwyLMSE6ZBpp6cY9GuEKcivhJomm/hL25MKU1rrSjmkDSdnofiATrwG/43F X-Received: by 2002:a9d:1921:: with SMTP id j33mr487819ota.96.1582821449631; Thu, 27 Feb 2020 08:37:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582821449; cv=none; d=google.com; s=arc-20160816; b=b+014i6uyqzc69J7mT/g+qZJq+nLcr9LBk+AvD0YxLAt0vTY4vWLNtL0d9JUwDWhAs bv6rkgu9ftB6uMYtkuuKSNdqQpyz8GoMzlnhEGLxWDn1Rt3Nu1k/uho3tFNtPf3qrDSp PGbL0rXs8H2BEAZihynlbLl+ownvH/6hym+sPqDYzQ/N0dFeOw89zCWEiWKKdu+PlgGz 7YacrZLC/ny8inCAZJqgtyh+8Yk5Qrw6srxiT17FrKbohewnr/qZOVKAAcg4BmoS7P2r DEd9mc+V985qZ0G6XLti6toujw2duzI82OmRbcvPRdXDBPGeliEtn0h2uXEx13v60HIV inIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:in-reply-to :subject:cc:to:from:date; bh=p1ykv0kcky+UWxUp4pwFcRnXwp6fFIzhUZwxWwRhdPg=; b=EHDhFLLieeu99FO36ayVsnPSLKvGQVodZRMzRSIJZrRgm9gKSTpc8Qu9SFeRkQPvKm UDH0BD43ziVUbO+UgUPOGi1DyiMkBi9HE41JF/q7u1VIfh7MAfDyzfPjVdcwXNO1hPPj lCH9lO99L16sT6ICSFFk+xbKkASzypXgZuIfBVZWMaZbjgpwLF0N95U2a6LgeqvJXEQU MRxu6f2UpzfA9XJ5LdPVW4idqErn4XYiUgJ+wWVumpRrMizGy0SwQa3UgMMekessGxV9 y0dQyL9eKX2ZAm0TJCf0uK8wQcZthrkt1QL2bLic5S+RbV3HLSXWzGqGV27W2UXP+7Q0 b4QQ== ARC-Authentication-Results: i=1; mx.google.com; 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 b15si2841817ots.99.2020.02.27.08.37.17; Thu, 27 Feb 2020 08:37:29 -0800 (PST) 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; 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 S1730246AbgB0QgH (ORCPT + 99 others); Thu, 27 Feb 2020 11:36:07 -0500 Received: from iolanthe.rowland.org ([192.131.102.54]:38884 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1730084AbgB0QgH (ORCPT ); Thu, 27 Feb 2020 11:36:07 -0500 Received: (qmail 3376 invoked by uid 2102); 27 Feb 2020 11:36:06 -0500 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 27 Feb 2020 11:36:06 -0500 Date: Thu, 27 Feb 2020 11:36:06 -0500 (EST) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Boqun Feng cc: linux-kernel@vger.kernel.org, Andrea Parri , Will Deacon , Peter Zijlstra , Nicholas Piggin , David Howells , Jade Alglave , Luc Maranget , "Paul E. McKenney" , Akira Yokosawa , Daniel Lustig , Jonathan Corbet , Mauro Carvalho Chehab , "David S. Miller" , Rob Herring , Greg Kroah-Hartman , Jonathan Cameron , , Subject: Re: [PATCH v3 3/5] Documentation/locking/atomic: Introduce atomic-tests directory In-Reply-To: <20200227004049.6853-4-boqun.feng@gmail.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 27 Feb 2020, Boqun Feng wrote: > Although we have atomic_t.txt and its friends to describe the semantics > of atomic APIs and lib/atomic64_test.c for build testing and testing in > UP mode, the tests for our atomic APIs in real SMP mode are still > missing. Since now we have the LKMM tool in kernel and litmus tests can > be used to generate kernel modules for testing purpose with "klitmus" (a > tool from the LKMM toolset), it makes sense to put a few typical litmus > tests into kernel so that > > 1) they are the examples to describe the conceptual mode of the > semantics of atomic APIs, and > > 2) they can be used to generate kernel test modules for anyone > who is interested to test the atomic APIs implementation (in > most cases, is the one who implements the APIs for a new arch) > > Therefore, introduce the atomic-tests directory for this purpose. The > directory is maintained by the LKMM group to make sure the litmus tests > are always aligned with our memory model. > > Signed-off-by: Boqun Feng Acked-by: Alan Stern > --- > Documentation/atomic-tests/README | 4 ++++ > MAINTAINERS | 1 + > 2 files changed, 5 insertions(+) > create mode 100644 Documentation/atomic-tests/README > > diff --git a/Documentation/atomic-tests/README b/Documentation/atomic-tests/README > new file mode 100644 > index 000000000000..ae61201a4271 > --- /dev/null > +++ b/Documentation/atomic-tests/README > @@ -0,0 +1,4 @@ > +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. > diff --git a/MAINTAINERS b/MAINTAINERS > index ffc7d5712735..ebca5f6263bb 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -9718,6 +9718,7 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev > F: tools/memory-model/ > F: Documentation/atomic_bitops.txt > F: Documentation/atomic_t.txt > +F: Documentation/atomic-tests/ > F: Documentation/core-api/atomic_ops.rst > F: Documentation/core-api/refcount-vs-atomic.rst > F: Documentation/memory-barriers.txt >