Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3912027imm; Wed, 5 Sep 2018 07:55:26 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaHx6f6FHiPwnpbRRbJqxE6DMqs4FjRLbi+DcLpZ7pKluhn2beEB+TkB5VRYbPNm1ofzFZb X-Received: by 2002:a62:7d8d:: with SMTP id y135-v6mr40537986pfc.259.1536159326504; Wed, 05 Sep 2018 07:55:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536159326; cv=none; d=google.com; s=arc-20160816; b=dM/m63BrccjPwRtr+q2Fh6D5QUb8XerVs+y2d6LNi93flzIXN+l+CQJ4zcoHOIQaFL VpMp4HGU2Nl5l2/6zx4SsOHUNghgY91mISHdpcb+Wg6A0+FCSJSAN00/Id3oQXHJBgEt 0KHRkUD3Kjh3mpbgG0DkJnNPl+ns36s3izuVoob/35ZV30WF/z4bxhw9Z4YEjoppgYv9 s+UqTWxYyjnKtuVvSOwouEsnwTProNnu7tmhxPHDAYlTQ3ReL8dkmvrQRmPWlndv4N91 KdE7vCeNu4uojXX2lW0lZFk9MOhO0/OwcZ//A7uQ60Ncwq+Rg9wCwH5P7nbzSXV+1TN/ 6+RA== 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=5zQlHBqAV3XmV+5bl+bMICI7Ud3FRVKfEaUaOFO3X6I=; b=Mh7wvR9a3uzFgEwzgYK2Yhde4CgqRsbv3xprPYCw2kKQW9aSjgwnc5EnDKQPxsbz/Q zscDzoGzZODq/+AjV4qJFHOUoAinBF8lOCna8BVrUw094HKwDFxx2WlQYgaVIZfh9FQ7 CHbf6KIi9JP8lgrG8+7arFHoHIzJn+PXHq3K6ke9VKcJ9PInvw75e8fLKZZT9mcWB1k1 yg+SArUUpLOV70IMuyL3sHNT5bPcCh9tDjdqfMNNMxTmiKKjkyDc7RSF/LKoJ4xkIPBa xHpjzidBhZr89fXVNOtPiOQHW1+Ui2WVC94PJtSna77OOhLvsj24+rayzawQIFrjMJtJ Z6DA== 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 n6-v6si2046724plk.255.2018.09.05.07.55.10; Wed, 05 Sep 2018 07:55:26 -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 S1727579AbeIETXz (ORCPT + 99 others); Wed, 5 Sep 2018 15:23:55 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:57968 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726335AbeIETXy (ORCPT ); Wed, 5 Sep 2018 15:23:54 -0400 Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w85EnTRC114410 for ; Wed, 5 Sep 2018 10:53:20 -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 2mag85kwnp-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 05 Sep 2018 10:53:20 -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, 5 Sep 2018 10:53:19 -0400 Received: from b01cxnp22034.gho.pok.ibm.com (9.57.198.24) 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, 5 Sep 2018 10:53:14 -0400 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp22034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w85ErDBB43057314 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 5 Sep 2018 14:53:13 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A04E6B2066; Wed, 5 Sep 2018 10:52:00 -0400 (EDT) Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 80E84B205F; Wed, 5 Sep 2018 10:52:00 -0400 (EDT) Received: from paulmck-ThinkPad-W541 (unknown [9.70.82.159]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP; Wed, 5 Sep 2018 10:52:00 -0400 (EDT) Received: by paulmck-ThinkPad-W541 (Postfix, from userid 1000) id BF20316C2DF5; Wed, 5 Sep 2018 07:53:12 -0700 (PDT) Date: Wed, 5 Sep 2018 07:53:12 -0700 From: "Paul E. McKenney" To: Akira Yokosawa Cc: Andrea Parri , Alan Stern , Will Deacon , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, mingo@kernel.org, peterz@infradead.org, boqun.feng@gmail.com, npiggin@gmail.com, dhowells@redhat.com, j.alglave@ucl.ac.uk, luc.maranget@inria.fr Subject: Re: [PATCH RFC LKMM 1/7] tools/memory-model: Add extra ordering for locks and remove it for ordinary release/acquire Reply-To: paulmck@linux.vnet.ibm.com References: <20180904081144.GA4137@andrea> <20180905072151.GA3185@andrea> <50f0a7a7-0521-f833-34c3-132ce57dd777@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50f0a7a7-0521-f833-34c3-132ce57dd777@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 x-cbid: 18090514-0072-0000-0000-0000039D9805 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00009676; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000266; SDB=6.01083931; UDB=6.00559417; IPR=6.00863931; MB=3.00023126; MTD=3.00000008; XFM=3.00000015; UTC=2018-09-05 14:53:18 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18090514-0073-0000-0000-000049517735 Message-Id: <20180905145312.GI4225@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-09-05_08:,, 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-1807170000 definitions=main-1809050156 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 05, 2018 at 11:33:08PM +0900, Akira Yokosawa wrote: > On 2018/09/05 09:21:51 +0200, Andrea Parri wrote: > > On Tue, Sep 04, 2018 at 03:09:49PM -0400, Alan Stern wrote: > >> On Tue, 4 Sep 2018, Andrea Parri wrote: > >>> Heh, your confusion might be the reflection of mine... ;-) That was > >>> indeed a long and not conclusive discussion (meaning there're pending > >>> issues); and I cannot claim to find "arguments" such as: > >>> > >>> "More than one kernel developer has expressed the opinion that > >>> the LKMM should enforce ordering of writes by locking." > >>> > >>> particularly helpful (I do tend to be convinced by arguments rather > >>> than by opinions). In fact, you can take the following as my only > >>> current "constructive argument" against the patch [1,2]: > >>> > >>> THE COMMIT MESSAGE IS RIDICULOUS; PLEASE EXPAND ON IT, AND DO > >>> SO BY LEVERAGING BOTH PROS AND CONS OF THE APPLIED CHANGES > >> > >> Do you have any concrete suggestions (i.e., some actual text) for > >> improvements to the patch description? Earlier in your message you > >> mentioned that Will's comment: > >> > >> LKMM offers stronger guarantees that can portably be relied upon > >> in the codebase. > >> > >> would make a good addition. Suitably edited, it could be added to the > >> description. I can think of a few other things myself, but I'd like to > >> hear your thoughts. Anything else? > > > > Yes: I do sometimes have the impression that your "rules" for trimming > > text in emails/replies are too aggressive... > > Andrea, by saying "Yes:", do you mean you have something else to be added? > I don't think you do, but want to make sure. > > I'm a bit surprised to see all you wanted was the amendment of the > commit log... My guess is that Andrea would prefer that locking acquire/release and load-store-RMW acquire/release to have the same ordering rules (which Will has argued against), and that Andrea's "Yes" above is expressing irritation that some point he wished to reiterate was trimmed somewhere in the exchange. And yes, both the act of replying to emails and of establishing multi-architecture ordering rules can be a bit messy at times. Andrea's patch had no Signed-off-by and does not apply to the -rcu tree's dev branch, so I am guessing that he was thinking in terms of replacing some subset of the patches that are currently queued, presumably including Alan's patch that Will reviewed and Peter acked. (I don't yet have a new lkmm branch because I need to sort out a few of the commits first.) If replacement is the intent, the people Andrea needs to convince include Alan, Peter, and Will. Thanx, Paul