Received: by 10.223.185.116 with SMTP id b49csp2249371wrg; Thu, 22 Feb 2018 10:28:39 -0800 (PST) X-Google-Smtp-Source: AH8x227SkxsRM/pcqvouzu2VrLq6JJe7Gl7wxLFW4CkXReL9CW1YuWUjyQaJZ1OtmV53xIFATpsX X-Received: by 2002:a17:902:b787:: with SMTP id e7-v6mr7504702pls.317.1519324119668; Thu, 22 Feb 2018 10:28:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519324119; cv=none; d=google.com; s=arc-20160816; b=UgoNFqObM9B/Zme2DaDBYW1gha9HExoWyKJDAV5yNXzPNSUlOPCIgRwNcPJr+l6hYy QTUTYa8vo1WZr1sCAd1EzNTbzunCGvrjQCBcmyof3tmA2e7+i/JSX883/uNm4FDXIH0S YBCFBXi8xEJRwnrRrqB6GNtaATRRu7rYA1agIKb661XYD2fd4dKW1lvmSoRJnp0JwYYf dv0LBv3LUC6Y60H8U/mvV8Abeu0nW90EVBEFVbwXzQIPT4RP493zKGSduG7MyzKDvxl1 ONLA9gPCV/1jsC0IQZN41EL3E2x1YyXPdVEa2F39AYhoRlVyOHnpYGxSWuNjReMgdTEb MYmQ== 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=wgN6d8sWgjh1JveKtJ3xtEvt0kRySGpP72DCzTA5Sbs=; b=hwbBOfPAKEdv0rvgSjcaEWoaVKAxFzMKx1FvRx5CHVH7M2cUJQjT31MYe5L9KI6I4i IvCDTHiQtORWBnAYJwEOz9Y26dVhiXTcY9qyREuRP4yOSBnxsgM9Xy97Zp6mPMi7jh1L T3yqVOpI33vIRLoNO/a5LP6wdbYW2Ic620kYfYOwGHhERWFqs8FwUOpq5rbxcc85Rz1O g6V6yWGEAM6TfRlg1qFqxL+RuhxU7ZIq7zKUd2xq9vmLSXQvVmK6wWgfQF9I0pDvX6KZ CmKQRA7WGQoQGnYUfFzEZap64RD+4Vn2b01gn11XXwO3y3svj2na4AcRssdGSH/GiASg kKRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=W4atSo2s; 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 l184si351205pge.224.2018.02.22.10.28.24; Thu, 22 Feb 2018 10:28:39 -0800 (PST) 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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=W4atSo2s; 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 S933752AbeBVS11 (ORCPT + 99 others); Thu, 22 Feb 2018 13:27:27 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:42052 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933521AbeBVS1Z (ORCPT ); Thu, 22 Feb 2018 13:27:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=wgN6d8sWgjh1JveKtJ3xtEvt0kRySGpP72DCzTA5Sbs=; b=W4atSo2stqXZLE1DyFOFkBXMn /N+IZRZ1prHCzufwcHfc89KVG4KXf5ZSPG0vVYkStHMXlP5asmnVgP27cuLTFqd371FHjAvCA6q+J kS8hYc9Hrx1IgZvTmJQq/APZJW64jTUaKuu+WdgJUn4Ddq4iLbAHFarY3SoErNIAWZ2UQgN0XP3D3 2NF+VdkOwbcXhlzz59akBo5wdWBJq6WJ4UL0JbKksOIdcaA4Fz4rrZVJSjgqGaVvTDoerAQdphZ1v wSQ5pzpYmFKFdqIE1z0HngxGMthIfMwzhzYvQZFZiDt7vXwxNcxSSUS5XZKWII0sNUPd9DfxKZEkh Yi82fRESA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.89 #1 (Red Hat Linux)) id 1eovaR-0006iI-6O; Thu, 22 Feb 2018 18:27:19 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 8B66E2029FA04; Thu, 22 Feb 2018 19:27:17 +0100 (CET) Date: Thu, 22 Feb 2018 19:27:17 +0100 From: Peter Zijlstra To: "Paul E. McKenney" Cc: Daniel Lustig , Andrea Parri , linux-kernel@vger.kernel.org, Palmer Dabbelt , Albert Ou , Alan Stern , Will Deacon , Boqun Feng , Nicholas Piggin , David Howells , Jade Alglave , Luc Maranget , Akira Yokosawa , Ingo Molnar , Linus Torvalds , linux-riscv@lists.infradead.org Subject: Re: [RFC PATCH] riscv/locking: Strengthen spin_lock() and spin_unlock() Message-ID: <20180222182717.GS25181@hirez.programming.kicks-ass.net> References: <1519301990-11766-1-git-send-email-parri.andrea@gmail.com> <20180222134004.GN25181@hirez.programming.kicks-ass.net> <20180222141249.GA14033@andrea> <82beae6a-2589-6136-b563-3946d7c4fc60@nvidia.com> <20180222181317.GI2855@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180222181317.GI2855@linux.vnet.ibm.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 22, 2018 at 10:13:17AM -0800, Paul E. McKenney wrote: > So we have something that is not all that rare in the Linux kernel > community, namely two conflicting more-or-less concurrent changes. > This clearly needs to be resolved, either by us not strengthening the > Linux-kernel memory model in the way we were planning to or by you > strengthening RISC-V to be no weaker than PowerPC for these sorts of > externally viewed release-acquire situations. > > Other thoughts? Like said in the other email, I would _much_ prefer to not go weaker than PPC, I find that PPC is already painfully weak at times.