Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2300253lqz; Tue, 2 Apr 2024 13:02:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVhpuK2AzMRE4NybNZVWk6Q1zF9oKihLimCk14teHgZ33wfuRiERbq4cWaXEqJBKiS6p7aAmoUJvCZA8QdKG+XhMvFIaiPwK+9L8Z9G7w== X-Google-Smtp-Source: AGHT+IGnL+fYe4HPuEpHMDpTo4vFQH5J0kE4/A/zxJDv0zIdKPaZ0zaMAVhGCcH6RPkESnd6OaeJ X-Received: by 2002:a17:903:2443:b0:1e2:616a:9c39 with SMTP id l3-20020a170903244300b001e2616a9c39mr4353648pls.4.1712088152921; Tue, 02 Apr 2024 13:02:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712088152; cv=pass; d=google.com; s=arc-20160816; b=RGriSUk+tZJ6DhCjTv+nruiHB/GVgq3QHcoxf9h/wqm5ZY65eKWQwgYIlSBZJrWOul //q2PiNFTk3ZBC/Fvwpi2AP0hA1/NBIrEdy+VTL8R3Ez3XcCNxcY901r01KVpMxVyHeS KRlcU9EoDkI83oagoSjVDI7D5C41UcW/Edn71X/4b7FhdultQPi+dDi2udt7qUlZJss1 VW9HovkfbpvynEE+cxTuqVn3NzA4M49/LVbS3/aycK/aWYGmu8zXJTFu8+a5JsEJx5t4 fpuGaUh3xW+PVQU1OdN/K51+LFtUCe90ZjhKGXQ1A5h3mPxd2GgONxmDtW/JZw+lCfeQ JHDQ== 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=hDmoq0V2XNlCEWMS30UozUTyYOaccA7Z/EXXO9U/dGY=; fh=exFN2DjqW4NQHTBvzNrDBFhhcL9wCMcPwvox2Sa3x5o=; b=z384M2n5uqpjvRXNdaOeuLlRp1AguRRRDhEKUC0Ie0HweQcgvgzEJxXwD2zWX5hSAa v6DIyJTGgtPneOYjNdi0e7/dOtJHA6nIBMdvIzJwxwxoDD+rLbur7FOZNVEM489SDxc6 nYFT1yh2lJiQYPKpucpSmRmMTQt6mT52MY/twpKLOFNjyZKGcwZH2m2tqTEV09h4fYyB PXKyMzFn/m7T+hmK7pUaTEZB5JR64RvXygaFYEd8Wq9xEAhEETWK3fq0FbPij8oxegzH DartgF7t131IzbVjf221sOA5ZOfrZaZi2TxHrqb5rZ2almASaS3xwtssaSvhkCrJP9Gj MxzQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=n5ZqBuXN; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-128628-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128628-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id k16-20020a170902d59000b001e0afe33809si12616199plh.96.2024.04.02.13.02.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 13:02:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-128628-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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=n5ZqBuXN; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-128628-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128628-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8F09A28AE86 for ; Tue, 2 Apr 2024 20:02:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C28DC15CD64; Tue, 2 Apr 2024 20:02:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="n5ZqBuXN" 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 E3F2F15AAA1 for ; Tue, 2 Apr 2024 20:02:26 +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=1712088147; cv=none; b=RkYuHbent7p9Z6bo2J1ZkiuMaR8bzOAkfInoXYGXhSHza8zmlPI3higoyHOkM2JoF3cnChLSDiH1Rk1TuaW8djPMEYik0uX/oeBQD18YxYAaGdoqah0e28f9kfS0vVT59ZyxvN0145d9lT+P8VvAkyEvB5ug5qYLqGm7r9XvTeY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712088147; c=relaxed/simple; bh=/SrKFwRHrNxDQO6a2zBh8+17zL5ihRA+vx0wtBRVDCM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jANtZgGymXdCLDEU50yOUzSuA6VQqWctXVVc08icsdn+i1ai6K1l5q/fygFz18HL4QjrIcKDK7Nmuwvk+gbmV49D/vEF9b8WipoyQTcPX5pQQlTw2gVF6zCC8FMSUA127oa5q2JbfB1etaCaJD9oMJ9aV8U4ZedcZ9b/Iu9QSpc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=n5ZqBuXN; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7C287C433C7; Tue, 2 Apr 2024 20:02:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712088146; bh=/SrKFwRHrNxDQO6a2zBh8+17zL5ihRA+vx0wtBRVDCM=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=n5ZqBuXNeXDQvAQIy8wj0daxR6A1qOp77/7EPpbeV11SSaRN+vw3lTut8Sltcs/rm JlwwjBJKnL+d/rsU6SvVeKVSqj+SGCR3iNiAGpqqF/qQkcWZT4/CdY4xJxylEScBS5 e0MXtwvXpN83fnudUsaWTjI9sM/60HZsZGF5HrJICQf7vpeSnPTu/R+4V1W0taU/6I s5z7Ie2cm7DiqKt2lbVpqEYvBM3k3HJBAE48x890RMLCQseAL6CXUbJS3EnaHtZlVi Oowt31G1RBvl0iOaBvhnaVyts9GL7GOxtUU6VXsXKmvSRgjsfLU273HZcm42hNjYTk xkat3lV7rIbZw== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 2347ECE0FF2; Tue, 2 Apr 2024 13:02:26 -0700 (PDT) Date: Tue, 2 Apr 2024 13:02:26 -0700 From: "Paul E. McKenney" To: Arnd Bergmann Cc: Alexander Viro , linux-kernel@vger.kernel.org, kernel-team@meta.com, "David S . Miller" , Andreas Larsson , Palmer Dabbelt , Marco Elver Subject: Re: [PATCH 3/8] sparc32: unify __cmpxchg_u{32,64} Message-ID: Reply-To: paulmck@kernel.org References: <20240402041138.GF538574@ZenIV> <20240402042835.11815-1-viro@zeniv.linux.org.uk> <20240402042835.11815-3-viro@zeniv.linux.org.uk> 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: On Tue, Apr 02, 2024 at 09:28:57AM +0200, Arnd Bergmann wrote: > On Tue, Apr 2, 2024, at 06:28, Al Viro wrote: > > Add a macro that expands to one of those when given u32 or u64 > > as an argument - atomic32.c has a lot of similar stuff already. > > > > Signed-off-by: Al Viro > > I think we should merge Sam's series to remove non-CAS sparc32 > first: > > https://lore.kernel.org/all/20240309-sunset-v2-0-f09912574d2c@ravnborg.org/ > > I don't see a patch yet to actually change cmpxchg() to use CAS, > but it can probably just share the sparc64 implementation at > that point. Fair points! In the meantime, I pulled in Al's patches for both sparc and parisc. If I leave out sparc support, I am inducing build failures on sparc in RCU code. I do not feel comfortable pulling in Sam's series. One approach is for me to push in the emulation and uses as they are accepted, and modify from there. Another approach would be for me to add KCSAN annotation to RCU's current open-coded one-byte emulation and let things play out from there. A third would be for us all to deadlock on each other. My preference is the first approach. But what would work better? Thanx, Paul