Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1289228imm; Fri, 22 Jun 2018 13:52:57 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIZ8CWF0liGWbTt8dowQTdnlMTjWMuGnS9gQFwWCMLnEiGFLWenWSkNP8gYUC8+qhDoXJII X-Received: by 2002:a63:8f53:: with SMTP id r19-v6mr2678102pgn.17.1529700777788; Fri, 22 Jun 2018 13:52:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529700777; cv=none; d=google.com; s=arc-20160816; b=r7xOi7rxcOKDNSMKOXgm3Qgc3anNDns/IqribgDMbuOoEMhHLzenQrIBFYi1qsV4mh jbLA3bf4CejjedVd70hQ9/fl3ZurzDJO97V+sLK0qtzdAGIVXUaA1QS8BUjMTUPLVNEc U4LkIcq9tRciqEYvEcSX35scleBk7EQIF82ncqXUp6edVpk6CFzz95m8qQkoSVBw3reP CuFXfigE50yixG79g+N1XNwnDUfCxZmiCXJQWVfPnLng5c3g5cXXAzogSupjM8qsPw6z eBIy5+Q0lnKZgX7MSSRM5s9ESwUZXnSJiekOFyCJroRMOPGvHJrOKmFfjePzCdxhunzj WSfg== 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=8iFR8qVWs4OIe/HVf0GukyJ3h/adYtQFj4UA7rejwv8=; b=Ld+mhpfTcJj0hwVPj8IbVdLA5tRGkr5KPFTFoFl1B61+YMslVXBgoc/H3fpIk65Dy1 GiZfAAI+pZAhCRKOqxWdCxOP1R3m0n6iYzMXTCxVfjX143BjJtiBPkHxAodN9qvaLLdi QqZrq963zKiH4N0kwucyrcfFcahQVi2LxbUbQ6Kg6hGXpjwRLu4Pfj9kPvOkJ3qiKi+M 4LG3q6NXTfXTsv2iVokBWncxkYq6vghHcEiy7mWL5NtoshWD2OQDd7cDY/Eu+lyV9zGv sIwJ7VWaUS2SX5Do0b6ZkBjYpd/wV0ef+Kq5m5dZpCgqMh4Y8UiL45UAhAeq3vEyMxYQ rilA== 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 5-v6si8362158plc.203.2018.06.22.13.52.42; Fri, 22 Jun 2018 13:52:57 -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 S933471AbeFVUv3 (ORCPT + 99 others); Fri, 22 Jun 2018 16:51:29 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:52194 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754220AbeFVUv2 (ORCPT ); Fri, 22 Jun 2018 16:51:28 -0400 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 w5MKo39Q094394 for ; Fri, 22 Jun 2018 16:51:27 -0400 Received: from e15.ny.us.ibm.com (e15.ny.us.ibm.com [129.33.205.205]) by mx0a-001b2d01.pphosted.com with ESMTP id 2js7g323cq-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 22 Jun 2018 16:51:27 -0400 Received: from localhost by e15.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 22 Jun 2018 16:51:26 -0400 Received: from b01cxnp22034.gho.pok.ibm.com (9.57.198.24) by e15.ny.us.ibm.com (146.89.104.202) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Fri, 22 Jun 2018 16:51:22 -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 w5MKpLd59175312 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 22 Jun 2018 20:51:21 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8C244B2066; Fri, 22 Jun 2018 16:51:20 -0400 (EDT) Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 68129B205F; Fri, 22 Jun 2018 16:51:20 -0400 (EDT) Received: from paulmck-ThinkPad-W541 (unknown [9.70.82.159]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP; Fri, 22 Jun 2018 16:51:20 -0400 (EDT) Received: by paulmck-ThinkPad-W541 (Postfix, from userid 1000) id 279E016C3BD3; Fri, 22 Jun 2018 13:53:24 -0700 (PDT) Date: Fri, 22 Jun 2018 13:53:24 -0700 From: "Paul E. McKenney" To: Alan Stern Cc: Will Deacon , LKMM Maintainers -- Akira Yokosawa , Andrea Parri , Boqun Feng , David Howells , Jade Alglave , Luc Maranget , Nicholas Piggin , Peter Zijlstra , Kernel development list Subject: Re: [PATCH 2/2] tools/memory-model: Add write ordering by release-acquire and by locks Reply-To: paulmck@linux.vnet.ibm.com References: <20180622183007.GD1802@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 x-cbid: 18062220-0068-0000-0000-0000030CFC19 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00009242; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000265; SDB=6.01050833; UDB=6.00538564; IPR=6.00829803; MB=3.00021811; MTD=3.00000008; XFM=3.00000015; UTC=2018-06-22 20:51:25 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18062220-0069-0000-0000-000044C6A771 Message-Id: <20180622205324.GU3593@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-06-22_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=896 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1806220230 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 22, 2018 at 03:11:37PM -0400, Alan Stern wrote: > On Fri, 22 Jun 2018, Will Deacon wrote: > > On Fri, Jun 22, 2018 at 02:09:04PM -0400, Alan Stern wrote: [ . . . ] > > > > Could we drop the acquire/release stuff from the patch and limit this change > > > > to locking instead? > > > > > > The LKMM uses the same CAT code for acquire/release and lock/unlock. > > > (In essence, it considers a lock to be an acquire and an unlock to be a > > > release; everything else follows from that.) Treating one differently > > > from the other in these tests would require some significant changes. > > > It wouldn't be easy. > > > > It would be boring if it was easy ;) I think this is a case of the tail > > wagging the dog. > > > > Paul -- please can you drop this patch until we've resolved this discussion? > > Agreed. It sounds like we'll need two versions of the Rel and Acq sets > in the memory model; one for RCpc and one for RCsc. smp_load_acquire > and smp_store_release will use the former, and locking will use the > latter. Done! Thanx, Paul > Would it suffice to have this duplication just for release, using a > single version of acquire? What would happen on ARMv8 or RISC-V if an > RCsc release was read by an RCpc acquire? Or vice versa? > > Alan >