Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp1658361imb; Sun, 3 Mar 2019 02:06:54 -0800 (PST) X-Google-Smtp-Source: AHgI3IbyHneVpCSC5/eATedEgh2RiqTNqgjCo+aFXLrrNgE3wYSrycSHQnflHyyIGuJgt+ma5/Tw X-Received: by 2002:a62:ee0e:: with SMTP id e14mr14531263pfi.201.1551607613931; Sun, 03 Mar 2019 02:06:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551607613; cv=none; d=google.com; s=arc-20160816; b=D3ozQwGg4LmrwokxtQzoWP7q/3rtOStN+E5VS/qBNOUDVdKc7R49eCjqeDOXeA838W i470FnsyURLwaFasNOVPdRJnzaCsSOum9jISKxxyfZT/le2G9QwOfqwFdbFqb66BnAPn CxP/4PwO/946gklZXfqbkHE0M1l18JWw6/mNg1UAPzYJQ4l3CsROa00mxaeo86wQI0qr WHKGQgp1pqNce3toUiUExk7b3mcHZM1CVTaFf0JF5on6e4w2dKEU12Y00+DDq5b22UIP m9tjOZmRvzK4MzNC0WspGH7PAXfUOA7gu+6emKbamds4HjhRwWS5qlxv0UPIEmVqZNd0 +SKA== 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:message-id :user-agent:mime-version:in-reply-to:references:cc:to:subject:from :date:dkim-signature; bh=b8vQYc9ep8TfoYWy1t/cwVZtTf+JFWkdkgDvyL2DYys=; b=VHsCxWftrGtVtO6iuRVdJlsL3Z5O2W00FX0+TvOTbVeecJz3MBpNEoVXeGae13wu86 3ywfvPnAyFiwUCJaY7+iYGxkoW52qZvn/5NNsTfnakRWmOJohdrKBungQgzKaYSHv3U4 e3Qs+mofw7pc19/s3yeMTlHAkkMkFYFfY0qUXeOBBxjZhpQapoB7617u3RSYz+zmfxrG AnOEMab2FgzmNzgIAHE9Gd0HAPhQAjMZFu5PI0kH6m2CUecB4GeZwP1dCZAkTJ+ccMZ6 /2oXi20VVLuu5yKtG7z2VQe6zzW/e2//ONnva/cOFsZCs0uXRa4voAYbgfyTErYBOv+/ UOlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eQsBWKzk; 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 u7si2612275plz.379.2019.03.03.02.06.27; Sun, 03 Mar 2019 02:06:53 -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=eQsBWKzk; 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 S1726060AbfCCKFc (ORCPT + 99 others); Sun, 3 Mar 2019 05:05:32 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:38416 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726032AbfCCKFb (ORCPT ); Sun, 3 Mar 2019 05:05:31 -0500 Received: by mail-pg1-f196.google.com with SMTP id m2so1107834pgl.5; Sun, 03 Mar 2019 02:05:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:subject:to:cc:references:in-reply-to:mime-version :user-agent:message-id:content-transfer-encoding; bh=b8vQYc9ep8TfoYWy1t/cwVZtTf+JFWkdkgDvyL2DYys=; b=eQsBWKzko1lBtorrWr+b06pWwvf5bv7f9QI8605aY1Kw/dzLGRowS+gxr8N56VREuW cABct7IuxrVOSnxC7ndkrBXi65G/LN1zEHDGeEIbTpXKbF46a2X1wSu7DOtVv3Wi3nK8 wA8xEsNVIs5+CW+h66uTLBqNev9THmAGa6TDrQINOgPFwYvNhFWu7k9uHJl1VtpYPKSp QXw0/fbIa7u3XrwRt59pAXtPO1vRdyk5Tk1Oe7k76odFBjyQkE01qP1OIhrbf/IG/Y11 ZE7zHbC16oti7qnbCmN0U6CMrJ6j8qMmoPOHCYbeFc7KldHoBlJJ4zQDXaEkwgvrL9eH xJqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:subject:to:cc:references:in-reply-to :mime-version:user-agent:message-id:content-transfer-encoding; bh=b8vQYc9ep8TfoYWy1t/cwVZtTf+JFWkdkgDvyL2DYys=; b=hXZtSRd2KE5+rzmwiyS2IoY2EfWQWvaDVLuM+vAQJwfEATNlAqPuKQYJ7wK2DH2DVF Nyc54pX7dvrFvSBAOMvAln9am6G3xX6UmwOf4464h49krkQldmNbNavazoXUXcSjgLTo JsFe+i7w1FsmzZDI7VfsHpmKUB84Wx6En3fDtI3Kx+bJL9jm8yRjuNwInAlQk67eXnp2 AhQoTmw+ZGA9+xC2g9x/DDrW3P+aTG149A2yds4Fp73hvhTbA3DuOlwCwKIk67jvdcHu A2A/6m310MEedqHvz8fhlaHQK5uU62TvVcFJAm7OH+skGD7aF1oXsnzFjY07uqRGKChp 8lBg== X-Gm-Message-State: APjAAAV9xF8hiotzSrQT2nOQpNMeTCw9JqBsbwt6h1O5W0vzWUxlhMGW 12I3Kq6TZVm2+EMuGfp8LSc= X-Received: by 2002:a65:5844:: with SMTP id s4mr13205327pgr.77.1551607530979; Sun, 03 Mar 2019 02:05:30 -0800 (PST) Received: from localhost (193-116-74-175.tpgi.com.au. [193.116.74.175]) by smtp.gmail.com with ESMTPSA id m20sm5798295pfj.142.2019.03.03.02.05.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 03 Mar 2019 02:05:30 -0800 (PST) Date: Sun, 03 Mar 2019 20:05:23 +1000 From: Nicholas Piggin Subject: Re: [PATCH 01/20] asm-generic/mmiowb: Add generic implementation of mmiowb() tracking To: Linus Torvalds Cc: Andrea Parri , Arnd Bergmann , Benjamin Herrenschmidt , Rich Felker , David Howells , Daniel Lustig , linux-arch , Linux List Kernel Mailing , "Maciej W. Rozycki" , Ingo Molnar , Michael Ellerman , Palmer Dabbelt , Paul Burton , "Paul E. McKenney" , Peter Zijlstra , Alan Stern , Tony Luck , Will Deacon , Yoshinori Sato References: <20190301140348.25175-1-will.deacon@arm.com> <20190301140348.25175-2-will.deacon@arm.com> <1551575210.6lwpiqtg5k.astroid@bobo.none> <1551583190.duzqnmfnvg.astroid@bobo.none> In-Reply-To: MIME-Version: 1.0 User-Agent: astroid/0.14.0 (https://github.com/astroidmail/astroid) Message-Id: <1551606848.8cceyn7nhv.astroid@bobo.none> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Linus Torvalds's on March 3, 2019 2:29 pm: > On Sat, Mar 2, 2019, 19:34 Nicholas Piggin wrote: >=20 >> >> It doesn't have to be done all at once with this series, obviously this >> is a big improvement on its own. But why perpetuate the nomenclature >> and concept for new code added now? >> >=20 > What nomenclature? >=20 > Nobody will be using mmiowb(). That's the whole point of the patch series= . >=20 > It's now an entirely internal name, and nobody cares. Why even bother with it at all, "internal" or not? Just get rid of=20 mmiowb, the concept is obsolete. > And none of this has anything to do with wmb(), since it's about IO being > ordered across cpu's by spin locks, not by barriers. >=20 > So I'm not seeing what you're arguing about. Pretend ia64 doesn't exist for a minute. Now the regular mb/wmb barriers=20 orders IO across CPUs with respect to their cacheable accesses. =20 Regardless of whether that cacheable access is a spin lock, a bit lock,=20 an atomic, a mutex... This is how it was before mmiowb came along. Nothing wrong with this series to make spinlocks order mmio, but why=20 call it mmiowb? Another patch could rename ia64's mmiowb and then the name can be removed from the tree completely. Thanks, Nick =