Received: by 10.223.185.116 with SMTP id b49csp811872wrg; Fri, 16 Feb 2018 07:34:43 -0800 (PST) X-Google-Smtp-Source: AH8x225LWb2p+NUMGM7MxqQWcBuLP2iaosVxD4owVBvvMGLKAP1wWteAzvrH1CpA1lQyCxFYtIIk X-Received: by 10.98.190.22 with SMTP id l22mr6525830pff.32.1518795283222; Fri, 16 Feb 2018 07:34:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518795283; cv=none; d=google.com; s=arc-20160816; b=jSDotWg48XZ7RGbLWBlJhhw8rF0KOQKh1kJZU0TuT4XcoqdDErQI7xzqrU4rCrmch9 LhWuUotjU0q3dICkG+OyA5QDie4XCAnm28K87tS/j5t/3f7nXvj9npoFl+GgEuNLZfob bA5tP96F97TCnMGq/bXTo4jHMEgL+Ix8ws4DZsctOu7Yz2KI6CsqMTAAVs6KTDVvBoPp WNOwcoF3obi+mmUUXcapn/+R+tXNV6h+S1z6jKLmGcUSIWM3MfU15cxKGJda5s4gbS+B RKvs7tSqkeu4ZLzfJ3Nd7zsAu3P7ILm+B31GXBQnyrav5nnfscsnO3uxQrolqt1rPeaR dHyw== 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:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=d0U2g00IIIkc2dKUwN1cMgH3fcS0D4dKdTpHBLSmL3c=; b=hfY8QT+7kpPe0aipffNU4izIHkEXuaNwjfbjdc6jSdVaX0QnIyIJ/8uOSMFY1DyeaG Nk/+mBloV78c8sJSUIHz6SDPgmhKTK00BGhK+B4dXKA3SMYwGfkGfKuTMpGa7noDUe3M mlTaENjFmOWfyAdzajuy0EB//u1EMF4HYIEQ1lz36g7Ly3ALqlMqYa0ERfy52gitle0r wW7cMMadC+OTOi0r5IJ5zNUoqwmVpio7eRjcIc7OPsonc2zf8dF0rA5am5HaPN1ztddL iepMaDu0Lgz3i6r21A4DNRMgb7s8a9Mets00QEzlmSyu9/kCAddiGLQy4uf6jbbhtnuk L54A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sdINIf5n; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a14si1222273pgd.467.2018.02.16.07.34.28; Fri, 16 Feb 2018 07:34:43 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sdINIf5n; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756214AbeBOWaT (ORCPT + 99 others); Thu, 15 Feb 2018 17:30:19 -0500 Received: from mail-wr0-f193.google.com ([209.85.128.193]:35114 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756203AbeBOWaS (ORCPT ); Thu, 15 Feb 2018 17:30:18 -0500 Received: by mail-wr0-f193.google.com with SMTP id l43so1231037wrc.2 for ; Thu, 15 Feb 2018 14:30:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=d0U2g00IIIkc2dKUwN1cMgH3fcS0D4dKdTpHBLSmL3c=; b=sdINIf5nZW5XrJRQUAOS8UYpHPu2dexF0u1rLJ/tGEixNCkIoai1OBMKUk5twS0rqa Xy5OsDH8MB1+Zl1uaNepAG+YmJxDkAW3MWSgKESD41niiQoV4HBbF/5H7/g0NNZRnsZ9 aM6NCHeGm+54ac95pZLbVTf0aO+Qu/wurxaf9s01rQ9x12wrrtzs0wepG1KGic9LeGRt EFf/B+6X8aZqa+Ge6HROUznwzlhN5T+Eo2Mck6Ncua1wLvusoD/hya20vpNyFeswysoH 5AQMs2f9jP1fxe+YmlihqCM5B1U2H3bQOXIZstYcaqsQ0Ek/tffqXegjA8nwVPQaFCWO 7Uqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=d0U2g00IIIkc2dKUwN1cMgH3fcS0D4dKdTpHBLSmL3c=; b=inJ+bkZimj69A4RJsE8HB4X1jERnYvC0MoLVIUkLXBUon74b5gLYEr9lYePB27yDfp bz1S76BGkJaIuWVwbBql9tNfq1i4d9QCNNIZSZUfWCOWalcw6ke6Y5uYCeXG+DzewUGl pROz9+vE9kIixPEpNd795Fz6m9/MkAJ4R5X0E+AaWy991AfMqoCy51OGC3ZQnfeFYzLl HMHJVTkwGJN9nruxrTul5LgOsxv1t7fdZoM70xHSebWTPwnwVunEA2+CczVH+NHAoJgA V5qQ9B/IFcgP06UZQ0vrEU+nxEhsP759aBA6kzLYZJn9t+Ilcp6OoZcl8h/NeRFsHCB+ 1B7w== X-Gm-Message-State: APf1xPD12HwhvCIPUX2DRic5PRoW15iuDduLHc0iWrq55MJ5Hhtr+7pr yNVFqnyH8OAe2y3H2OuzbUU= X-Received: by 10.223.164.14 with SMTP id d14mr1275386wra.182.1518733816723; Thu, 15 Feb 2018 14:30:16 -0800 (PST) Received: from andrea (dynamic-2a00-1028-8386-da8a-e035-bf19-070b-9348.ipv6.broadband.iol.cz. [2a00:1028:8386:da8a:e035:bf19:70b:9348]) by smtp.gmail.com with ESMTPSA id u79sm18879758wma.10.2018.02.15.14.30.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Feb 2018 14:30:16 -0800 (PST) Date: Thu, 15 Feb 2018 23:30:09 +0100 From: Andrea Parri To: "Paul E. McKenney" Cc: linux-kernel@vger.kernel.org, mingo@kernel.org, stern@rowland.harvard.edu, will.deacon@arm.com, peterz@infradead.org, boqun.feng@gmail.com, npiggin@gmail.com, dhowells@redhat.com, j.alglave@ucl.ac.uk, luc.maranget@inria.fr, akiyks@gmail.com Subject: Re: [PATCH RFC tip/lkmm 08/10] EXP Remove understore from smp_mb__before_atomic() workings Message-ID: <20180215223009.GA5460@andrea> References: <20180209141832.GA17505@linux.vnet.ibm.com> <1518186031-17997-8-git-send-email-paulmck@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1518186031-17997-8-git-send-email-paulmck@linux.vnet.ibm.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 09, 2018 at 06:20:29AM -0800, Paul E. McKenney wrote: > Signed-off-by: Paul E. McKenney nit: s/understore/underscore (a very understandable lapsus, BTW ;-) According to the cover letter, patches 8-10 of this series are intended to be squashed together; it could be useful to add a description then: the motivation for these changes might appear "trivial" today; months/ years from now? mmh, I can't put my finger on it ;-) IMO, this descrition should also mention why this solution "is the way to go" (e.g., compare with the solution recently implemented by Akira). Andrea > --- > tools/memory-model/linux-kernel.bell | 2 +- > tools/memory-model/linux-kernel.cat | 2 +- > tools/memory-model/linux-kernel.def | 2 +- > 3 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/tools/memory-model/linux-kernel.bell b/tools/memory-model/linux-kernel.bell > index b984bbda01a5..558bbef9e08a 100644 > --- a/tools/memory-model/linux-kernel.bell > +++ b/tools/memory-model/linux-kernel.bell > @@ -28,7 +28,7 @@ enum Barriers = 'wmb (*smp_wmb*) || > 'rcu-lock (*rcu_read_lock*) || > 'rcu-unlock (*rcu_read_unlock*) || > 'sync-rcu (*synchronize_rcu*) || > - 'before_atomic (*smp_mb__before_atomic*) || > + 'before-atomic (*smp_mb__before_atomic*) || > 'after_atomic (*smp_mb__after_atomic*) || > 'after_spinlock (*smp_mb__after_spinlock*) > instructions F[Barriers] > diff --git a/tools/memory-model/linux-kernel.cat b/tools/memory-model/linux-kernel.cat > index babe2b3b0bb3..31c08a44c088 100644 > --- a/tools/memory-model/linux-kernel.cat > +++ b/tools/memory-model/linux-kernel.cat > @@ -29,7 +29,7 @@ let rb-dep = [R] ; fencerel(Rb_dep) ; [R] > let rmb = [R \ Noreturn] ; fencerel(Rmb) ; [R \ Noreturn] > let wmb = [W] ; fencerel(Wmb) ; [W] > let mb = ([M] ; fencerel(Mb) ; [M]) | > - ([M] ; fencerel(Before_atomic) ; [RMW] ; po? ; [M]) | > + ([M] ; fencerel(Before-atomic) ; [RMW] ; po? ; [M]) | > ([M] ; po? ; [RMW] ; fencerel(After_atomic) ; [M]) | > ([M] ; po? ; [LKW] ; fencerel(After_spinlock) ; [M]) > let gp = po ; [Sync-rcu] ; po? > diff --git a/tools/memory-model/linux-kernel.def b/tools/memory-model/linux-kernel.def > index a397387f77cc..ff4b756f4a44 100644 > --- a/tools/memory-model/linux-kernel.def > +++ b/tools/memory-model/linux-kernel.def > @@ -21,7 +21,7 @@ smp_mb() { __fence{mb} ; } > smp_rmb() { __fence{rmb} ; } > smp_wmb() { __fence{wmb} ; } > smp_read_barrier_depends() { __fence{rb_dep}; } > -smp_mb__before_atomic() { __fence{before_atomic} ; } > +smp_mb__before_atomic() { __fence{before-atomic} ; } > smp_mb__after_atomic() { __fence{after_atomic} ; } > smp_mb__after_spinlock() { __fence{after_spinlock} ; } > > -- > 2.5.2 >