Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp138884imu; Mon, 26 Nov 2018 08:57:12 -0800 (PST) X-Google-Smtp-Source: AFSGD/XsBeVTE/o76PR1yAN5oZ+6SCaBmZXU9P27QSolFL31q1ex/KPm22WQ71j55bECoonbZLD/ X-Received: by 2002:a17:902:ac1:: with SMTP id 59mr17899274plp.36.1543251432018; Mon, 26 Nov 2018 08:57:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543251431; cv=none; d=google.com; s=arc-20160816; b=KGrcWyWRYDPzZDKL6P/edjMTepRUNFFZaJrkVCGPIJHv2kLAhNo75SW4/xw6rHSIJo Mf93kriPIIqXQb/E8ugjRbjJFbIPrQ0w0lXmCtqRQMaU9VHV8+8Lrszo7C7K+uVJXYPC sKj+vJN+JK2E/XXzQb7X/DrNihtPMNlkWKFuxNqM/Mrx/vzWzNQHovzbRBXtcdSey5TX J8fRJ6f3YXUhS/maMuoiXL9bAy7qkRdSmnxBtq5FE/sP9jlSaX9jI5JjZLfIhkxHOJmU zDh+aYXQ5VquBAaM37Q+jE7F6rhF6cAHl2CxrrTEeIFwSBJoieS4GsVKffZpMhebO/77 fF9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=asrcnKQvScdXgTHgmMkDixJho0hxrF9P74z2h4kTKNs=; b=QU2SZaRV0kUWm6YNY5kpVcYlmFRYRaylrQbljqhISwjvqZ1IjLBCodSrawIc35n6cs L7klgtLfmjJQDOYLRSjJ08F+o+mh0f3/9xMSJWVgtDphLjx9cF/Jl8zcPaz81xfhZxDy 5Y7jNCcaVdRoy/3YUq/KxXxv+ehIDXvduoGHgqMc0QxtExaUPnmdUVgubbiwtmMjRO52 SM3KRoDe6mzbM+YfrUYEMD4/jqqkM1sU5EgqbIvqMFkM3PXv8lMl7lA9Xp1ADohB3fE0 OPcZbpeS/l+C5Uk2mc5hhJGa252JD893F+2uCa6t1I9oghsjdP35JtKdLs07NY+6PR3M 5ObQ== 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 q61-v6si770460plb.418.2018.11.26.08.55.56; Mon, 26 Nov 2018 08:57:11 -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 S1726167AbeK0Dqi (ORCPT + 99 others); Mon, 26 Nov 2018 22:46:38 -0500 Received: from foss.arm.com ([217.140.101.70]:42520 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726203AbeK0Dqi (ORCPT ); Mon, 26 Nov 2018 22:46:38 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3A2C015AD; Mon, 26 Nov 2018 08:51:58 -0800 (PST) Received: from edgewater-inn.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 0A68A3F59C; Mon, 26 Nov 2018 08:51:58 -0800 (PST) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 83F711AE0839; Mon, 26 Nov 2018 16:52:15 +0000 (GMT) From: Will Deacon To: corbet@lwn.net Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Will Deacon , Benjamin Herrenschmidt , Arnd Bergmann , David Laight , Alan Stern , Peter Zijlstra , "Paul E. McKenney" Subject: [PATCH] docs/memory-barriers.txt: Enforce heavy ordering for port I/O accesses Date: Mon, 26 Nov 2018 16:52:14 +0000 Message-Id: <1543251134-29867-1-git-send-email-will.deacon@arm.com> X-Mailer: git-send-email 2.1.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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. Cc: Benjamin Herrenschmidt Cc: Arnd Bergmann Cc: David Laight Cc: Alan Stern Cc: Peter Zijlstra Cc: "Paul E. McKenney" Signed-off-by: Will Deacon --- 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