Received: by 10.213.65.68 with SMTP id h4csp3635963imn; Tue, 3 Apr 2018 08:17:15 -0700 (PDT) X-Google-Smtp-Source: AIpwx48/Gi41zGJK/BmlSyawaAsysqR0Qd1c1Jg1WhYfXY1GAj24IKdtF6bnCwhY/KLVSRf6Uk3A X-Received: by 10.101.93.2 with SMTP id e2mr9334302pgr.100.1522768635912; Tue, 03 Apr 2018 08:17:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522768635; cv=none; d=google.com; s=arc-20160816; b=qiWCim8km0E/oISqdwLONXtHKpYmoJFhRO5HnIaQI2xVQBcVWYwQ2rH+qDbTN5jK3c 2IstLXjp8ZMRPIUP9CqJrrUrscfU9i3ixpFE+e2LN8ZWs1xJ6HQ8bGtXAoQEdzoXyirO 8taSiA2xB3nn6bai0W4FfzSjy8ouIniBOAp7+YzFGq0a6Ti6XK9iPANaqV5jq5bSkOWA kQft6xXmeHGSIS7G2qxJ2v6Z4zdIgKNYzkeNDquwFZ1EzHttDEoDn1nOP8SQ0uDZ6vpL iM7QwITzmbwSRJ/mafBJiryKe3m2NS4v2QEooybqN6eJDNTro8SLSDH5rSX1JoEED8LG 3jaw== 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=cw8M4rkMQI45EbjI55Re8wep97HcS16h3pEqOrTIya4=; b=HVHE+HpPYuRTc1VlcWAmACGY1nPxQ2t/LWrJviMq2VOSLhddfrFPE5fCJBTpJC1Pg8 5LGcYhI0xd3WetuItQaIgxz+B6kO9aMCNqWX9CwD21WgcQfVD7GmXul7viQw5NqfA0Aa Zk5wIChKPEbgICXm1bivvEQdP248cx+uF9d3dLMIOB58HaWBlh9SJFGrBHjwMtkcXFoh g9E6ezAPtq8nbChsadWF6VB5fFDkYQcAbSn2EPD6vJA+Cd29TZn58Zr2LluzquzoK6jG TzFaMTYye/UFJrmByPk/O49qq2xS+bFH0OfPfzNwL3I70DKc+razSBiewFMWcwW0vBhT 1Fyg== 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 b3si2063213pgn.665.2018.04.03.08.17.01; Tue, 03 Apr 2018 08:17:15 -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 S1751482AbeDCPPx (ORCPT + 99 others); Tue, 3 Apr 2018 11:15:53 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:56764 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751233AbeDCPPw (ORCPT ); Tue, 3 Apr 2018 11:15:52 -0400 Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w33F9ojZ186904 for ; Tue, 3 Apr 2018 11:15:51 -0400 Received: from e12.ny.us.ibm.com (e12.ny.us.ibm.com [129.33.205.202]) by mx0b-001b2d01.pphosted.com with ESMTP id 2h4bwcgqup-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Tue, 03 Apr 2018 11:15:51 -0400 Received: from localhost by e12.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 3 Apr 2018 11:15:50 -0400 Received: from b01cxnp23032.gho.pok.ibm.com (9.57.198.27) by e12.ny.us.ibm.com (146.89.104.199) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 3 Apr 2018 11:15:46 -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 w33FFjXQ47251552; Tue, 3 Apr 2018 15:15:45 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id EAA0CB204E; Tue, 3 Apr 2018 12:17:52 -0400 (EDT) Received: from paulmck-ThinkPad-W541 (unknown [9.70.82.108]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP id B2D34B2046; Tue, 3 Apr 2018 12:17:52 -0400 (EDT) Received: by paulmck-ThinkPad-W541 (Postfix, from userid 1000) id 221BF16C3C88; Tue, 3 Apr 2018 08:16:42 -0700 (PDT) Date: Tue, 3 Apr 2018 08:16:42 -0700 From: "Paul E. McKenney" To: Alan Stern Cc: schwidefsky@de.ibm.com, borntraeger@de.ibm.com, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, parri.andrea@gmail.com, will.deacon@arm.com, peterz@infradead.org, boqun.feng@gmail.com, npiggin@gmail.com, dhowells@redhat.com, j.alglave@ucl.ac.uk, luc.maranget@inria.fr, akiyks@gmail.com Subject: Re: [PATCH RFC tools/memory-model] Add s390.{cfg,cat} Reply-To: paulmck@linux.vnet.ibm.com References: <20180402193154.GA3948@linux.vnet.ibm.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: 18040315-0048-0000-0000-00000254A1DC X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008795; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000255; SDB=6.01012553; UDB=6.00516057; IPR=6.00791819; MB=3.00020392; MTD=3.00000008; XFM=3.00000015; UTC=2018-04-03 15:15:49 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18040315-0049-0000-0000-000044A54043 Message-Id: <20180403151642.GK3948@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-04-03_07:,, 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 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1804030157 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 03, 2018 at 09:50:19AM -0400, Alan Stern wrote: > On Mon, 2 Apr 2018, Paul E. McKenney wrote: > > > > > I will look at this more later, reaching end of both battery and useful > > > > attention span... > > > > Like the following, perhaps? > > > > Thanx, Paul > > > > ------------------------------------------------------------------------ > > > > s390 > > > > include "fences.cat" > > include "cos.cat" > > > > (* Fundamental coherence ordering *) > > let com = rf | co | fr > > acyclic po-loc | com as coherence > > > > (* Atomic *) > > empty rmw & (fre;coe) as atom > > > > (* Fences *) > > let mb = [M] ; fencerel(Mb) ; [M] > > > > (* TSO with multicopy atomicity *) > > let po-ghb = ([R] ; po ; [M]) | ([M] ; po ; [W]) > > acyclic mb | po-ghb | fr | rf | co as sc > > Yes, that should work okay (apart from issues related to ordering of > atomic accesses). > > By the way, what does that last "sc" stand for? Surely not Sequential > Consistency! You might consider renaming it to "tso-mca". Good point, fixed. But it is the closest to SC in commercial computing systems, for whatever that is worth. ;-) Thanx, Paul