Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp337557imu; Mon, 26 Nov 2018 11:35:42 -0800 (PST) X-Google-Smtp-Source: AJdET5eP3rJjaU16dfln61a7wRbThDt8MQ1mziiSF4yGlowul7loDP329pKmY9lmrx8rU4pSg9XK X-Received: by 2002:a62:8dd9:: with SMTP id p86mr29164019pfk.143.1543260942662; Mon, 26 Nov 2018 11:35:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543260942; cv=none; d=google.com; s=arc-20160816; b=0wKkErZSK+XJox7Ask4oPfKcTpe5GpkBOdvgov0qH8Xr7+xxmDIlPZ8eg+hHFuKOT8 DupqqnRcIRFWCD0zpuI1+LIBxTlXrCb4EQJBSOxHcqHtpQJLKTbtMlpO9GZmLi7lNKcn O3zXa1KIXouLiPogc2wbazHStW5lYNNEVzckOPXa8qK+Oql4Jyf/SOXYivxfaONQXF5p RlT8alw+GQZjdEr3dLAGSa4lkpX7rYcv4KakLE+iKVYFO0kMpyW2v2pYqxuUQR/gI4Yx uBkjlLdYk3WIGFx3ZRakahXHHW5F4zzlOKv6cV1kRCzw2khoZbor4r+k6x5W58f2AL7n zhrA== 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; bh=Dhq9Wa8DxbKUhiU3QROo0wkZHkmKjBUi00KD1NSMmPk=; b=W2u0JfpeXJwytwnYVeDacfO/C7HVsmt0ZrHPY4mfwkpENOisnGP0drMs3pRYVLbaqe ObmTIPWEmFZWObrrmP/PsUpdO+D59dK0xyeWogrwFywvtNTKw1UOW1a/BM+Jg9+4zlml z1oNQSc3Qxhc8RGyaGK7oeux9/mjGo9GgG7Q9mSBfCinjvb/FZF9K66zMUbP6vEcppV6 TOBUezFkpauiCtZvWydyHBvoAuTLUCFwLeIuntSvQSf0h1j+sIG3Z0AIeIa2WzYC9C+e PuKTW4l1Ps5IGm6Ncs+sFSUVEg4IXenVCxMxFIsauK8HqWibc4dbfGM/f/e4v5wHeFv2 OfrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=G25Upoqn; 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 w12si1202173pfn.212.2018.11.26.11.35.08; Mon, 26 Nov 2018 11:35:42 -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=@amarulasolutions.com header.s=google header.b=G25Upoqn; 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 S1727022AbeK0G3F (ORCPT + 99 others); Tue, 27 Nov 2018 01:29:05 -0500 Received: from mail-ed1-f67.google.com ([209.85.208.67]:46886 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726254AbeK0G3E (ORCPT ); Tue, 27 Nov 2018 01:29:04 -0500 Received: by mail-ed1-f67.google.com with SMTP id o10so16851404edt.13 for ; Mon, 26 Nov 2018 11:33:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Dhq9Wa8DxbKUhiU3QROo0wkZHkmKjBUi00KD1NSMmPk=; b=G25Upoqn4I+nd6KSceXUZR0X78iS6lZYv0F3w2AkkgAFyhD89slHzkaZ/ZPwbabHNB b3/Kw9J+ULBjPi+0AjRUADCicJbfgYqq4sLScOZPRswXRKE8IGmf9cf7Bg/LJ/T7fqh9 FmWx/PYqXKAFbjO5u8x1ET4jb7gES2AWiUcto= 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=Dhq9Wa8DxbKUhiU3QROo0wkZHkmKjBUi00KD1NSMmPk=; b=fIfAiENmGf0OT2ZJgICoEcKzvG9oqvGGTedr3AJetP1kSXxVaEO9TpwTAQrmRlTtzA QNUeo3ezDcK/YAZq7qAV+xIV11BFBWjdMB3XSJD0mg+0Jm77PWMCOkm9trFGFhUYQX4+ zJrzlh3HugLrsoVsRp+gYWZzmaetG6GRUUu1ByJQKJy5PFzB5cQLcXi1pEOQ9Ay5Fkqo dojGr+eWuTJH2PHrOyHoqNVPIQJzbjNNoMapsqqVfyxdV+0zuGd/vARYKptmM0I8DSaY 5tdM8xk4AzFsk5GfojVDXnl1S4X2XpcTvk/6bbQ2fVjyQEophVesawcPqlkdoFkARgD9 FanA== X-Gm-Message-State: AGRZ1gI3DpV9vYCsWidwi7qCJJBlJjTNh0bHg+tZgkizzC4IP84dS0xk 88/m51CJV7BDOAsnRNyehvg0jA== X-Received: by 2002:a17:906:32c6:: with SMTP id k6-v6mr21360129ejk.48.1543260835516; Mon, 26 Nov 2018 11:33:55 -0800 (PST) Received: from andrea (dynamic-2a00-1028-8386-da8a-eacb-c188-78b9-634c.ipv6.broadband.iol.cz. [2a00:1028:8386:da8a:eacb:c188:78b9:634c]) by smtp.gmail.com with ESMTPSA id w10sm384955eda.77.2018.11.26.11.33.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 26 Nov 2018 11:33:54 -0800 (PST) Date: Mon, 26 Nov 2018 20:33:49 +0100 From: Andrea Parri To: Will Deacon Cc: corbet@lwn.net, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Benjamin Herrenschmidt , Arnd Bergmann , David Laight , Alan Stern , Peter Zijlstra , "Paul E. McKenney" Subject: Re: [PATCH] docs/memory-barriers.txt: Enforce heavy ordering for port I/O accesses Message-ID: <20181126193349.GA3509@andrea> References: <1543251134-29867-1-git-send-email-will.deacon@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1543251134-29867-1-git-send-email-will.deacon@arm.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 Mon, Nov 26, 2018 at 04:52:14PM +0000, Will Deacon wrote: > David Laight explains: > > | A long time ago there was a document from Intel that said that > | inb/outb weren't necessarily synchronised wrt memory accesses. > | (Might be P-pro era). However no processors actually behaved that > | way and more recent docs say that inb/outb are fully ordered. No intention to diminish David Laight's authority of course, but I would have really appreciated a reference to these "recent docs" (section, pg. or the like, especially if a reference manual...) here... > > This also reflects the situation on other architectures, the the port > accessor macros tend to be implemented in terms of readX/writeX. > > Update Documentation/memory-barriers.txt to reflect reality. ..., IOW, what do you mean by "reality"? > > Cc: Benjamin Herrenschmidt > Cc: Arnd Bergmann > Cc: David Laight > Cc: Alan Stern > Cc: Peter Zijlstra > Cc: "Paul E. McKenney" > Signed-off-by: Will Deacon Please Cc me on future patches to memory-barriers.txt (can not speak for my co-maintainers, but I'm inclined to say that get_maintainers.pl knows better...). Andrea > --- > > Just remembered I had this patch kicking around in my tree... > > Documentation/memory-barriers.txt | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/Documentation/memory-barriers.txt b/Documentation/memory-barriers.txt > index c1d913944ad8..0c34c5dac138 100644 > --- a/Documentation/memory-barriers.txt > +++ b/Documentation/memory-barriers.txt > @@ -2619,10 +2619,8 @@ functions: > intermediary bridges (such as the PCI host bridge) may not fully honour > that. > > - They are guaranteed to be fully ordered with respect to each other. > - > - They are not guaranteed to be fully ordered with respect to other types of > - memory and I/O operation. > + They are guaranteed to be fully ordered with respect to each other and > + also with respect to other types of memory and I/O operation. > > (*) readX(), writeX(): > > -- > 2.1.4 >