Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2812331ybk; Tue, 12 May 2020 08:42:32 -0700 (PDT) X-Google-Smtp-Source: APiQypLGUEmq7VtTJO0f2sq7OgIT7EZn19N5RrIsNJpLuJe6vnAD+ImgSjsoWpz1l7B8p2oGvs+i X-Received: by 2002:a17:907:2054:: with SMTP id pg20mr17416929ejb.127.1589298152492; Tue, 12 May 2020 08:42:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589298152; cv=none; d=google.com; s=arc-20160816; b=VJ2nQXmfwxP2R9lVURrQdXkjNrNvBEL4UPJWiRub+LI6b6i8N/9InDLrzPo3RUMVy7 tt484hU7uRvxekS+hHlFim6eB+d2K6Gnt+QetWRiyo+cKH5VlxPi46wP8r8aaSeOmhpb Ffot9O4eu9wL8z18SiwHRKOOjxXNiPyPXxfilUdvObAXN+IZuZWTOtsOUdnV/gi6xSxK HULVfsZnMbjrQZOc3bKbY76H4rkDKZH1TXPZrbcrxn2PHwLAj6y9XkmrASW0xbH10fbm YDXQB65UzoW8Cj5EzxCbDQXO5AAc0v6+86lMAVbjPKxVlqu0bRL5axynFRkej1VQ70N+ F6Ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=buiAof6WRKtSirNKD9RFN2K0N5fvI2kki67MYnTnqYI=; b=0Xa+3WYNcv430paNZ14O0Z37opPUxb+tmPAtWL1vnv3MxGazEnuHJvpvp4KboDmVME AqIYaPFtGrXfBxnutjrrsAhGAP5cniVzAOBvqovB3wRs1wimqjb5NNFuNIzNnaL4t8Ik 3TmGuLd1lPlqgxFQ+OlKvisw6441m+H5NiBw1fEz54He6d3ScNKnkyHFTKugkiN4WyJy ZoOnNjUQ+buHznO875IXZph4IPnUZpfH+RF/QXV5N4SWs4FovDaQMXQeIh33DTZhVY1r dOgDvYGZ/S78hOmGDrdm5hIANSADho/U+7UqFh7v5ngEr/AiA+Y8kbW/wja/X83wlxcS /WjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=bdcdmC5f; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c12si8885672edx.92.2020.05.12.08.42.07; Tue, 12 May 2020 08:42:32 -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=@joelfernandes.org header.s=google header.b=bdcdmC5f; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730382AbgELPkM (ORCPT + 99 others); Tue, 12 May 2020 11:40:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726055AbgELPkM (ORCPT ); Tue, 12 May 2020 11:40:12 -0400 Received: from mail-il1-x143.google.com (mail-il1-x143.google.com [IPv6:2607:f8b0:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17FE0C061A0C for ; Tue, 12 May 2020 08:40:12 -0700 (PDT) Received: by mail-il1-x143.google.com with SMTP id t12so12688327ile.9 for ; Tue, 12 May 2020 08:40:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=buiAof6WRKtSirNKD9RFN2K0N5fvI2kki67MYnTnqYI=; b=bdcdmC5fOGsdyRNMoB3awGe4XvO1oZFII9PVWfAT6Hnk0pNlsC3+S692t3NtLhOwJ2 yRhzmVxElawpNsCp5SGd1/uA3ZEk+PVjHAeGZiXtTdSR1GohZMgwGOIrmiv01/IqXXq1 et9Aui/SmQpquIkSabOibWCiW3txo14BNVKVY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=buiAof6WRKtSirNKD9RFN2K0N5fvI2kki67MYnTnqYI=; b=QEzxv0yyx57oYvENnVqe1PTVjtLVT7mD5EY2IFE4XygtKIAV4APIxGfMnj0UhRxGqW 5XPDo1kZ1M9KV5JUSI8mOTbjXxwZI4Ahvh0KIQ1eKRplV9Ke9HwR2l+r88+uAAzxjvSB ZQyMHIUmSz41c49GlYyOKZMoQkqRpxvTZ8eLIPFl+gYvI5s09ZVu0K1SO6AxL5CI0/3B 6icq+Nl5gZ2KT9iTqCNRGDCCGxJF3t6blb1/J/qdystJ+k4GIOmlpscvSBjeMbAMu6tJ 6QfUYNCWD/MGIP/24r8vZ5riTQWhW0G+JcCO3sW+RjpthyI6axg9rylRaL2TJ58ca8Vx gRWw== X-Gm-Message-State: AGi0PubyPe/J+S7Qaq+NDsOBqeOD4a67dg7jy1riDlIrJLdol7sVTbWq vJYT5v46pT0D4eQqhgJDXzSzxTD6Okn1hwjOeXNC8w== X-Received: by 2002:a92:bad5:: with SMTP id t82mr22740692ill.171.1589298011260; Tue, 12 May 2020 08:40:11 -0700 (PDT) MIME-Version: 1.0 References: <20200323015735.236279-1-joel@joelfernandes.org> <7809dbfa-7a76-8663-799a-908c4ead8d30@gmail.com> <21e1ba24-22d0-8083-770c-53d320ba5420@gmail.com> <20200511173348.GX2869@paulmck-ThinkPad-P72> <20200512021309.GA197229@google.com> <20200512121936.GA228684@google.com> <20200512141944.GC2869@paulmck-ThinkPad-P72> <2ad1db9a-cd47-51a0-4bbf-5e6b64b73cbd@gmail.com> In-Reply-To: <2ad1db9a-cd47-51a0-4bbf-5e6b64b73cbd@gmail.com> From: Joel Fernandes Date: Tue, 12 May 2020 11:40:00 -0400 Message-ID: Subject: Re: [PATCH 0/3] tools/memory-model, Documentation/litmus-test: Sort out location of litmus test and README To: Akira Yokosawa Cc: "Paul E. McKenney" , Boqun Feng , 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" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 12, 2020 at 10:39 AM Akira Yokosawa wrote: > > On Tue, 12 May 2020 07:19:44 -0700, Paul E. McKenney wrote: > > On Tue, May 12, 2020 at 08:19:36AM -0400, Joel Fernandes wrote: > >> On Tue, May 12, 2020 at 08:50:45PM +0900, Akira Yokosawa wrote: > >> [...] > >>>> I think on top of this patch, I'd like to add a reference to the to the > >>>> litmus test in tools/memory-model/ from Documentation/rcu/. > >>> > >>> Sounds reasonable to me. But for most people, it never changes its location. > >>> Please find inline comments below. > >>> > >>>> > >>>> Just to mention my rationale for Documentation/litmus-tests/rcu/, I was > >>>> basically looking for a central place for RCU related litmus tests in the > >>>> kernel sources and the idea of this new directory came up. > >>>> > >>>> For Akira's series, > >>>> Acked-by: Joel Fernandes (Google) > >>> > >>> Thank you! > >>> > >>>> > >>>> And could we add the following patch on top of Akira's series so we still > >>>> maintain a reference to the moved RCU test?> > >>>> ---8<----------------------- > >>>> > >>>> From 52fdb57551cc769d8bd690f4f2b22de36ddece99 Mon Sep 17 00:00:00 2001 > >>>> From: "Joel Fernandes (Google)" > >>>> Date: Mon, 11 May 2020 22:06:46 -0400 > >>>> Subject: [PATCH] docs: litmus-tests: Clarify about the RCU pre-initialization > >>>> test > >>>> > >>>> Since this test was moved to tools/memory-model/, make sure that it is > >>>> at least referenced from Documentation/litmus-tests/'s README. > >>>> > >>>> Signed-off-by: Joel Fernandes (Google) > >>>> --- > >>>> Documentation/litmus-tests/README | 6 ++++-- > >>>> 1 file changed, 4 insertions(+), 2 deletions(-) > >>>> > >>>> diff --git a/Documentation/litmus-tests/README b/Documentation/litmus-tests/README > >>>> index ac0b270b456c1..53f09e74734a4 100644 > >>>> --- a/Documentation/litmus-tests/README > >>>> +++ b/Documentation/litmus-tests/README > >>>> @@ -11,7 +11,6 @@ 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 > >>>> @@ -23,8 +22,11 @@ Atomic-RMW-ops-are-atomic-WRT-atomic_set.litmus > >>>> > >>>> RCU (/rcu directory) > >>>> -------------------- > >>>> - > >>> > >>> I loosely followed the convention of ReST documents in putting these empty > >>> lines. But I don't mind if they are removed. > >>> > >>>> RCU+sync+read.litmus > >>>> RCU+sync+free.litmus > >>>> Both the above litmus tests demonstrate the RCU grace period guarantee > >>>> that an RCU read-side critical section can never span a grace period. > >>>> + > >>>> +MP+onceassign+derefonce.litmus (moved to tools/memory-model/litmus-tests/) > >>> > >>> As I said above, for those who don't follow developments in the lkmm branch, > >>> MP+onceassign+derefonce.litmus stays in tools/memory-model/litmus-tests/. > >>> So, > >>> > >>> +MP+onceassign+derefonce.litmus (under tools/memory-model/litmus-tests/) > >>> > >>> looks better to me. > >> > >> Yes it stays under tools/.. but is referenced here. Sounds like you agree and > >> the only change from my follow-up patch that you want is to change "moved to" > >> to "under". > >> > >> If so, Paul do you mind applying my patch and fixing this up? Or do you want > >> to apply Akira's 3-patch series first and then have me send you another one > >> on top? > > > > Let's get something that you, Akira, and Alan are good with, then I will > > apply that, either on top of or in place of the current commits (just > > tell me which). > > OK. > I'm submitting a patch [4/3] with Alan's suggested-by and Joel's and my > co-developed-by tags. > The explanation under tools/memory-model/litmus-tests/README also need the same > rewording. Sounds good to me, thanks!! - Joel