Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1385752pxu; Thu, 17 Dec 2020 08:46:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJzS+2N1PK9D8Xm3yIo89wlt9kZeC88r+SrVfFMBPhiWz4oOPQ1dl6Z1YFhX8FT6wDy0vwEr X-Received: by 2002:a17:906:3949:: with SMTP id g9mr35107976eje.493.1608223565660; Thu, 17 Dec 2020 08:46:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608223565; cv=none; d=google.com; s=arc-20160816; b=CwAadpXgTvxzUUKQTPwMOuh8//MFy3RTHRIjuhaCrig5MBxBS6cKVEUk7PDw2v7Gf5 mT3BZYRVBN/E1Y52htMA0a7bvqHRvRmVTAidcD8sF8Xgaj+/RSTo4HoXkQBu7m+h+Yj6 cdACY8ZFEp7YH9qBhOR4k/EPYipvDvlKxP0sfK/S5K7/cHmKf/ezjG7OtfqRupFV3QzW aQMnv28v5/3r0g/9NoSvyvreRC/J3/Pouhuzco62+iGV9UZCuRPSzoY7cZU2fHzWXIqJ OZ2W/WRbGbScNErxJm0RvqAKg0Vs26cqZfeKkN1gJhFoTzrTJAVCFUB0Q8cdUz0wZ0/j QxnQ== 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=iPfc5+m7WxGKMv7iDN9faBMEUtkNG54b1aZyT92PeNI=; b=wndAo+VyWCKw9g/gMP1NNjqVfL+cIcaxjCq7Z70NpZ5v2mXhUIKFbY7mVDe5TLucxo 7CtANj+hzLVf+FqiN1KhWhPRKYm70JbHacX4BeGZRb5+FbM3xXeNuoRXgUNfSgRqB++y BFbgJ2kGFItCiedBLXykFxXv42J9xxQUTZ1593JbB4nWxsS+oAI1K/KTgQsEMybHpQxC l0BJtV2PpxH/7Dh2NObJ7sIFizodDnNQxd0HNYYraiAK796oa/lzb2jJwNqfO54ldXlR xQysUh3Ie08qcTrSCxwWw0zdPxxZ19fobW0kwbvUYB7orANUqCy19ONHMDykDCgL7irc QEuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=vOOznWVo; 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 h26si2923913ejq.399.2020.12.17.08.45.42; Thu, 17 Dec 2020 08:46:05 -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=vOOznWVo; 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 S1728582AbgLQQoE (ORCPT + 99 others); Thu, 17 Dec 2020 11:44:04 -0500 Received: from mail.kernel.org ([198.145.29.99]:47644 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728080AbgLQQoD (ORCPT ); Thu, 17 Dec 2020 11:44:03 -0500 X-Gm-Message-State: AOAM531I1eXRKJabg7VBy6nTgXkqBqxHOHWuV7SewlXFlKXONhaQx/rt eqV4Jwlj1sH5ktKCulsC2TnCNrMT0ZSjdFGQe0M= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1608223401; bh=kCWRRVo07JtdEHtDVZdN4eB4jSvgcAmx1DbfVKxjmtY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=vOOznWVo4LKiq8/+xyyVATt85LMupKJ6P1usYSzYh8TdYg/USoAeB4n3ovf/+DW9z jPdMqVxz8tk2H7xOjSaKDKaFI4dSkFq0kjaPuD/lTuNSUr0p0p0ZBF+XFZ8/GBQC2c I8NwzM/cieUajmUjrX4RbaFmhnPiIeScfqrW8vRlVJUKTG2LO4rcukpwY2LUEh07TC m0o7qI92LRohhPheddbDcrYaQcwn6VTPN2h13MobnHQDJsM3KTU9PcchJBEljuRtvz Yv0sWWgjdDZUSk0T7kIjthIMTlW2S03ZZKgVtqv6NSwZ10eLkP2AJ3KM9gE5NZjTyD dYWzibnSSvWAw== X-Received: by 2002:a05:6830:1e14:: with SMTP id s20mr1870086otr.210.1608223401054; Thu, 17 Dec 2020 08:43:21 -0800 (PST) MIME-Version: 1.0 References: <20190307091514.2489338-1-arnd@arndb.de> <87czzeg5ep.fsf@nanos.tec.linutronix.de> <20201215193800.GA1098247@ravnborg.org> <6a2c250a-2c7e-81c5-705a-5904c0fc91b8@gaisler.com> In-Reply-To: <6a2c250a-2c7e-81c5-705a-5904c0fc91b8@gaisler.com> From: Arnd Bergmann Date: Thu, 17 Dec 2020 17:43:04 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] futex: mark futex_detect_cmpxchg() as 'noinline' To: Andreas Larsson Cc: Sam Ravnborg , 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 17, 2020 at 4:32 PM Andreas Larsson wrote: > 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. I don't think there is a need to have many features supported in qemu, as long as you have enough RAM, block and network devices (which are trivial if you have PCI or USB). > >>> - 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. It does make sense to require that a single kernel can work on all possible hardware. So if we remove sun4m/sun4d support, all that is left is LEON, and you likely wouldn't need to worry about other CPUs any more. However, there is still the question whether a single kernel needs to work on LEON both with and without CASA. Do you still care about Linux users on LEON cores that do not support CASA, or is widespread enough that you just make it unconditional for both SMP and non-SMP? > >> 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. Ok, good to hear. There were a couple of old bugs that got found on mainline that made me wonder whether mainline sparc32 was used on any hardware at all these days. I looked at your v4.9 patches and didn't see anything too scary there, in particular once sparc32 becomes leon-only, you no longer have to worry about making it work across different CPUs. > > 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. Ok. > > 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. I hope that you can make it to 5.10 then, as this contains the work I did for 64-bit time_t, which is required if you have users that want to run systems after 2038. > 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. FWIW, glibc-2.31 does not have support for 64-bit time_t yet, but I know there was interest in adding sparc support to the musl libc, which does support 64-bit time_t. Arnd