Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3579892pxu; Sun, 20 Dec 2020 07:47:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJy8AIYmTAAjcvljGsCW71Y+nBBYQDlww4urd1vaQt3A6YamAx1UmWSebflmenlp+5z1vjZi X-Received: by 2002:a50:8d89:: with SMTP id r9mr12400193edh.144.1608479276650; Sun, 20 Dec 2020 07:47:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608479276; cv=none; d=google.com; s=arc-20160816; b=uYHzqmPMXcVwspdSTw4JesquXXemALuEBsVjEchg+r/nIo27+3QeXr3VXEW/TuFHOo wjY6+rsvX5rrbZCtOEQWgFnUlyQOxY+g5jIAbFM5ZHg8l7CwR4GYW6kuucOJS0bgYxHM QL883qJrcdM7zNrRw/tY7z/mg3uFsdMGweGJyVDLxhWZDsNrXbgC5nxPaNez8kSv8BTb +8r84S4b0yAhZSDJEPwqglmHqbZUj9q3zECxd1Z2Wh0k6uWJ9WxPM7MpDCjXaf5KDXBY gESvZG1ru+7efqLhOgvY7QZf+ow8JSVJ0Fb/SqKoMr6yHwaZHfdTtTy1AD46bbUfyXEd Vmfw== 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=So3LLIgdvDAlYGKRS0xOM70/3oES7NRCktq41NU71+Y=; b=VQ7wOx0tC1tw7yMyzct1Ar7S6MHKFAGNmacEpD3iRGlss9xKqdJMnP8SEPGeE9hmud KByW0EekVeVbTOoOdgiXxmyWanZ1oZ38nFl7gzvm7kNa97O6F7XEcjvLHlw4OmNQDS+8 vX2hlixcVgGIYg8pBsfCr2cf9JMlBKHRJUQwuv3fsR7FqQmcMVNBZz94z7bAc7qyyBW+ o4s4Xf0AUYNj+4dwdGHYZGoRtOqfd4I9QkeIACmCqljbXCmgctvXqlOlhXTi+NkbVbKe jK9yIYFEEQ/aQjCvPSQ1Y8CgC0SGkZUaGNN+HoQgmPsc41JpS1IiWNn0wLTzWXp4mxZO BrtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pYv6WnlL; 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 p17si7487024ejw.23.2020.12.20.07.47.34; Sun, 20 Dec 2020 07:47:56 -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=pYv6WnlL; 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 S1727665AbgLTPo4 (ORCPT + 99 others); Sun, 20 Dec 2020 10:44:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:46442 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727474AbgLTPoz (ORCPT ); Sun, 20 Dec 2020 10:44:55 -0500 X-Gm-Message-State: AOAM5316y/v0huV8jj8bupFRZQae5HinXdlOa+mAC202THLZZlxo1LV5 FR2SYA5+EBIqIJ9Trk/kAEfYra1P95Spq+gbzTY= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1608479055; bh=HkKiub65ipire3e2ahkx2AsS2X8l0pXLoLsYAl6pgds=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=pYv6WnlLGyVBrw6omIVgT5oi5MEsywjaO0uyPOuEN1ETkIQRyeHnkYpfpyzs2rjAp gCi/VNEWzmBeK/L0z9V9Sqk96BgvN1YdEzRL6lxkKzK8JLoAZDFABfmJQdfqxWH2Og oFVrT+b2H5CYvaw0tFfFx5sS5OM/qYYtFBk4zUoRp7mzuvuVjCrqGy0IQPrbUTfIlA /L3uHzS5xQTwQpKhx2Ss43pOHlgz6vUqQKV7eznJvzTXVUZwry9MxFm8fxkHY+WDy0 LJG5zYAEkU7+YaNRMShS0p9p4rkmoa3XF5AxaJjn+1SvxAfyLcG1TPFZjelQ9PNjIX 7/ls3BzTTzMgg== X-Received: by 2002:ac2:4987:: with SMTP id f7mr4736496lfl.41.1608479053208; Sun, 20 Dec 2020 07:44:13 -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: Sun, 20 Dec 2020 23:44:01 +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 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 -- Best Regards Guo Ren ML: https://lore.kernel.org/linux-csky/