Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp611601pxb; Wed, 27 Jan 2021 16:44:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJxT7K5L3uL+1cX7n9g9FWOAHjWVfAlnxZS84RToC5G3vL9d3DK8xSkwbCw3C3tCTtvKhnoC X-Received: by 2002:a05:6402:3116:: with SMTP id dc22mr11108363edb.325.1611794660774; Wed, 27 Jan 2021 16:44:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611794660; cv=none; d=google.com; s=arc-20160816; b=0LQYrU6NPvlY2ZXzX4i5zRFTfe+fHCfKyIzqhR3hiPqMeDZqybr9RfFxIyG4hmBXTB CkFWMd1EnZkFgK4aEL6bfsmJIFL4R4mot48hg0k8c2GcBTavvvZW3P7h/g8lQbi8zS2W 6CmKachY7jEMKebnCFklKVJBmkn8aBjMiUYvg15zQA4GQbu1gxcjOF+DNOaIA9o0OcSB UxZJrLxj7sdcEi0s5NluWe3BdLQZbX7n4Hwa6Gdqe61m2STpCuiE/PBJDtNHjAFQZaAU Yxdw24aZSOBGKi+v3Ve0cIyZ3TNVlRHqup057yyvaS1C69oYyZOXV4x1au2ao9vUBdYP bLlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=poZBO1TrwbuwV73DHvc7atuH7ZfPF1K7HsvyizibzMw=; b=aTXMM8o6pzOvJCmYXsD96CeakMOt+4W5FgNZmq3iNon4HW2IKNGeoEdfIrodsGk2mB iKc3K7z+2pzA8vBoRlMe3mvNFONYFdx5HKmEiP+Vj10nea8G1r0iGlbmbXfwARyyt0TM 5an9KJETt/4OR38Ojw303jArIy89iHJetIvDiqf8CU/kjrAnSF4KJ1/i7/BnymACapFV P8hg7VKsZSUQ0lmcVD7Dm8ocmcsmwCyDDCG2sYm4X+jKdOj//8K8ZV9okJchTtb0udvm FHymkkMcVtwIdHKVGkLDh9p5oELfBvoGobcSUWzddUIwwOMYrtWQGEqb7aaC4xemKf43 GabA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FkuVkySL; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hq36si1536448ejc.590.2021.01.27.16.43.56; Wed, 27 Jan 2021 16:44:20 -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=@kernel.org header.s=k20201202 header.b=FkuVkySL; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234384AbhA0XFr (ORCPT + 99 others); Wed, 27 Jan 2021 18:05:47 -0500 Received: from mail.kernel.org ([198.145.29.99]:39984 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233556AbhA0XBW (ORCPT ); Wed, 27 Jan 2021 18:01:22 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id E95F164DCE; Wed, 27 Jan 2021 22:22:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611786167; bh=XlDDbXd58PRQLQnVBVMxsMBxLbjIOdstTUlWPOs1plY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FkuVkySLPNkaRm8Qzv68SuVxwtHoJVIUTGuN7vBFH6O788iez+gbUX74iv6iaQV2Z DUH/rqf/I4cYO6BTBoThYav/tey+78ZfnB2Daw0heFFnmKmDPb68LtQYjMOf9O0Z9l McbmPCoO/m4Vk5287UPDWGjwXuuDiyNYiXtjUlQ3OdTz4JFQ0rtL/q1PKA4Dgr60/2 PfH6jWxW4KT/6WbtwyhruADXCJmmbciW9sZGh/qWHnH3IxqwDskoTjNcx+WJoCE1QZ kszf8ogtK5X5Gx9xssXhB2UbTTwGAzj8uiHNRQN1nB3aVc1AfvZYIN0xGtJVGDtnIm JM7QEHX48cAKw== Date: Wed, 27 Jan 2021 22:22:42 +0000 From: Will Deacon To: Alexander A Sverdlin Cc: Peter Zijlstra , Ingo Molnar , linux-kernel@vger.kernel.org, Russell King , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 2/2] ARM: mcs_spinlock: Drop smp_wmb in arch_mcs_spin_lock_contended() Message-ID: <20210127222241.GC848@willie-the-truck> References: <20210127200109.16412-1-alexander.sverdlin@nokia.com> <20210127200109.16412-2-alexander.sverdlin@nokia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210127200109.16412-2-alexander.sverdlin@nokia.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 27, 2021 at 09:01:09PM +0100, Alexander A Sverdlin wrote: > From: Alexander Sverdlin > > Drop smp_wmb in arch_mcs_spin_lock_contended() after adding in into > ARCH-independent code. > > Signed-off-by: Alexander Sverdlin > --- > arch/arm/include/asm/mcs_spinlock.h | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/arch/arm/include/asm/mcs_spinlock.h b/arch/arm/include/asm/mcs_spinlock.h > index 529d2cf..d8fa921 100644 > --- a/arch/arm/include/asm/mcs_spinlock.h > +++ b/arch/arm/include/asm/mcs_spinlock.h > @@ -8,8 +8,6 @@ > /* MCS spin-locking. */ > #define arch_mcs_spin_lock_contended(lock) \ > do { \ > - /* Ensure prior stores are observed before we enter wfe. */ \ > - smp_mb(); \ I think this is the right place for the barrier, not in the core code. Will