Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp947035imm; Thu, 5 Jul 2018 11:45:53 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdJyeGnTpub3wMKoQoPP+/LE6NzkGQx+ZVduyXUy7LXm2df8DwW9iUjGr3/VKQ1Zf0dcfe+ X-Received: by 2002:a17:902:48c8:: with SMTP id u8-v6mr7359742plh.152.1530816353910; Thu, 05 Jul 2018 11:45:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530816353; cv=none; d=google.com; s=arc-20160816; b=j8aicjHvlYQLikY9yipNNIcqT7if9kDSv2ghD9rAerPR0AwXj17Qrbu69sQwyFIK2L PhyFH3xUFRwTCH1fRk1N7qhj3Q9XvTBGF1h8zXVwSPlbyGz51xsZ3ckZg24P5aQUwLFs smvxXX0iyTX17NIkEcN60rOHiaXI48hCLr83eMZkUMLx9c5/1+eqADCiZnqQUJnCr8fx DlJ6bQtwNjHzXxcLF3akRJZ4tpEmp1Vygnz8DOj7T4i9aqw1Y/DSSD1Vw/8xA0eW2tM/ ko521YzZRLyn0/VgKwThU2L6eB4NuMN4VKy0UIB8Q1HpJuQLonrj65tdBTf7tQlGe/qM 33eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=5K3HX8P+DS78q1je3+GlAYV3fJdA1B0AAjgU1XeNNeY=; b=pdS+c8pRtzyM091Wlr7865UOaPBrqJGQj88F7w9+ZkQ1BZUQl3ld93XR3CR7iUtfr6 tCqyi+1Y3LHM1ewMVK0uNR3e1P1mHix9ABSmFOay6n/GKgYj1b5CiQT4U5g7bkAI0aW6 YesqJGouJqeVnAv7R+NDFZSxFWnvbzzwjMhxAVoUacoNFLBIo2QjcwH/w5N297S/IwKG kkt4GWqrduEVPhbPVRvHCS+WfGO4KcQHo2bbFxPBqAtGUr/VEAtqwRz40lUQEgBTksq5 EqluyzSwiD3K4ZySQwNlfU4ixIvwtu11oUY04Ova+ed8ejTkbWoAbDGdznQwxmqqUIIw Ntgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="CCrBj/5H"; 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 v6-v6si6375431plp.60.2018.07.05.11.45.39; Thu, 05 Jul 2018 11:45:53 -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; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="CCrBj/5H"; 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 S1754157AbeGESoT (ORCPT + 99 others); Thu, 5 Jul 2018 14:44:19 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:34914 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754066AbeGESoR (ORCPT ); Thu, 5 Jul 2018 14:44:17 -0400 Received: by mail-wr1-f65.google.com with SMTP id h40-v6so1833594wrh.2 for ; Thu, 05 Jul 2018 11:44:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=5K3HX8P+DS78q1je3+GlAYV3fJdA1B0AAjgU1XeNNeY=; b=CCrBj/5HhGaEfSqiWobfoLTnJITYCTuLIGx8ZyswpoeVUIgXeE3u5p3qN8ueyN6M9j oSeCeTWT6z4OupJcLpWPnYmFViHLdLoTY4uJZT9tn1Al1auIGM4/cc7cV4S32JvhD4Nc 9aB5UCbjkYunJmhZvuZOPkaA4CyIn9LlD4ZVM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=5K3HX8P+DS78q1je3+GlAYV3fJdA1B0AAjgU1XeNNeY=; b=H/fmU85l0A/bKHd7hf/VVOgBx5iteM8EqPdYc0igoO1hwOZ6ljAi3XHMADPUHz9M3w nswhVDdfH9LOzkHweqZuv/lapKW+NUjCgMQm2bqqZ04W67mXqjz+JlWgaI6w8xGboE5S MKDRwdW4lmNXKzEVQNtXusRVzfC2OjgFn7K/Zeop3h+m/88DhMoO+VTl0fogVZpnawpg rrWcW90Fq5HsUQmOx6lrndo+udzwGsTXAtKoqYg7JCnIZJLk973X0kDgzCrwhw82sBGS myN3T5fitAaJALwkzsJheMVQ0sjGWT3Qal2+0yxvw2ZFANWmROJ1fqusRus2J/GBwnNJ iY4w== X-Gm-Message-State: APt69E3IaaswWyFLk4U1BueUc7q6lgMC+Oe9jPKMVSKvM1cH+0B/kDW9 5nmbk7bkAHQzBkrauo7aPcKw/A== X-Received: by 2002:adf:a6e2:: with SMTP id t89-v6mr5829209wrc.231.1530816256756; Thu, 05 Jul 2018 11:44:16 -0700 (PDT) Received: from andrea ([94.230.152.15]) by smtp.gmail.com with ESMTPSA id 24-v6sm17075124wrz.94.2018.07.05.11.44.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Jul 2018 11:44:16 -0700 (PDT) Date: Thu, 5 Jul 2018 20:44:10 +0200 From: Andrea Parri To: Daniel Lustig Cc: paulmck@linux.vnet.ibm.com, Will Deacon , Alan Stern , LKMM Maintainers -- Akira Yokosawa , 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 Message-ID: <20180705184410.GA3417@andrea> References: <20180704121103.GB26941@arm.com> <20180705153140.GO3593@linux.vnet.ibm.com> <20180705162225.GH14470@arm.com> <20180705165602.GQ3593@linux.vnet.ibm.com> <20180705183836.GA3175@andrea> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180705183836.GA3175@andrea> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 05, 2018 at 08:38:36PM +0200, Andrea Parri wrote: > > No, I'm definitely not pushing for anything stronger. I'm still just > > wondering if the name "RCsc" is right for what you described. For > > example, Andrea just said this in a parallel email: > > > > > "RCsc" as ordering everything except for W -> R, without the [extra] > > > barriers > > And I already regret it: the point is, different communities/people have > different things in mind when they use terms such as "RCsc" or "ordering" > and different communities seems to be represented in LKMM. > > Really, I don't think that this is simply a matter of naming (personally, > I'd be OK with "foo" or whather you suggested below! ;-)). My suggestion > would be: "get in there!! ;-) please let's refrain from using terms such > as these (_overly_ overloaded) "RCsc" and "order" when talking about MCM > let's rather talk, say, about "ppo", "cumul-fence" ... ... or bare litmus tests! Andrea > > Andrea > > > > > > If it's "RCsc with exceptions", doesn't it make sense to find a > > different name, rather than simply overloading the term "RCsc" with > > a subtly different meaning, and hoping nobody gets confused? > > > > I suppose on x86 and ARM you'd happen to get "true RCsc" anyway, just > > due to the way things are currently mapped: LOCKed RMWs and "true RCsc" > > instructions, respectively. But on Power and RISC-V, it would really > > be more "RCsc with a W->R exception", right? > > > > In fact, the more I think about it, this doesn't seem to be RCsc at all. > > It seems closer to "RCpc plus extra PC ordering between critical > > sections". No? > > > > The synchronization accesses themselves aren't sequentially consistent > > with respect to each other under the Power or RISC-V mappings, unless > > there's a hwsync in there somewhere that I missed? Or a rule > > preventing stw from forwarding to lwarx? Or some other higher-order > > effect preventing it from being observed anyway? > > > > So that's all I'm suggesting here. If you all buy that, maybe "RCpccs" > > for "RCpc with processor consistent critical section ordering"? > > I don't have a strong opinion on the name itself; I just want to find > > a name that's less ambiguous or overloaded. > > > > Dan