Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp231389imu; Tue, 27 Nov 2018 11:30:54 -0800 (PST) X-Google-Smtp-Source: AFSGD/Vn/reQ7mqbgqWnJjuzfOWnXZjfMyZa3wl4X5xZXU1I0o7lgCvHolZ9+PCLbzzAiKJ4Xeg7 X-Received: by 2002:a17:902:28aa:: with SMTP id f39mr34064282plb.297.1543347054700; Tue, 27 Nov 2018 11:30:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543347054; cv=none; d=google.com; s=arc-20160816; b=TnVvH2ylXLFU8GtUwrIsjbZDYXQKnetR0uYkdcZmcj01H+3eexH7N3i1dfJBJh33lk QOtBds2VS84bDYwnSrcroUBSJ/MR6Z2o+e0E3jmVmd5Kk5AWa2GTQGR4jPz6qmD2oMbr SYIGek3IGIcaBP67SMzQwQz3t7ba89eHNmpRWqTXiqDvA2YqYonLztGMOkf7bTF+TOQO kh7WI0dXxlUX999XeUunEuF8Ix6HtXhocWHUYMoJZ618h9PfEnE/2enuoXhoMiS23esx juOOV6WZnXdW3cnDHiHdQ4YXP4XoIavyoXzLcOF3gnChh67XomWl/22Z0SKNcX19GVBl VJqQ== 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=Jmh/w/+zPBScFdDKFy1giKy31akL0zpRW9axWMFbEhc=; b=StxUHDz3AnDYj6dnUyvr0E86o7GJWKrfrBUrQuACnS/gAr+eWCpEf+yH9bs6dCuY+i FETrpw5KP3jP/F/pCi1CPjbf3zpXMG1IVNn9huL/9a+/fsBGccKyNajKTI4lgxRWGmPn 2UUTSJ14AsNONS5M3tNALTcqNvDte/r7e38TgNIjLj2Bt+3w57/TLQOcG/XvO2TJC5cz wTqIA/Mwu5OFIVHduSUjVXulQTu0ZKhH4732oSq/gC3kTDQcfgousK39useRKtqR3/td 2T+koTbg+SX4hWDthX9rXsJQwDXhzVVNrBO0/5eUHqiCygk1/6Xr1egkMT3ScOvRx3gF i8MA== 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 m5si4664162pll.58.2018.11.27.11.30.39; Tue, 27 Nov 2018 11:30:54 -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 S1727746AbeK1FjQ (ORCPT + 99 others); Wed, 28 Nov 2018 00:39:16 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:40946 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726166AbeK1FjQ (ORCPT ); Wed, 28 Nov 2018 00:39:16 -0500 Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id wARIYUcX066770 for ; Tue, 27 Nov 2018 13:40:28 -0500 Received: from e16.ny.us.ibm.com (e16.ny.us.ibm.com [129.33.205.206]) by mx0a-001b2d01.pphosted.com with ESMTP id 2p17j3b4rr-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 27 Nov 2018 13:40:27 -0500 Received: from localhost by e16.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 27 Nov 2018 18:40:26 -0000 Received: from b01cxnp22033.gho.pok.ibm.com (9.57.198.23) by e16.ny.us.ibm.com (146.89.104.203) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Tue, 27 Nov 2018 18:40:22 -0000 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp22033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id wARIeLB717629306 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 27 Nov 2018 18:40:21 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C7AB9B205F; Tue, 27 Nov 2018 18:40:21 +0000 (GMT) Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A73E0B2064; Tue, 27 Nov 2018 18:40:21 +0000 (GMT) Received: from paulmck-ThinkPad-W541 (unknown [9.70.82.38]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP; Tue, 27 Nov 2018 18:40:21 +0000 (GMT) Received: by paulmck-ThinkPad-W541 (Postfix, from userid 1000) id 7EC4916C32AD; Tue, 27 Nov 2018 10:40:21 -0800 (PST) Date: Tue, 27 Nov 2018 10:40:21 -0800 From: "Paul E. McKenney" To: Andrea Parri Cc: Will Deacon , 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> <20181126193349.GA3509@andrea> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181126193349.GA3509@andrea> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 x-cbid: 18112718-0072-0000-0000-000003D00115 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00010132; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000270; SDB=6.01123610; UDB=6.00582089; IPR=6.00903739; MB=3.00024357; MTD=3.00000008; XFM=3.00000015; UTC=2018-11-27 18:40:25 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18112718-0073-0000-0000-00004A3FC48D Message-Id: <20181127184021.GS4170@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-11-27_14:,, 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-1811270158 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 08:33:49PM +0100, Andrea Parri wrote: > 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... I would be inclined to cut Will a break given the research for his recent talk on this topic, but it would be good to get an ack from someone from Intel. And memory-model patches require an ack or better in any case. ;-) Thanx, Paul > > 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 > > >