Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1173595pxj; Sat, 15 May 2021 06:11:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzC7Rp3fdncMGonbSaFPtY2aOdfnjpE5n02A0Lrjlv1HozT/IerIh+xtBFPcozjkM9A4cnS X-Received: by 2002:a17:907:1b20:: with SMTP id mp32mr53902317ejc.495.1621084291221; Sat, 15 May 2021 06:11:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621084291; cv=none; d=google.com; s=arc-20160816; b=DTfsayGu2OGuMS7YjcbEeX4LHD+a4XdmiRBnFPzNnvu0C8p3IWh/SyAAuHPqx4GLMK IBVRPPkYxw4gzszOG76bpag0y4V4I2GdQm6pW5ZCyGc0kKR8jlkLySQPp/0XVqY6hBYR xxDLZxaFUCzj7KVkeYnrevldxoy+fU2kP+WXFIQOjIHxzopoRUijc+gw//UIE4bNbKgp xLT9aoEIr5K+1NUAOxvs9jfwd1DiGd0ZnoLvhcXnqr/bZar5pPsMaMoW4gypThl+Jsp2 j+2r3+Ttz32VnaV/xWnsYUjtOOxi9nY4tYm+GCcX7NjOO9BsfBvLetx+eeAbyr2Kyv6d FWtw== 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=DtXt01q/DleMBxjMxb+DNNjDdJ1wlgZKFyJsF3PwjU0=; b=bg3xz7as7NHmIBPP7rXu9fL8m8aLd+a4ocpayEBBteiQAYjMTwkvStkk0lSD5fgy3F 47UjWFSu1vHslRamIXnxtR6pWKtg6Z2m7y3yqTwouuKESU6gBDxG1AI+sKfopW/Ec6Hc iiCkYR+6pFKFZsD1G3ayCZw9+txC82yE3ThnF39Zder4YfxZlEJvWO48Ene1EyS5QWYL d4zloX+Cx+8/Zmulf13hZH4T8FNtTcEAvHk4z3IyG49X4NWuWL1ZrAj6Dbq3XLboi62k 4qL9lggVVIn7y1DC5ATwPMeFzvG3Y+2sUc+uvhhwT2uGWSgtMiOttALI7WEAnsataVRs gOMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=NMoMd915; 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 hz8si8528406ejc.712.2021.05.15.06.11.07; Sat, 15 May 2021 06:11:31 -0700 (PDT) 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=desiato.20200630 header.b=NMoMd915; 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 S229980AbhEOMxI (ORCPT + 99 others); Sat, 15 May 2021 08:53:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229888AbhEOMxG (ORCPT ); Sat, 15 May 2021 08:53:06 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A11CFC06174A for ; Sat, 15 May 2021 05:51:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; 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=DtXt01q/DleMBxjMxb+DNNjDdJ1wlgZKFyJsF3PwjU0=; b=NMoMd915B4XGX8F1Qe0bNahNDn Q3v6tqHHln/XFJnAhmhuRH4TwVVoVEz+xuUArTVUak1W3FowlZv6Q0JJ7GbxBuXatdc+k+HxuchiQ F7xld4H881lCr8ElRk9gIyrom6wND12JcBIpkxKnLD23jNMe8qA32v2Nl4TkpuLsighCopLsvY9oW tBxvYR6fYt5cZYSjFMhsN/Q7GjLp2azc9Ny3MsPg4iBkrWUcAYIY7+YXk6jogXZi6x1nqQ6dpQtdt Bm9u1khah4V1p3iBQ1YFl3Jkbui6/YP6mH5HQ1wVM+V5B8LBFcfCqMfTAWVDrnVxKT/l6Pzw6lwsO KYLKxMKA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=worktop.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lhtlb-00AJr5-CE; Sat, 15 May 2021 12:51:39 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id EFCC8986476; Sat, 15 May 2021 14:51:36 +0200 (CEST) Date: Sat, 15 May 2021 14:51:36 +0200 From: Peter Zijlstra To: Stafford Horne Cc: LKML , Openrisc , Jonas Bonn , Stefan Kristiansson Subject: Re: [PATCH] openrisc: Define memory barrier mb Message-ID: <20210515125136.GF5618@worktop.programming.kicks-ass.net> References: <20210515075810.163206-1-shorne@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210515075810.163206-1-shorne@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 15, 2021 at 04:58:08PM +0900, Stafford Horne wrote: > From: Peter Zijlstra > > This came up in the discussion of the requirements of qspinlock on an > architecture. OpenRISC uses qspinlock, but it was noticed that the > memmory barrier was not defined. > > Peter defined it in the mail thread writing: > > As near as I can tell this should do. The arch spec only lists > this one instruction and the text makes it sound like a completion > barrier. > > This is correct so applying this patch. > > Signed-off-by: Peter Zijlstra > [shorne@gmail.com:Turned the mail into a patch] > Signed-off-by: Stafford Horne > --- > I just applied the patch posted by Peter in the mail as is hence it is labeled > from peter. This also required me to set the Signed-off-by to Peter. > > If there is any issue with that let me know. I tested this out on my single > processor setup and it all works fine, it will take me some time to get my SMP > setup up and running again to test the other patches, but I figured I would send > this patch first. Works for me; thanks for not loosing it ;-) > Also, I got delayed because I had to rebuild my main workstation after a > hardware failure. *ouch*, hate it when that happens.