Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1052335pxb; Thu, 28 Jan 2021 07:03:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJy0hTiH4Tt7R0zKzPKcwrcTO6UAW4czD2t9XxjEcY/UVDe46L7EiHFSoJNhgB/estvkIBAj X-Received: by 2002:a05:651c:1030:: with SMTP id w16mr6078945ljm.509.1611846196794; Thu, 28 Jan 2021 07:03:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611846196; cv=none; d=google.com; s=arc-20160816; b=x5/ZrV1pXfnOwZHeRGhguE6L/umtbwZ82mhvw6jVskts8IaSp4Lyhc7Ewm9P0PHIdE OnYrAGK4ZmX6CksAQMMgzi9BS7gwRrgnfGUMKEWuwxlTVOo3kUXuhuagZFM47JCB56lr 2rE5jRd1GDKvEhLlra9SvKlHTg4w9jS0XgQmK8aJeHg9iVO2uVhfRDrBwMxlizW/BXjd MV0dI5P4rpeTzsB90Pq2BN1vFHgTVm0TVRRpi/QoNuwetcnLDrPbF1UpAB4hUjYIRz59 AnAOEXA2PLhsvJ4PFqu7d/OmjCOjcYtQY6DFQWMY49mDrfeqYCA0B6B4YxyMm8mzDmjx xseQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Z5EsWkl1JmttEYNurc9klzo0vYFtmKtLRijlck9brLw=; b=hra5t9MoJBbaskGXByFdhopOQE1Z1C1PuMchx8UYLh8zQcUWSZmkaUgJmKd7Vip3M7 f/HoWPPAvcIrvxKKDTUIfmaNS/2/jZclwSLJ+sz8LpFWWMlu9isY77Cfvz13u/0u8D+n TJNW/3lCqY7NRak8NPfDVcY0Owkh1LaEpYD+kB7OP/beQEzJzhhh3ora/juVky+rf4d/ XIuqK/mKIMIEzZsTta7BDbyTljuoUegbRrhMEDGnmbXJbtn1Yf87+K4ZuqjBA7ubZqSm UxohjAKY+FFu8Mc/wmG7Q5kGbQGD8gleuDRMqNo5LVF12ehyznoyVkvBcpFvvXYYwvtb kDNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=TX91hQiT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id zl6si2686723ejb.747.2021.01.28.07.02.50; Thu, 28 Jan 2021 07:03:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=TX91hQiT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232428AbhA1PAM (ORCPT + 99 others); Thu, 28 Jan 2021 10:00:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232384AbhA1O7J (ORCPT ); Thu, 28 Jan 2021 09:59:09 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21FE3C061573; Thu, 28 Jan 2021 06:58:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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; bh=Z5EsWkl1JmttEYNurc9klzo0vYFtmKtLRijlck9brLw=; b=TX91hQiTGUsm7UXi+3eXnYVa1f Bcud80EnB8TuCrhp+pjIslNddxZugUrcTZ+KjglWNql8qwA6yRtk7k6gZ13x4FlnQ/KhJvPY3cLb+ axiSZvX2N2atf7hd+t1BjtQ2DZZ1ysQRbd7+pQIdVtwaOgUIuT4n90dvIBkjIyZDJKen2NNH2LfHb tF/XHPkJ67pEfOjmwO0HxEYiVGWi6arfr9q9YIUDTCZ3cMcjRRT/3iBvCpa3BtEqPC5mkkbf0iGWy JMSfdiTlagLLAwW0NFN6fcS/Lwq6Xtw9y6e1FZOIXuHr2yROKMINrGiRgJZLhqagna9qcjQ1pumIc ZYQfzi8Q==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1l58kD-008ayM-0R; Thu, 28 Jan 2021 14:58:09 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 4AE5D300B22; Thu, 28 Jan 2021 15:57:58 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 29A0221405372; Thu, 28 Jan 2021 15:57:58 +0100 (CET) Date: Thu, 28 Jan 2021 15:57:58 +0100 From: Peter Zijlstra To: Alexander Sverdlin Cc: Paul Burton , linux-mips@vger.kernel.org, Thomas Bogendoerfer , Will Deacon , Boqun Feng , Ingo Molnar , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/6] MIPS: Octeon: Implement __smp_store_release() Message-ID: References: <20210127203627.47510-1-alexander.sverdlin@nokia.com> <20210127203627.47510-2-alexander.sverdlin@nokia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 28, 2021 at 12:52:22PM +0100, Alexander Sverdlin wrote: > Hello Peter, > > On 28/01/2021 12:33, Peter Zijlstra wrote: > > This, from commit 6b07d38aaa52 ("MIPS: Octeon: Use optimized memory > > barrier primitives."): > > > > #define smp_mb__before_llsc() smp_wmb() > > #define __smp_mb__before_llsc() __smp_wmb() > > > > is also dodgy as hell and really wants a comment too. I'm not buying the > > Changelog of that commit either, __smp_mb__before_llsc should also > > ensure the LL cannot happen earlier, but SYNCW has no effect on loads. > > So what stops the load from being speculated? > > hmm, the commit message you point to above, says: > > "Since Octeon does not do speculative reads, this functions as a full barrier." So then the only difference between SYNC and SYNCW is a pipeline drain? I still worry about the transitivity thing.. ISTR that being a sticky point back then too.