Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp447275rdb; Wed, 20 Dec 2023 01:44:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IE/JRO+gZ3WMK+NQ9XF9WazNAas0uCMulWXLP1mzh5soR7miHUM7xbptQdrqqoJqtQMzHYf X-Received: by 2002:a05:6358:33a5:b0:170:f4b1:a422 with SMTP id i37-20020a05635833a500b00170f4b1a422mr13077769rwd.26.1703065446606; Wed, 20 Dec 2023 01:44:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703065446; cv=none; d=google.com; s=arc-20160816; b=bNB+bJ7Ei56zJo4ivU9RBNvRSXG4VW313sDb9YYuPr9WPHmH5lEQmCu+mVZf3XRVar 0shzJ1A3MHXlPYeRFL/8ZT3Hz4mGkqJRtb6Tu5mgZWQiziFY/tPuPDxaMfikFsLYWcaw k8L7yyDpQumKEAyHOnVru1YIT1o2noQHPsfOtHjeBGxatf/hm5xdM4tQHjKzOrEjBRET 4jE4f9E3jCJHz6HdJVjsIjHg2SZcUnc2HD1k+3/gxq0/qjkCbRzxgplar4MED3H1TfUn NgTJfABE3z8kgSZ/7+tiShnJluwGnvjQXe9p9KYisSaXAYjK8U+ntcVWIH4yRS5QBND3 uzkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:cc:to:from; bh=/QbR7m2B4HI+J3uUihHu1smrPpctsOZEC17zH6y8exM=; fh=FHxqusGB+ycA9rapHJUp3F3sglR+VJhTQaiNqSPneO4=; b=s7IB9gbwSoXwo4JG/FU/F8o/Q9gGnjrSfmo/zQadfVq76VTavv0fd03DHK5K/zvaqE wyRg2JQPok4HZHtFv0R+oF6ocArIs8gshn0UDH5zHE3y1FtvGHy/YUlwgdYC7HcyDMUL J4u+rVMYxOPHK/YP1UGem3OU05iiWc9hjggL/RNqT+weIVfoKGDp4XS4WfOuLP5CmMgq 3bOFw6q5KShbMj2Jf8iLX95tZF84L5IrX9qZAVx8NPf7idT+UQEMT0h268emcEI/zjjV XIm5rSiUjtYWJCs9ZLMqm6uJ9bYtJ573UyuM516jRSAdpzFUsgCnhUF4oJKhu8C/82JV yuWw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-6643-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6643-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id lb15-20020a17090b4a4f00b0028bd5958fb7si839145pjb.114.2023.12.20.01.44.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 01:44:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6643-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-6643-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6643-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 3621D288BF5 for ; Wed, 20 Dec 2023 09:34:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8F0611F613; Wed, 20 Dec 2023 09:34:29 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.86.151]) (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 ADFA01F5FF for ; Wed, 20 Dec 2023 09:34:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ACULAB.COM Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=aculab.com Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with both STARTTLS and AUTH (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-101-Y1C4lIceNx-saF_MBkMcPQ-1; Wed, 20 Dec 2023 09:34:24 +0000 X-MC-Unique: Y1C4lIceNx-saF_MBkMcPQ-1 Received: from AcuMS.Aculab.com (10.202.163.4) by AcuMS.aculab.com (10.202.163.4) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Wed, 20 Dec 2023 09:34:09 +0000 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.048; Wed, 20 Dec 2023 09:34:09 +0000 From: David Laight To: 'Arnd Bergmann' , 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 Thread-Topic: [PATCH 00/27] sparc32: sunset sun4m and sun4d Thread-Index: AQHaMx+ySWwYagj4Uk6uFCxcDCifEbCx5d1w Date: Wed, 20 Dec 2023 09:34:09 +0000 Message-ID: <9c4479a3d194450593d541ae02ad288a@AcuMS.aculab.com> References: <20231219-sam-sparc32-sunset-v3-v1-0-64bb44b598c5@ravnborg.org> <01ea8c41-88cd-4123-95c7-391640845fc3@app.fastmail.com> In-Reply-To: <01ea8c41-88cd-4123-95c7-391640845fc3@app.fastmail.com> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable From: Arnd Bergmann > Sent: 20 December 2023 08:37 >=20 > 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 >=20 > 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? Presumably having CAS also removes the 'really horrid (tm)' code required to make all the bitmap operations atomic? 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.) =09David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1= PT, UK Registration No: 1397386 (Wales)