Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp861591imm; Thu, 5 Jul 2018 10:09:07 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdTTtfnK+iUhYWvSahVDuva/5ai+3FNr2rYUNEoXzIvxf9aVnCdmBxd0dKxTjsanAueP05f X-Received: by 2002:a62:3b89:: with SMTP id w9-v6mr7305416pfj.80.1530810547384; Thu, 05 Jul 2018 10:09:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530810547; cv=none; d=google.com; s=arc-20160816; b=UoDSELEe8uonQtZHvLxjMJM0LPGu9babgC1hEmp+6czqQ0Adbk16RnWPvXs1yeq5B6 prFy5P/xmcbQuGE0sImrrwTqvnFTUkDnXTCCCcsYD+3FWtZxcBqUgnKweINoUzCiAS+J /ZKdirH+Ta8H6rAz3yCdlQ2AQn2lckDX8bVYpRQi3Rf1u/fQIrOHNP86HapUaX09+XC/ THKZC3N2qdOhm46Bb93N5+8ElXiOOSW5CxyVAQgUBvZjpS1PBo/rvD2s9nj7XMdXuZeh y5cV/SorDauCpIWRcF7xITH7R5ceiBaAUHPnC/F0N0DGh1dSyQkFCpzlkS1q3DzT5A7W 46oQ== 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=wpeJFQAXVQlH+H/mGB26++XrajgOrz307ujkuW3sBf8=; b=Nb0pzTrnzoE/wn5d0pKz8AJL8blKv/H2AXy3k9jxUt4Tob1CuOuXgDZPe43rvvkQcn 9l/WxrVJ0Hg6ecr4w6NxXQ0dhww/4eqJHeaAZP27ButUqkiUQlDe0aT5UG/eTUFbwYcp /y/dwh4p18jjE76c5BLSO8vf6jP/NwzrHBUmTe3joxQkcUg9/6r2fyG88In8AAeEWvXu EtFYjhbWmUQ5WgEgdE1UPXUZI9+q26LrllEFgf18Mxt4tIneZ2XVg6VQuN4HOK++tMAE DsUj8OmOWmSh9zprtJsu89BGnbBpNnoMkmkgcTXCMaL+Tg7qmHIvRxqV/LrKvAcfutUN 0bzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YgLGF+qR; 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 ca5-v6si6473448plb.143.2018.07.05.10.08.29; Thu, 05 Jul 2018 10:09:07 -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=YgLGF+qR; 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 S1754205AbeGERG4 (ORCPT + 99 others); Thu, 5 Jul 2018 13:06:56 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:37088 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754071AbeGERGt (ORCPT ); Thu, 5 Jul 2018 13:06:49 -0400 Received: by mail-wm0-f65.google.com with SMTP id n17-v6so12056418wmh.2 for ; Thu, 05 Jul 2018 10:06:48 -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=wpeJFQAXVQlH+H/mGB26++XrajgOrz307ujkuW3sBf8=; b=YgLGF+qRzi4Vw0pxQ4m+0grxEwKRb0Ko/qDEfzg2pbaqVupFCmN133YxwwgAU1Lfhr MtxR/+jzhXu1i8JB4HE4abpnBXqZPg8hDbVL+TiLIoLbdnIIjr8l86DwlX5ty6G9vUKJ Jw+boTxYAkzRq5OlBt9RdpuwDtIHXL03h6uuk= 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=wpeJFQAXVQlH+H/mGB26++XrajgOrz307ujkuW3sBf8=; b=qy+zRvyC3xyFbFhDyvYBGwlM7V7CwIEqHMA8I3zoCNaMU8ZTgSwE2kE1867WdBmwuJ q5EZrUhzbdAB++LoTT9OoAHJTsi0Y7D01JbEBTeqYmsBK0nd7HEoQKFRdUaqsDOdWuzj wg8DcxrgAf/9pJHR/E2AnBlB8K+T0BVU58FmDzFxZKmz7Ok48Hz1nq0WYjT0DyfJwvnW nA1MFg/mc2oaHAZmiG63xKm3IIFnr7tNmeT6VAFe/xtVO02kxOp6nzmdIYK/CSGXzHcN kpiT9GcHarrY53ZNePG1Gi5yFcnN9lVTjDIMWjBJ1IPthFxNznvTmVofiXXmBoWFEwhL Lcug== X-Gm-Message-State: APt69E1iUAYofPH7MqoUiTub0Dy6FC8YbGV/eGVtcp8a48RVrOOakH3R 4rZIFN0CORrl7zNNUsRHueCYZA== X-Received: by 2002:a1c:9e8a:: with SMTP id h132-v6mr4462862wme.48.1530810408011; Thu, 05 Jul 2018 10:06:48 -0700 (PDT) Received: from andrea ([94.230.152.15]) by smtp.gmail.com with ESMTPSA id k13-v6sm4143349wrr.14.2018.07.05.10.06.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Jul 2018 10:06:47 -0700 (PDT) Date: Thu, 5 Jul 2018 19:06:36 +0200 From: Andrea Parri To: "Paul E. McKenney" Cc: Alan Stern , Will Deacon , LKMM Maintainers -- Akira Yokosawa , Boqun Feng , David Howells , Jade Alglave , Luc Maranget , Nicholas Piggin , Peter Zijlstra , Kernel development list , dlustig@nvidia.com Subject: Re: [PATCH 2/2] tools/memory-model: Add write ordering by release-acquire and by locks Message-ID: <20180705170636.GA2380@andrea> References: <20180704121103.GB26941@arm.com> <20180705153140.GO3593@linux.vnet.ibm.com> <20180705153906.GA2345@andrea> <20180705165848.GR3593@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180705165848.GR3593@linux.vnet.ibm.com> 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 09:58:48AM -0700, Paul E. McKenney wrote: > On Thu, Jul 05, 2018 at 05:39:06PM +0200, Andrea Parri wrote: > > > > At any rate, it looks like instead of strengthening the relation, I > > > > should write a patch that removes it entirely. I also will add new, > > > > stronger relations for use with locking, essentially making spin_lock > > > > and spin_unlock be RCsc. > > > > > > Only in the presence of smp_mb__after_unlock_lock() or > > > smp_mb__after_spinlock(), correct? Or am I confused about RCsc? > > > > There are at least two definitions of RCsc: one as documented in the header > > comment for smp_mb__after_spinlock() or rather in the patch under review..., > > one as processor architects used to intend it. ;-) > > Searching isn't working for me all that well this morning, so could you > please send me a pointer to that patch? Sorry, I meant in _this patch_: "RCsc" as ordering everything except for W -> R, without the barriers above (_informally, the current LKMM misses the W -> W order only). Andrea > > Thanx, Paul >