Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1839242lqz; Mon, 1 Apr 2024 21:18:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX4UCkCJ/oGnBgorLfgJq6bVHP+ylcxh6Os13g09dNIeBA3CPlyMr4efhf1meObKY6NoWZ0XhHIpKSYKsRLvUubXHDTPRCwAQpVlRiPfA== X-Google-Smtp-Source: AGHT+IGgMHwl9fXs0GXI+OTUj6g3/DRL6lft7d4P3QM0Nx0kVtDailAtemNGoMU/yKtXiQBQWu9X X-Received: by 2002:a05:620a:5816:b0:78b:e8f8:660 with SMTP id wm22-20020a05620a581600b0078be8f80660mr2626744qkn.11.1712031530578; Mon, 01 Apr 2024 21:18:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712031530; cv=pass; d=google.com; s=arc-20160816; b=FtyhWzoHVdpJiNtrJaN32XKyAWSMmzYGnZ4xh9oJQlXpyAL+Vc//RpUL3kTu/2WHU6 jjFILDmX++GOX3lGF8m5UotxlszQTHmaqWq726LFEbXSriRqgu5kYMhOzISWJ4SNhdOn nFmN7P+M36MmLydGM2Wi7cD96KNNWSVWxHMAl06ylLK3PGnB5i+jF/mDXOXOq/oJ5fR0 9SLnt1OXZWt51cEw/0LGvqapt2yc7mM74mDpl1dVXCENUdFex07OHjpQkcKR8nIRSRJ/ ALePB4FxllHtBvYU6cEDyUczZuDn6qkSbh1dwGTYK0093A/h/7lYwUN60Jc2OsOOkF66 I23Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=TERRtsW761fJ6e+U/94rkxqsZtVmzIjTW+7O3H6WrcA=; fh=2zpta7jx/AjBQm4eotK0CeGLdp7kvYJ6D7bvwF0q1nk=; b=ZLqS59b+NurruQcCZ+VgFVIu1R4SzDau+BlgDr4awCMR9fsqI8OgmfA/y228Joh3Iw wf7w9P+5WhhewqoAiQCCrEOKvOl2qDVMkdI+4aO5NPZQg9YnfZOvzEGHxQ1tGwdSeR61 0459d0rcQzPLXwd+E8u2DJDbzw8gKabNf1ha3rx2Nr9xtLHqh7Z44v6LuqxcHWuX5Rfd xgPJhJMxuxFxaN3L5dhYGQKs2+5AbXSl6gwDDZRJjA7M07mrOsBn7Rtxi7MqSWZ4EMtg VO1UQerqW3Egq+BuQ9f2dp+vMV5Yg+s5Bm0YjfouGukLLdGIQtpzEzwZ7M8SXlOgAiyD qQpg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rBeVOwbD; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-127365-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127365-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id z4-20020a05620a08c400b00789e7ecd60esi10731110qkz.719.2024.04.01.21.18.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 21:18:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-127365-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rBeVOwbD; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-127365-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127365-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 4D66F1C21EB1 for ; Tue, 2 Apr 2024 04:18:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9329517732; Tue, 2 Apr 2024 04:18:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="rBeVOwbD" 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 BFF14F9DF for ; Tue, 2 Apr 2024 04:18:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712031522; cv=none; b=qiClQ7buQs3yO6fBR8/K5MTuRNmQKQG8mdQqa4ce3qX8lOlOzokzhy6XhPuuyhq8FwGu3blfXiiFKltiyU+pa/uoYt702DduHOKIaE3ZlRQws9zCT+KK766d+DsQKCZudPIwc3g3vzIasL4fzzLW0llNH4pDjFVdwKuqME/x+OQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712031522; c=relaxed/simple; bh=iHHfKFn/5YWAKVFaluAiBITG9Vbff9SyBx/lFMADkjc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=EFW2zbbddXoBq04qO9DSbVkXgXVCZiOqR/p+dRLilfF4s4D131oBsm5dYVMz0aDKFw5JZ4rcPHpT9MRxks0qRYsJoCl9f5Fi7lO05SlBVfZfpHxDwX0Il5l685inOgVsVfrLtbvMzWqQqH9nQsv0aMItf8lLe1FeJR1jmtrorC0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=rBeVOwbD; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4C5ABC433F1; Tue, 2 Apr 2024 04:18:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712031522; bh=iHHfKFn/5YWAKVFaluAiBITG9Vbff9SyBx/lFMADkjc=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=rBeVOwbDfvG6XgxgzC4ASd9Zjgii20pcrbltnb453ZEtg777ILHY15EZ3GYCz3oA2 kFQsJUAODAxbuRXG958u9SrqqKnGET8QpNut9E/7wFD9qOcR4TdtNrSt94sSqnkI9f L2WkrDxSAKsBTqeEUgtdzNk9I4gKYLSIF2jgxYJYT5ManSDVE3QU8NG1idxjXoWSAS jqCwlvUDCPXV/Z7CvVDh8zxwCKU5FRzQn7nk4bJBtbldj/jaKdsEaquznGurdwfGF3 NwC6F4I6e7kv8Sco17GbBwR8Kfh+cInZBHryx63Duyrwh1c+kZDBX5aoaOrhDGhGK7 VdBYuQsL6Cuew== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 0767DCE074C; Mon, 1 Apr 2024 21:18:42 -0700 (PDT) Date: Mon, 1 Apr 2024 21:18:42 -0700 From: "Paul E. McKenney" To: Al Viro Cc: linux-kernel@vger.kernel.org, kernel-team@meta.com, "David S. Miller" , Andreas Larsson , Palmer Dabbelt , Arnd Bergmann , Marco Elver Subject: Re: [PATCH RFC cmpxchg 2/8] sparc: Emulate one-byte and two-byte cmpxchg Message-ID: Reply-To: paulmck@kernel.org References: <31c82dcc-e203-48a9-aadd-f2fcd57d94c1@paulmck-laptop> <20240401213950.3910531-2-paulmck@kernel.org> <20240401223803.GZ538574@ZenIV> <114dc62e-e0fb-41c8-bf9c-a9fda8b19eb6@paulmck-laptop> <20240402000758.GC538574@ZenIV> <20240402033753.GE538574@ZenIV> <20240402041138.GF538574@ZenIV> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240402041138.GF538574@ZenIV> On Tue, Apr 02, 2024 at 05:11:38AM +0100, Al Viro wrote: > On Tue, Apr 02, 2024 at 04:37:53AM +0100, Al Viro wrote: > > On Tue, Apr 02, 2024 at 01:07:58AM +0100, Al Viro wrote: > > > > > It does, IIRC. > > > > > > > Would you like to do that patch? If so, I would be happy to drop mine > > > > in favor of yours. If not, could I please have your Signed-off-by so > > > > I can do the Co-developed-by dance? > > > > > > Will do once I dig my way from under the pile of mail (sick for a week > > > and subscribed to l-k, among other lists)... > > > > FWIW, parisc is in the same situation - atomics-by-cached-spinlocks. > > 've a candidate branch, will post if it survives build... > > Seems to survive. See > git://git.kernel.org:/pub/scm/linux/kernel/git/viro/vfs.git misc.cmpxchg > > Completely untested; builds on several configs, but that's it. > Al Viro (8): > sparc32: make __cmpxchg_u32() return u32 > sparc32: make the first argument of __cmpxchg_u64() volatile u64 * > sparc32: unify __cmpxchg_u{32,64} > sparc32: add __cmpxchg_u{8,16}() and teach __cmpxchg() to handle those sizes > parisc: __cmpxchg_u32(): lift conversion into the callers > parisc: unify implementations of __cmpxchg_u{8,32,64} > parisc: add missing export of __cmpxchg_u8() > parisc: add u16 support to cmpxchg() > > arch/parisc/include/asm/cmpxchg.h | 16 ++++++------ > arch/parisc/kernel/parisc_ksyms.c | 2 ++ > arch/parisc/lib/bitops.c | 52 ++++++++++++------------------------- > arch/sparc/include/asm/cmpxchg_32.h | 11 +++++--- > arch/sparc/lib/atomic32.c | 45 ++++++++++++++------------------ > 5 files changed, 55 insertions(+), 71 deletions(-) > > Individual patches in followups. Very good, thank you! I will take yours in place of mine on my next rebase. Thanx, Paul