From mboxrd@z Thu Jan 1 00:00:00 1970 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=-6.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no 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 1D450C2BB48 for ; Wed, 16 Dec 2020 00:00:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E3A0E22CF7 for ; Wed, 16 Dec 2020 00:00:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727303AbgLPAAh (ORCPT ); Tue, 15 Dec 2020 19:00:37 -0500 Received: from mail.kernel.org ([198.145.29.99]:34626 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730147AbgLOX2N (ORCPT ); Tue, 15 Dec 2020 18:28:13 -0500 X-Gm-Message-State: AOAM531/H7pDPWSXuGnSA+UkFoaK4Bo908RGj1yZCjOUv3Lw7UkG/YMA 2D0TfukSsL3qmeYbOgffS/Gewtxd2TO71yEFZCY= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1608074705; bh=Yek6HG48EL+fBxIl/n3oPNvuVpQoWA77lJXD5WjiI9Y=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=OXiXAijrTa58QSy8Hn4Q0b3hdD2jgwIRoLmtDqwg/MPYV+x+/pyUW3AbpOjuV+nB6 qHbSrFKdTAC1m0NcEbvtYljyHA1Zv6nyt6mmLr4bYwvpPyFiyCUHn4CnIK8/cBSc0E EYjofvBG3KtB7FlpeBmxHXvvJmHvJe3WKC6LfFjRhhPmTisypkx78haSU7XGGrPorE 3ccgTkYkfLW05m1Rj6N7U3TPsHcORlASXLxejCT1VrKCp1ImslMHIzW7NpCoESfP0I 62gQP4OWlFeRISBJ9icDmjEWn2VN2Tgc2qYhihJtakC4Gutsd58WlpC+7MIqSCVJwH T0Oa101XVRWAw== X-Google-Smtp-Source: ABdhPJxH866216C7G/BMIMBE230x06G3zn+SdnjshW+g3sn46anBomdPBt+CWfMoRqv5Aq9onCCRAb9k2ZkZw+XIpKg= X-Received: by 2002:aca:44d:: with SMTP id 74mr659088oie.4.1608074704756; Tue, 15 Dec 2020 15:25:04 -0800 (PST) MIME-Version: 1.0 References: <20190307091514.2489338-1-arnd@arndb.de> <87czzeg5ep.fsf@nanos.tec.linutronix.de> <20201215193800.GA1098247@ravnborg.org> In-Reply-To: <20201215193800.GA1098247@ravnborg.org> From: Arnd Bergmann Date: Wed, 16 Dec 2020 00:24:48 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] futex: mark futex_detect_cmpxchg() as 'noinline' To: Sam Ravnborg Cc: Guo Ren , 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 Tue, Dec 15, 2020 at 8:38 PM Sam Ravnborg wrote: > On Tue, Dec 15, 2020 at 12:26:10PM +0100, Arnd Bergmann wrote: > > > > - Disable SMP support for sun4m/sun4d. From the historic git > > tree, it's unclear how well this ever worked, and very few machines > > of this class ever existed > Yeah, I have collection of sparc32 machines that I played around with > once. Including one sun4d that I brought from a friendly Linux fellow in > the UK. But somehow I lost interest as this is all very nice machines > but not useful for anything real work. > > I think we would be better served dropping support for sun4m and sun4d > from the kernel. This seems appropriate as well to me. > Last I suggested deleting sun4m/sun4d the argument to keep sun4m was that > QEMU supports sun4m - which is a good argument for sun4m. I dunno what > would be needed to migrate QEMU to LEON, see below. "qemu-system-sparc -M help" shows a "leon3_generic" platform, apparently added in 2013. Do you think that would be sufficient? > > - Mark SMP for LEON as temporarily broken. As I see in the LEON > > patch set, they have changes to enable compare-and-swap-atomic > > instructions unconditionally, as all SMP Leons have those and > > seem to require this support already for other things. > LEON on the other hand could have some nice future. They are right now > stuck on an older kernel and someone that was motivated should be able > to get LEON4 running on latest upstream. > We had it working in the past - but is was around the time I lost my > sparc interest and no-one jumped in to move it much more forward. My best guess from the public information I could find on LEON is that it keeps shifting away from Linux on LEON to other OSs, and to and to Linux on NOEL-V. So even though the CPU itself will likely have a long life ahead of it with LEON5 only a year old, it's unclear how many more updates we'll see to the kernel from the current 4.9 based release. > So in other words - no complains for the plan you outline. Thanks. I'd probably queue up a patch in my asm-generic tree for v5.12 to disable SMP on all SPARC32, add the helpers for C-Sky once Guo Ren has tested a patch, and clean up the futex code based on this. I guess we want the one-line fix for Arm that Thomas suggested for v5.10 and backports anyway, The sun4m/sun4d removal should clearly be discussed separately and go through the sparc tree, to see if anyone has objections, or if we want to remove other obsolete platforms (sun3?) along with it. Arnd