Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3641369pxu; Sun, 20 Dec 2020 09:52:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJwJMd/ZQpBeC6sNI1jX/jbpe0EEgX3adv7K5pI6LyLuBK5s4X/qnkt1wSEqYQUe7V72jlmk X-Received: by 2002:a17:906:578e:: with SMTP id k14mr12545052ejq.90.1608486750784; Sun, 20 Dec 2020 09:52:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608486750; cv=none; d=google.com; s=arc-20160816; b=icp5FR5Ku82r0Em0POl9tpc4k/AioUZb8gGrdHesCxankmnvAta5YVPbh4o9yIYocN +X7JinxgBkvNIwTQjf48+iJ0tIrzeA1j/vORUS3YUrDD28AYzzU6W/mcyqMO+z9s27tn n3KAEfwTiLyrW3d1YSTnTMOqRnYQJwYF2bCpD4Nb7LCPV12nFcKhaF/Zz4yfcxUESxH5 6nKmcaJb3rChgx4QCK3TdxBfsFD0cEODgcg25QZesEzwr0UupYZTvqSREPwXgX2Jnaku oZGpWwL9d2Epff47Sc+8XDtFfhVvtWIrNX2EwiCTeXiXtz95iS6E6BGuocMAUCdZGwq/ 7NAQ== 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:dkim-signature; bh=sxTUA5Lc7U9AiR9CkAtSRDG60dxzT7sP9GVu4x6UE8Q=; b=nRU3x3k0IexJ+HziuUA9RupXl0uZaCsZEW6hLboihiI41Pr4jH6zR4yNLSNsM/wyq5 /N4DyYdwvpHkc2dPDmzul5eBAMVpx0wGWg/KfBr1mBb7mh3gZXfB33sqDE4mEiY6F8GT FnIJC0ueYPXmFKRXF1o5drVremSJVOdF5dbCvAjEqModT7wntkw+zU+upII4IA+/pz0u Dllk2AWtCzQZ4MDehHzsAC1Jwomwl2kMdeCEK7tWm6AfuqST++yVBNalpzq7MRNuZazU EYCtjMke8t11D3X/KCDopfp2u97thSgmnO4phgVHIAgUXL7G5UTyV7i1jmsOj3ZUcj3w YcUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lVA5iy3R; 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 u30si9632795edb.89.2020.12.20.09.51.53; Sun, 20 Dec 2020 09:52:30 -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=lVA5iy3R; 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 S1727742AbgLTRuM (ORCPT + 99 others); Sun, 20 Dec 2020 12:50:12 -0500 Received: from mail.kernel.org ([198.145.29.99]:57954 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727621AbgLTRuM (ORCPT ); Sun, 20 Dec 2020 12:50:12 -0500 X-Gm-Message-State: AOAM532fX3ZEitY8vX8TpMD3BLnOWMAiOzWkl2RzSJNxv3rD742gpRe6 zH6iPYiGMVb5+ufiBXeoIgaIPBi0mZ4CItfXtj8= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1608486570; bh=iqp7gUniW01cFIdAe/0kjZ8VQGLxFBk/ZcEA3tr8OgA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=lVA5iy3RnN5NMkXR+rvQPyPQwEdd4+pkEzV+s4yFYx8aAtP3YkpuyL7oIKpgSoKz+ pp3s2l0TVs58AFJelPCM12d0A56Dt9wyBrIwKMA2KHDAm7/A+epMpADhJ7MTx4HVm7 wn7UPYoxsz1Jgfxwg0tEMh23M6xVmwOgmlmHNK+uQU0fl9/fwDJqRJX9fXnFmHeiOI /3Tihq/quPiz5XGePD/Ge5DW8h9Rm1Swg0pLynu3T/IFgdoLwslx4HYuK+fW+T+3tH v3TpjbI9eWnLp0HlfM5g5Z06OogGtq+4unPLYY7eUog0irLl2AmrDIKFfSlg/ZxG8P bBMSh4W9VgeEw== X-Received: by 2002:a9d:7a4b:: with SMTP id z11mr9589019otm.305.1608486570097; Sun, 20 Dec 2020 09:49:30 -0800 (PST) MIME-Version: 1.0 References: <20190307091514.2489338-1-arnd@arndb.de> <87czzeg5ep.fsf@nanos.tec.linutronix.de> In-Reply-To: From: Arnd Bergmann Date: Sun, 20 Dec 2020 18:49:13 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] futex: mark futex_detect_cmpxchg() as 'noinline' To: Guo Ren 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@vger.kernel.org" , linux-csky@vger.kernel.org, sparclinux , "David S. Miller" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Dec 20, 2020 at 4:46 PM Guo Ren wrote: > On Tue, Dec 15, 2020 at 7:26 PM Arnd Bergmann wrote: > > > > On Tue, Dec 15, 2020 at 7:09 AM Guo Ren wrote: > > > On Mon, Dec 14, 2020 at 9:15 PM Arnd Bergmann wrote: > > > > I had a look at what other architectures always implement > > > > futex_atomic_cmpxchg_inatomic() or can use the asm-generic non-SMP version, > > > > and I found that it's pretty much all of them, the odd ones being just sparc32 > > > > and csky, which use asm-generic/futex.h but do have an SMP option, > > > > as well as xtensa > > > > > > > > I would guess that for csky, this is a mistake, as the architecture is fairly > > > > new and should be able to implement it. Not sure about sparc32. > > > > > > The c610, c807, c810 don't support SMP, so futex_cmpxchg_enabled = 1 > > > with asm-generic's implementation. > > > For c860, there is no HAVE_FUTEX_CMPXCHG and cmpxchg_inatomic/inuser > > > implementation, so futex_cmpxchg_enabled = 0. > > > > > > Thx for point it out, we'll implement cmpxchg_inatomic/inuser for C860 > > > and still use asm-generic for non-smp CPUs. > > > > Sounds good to me. > Done: https://lore.kernel.org/linux-csky/1608478763-60148-3-git-send-email-guoren@kernel.org/T/#u Thanks! Can you clarify if there are any dependencies on the other patches in that series? I'd like to take the futex patch through the asm-generic tree along with the patches for the other architectures. Arnd