Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3852485pxu; Sun, 20 Dec 2020 19:00:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJxbR7Zh1KWNGWRs45XHaSmAdoeQzDBPu6hSvoa043aQRyN66oaKUT3b3EJjuAsyCbZMs9IO X-Received: by 2002:a17:906:38c3:: with SMTP id r3mr13571849ejd.193.1608519639650; Sun, 20 Dec 2020 19:00:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608519639; cv=none; d=google.com; s=arc-20160816; b=NPrfFwAozRXauLRM/TN1E3lwefZHqUljoZUtvJEHK3sjFbjzEg/ZVFVBD37PXr1rX7 wNjlALYgXQzp53YvZnp1acueQe37ZJ/VOzKVL3KedKM+Qoco0s1b8JkzNE8VPWT5lSco rYMfm1KmuWGqGIsWc/VATMHEi6am7MQ1uq24yubfEA36L0nPfRZ1YhkDDQ+AlooQWX7O zaZzh4xCyrYGXfC7yGDMN4z6N/BkEcVKN1x+Pzw9JNxWWeRI9RbZ/1+ioqCqxdofP6GT gCW2P5u9j7rbykmk6w+j6GD9H39bUqOgRFfhXxHcUvu62tN7LTUMd8674AFym3DwNpX+ UxzQ== 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=zJ0BGxbUkTkb5ySCVnfIdjFwQJTcIFHBUncEA6R38i0=; b=XQ9TB/O31z9TyJG7zTNofYYkohBtkks+OddPFM2x0EDvD7VjkokoLB7+gZ98tJzeab k72LTr9fCsvtci9rxrXKSwLpSp+FzbIxHcH+A2NtfMMZ24E+nTpF8KS5SJ+hHklSnlaf BN8VtUPnOZ63CIWnT64ahYUXIJ9bZZEn07TCsEk6C4t33G9FZZqHEB87PuhvubpzGBXC oDhc+Mb9369lEJkuxq3b8nm0iEJa5qKGvjArO34fdrVOXeg51aA46/oD+td93zKu6emF E4bEyaSeyKIdkLo7R+iByl2K6QvUyi/vFX5iGlkHL3JkmXXA6FENivHNCrwlbrdg2UN0 4XfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KnNET7Lg; 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 x2si8333556ejc.177.2020.12.20.19.00.17; Sun, 20 Dec 2020 19:00:39 -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=KnNET7Lg; 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 S1728377AbgLUC7e (ORCPT + 99 others); Sun, 20 Dec 2020 21:59:34 -0500 Received: from mail.kernel.org ([198.145.29.99]:53320 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728330AbgLUC7d (ORCPT ); Sun, 20 Dec 2020 21:59:33 -0500 X-Gm-Message-State: AOAM530pn7rmVqsXiGABYed+AGXkkwhMXinScdLrDPtSmqT7VKU8Bgih ZYpHWHa4Pw9hBWIjvELU5inmTbeoBw5vCtKLt1k= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1608519532; bh=SZun7TJm7wCXlJxQxcZrzlk8v6yvxc/nAR0yaGvTZu8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=KnNET7Lg40h3y5kFwF1waDYdIM8Do0+T2isXSZpLIjVJHXvg0BfIqCvJkjtPxCkFL JQ7bVyERdGu/FzYlZN2MFSyeEjnd8gJ+1rkJYGwWLnDgJOk2E3cuNbfkGamcAXyIJt RMlA7a9j81ZzSxufNR4vdFhkUY3qFMU9f83PuMzCGRsLWOebk5ePK36HIpwhNKW/60 LxhwVNCvg15YNnvXcdpq/+x2hWELFpHcDPUW8hh+bygmQb8g3op7OveZMBhcW/qUqz q08W5Pw2YELINNhxFI52BjULPc5Txzzm6f5Q+b0SDTzALSBP/+LqoDI5iuJkGJO2nl VFOEUSt0b+YLA== X-Received: by 2002:a19:c511:: with SMTP id w17mr5425729lfe.557.1608519530327; Sun, 20 Dec 2020 18:58:50 -0800 (PST) MIME-Version: 1.0 References: <20190307091514.2489338-1-arnd@arndb.de> <87czzeg5ep.fsf@nanos.tec.linutronix.de> In-Reply-To: From: Guo Ren Date: Mon, 21 Dec 2020 10:58:38 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] futex: mark futex_detect_cmpxchg() as 'noinline' To: Arnd Bergmann 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 Hi Arnd, On Mon, Dec 21, 2020 at 1:49 AM Arnd Bergmann wrote: > > 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? No dependency. > > I'd like to take the futex patch through the asm-generic tree along with the > patches for the other architectures. You take the futex patch and I'll remove it from my tree. -- Best Regards Guo Ren ML: https://lore.kernel.org/linux-csky/