Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp244391pxb; Mon, 25 Oct 2021 07:30:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGewCHrW7C2wJYihzUNML0jUkNtaUyfv5xj1voRCeUdKHIwCDt3oRLxnAsECzXCOU3khhO X-Received: by 2002:a62:27c7:0:b0:44d:b86:54f2 with SMTP id n190-20020a6227c7000000b0044d0b8654f2mr18748183pfn.68.1635172224866; Mon, 25 Oct 2021 07:30:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635172224; cv=none; d=google.com; s=arc-20160816; b=dxEyow67ig+Dw7QrHXZIm5MPmjNxtZpTP0zCog87O1ScUjT7l23EBxnQ1wtQxqng0d 6ZKwwFvP1THyU3DLoKmBOHm1EwAUGTDTduXAklV8oWxZyOWZ3Yc/uI9L+KQIBG0g9afE ERm5g5S9YcLnmgvGFys1sBTn7qGW/VZVk0dP+PBj0/PgmS9B0d7Py1RApcMKcClMIsqo eXp/90U8QN546uBFWUvon+h/BrfXXJ8s/ANsMVQ0rKGgdjo1qXHwtQVw/xO1EXyATFKE t9Jex64VycNdOhE1AIM54US2t7wOYsQeEIMampnCNbvQVzC5bJCP7GvwOMjL/1lZso03 n74w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=+b1Qc9kKfBWcvNJLlTuskmjfC/aMmr0OiFnyfhjkuf8=; b=Aqn7sk0zoHIxG0bAOFMCa5u63DRlXr6z2KBGqDe3RMUQ9cNDHLWzWybixkszV+mpkU 7O2GWY24FBcT/6AR4NIsgnZwgvvk5bQyxf0jCuI+CWmNKIBXyp0OrxgN7nGA2ouMS4ls FnX8+TRmzzqzFuoyFMJFjEF5wD8BKvaxHk3li14vJfw2qwQf5QKyDohIMnoelHktyxPA b0Ymj/GFhTt+OGdGKZa8aS7ZhRTe02wCU72/qA4HPfId2ZTS9s9PB/hjskf5msY7QvJh 83rDJa0XyoNlHh3oV2c+46NCFwfsorsLVP0qKJnOT52NLRooodXRFNM9PbNc2bYvVa0H MTaA== ARC-Authentication-Results: i=1; mx.google.com; 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 u6si29073019plf.76.2021.10.25.07.30.08; Mon, 25 Oct 2021 07:30:24 -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; 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 S232959AbhJYNyp (ORCPT + 99 others); Mon, 25 Oct 2021 09:54:45 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:50827 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232830AbhJYNyo (ORCPT ); Mon, 25 Oct 2021 09:54:44 -0400 Received: from mail-wm1-f52.google.com ([209.85.128.52]) by mrelayeu.kundenserver.de (mreue011 [213.165.67.97]) with ESMTPSA (Nemesis) id 1N0Fh1-1mqjoo05Rv-00xLJp for ; Mon, 25 Oct 2021 15:52:21 +0200 Received: by mail-wm1-f52.google.com with SMTP id 62-20020a1c0241000000b0032ca21cffeeso57283wmc.1 for ; Mon, 25 Oct 2021 06:52:20 -0700 (PDT) X-Gm-Message-State: AOAM531GXwx3zEWKPUenSZPlmkp78w5aNvN/wTX1di4YQo4PUXGfRTIe UEb+f9hWnDSBRgnPA1p/lRKxpxpudGzC+cJU3/w= X-Received: by 2002:a1c:4489:: with SMTP id r131mr19352496wma.1.1635169940730; Mon, 25 Oct 2021 06:52:20 -0700 (PDT) MIME-Version: 1.0 References: <20190307091514.2489338-1-arnd@arndb.de> <87czzeg5ep.fsf@nanos.tec.linutronix.de> In-Reply-To: From: Arnd Bergmann Date: Mon, 25 Oct 2021 15:52:04 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] futex: mark futex_detect_cmpxchg() as 'noinline' To: Nathan Chancellor Cc: Thomas Gleixner , Marco Elver , Arnd Bergmann , Russell King , Ingo Molnar , Peter Zijlstra , Darren Hart , Nick Desaulniers , Davidlohr Bueso , Elena Reshetova , Greg Kroah-Hartman , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:7am2OXC8HNsqYqEibiS6ppIZZteO3PY7ZF3hLzedeSpdQpg/KQu 9pw8YMfYkmLUbStL83NJfTrCBGY8RxeJT1J7HNprTeiTa422q9DPdAgDuVgafMq6/S2pnKw 4KZrqx7MhTISPUGPMPMRgTJyagnObDs2bsSuJynNtshNGAiaZm6xoMPn0kmaxA/3l0XyiDv uc/GzvZMR5LoW9YjLCAlQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:wCzXCWRfAtI=:PEFcvB/QwB4hYKxlIzCsd6 hTfnxvYDTZXqepCPBx69Q+b1Lh+NWbKKvSCwv/ClaI7vbtjLZ50BfFToYZZmPphr6cBFMsSjq Efsl/SOmUJ8rnqvkc6KpLqVLmJVjZLZfYk3eCMiBk/v08eouu+kL0pDFDrqr+Ly1C9hGr6ArM i6K128LJg5jh7wvExzh7a6KmCny7VbRceaaZgOqhyqJ4CKIys6kNBSF81Th9VfsyMPm1TuhwE 9gpEzRwW88I8I5M7c6dqVe+OujhYORYusLSYh3Y/+gTNq5giLbf6K9ZRaEGtduoDlBQMfykPe 95usH9/78wMW1wK4r8IruAInHQOhZ1ZUUi2fKaWaKtwVefQwtMg3fJTUyanBxhnhGiR1lBWkR DTMGnRUazp3LFHAKXQelpVorTtK1SmSvoPnbCLWRpEjLA6Af6ryHtOemLA1Qrn/vOzQe3QY7I N1uW5VurX8kQkAwCboHPBRDODcZlrcBJ8CcPv1a9duASDJZbWYx3tGiTjHzfSgeRf1kxLa025 NYZqvKWpU70akCfVBEwrw7jk6m7ksPbS1hf39oGjdC5gkX3ahtLHE/ugfXBVLGxTLR0AD5uEP Sbo6L6jxgDwTJ63wdkbmUnEFYOPehXvtM4X4o5JAlFON3MsEjKPqoRZFaatiYJQ/1ETotoyuc xpIpaJZo6Pnp7yZ7ZfLsAoT5G5RkYdH5f0Z+ZKhrccnELiDyNvgGO2Jet8ii9AOjOadU= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 22, 2021 at 10:05 PM Nathan Chancellor wrote: > On Sat, Dec 12, 2020 at 09:01:34PM +0100, Thomas Gleixner wrote: > > --- a/arch/arm/Kconfig > > +++ b/arch/arm/Kconfig > > @@ -86,6 +86,7 @@ config ARM > > select HAVE_FTRACE_MCOUNT_RECORD if !XIP_KERNEL > > select HAVE_FUNCTION_GRAPH_TRACER if !THUMB2_KERNEL && !CC_IS_CLANG > > select HAVE_FUNCTION_TRACER if !XIP_KERNEL > > + select HAVE_FUTEX_CMPXCHG if FUTEX > > select HAVE_GCC_PLUGINS > > select HAVE_HW_BREAKPOINT if PERF_EVENTS && (CPU_V6 || CPU_V6K || CPU_V7) > > select HAVE_IDE if PCI || ISA || PCMCIA > > Did this ever get sent along as a formal patch? I just ran into another > issue that seems to be similar to the one Arnd sent the initial patch in > this thread for and it is resolved by this change. Nick sent this patch in September, and Russell applied it as commit 9d417cbe36ee ("ARM: 9122/1: select HAVE_FUTEX_CMPXCHG"). This addresses the problem for arm, but I think we should really just remove HAVE_FUTEX_CMPXCHG entirely and require it to be there for SMP. I have a patch for that, but that needs a separate fix for sparc32, which I think nobody is interested in working on. I can post it anyway to get discussion moving again. Arnd