Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1336031pxu; Thu, 17 Dec 2020 07:43:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJzHIce1qnHHxOZ23Q7xRN0fhRMJ3HTcab8/9zKE2RWtLkEzsRJMHGtv6JY+eYSwu6dNDnIw X-Received: by 2002:a17:906:1197:: with SMTP id n23mr35835575eja.359.1608219792061; Thu, 17 Dec 2020 07:43:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608219792; cv=none; d=google.com; s=arc-20160816; b=Octbvuw/1Y96hLOUkOumEmuYMSZiRVMMd+8Iuf9OukliNpKtvi5TTDWiZS1XSHG+Gu DlOIcGcQbe6hEBM14JrjcD2p02u9M3/LhFm7iplWr/OocgrUrPJ0PBYsCd3A1C8MfAig lqVDEjbYA18F2tiBTmkIsis0mN/o1hYybU7wl3Pz8ozTclx75Nie9/G/fc9kPiexVMzp lNXojFn+rE3Yeqyu/2bS5Hq52ozdGT95InLJ7Ie2CFWsEX/sjrrocUCkcWKMPDvdlo4m gJ3FgfAHM7gh/WRuq1rIK5qbcWfqSj4a4xe+X3cpE40wBwBHD59UHicThvm1ymLcDnbX FM0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:authorized-sender; bh=qtbD55hdfYHkYUpss8JRzBjWmK1N7sPe6JoNe3Lacy4=; b=Z8J1fTnWKGf7iWdb14erQCJeU+PQJ1Y2nhnrauk0ClzhoOfi8EzwcIj9C3MLtqCN59 kFWaiuhIgCVYDZl/udVl8zdJCprprfLBGXABQDVEfTai72Ng3oXQy5OWRWH6sDe8tpBi 0K0lKYRS1WeCFANsLYcQUT9h9uOXox58TGB9vKjxIxC6lQk77TUE02xRydwDN118DFRr 8dlwgt+LjLOosVSvfVDyNXjMqzBiAMpJ76ADgh4xZz3Q9Ui39908tSp6bY2OmPGqDQ3M IMgMBTHnYdx/MwMVR5XEkQlq6mQO90POVBWLXjs95EdvnKS+tcgf+K6rtSX0KlXO59z8 HF3Q== 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 e19si4672076edv.458.2020.12.17.07.42.48; Thu, 17 Dec 2020 07:43:12 -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; 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 S1725871AbgLQPkx (ORCPT + 99 others); Thu, 17 Dec 2020 10:40:53 -0500 Received: from bin-mail-out-06.binero.net ([195.74.38.229]:13747 "EHLO bin-mail-out-06.binero.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726291AbgLQPkw (ORCPT ); Thu, 17 Dec 2020 10:40:52 -0500 X-Halon-ID: 15f7fb41-407d-11eb-a076-005056917f90 Authorized-sender: andreas@gaisler.com Received: from andreas.got.gaisler.com (h-98-128-223-123.na.cust.bahnhof.se [98.128.223.123]) by bin-vsp-out-02.atm.binero.net (Halon) with ESMTPA id 15f7fb41-407d-11eb-a076-005056917f90; Thu, 17 Dec 2020 16:32:40 +0100 (CET) Subject: Re: [PATCH 1/2] futex: mark futex_detect_cmpxchg() as 'noinline' To: Arnd Bergmann , 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" , software@gaisler.com References: <20190307091514.2489338-1-arnd@arndb.de> <87czzeg5ep.fsf@nanos.tec.linutronix.de> <20201215193800.GA1098247@ravnborg.org> From: Andreas Larsson Message-ID: <6a2c250a-2c7e-81c5-705a-5904c0fc91b8@gaisler.com> Date: Thu, 17 Dec 2020 16:32:33 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-12-16 00:24, Arnd Bergmann wrote: > 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? We have only use QEMU for LEON3 on limited and simpler system setups. For example the Zephyr SPARC arch + LEON3 BSP port we recently submitted to the Linux Foundation Zephyr project run their test-suite successfully on QEMU+LEON3. We will have to look into the QEMU for LEON and Linux situation. We mainly use TSIM that is our own high fidelity simulator. >>> - 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. Regarding unconditional compare-and-swap-atomic instructions (CASA) for LEON. I tried to get those into mainline under the LEON configuration option but did not get OK for that at that time, with the feedback to do it dynamically instead. I haven't come around to try to get an updated patch doing probing instead into mainline yet. If the thought now is to drop support for SMP for sparc32, maybe we can have the CASA unconditionally on SMP configured kernels instead. Still we'd like to have CASA usage even for non-SMP kernels for LEON systems that supports it. >> 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. I would not say that we are stuck on an old kernel. It is rather that for our official releases we stay on long term support kernels. We still aim for kernels based on master to work on LEON. Right now we do have a bit of backlog of things to get into upstream. > 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. On the contrary. Our LEON users shows an increased interest in running Linux, now that LEON-based systems gains in number of processors, processor performance and memory. We are adding NOEL as a new processor line. With NOEL we have a 64-bit architecture. We are not shifting from LEON to NOEL. LEON is not going away. > > 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. Our latest release was indeed based on 4.9, but we have no plans to stay there forever. We just tend to select long term support kernels for our official releases. The next step will be to go to 5.4 if not 5.10. We recently released a new Linux 4.9 toolchain where we stepped up to GLIBC 2.31 and GCC 10.2. So we do not consider us stuck at old versions of any of the involved software. In addition, non-LTS users are running other mainline kernel versions as well. Best regards, Andreas Larsson Software Engineer Cobham Gaisler