From patchwork Wed Jan 27 20:01:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Sverdlin X-Patchwork-Id: 12050949 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 15C2FC433E6 for ; Wed, 27 Jan 2021 20:02:50 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C0F3664DA4 for ; Wed, 27 Jan 2021 20:02:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C0F3664DA4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nokia.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=mQsgX7+8RNvA7CNMrTePWVlljUGwtC5s3Kn9kTy5Z1A=; b=rXdYo/QdbRgUaMDfHXa73E1Gn eynRJYPBmmJjFVj14g2xtfgKRoBunp5laJqKTd7oC/j8m8V3vq6j/0J4dcygpOF+i013wMem3SATT RDP73VUwNtPCm4nS4CYiDLHiECA9mX4nMvjEI2RvuWzQwnYsBerYo4eAd4qJRGWjekVUpw1YXwZVP l2zTywPc0PCHQDW3mIKUCUSlcWHRiUhXeq8mPpPWhwhIthvNoQX1TfiI3cKv+CqFLAUFk9msJrqjw m6aQBeqXXsFUt0vigqqWIUG2zrlX74PGlT1XfsiJj1qGUWPRJe2RYmYDaPOIgUSGdHdyCofgkE11c S0AXEgqfA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l4r0Y-0006xd-Ua; Wed, 27 Jan 2021 20:01:42 +0000 Received: from mail-eopbgr00136.outbound.protection.outlook.com ([40.107.0.136] helo=EUR02-AM5-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l4r0Q-0006vO-M5 for linux-arm-kernel@lists.infradead.org; Wed, 27 Jan 2021 20:01:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MffwwbjgMiXCNM1vrqAJVSiMP9vJWkkJdU4rhhygIA3MG3QLCvNBzbaVcPkeE5qa8xicwpol41gBjVfpBDgxzyjdtOhClWEvecT+ZWiJ50G9M94lfzUnMXndpBRMyAXrgtH0NtQiO/OUnVbQoPmCp0WnP9UdSLyJzhIUwp9T7TjaLq8YhS63CrhzFb2K8sh85hyHvFTfrRavikkyIKJKignTKajeKbwC1A0RkBup/7eGk5iRV64vHwwug2TX2g97vvGCFXuXJzbyXp0IzAewGjt80aWihymf0JlL7bHke60hGLaTTw8zzNkO2Wb5QdB8ttMM/T5h0AcuaARV3YjUgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=n29PwTQhyVPh2XexqqS/FJO61dqnTbkiFJmx7vJvt18=; b=fgXhplOCGVOEO4Z2UwwRmw+6iTsM1VfLYabu1ZA/QL4acmz73xo1fLJ829czfevcXsEzjXKw8Hwa4kIg1cMT1Gx3eCHQVBCAVn5s3wnbK6Sy72B1cfyBtMZGOdEi3glfTk3v2VFfPbQGCPX5HrGjKSAPlHlv6Q4cRdXcKJ1QOBHtgAcbaF5ZDSSU3dF6qpxC6AmITw1DSpXL3U/n5/2lbWI+IKF49g9X3E2Hb7odL1UjK7vFhQ/zG/lcYgPgxnyEASyHhoqEyVfl09qBasbBtQHnzhszG28m64uOXbIO9xoSHbdp8L4DAk3jPEAl/AJdX8k0t9S4zIZ6Yg4/4KgHxA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 131.228.2.8) smtp.rcpttodomain=lists.infradead.org smtp.mailfrom=nokia.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=nokia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.onmicrosoft.com; s=selector1-nokia-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=n29PwTQhyVPh2XexqqS/FJO61dqnTbkiFJmx7vJvt18=; b=wECIcyRPdMldd4KyguT3ALRhkNi0GgMqt1hTSdT9Xj94cZwxBBfJDWNptVBjWDssqt8SFqa83vZXpZMlqRdC0tMWdlQlmmVIlXCqUdlQER/fjhop8eOdd7Hg9ePLK5i2NnizIyOLgj2MYoR/VX3IyaSv1AZCu67sYO9pdrwb7zg= Received: from AS8PR04CA0230.eurprd04.prod.outlook.com (2603:10a6:20b:2f2::25) by DB7PR07MB4058.eurprd07.prod.outlook.com (2603:10a6:5:6::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3805.5; Wed, 27 Jan 2021 20:01:26 +0000 Received: from AM5EUR03FT049.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:2f2:cafe::e7) by AS8PR04CA0230.outlook.office365.com (2603:10a6:20b:2f2::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3805.16 via Frontend Transport; Wed, 27 Jan 2021 20:01:26 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 131.228.2.8) smtp.mailfrom=nokia.com; lists.infradead.org; dkim=none (message not signed) header.d=none;lists.infradead.org; dmarc=pass action=none header.from=nokia.com; Received-SPF: Pass (protection.outlook.com: domain of nokia.com designates 131.228.2.8 as permitted sender) receiver=protection.outlook.com; client-ip=131.228.2.8; helo=fihe3nok0734.emea.nsn-net.net; Received: from fihe3nok0734.emea.nsn-net.net (131.228.2.8) by AM5EUR03FT049.mail.protection.outlook.com (10.152.17.130) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.11 via Frontend Transport; Wed, 27 Jan 2021 20:01:25 +0000 Received: from ulegcparamis.emea.nsn-net.net (ulegcparamis.emea.nsn-net.net [10.151.74.146]) by fihe3nok0734.emea.nsn-net.net (GMO) with ESMTP id 10RK1NYi025069; Wed, 27 Jan 2021 20:01:24 GMT From: Alexander A Sverdlin To: Peter Zijlstra , Ingo Molnar , Will Deacon , linux-kernel@vger.kernel.org Subject: [PATCH 2/2] ARM: mcs_spinlock: Drop smp_wmb in arch_mcs_spin_lock_contended() Date: Wed, 27 Jan 2021 21:01:09 +0100 Message-Id: <20210127200109.16412-2-alexander.sverdlin@nokia.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20210127200109.16412-1-alexander.sverdlin@nokia.com> References: <20210127200109.16412-1-alexander.sverdlin@nokia.com> X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-MS-PublicTrafficType: Email MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 806bacf2-b15c-4dab-bee7-08d8c2fe5407 X-MS-TrafficTypeDiagnostic: DB7PR07MB4058: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:758; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: elwemmh7PhV22eXQamM6s3LryH4BAoozeH8FXrFuJlb86YwdyPpNgKfATUQOz2E9a0ORgOd24Z44BUEEtizkLKEs/Nj3ny2nIDf7PZttmFvFb5j10DKlFvPQDd7Lwpei0yPUpyuGyhLKXzwk4TArG9m2sKzTLCLy1HhQFpFAT7wCEDpZtwm0LKnwN/wLmlfL4C9gZsBwb08s9xkLygOxs7duepjWeT1+XFSZ/P//Af0EU3OlAjovclaOCI/N1BdACscZoAzaRWy58NRYFqz/14fcArHBj2iytzmIrOLTyWvLMJevycHCXdo9lP8baOdfDNTwmR5uSuYdCrqKPUw2W2qGWW4YiFEoqZre3EfY/e1XfFdm9WU8wWopAKyF9YBG7EVyx2LuooW9fSiyRSJIYOlqYfWDgpUdII1vopyGpOtCNnQCL2hCUUQTkgiljadkj1JfYnRKGxIB4Y//+zGzCC4EYp1K5T2n9Ct8IaMt1S1rUND18tEGywAZSa4zMULKbNcbTD/go8vInZiYRy+bg+006jZS99sTUSVMFYVqIuJY4Mpst2uZiR91q85uhUd18nbAFgUnGP0nLocedbzEFY4LMYL20t4SH2eoEdm24Q/szjRbUSe88Ii2PzC9ToMH X-Forefront-Antispam-Report: CIP:131.228.2.8; CTRY:FI; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:fihe3nok0734.emea.nsn-net.net; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(4636009)(136003)(39860400002)(346002)(376002)(396003)(46966006)(70586007)(86362001)(70206006)(8676002)(4744005)(356005)(8936002)(82310400003)(81166007)(1076003)(5660300002)(2616005)(478600001)(186003)(82740400003)(316002)(36756003)(110136005)(6666004)(4326008)(47076005)(83380400001)(2906002)(336012)(26005)(54906003)(36610700001); DIR:OUT; SFP:1102; X-OriginatorOrg: nokia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jan 2021 20:01:25.9581 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 806bacf2-b15c-4dab-bee7-08d8c2fe5407 X-MS-Exchange-CrossTenant-Id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5d471751-9675-428d-917b-70f44f9630b0; Ip=[131.228.2.8]; Helo=[fihe3nok0734.emea.nsn-net.net] X-MS-Exchange-CrossTenant-AuthSource: AM5EUR03FT049.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR07MB4058 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210127_150134_822127_E45F24AE X-CRM114-Status: GOOD ( 11.97 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexander Sverdlin , Russell King , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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(); \ while (!(smp_load_acquire(lock))) \ wfe(); \ } while (0) \