Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp787942imm; Wed, 11 Jul 2018 10:58:08 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcxLjNjDBo91vKN7+59izJ3DO2N0Z2YIszLzKCxOyzGvcbvEb37zO13kj/Bau3nUotHMve/ X-Received: by 2002:a62:5613:: with SMTP id k19-v6mr7600837pfb.212.1531331888500; Wed, 11 Jul 2018 10:58:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531331888; cv=none; d=google.com; s=arc-20160816; b=tK5+dMR+Rm4y/2+l801FS6XlRfOzUYUywy0BpTi8KbEjHljS47TTGNDnF65lXKOP8C BsQk5mWlsoZkOmvKc/7nmVuwQRVApdnFpmsa1C/NQjBSGOIUQJlZIsEL6JlYO9BbXxUN 8gZj3xNbG/+HA1xi8z4Xd/59OTmgERRNlLvtN2RQX3sCEDcv8pB26zUR4azYxAv7RgYb KkR5bawmAj0HS1Nwj+PKakpEpmU4vX3/gMYRQ05xd/A6dLzHnksGs0lztZoBNRB14xaK BSRy8CBbb7EDMYp59bNpZ/6f+AIRULT+pBgqI0vOG+m2Xa0LeSj9PP9yZYZ+WvAOiPFu 0w6w== 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:arc-authentication-results; bh=V8NgtCg069LQ73hIDRpezgLNfmwlO+7PE7sh0796Hmc=; b=dMVuaaKK1/qea3RB1IT4vdh3SQNNWX1SFQOuDT2OnHr7v8ZS7SvBZHn5R8fGAFbSOy beCHZRSM6VkW+RbZ1lll2hTe+uaoKZF/nLfF2n7gsrkDjI6mZ9YLFnQJAd8jGwRKmoEV ikHKhLw6t+3okJjttB9A5/uVz3ID/sOS0agCvKCt1Z123YoFPBiug9YelzubxNZ+7QpN amFKPYBmZciGeAjC4lOI/KRJfxCSgFwK2rHeuym0xsVHjqG45ydRlrVrmkFsBQBC/xBL pp4J092Inzby44zTgQKsj1W5UB3b4T4Kp0PfvlXll6l4BcL5/cLmOx15Q05ypIViqIEd Tw/g== 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 a4-v6si21193285pfk.253.2018.07.11.10.57.53; Wed, 11 Jul 2018 10:58:08 -0700 (PDT) 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 S2389213AbeGKPlY (ORCPT + 99 others); Wed, 11 Jul 2018 11:41:24 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:52444 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387803AbeGKPlY (ORCPT ); Wed, 11 Jul 2018 11:41:24 -0400 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w6BFY4UP061112 for ; Wed, 11 Jul 2018 11:36:30 -0400 Received: from e16.ny.us.ibm.com (e16.ny.us.ibm.com [129.33.205.206]) by mx0a-001b2d01.pphosted.com with ESMTP id 2k5k85490h-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 11 Jul 2018 11:36:30 -0400 Received: from localhost by e16.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 11 Jul 2018 11:36:27 -0400 Received: from b01cxnp23032.gho.pok.ibm.com (9.57.198.27) 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) Wed, 11 Jul 2018 11:36:22 -0400 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp23032.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w6BFaLDS18743728 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 11 Jul 2018 15:36:21 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A0E02B2068; Wed, 11 Jul 2018 11:36:20 -0400 (EDT) Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 81413B205F; Wed, 11 Jul 2018 11:36:20 -0400 (EDT) Received: from paulmck-ThinkPad-W541 (unknown [9.70.82.159]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP; Wed, 11 Jul 2018 11:36:20 -0400 (EDT) Received: by paulmck-ThinkPad-W541 (Postfix, from userid 1000) id 30CF216C3B6B; Wed, 11 Jul 2018 08:38:40 -0700 (PDT) Date: Wed, 11 Jul 2018 08:38:40 -0700 From: "Paul E. McKenney" To: Andrea Parri Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-doc@vger.kernel.org, Alan Stern , Will Deacon , Peter Zijlstra , Boqun Feng , Nicholas Piggin , David Howells , Jade Alglave , Luc Maranget , Akira Yokosawa , Daniel Lustig , Jonathan Corbet Subject: Re: [PATCH] doc: Replace smp_cond_acquire() with smp_cond_load_acquire() Reply-To: paulmck@linux.vnet.ibm.com References: <1531216943-6382-1-git-send-email-andrea.parri@amarulasolutions.com> <1531314530-11624-1-git-send-email-andrea.parri@amarulasolutions.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1531314530-11624-1-git-send-email-andrea.parri@amarulasolutions.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 x-cbid: 18071115-0072-0000-0000-0000037E5634 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00009351; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000266; SDB=6.01059838; UDB=6.00543970; IPR=6.00837758; MB=3.00022104; MTD=3.00000008; XFM=3.00000015; UTC=2018-07-11 15:36:26 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18071115-0073-0000-0000-000048AD2DE1 Message-Id: <20180711153840.GS3593@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-07-11_03:,, 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=872 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807110166 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 11, 2018 at 03:08:50PM +0200, Andrea Parri wrote: > Amend commit 1f03e8d2919270 ("locking/barriers: Replace smp_cond_acquire() > with smp_cond_load_acquire()") by updating the documentation accordingly. > Also remove some obsolete information related to the implementation. > > Signed-off-by: Andrea Parri > Cc: Alan Stern > Cc: Will Deacon > Cc: Peter Zijlstra > Cc: Boqun Feng > Cc: Nicholas Piggin > Cc: David Howells > Cc: Jade Alglave > Cc: Luc Maranget > Cc: "Paul E. McKenney" > Cc: Akira Yokosawa > Cc: Daniel Lustig > Cc: Jonathan Corbet > --- > Documentation/memory-barriers.txt | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) I have queued this for further review, thank you! Just to confirm, the reason that the old passage was obsolete is because ARMv8 implements smp_cond_load_acquire() as a straight acquire load, correct? Thanx, Paul > diff --git a/Documentation/memory-barriers.txt b/Documentation/memory-barriers.txt > index 0d8d7ef131e9a..c1d913944ad8b 100644 > --- a/Documentation/memory-barriers.txt > +++ b/Documentation/memory-barriers.txt > @@ -471,8 +471,7 @@ And a couple of implicit varieties: > operations after the ACQUIRE operation will appear to happen after the > ACQUIRE operation with respect to the other components of the system. > ACQUIRE operations include LOCK operations and both smp_load_acquire() > - and smp_cond_acquire() operations. The later builds the necessary ACQUIRE > - semantics from relying on a control dependency and smp_rmb(). > + and smp_cond_load_acquire() operations. > > Memory operations that occur before an ACQUIRE operation may appear to > happen after it completes. > -- > 2.7.4 >