Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp450482rdb; Wed, 20 Dec 2023 01:52:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IEhnJdG77FHpx3A86Cb1UDXIxoh6feokXtgADq9nDSqM1fRFTXTQro4zCFJLmmO4Xiw1+co X-Received: by 2002:a05:6a20:160f:b0:194:c641:c22c with SMTP id l15-20020a056a20160f00b00194c641c22cmr596459pzj.55.1703065975552; Wed, 20 Dec 2023 01:52:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703065975; cv=none; d=google.com; s=arc-20160816; b=oWZPUXAo32iQayRkoYUbCC3F6sEiBgMrzwi83ZHuEowbmjCbE3VMpP5f8kV8UQjjcX 4UAlEnErp/vADfoQ4VtYSOVWccnpA1rVGrRLNpdzf2zRFCk4+hF0FihEXPQ1AhVJ0cao 3sE8OfCZwQabBE3L9FaDf8SZpR4FNF/qaOd76JCv/8SGBqs/vZMzIQn2hz54EXVx3kfu 5sjrUQfgPrjcRm29UJiAsfoPBsZ5ryp3qfSCNlY1J4NguIU6c58rbQ/SKa0TXG1smgVf 7khQ03Vs0OdkY/9zwivl9UnWCGyuW72LwWb5A08wyJJ2wNxbtkxU2e+q63poAb/+ok3V Yc7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:cc:to:from:date:references:in-reply-to:message-id :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:feedback-id:dkim-signature; bh=zkd+KZ3JdQsL5s5tDeqvoSrziAIkru8TKw2wo6s0AKI=; fh=EP1avs+n+P1tUkG+JHsfo4t6i+0TZKvgmrQdjEGOhNE=; b=IeGipa39jkaKbHB1t4AcviFcP+ZpnN2VaoNcE8U3/4fxixentcKjdk7dIjmknsRFLh +jQm+zfDBMKZ2C5ZqiVVP/beHbqUbVdyRphLnsY8c07S8vGIWcqpdCHwSWl1e0uIW+HH YGPfe71hfCTXp3anqJUNKmKanoNdTb5a3ykp9/Q5+TLXKqSkxVq7+cjwXPYwCACVvVzq IKt1I9R+JTN0DVRi1SeIlX8mC2GlMKbn2JmhSFe7zN5YMv4fODJ6HpC9WpEGOWMq2VkH nMM5sbBJYzpzYg2UvMELQFzZxRCeOj+CTM8NAzFYmtaAmASmOru5C0Tyk/u40mZrfOtY YFYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KUPj6oFW; spf=pass (google.com: domain of linux-kernel+bounces-6654-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6654-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id a18-20020a170902ecd200b001d098c03fe9si21698487plh.361.2023.12.20.01.52.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 01:52:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6654-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KUPj6oFW; spf=pass (google.com: domain of linux-kernel+bounces-6654-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6654-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 7D513B2592B for ; Wed, 20 Dec 2023 09:52:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B4C2020310; Wed, 20 Dec 2023 09:51:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KUPj6oFW" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D6E0F1F612; Wed, 20 Dec 2023 09:51:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B63D0C433C7; Wed, 20 Dec 2023 09:51:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703065912; bh=Cp6gzt3q4v5XnTntRjirvjcv/I42KDzoFGvVKYV/ZYA=; h=In-Reply-To:References:Date:From:To:Cc:Subject:From; b=KUPj6oFWlnLEtsziChPP6fNg6KLO22ByvgKX47tRye5w0L3zPZHC3qn4pmIBBCHik j92jbvRoK9SXAcBTYyMO2QPjs1o0KtcilwdCMqpDDX90y8fJG3lsmsbr+XNFnSmyuc /1kEIGuHhFtqtTejF54pmipy01C2DDUpvbBM1URSsnTL9T9LZMGpGJSsZZl0ijJPt5 snrx+3Z1qvT3sJqmRWD8+v1lZC6io5wn9elGVGvlZbQXOtWs7yx7JBYb2NJxffYURU tYOQpw+65Y024Z/VVT1z2wXVb/5o37JrDEx70Um1/N6UigmQzSN+unknc6alOKzyXc 23V55hKIXsebw== Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailauth.nyi.internal (Postfix) with ESMTP id 926C227C005A; Wed, 20 Dec 2023 04:51:50 -0500 (EST) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Wed, 20 Dec 2023 04:51:50 -0500 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdduvddguddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusehkvghrnhgvlhdrohhrgheqnecuggftrf grthhtvghrnhepvdeviefgtedugeevieelvdfgveeuvdfgteegfeeiieejjeffgeeghedu gedtveehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh eprghrnhguodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdduvdekhedujedt vdegqddvkeejtddtvdeigedqrghrnhgupeepkhgvrhhnvghlrdhorhhgsegrrhhnuggsrd guvg X-ME-Proxy: Feedback-ID: i36794607:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id E3684B6008D; Wed, 20 Dec 2023 04:51:48 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1364-ga51d5fd3b7-fm-20231219.001-ga51d5fd3 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <55c0b9a5-6ba3-4582-97f0-225d0119da5d@app.fastmail.com> In-Reply-To: <9c4479a3d194450593d541ae02ad288a@AcuMS.aculab.com> References: <20231219-sam-sparc32-sunset-v3-v1-0-64bb44b598c5@ravnborg.org> <01ea8c41-88cd-4123-95c7-391640845fc3@app.fastmail.com> <9c4479a3d194450593d541ae02ad288a@AcuMS.aculab.com> Date: Wed, 20 Dec 2023 09:51:27 +0000 From: "Arnd Bergmann" To: "David Laight" , "Sam Ravnborg" , "David S . Miller" , "Andreas Larsson" Cc: "Helge Deller" , "Alexander Viro" , "Greg Kroah-Hartman" , "Alan Stern" , "Jaroslav Kysela" , "Takashi Iwai" , "sparclinux@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-usb@vger.kernel.org" , "linux-fbdev@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , "linux-sound@vger.kernel.org" Subject: Re: [PATCH 00/27] sparc32: sunset sun4m and sun4d Content-Type: text/plain On Wed, Dec 20, 2023, at 09:34, David Laight wrote: > From: Arnd Bergmann >> Sent: 20 December 2023 08:37 >> >> On Tue, Dec 19, 2023, at 22:03, Sam Ravnborg via B4 Relay wrote: >> > TODO before this can be applied: >> > - Ack from davem - as he is the principal sparc maintainer >> > - Tested-by: preferably on a target or QEMU (see above) >> > I expect bugs as there are some involved changes! >> > >> > Ideas for the future >> > - Apply the most relevant downstream Gaisler patches >> > - The ones introducing CAS should have preference as we then >> > can drop the cmpxchg emulation >> >> One note about the CAS -- as far as I can tell, the absence >> of the futex() syscall on sparc32 kernels means that no glibc >> from the past decade can work correctly as it now requires futex >> for its internal locking, though it does work on sparc64 kernels >> in compat32 mode as well as the LEON3 kernel that adds futex >> support. > > Does the glibc mutex 'fast path' also require a CAS instruction? I think that depends on whether glibc is built for a CPU with CAS or not. If it's built for 32-bit sparcv9 or leon, it should use CAS and crash on sparcv8 without CAS. If it's built for pure sparcv8, it should try to use an emulation that is incompatible with the kernel futex syscall. > Presumably having CAS also removes the 'really horrid (tm)' code > required to make all the bitmap operations atomic? Yes, but I'm not sure this is implemented in the leon3 tree. With CAS enabled, at least asm/atomic.h, asm/bitops.h, asm/cmpxchg.h and asm/spinlock.h can be implemented as efficiently as they are in the 64-bit version. > Seems a shame to lose old sparc32 support when (I think) the sun3 > in my cupboard would still work - if only it had a working psu. > (The 110/220V switch wasn't connected and the FET wasn't rated > for 450V. UK mains can be 240+10% if you are near a substation.) sun3 support has never worked upstream. There is an old series from 20 years ago that made it work but nobody ever tried to get it merged. Arnd