Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp345701imu; Mon, 26 Nov 2018 11:43:17 -0800 (PST) X-Google-Smtp-Source: AFSGD/VBEn3gJuL5OcPpONP7+mUloNYDKpLs1L7nlEAnurEpQ14l2GwHPE9h9YvlQJklMcqK8dON X-Received: by 2002:a63:4d0e:: with SMTP id a14mr26519337pgb.408.1543261397246; Mon, 26 Nov 2018 11:43:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543261397; cv=none; d=google.com; s=arc-20160816; b=cZ6hmP6xk1hgy3pR+6WKh/WZwc8q1F7mgKBpXBKjdT6fmzK6jI9kF5Ob/QqqQ9t6md W7tHCmspBVseCFjvCYn8hVu7ppph4lFi4nbVsDREptvXm1od1eGuVnllo6KXeRQLHoA+ 1eadkmH0UCgczoEoqPVJbMt1LJjTTTuivAwoKmPX28AJuDP0U9FMsOwU6NFeygMtJ1yl hxzX54UEgG0Go9NAnlcQlS2tqY1ARCwpzODPlpPKKtxs72PCqs51V8hR+9vnvzsfao/v QneC1LMNvyPNhGuf5fXIdBoXRxzEvEqKV4zPduRoPVT5wMY6lAOyLGM3v/XSZ9ATRr8q x0Cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:subject:cc:to :from:date; bh=+punQNYnBN3pPr42ho1hFbJHzIdONUje/mc9q/9Japs=; b=FXPjh2o2LBSuZCgG5YgFhU/sH5k/sJG6zkElSE3nwpN1oxWUtVyaWOAisuV1Ye57Qx k+xkPcTyWSvKqPcdRD/WIUQ9ugksal8yRCxWpiu0kwAfFQYD0+TzoJRqv9TW+57VThUw aX6NFSjf7XlXOW5mSW27UBpFQDeyfytdyO3KlpRzlkk0sEgjpHg2zWv6SxV9pU6hP2ro GPqE6hjbmr5ifGqe9KJWGo9MqqAzhPwefj5CQs4BWmDk16OcnVgRpqZp3BcwiwX7s1C+ bVtcDdZSXtRkGDTLCpoREsmj4f8KRdOdq7aIdqvlxMSPVAagaxzfLlZkFQWRrGbmE3pL nL8g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n137si1247900pfd.216.2018.11.26.11.42.49; Mon, 26 Nov 2018 11:43:17 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726367AbeK0GhT (ORCPT + 99 others); Tue, 27 Nov 2018 01:37:19 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:38886 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726140AbeK0GhT (ORCPT ); Tue, 27 Nov 2018 01:37:19 -0500 Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id wAQJdKXw108452 for ; Mon, 26 Nov 2018 14:42:08 -0500 Received: from e17.ny.us.ibm.com (e17.ny.us.ibm.com [129.33.205.207]) by mx0b-001b2d01.pphosted.com with ESMTP id 2p0p70aptr-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 26 Nov 2018 14:42:08 -0500 Received: from localhost by e17.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 26 Nov 2018 19:42:07 -0000 Received: from b01cxnp22035.gho.pok.ibm.com (9.57.198.25) by e17.ny.us.ibm.com (146.89.104.204) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Mon, 26 Nov 2018 19:42:03 -0000 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp22035.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id wAQJg26s17170618 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 26 Nov 2018 19:42:02 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id AFACAB2066; Mon, 26 Nov 2018 19:42:02 +0000 (GMT) Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 90DDCB206B; Mon, 26 Nov 2018 19:42:02 +0000 (GMT) Received: from paulmck-ThinkPad-W541 (unknown [9.70.82.38]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP; Mon, 26 Nov 2018 19:42:02 +0000 (GMT) Received: by paulmck-ThinkPad-W541 (Postfix, from userid 1000) id 3603516C342E; Mon, 26 Nov 2018 11:42:05 -0800 (PST) Date: Mon, 26 Nov 2018 11:42:05 -0800 From: "Paul E. McKenney" 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 Subject: Re: [PATCH] docs/memory-barriers.txt: Enforce heavy ordering for port I/O accesses Reply-To: paulmck@linux.ibm.com 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.5.21 (2010-09-15) X-TM-AS-GCONF: 00 x-cbid: 18112619-0040-0000-0000-0000049892B9 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00010125; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000270; SDB=6.01123150; UDB=6.00577119; IPR=6.00903279; MB=3.00024340; MTD=3.00000008; XFM=3.00000015; UTC=2018-11-26 19:42:06 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18112619-0041-0000-0000-000008A1A79F Message-Id: <20181126194205.GL4170@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-11-26_15:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1811260168 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. > > 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 Queued, with the addition of Cc: of LKML, linux-arch, and linux-docs, thank you! (Otherwise, these lists can get lost when I send out the LKMM series.) Thanx, Paul > --- > > 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 >