Received: by 10.213.65.68 with SMTP id h4csp3543463imn; Tue, 3 Apr 2018 06:51:57 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/5llVKbqUvwJFJA0ZFLNxPixa9HHNVWWUUSSm2LP/HM9qlAG8vZWgYgnBSp1FBJu8IcoYy X-Received: by 10.99.53.130 with SMTP id c124mr9131050pga.233.1522763517149; Tue, 03 Apr 2018 06:51:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522763517; cv=none; d=google.com; s=arc-20160816; b=q8S9yMACrJt+UYHmh1pRr4T9RQ4MMRGAS9ylnauP9x4omK2lSY1aVDXfmJVHBI6iGz Qm/0ir4Shs2/I0PECv4EDI+7dQ4ubDec2BmK6/VNoZ8iICrDxhF7ffNRDKbRG1/ARNJe 04aC/py0CtLF60Yp0pUHVPM9UmfEfCZzRfsvVzcc0zwT3XHuFh7CjR52TNtVa0rtVwhp cvfIJOyiOpIC/mPBBR2KxZKyA427waEzYLES39bY0OdIyLHOfidLtJtS/orTYMVLrNn7 2rD+hL729A5mopvb7pTQ5SORWbenIdXY3n8E3+hpxlvE/erDJn9PKzrrPegEM17ErcLm 9vIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:in-reply-to :subject:cc:to:from:date:arc-authentication-results; bh=FqiB6cVW/PrOew46s1xImpGP8uBJUPjfE3bkrrpfAfM=; b=yDtHevo5cs+E2bAtnfwhqhwZxHV55EJKq/irwlAid1S4P9WjD5mfbmdclaJomL1dp7 xD3v9MgXhQzBhBrTp/wfgPmXp0F0AGtIq/GTc++6eEknqFYxaIMp/kQx39sfscdToVss AZ9s0f5X++CSrCqFiUECUiz2QPJmhOFl7fDnTcG/fqML7zY/vgC5A3Wizs4+pq1KVbGf yoM8cx+pv67P21oADK8mD+IUjezpgGtoT6kz6iGSOvvgCzur1jZxbOoiud3NmhoEH/Pe jnqKpgu1sa2cvfyABG6g1wW8cip6m/F3SN/GgJ5fFOBz9QgiU+0Ed+SGQwZB5rFEQ1jX v/Qg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y13si1974366pgp.827.2018.04.03.06.51.42; Tue, 03 Apr 2018 06:51: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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751275AbeDCNuW (ORCPT + 99 others); Tue, 3 Apr 2018 09:50:22 -0400 Received: from iolanthe.rowland.org ([192.131.102.54]:60004 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1750728AbeDCNuU (ORCPT ); Tue, 3 Apr 2018 09:50:20 -0400 Received: (qmail 1630 invoked by uid 2102); 3 Apr 2018 09:50:19 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 3 Apr 2018 09:50:19 -0400 Date: Tue, 3 Apr 2018 09:50:19 -0400 (EDT) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: "Paul E. McKenney" cc: schwidefsky@de.ibm.com, , , , , , , , , , , , Subject: Re: [PATCH RFC tools/memory-model] Add s390.{cfg,cat} In-Reply-To: <20180402193154.GA3948@linux.vnet.ibm.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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". Alan