Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1898972lqz; Tue, 2 Apr 2024 00:29:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXUm+HlxdGUzAD+MpeB1ZpZwqOrPDu1B/fUf/5QdwpVwl5EekU/kvNOq68QP+JAlO4kwsRziWQWK2NrqTTDZcKXDH8w78M+fQFkjqjWbA== X-Google-Smtp-Source: AGHT+IGP8/vJOqLdY2L4xs05pqFVNbYElnxvb+x88PGk0nrCIdDnqCGDX0geyQeOurucDjOvjv11 X-Received: by 2002:a81:8747:0:b0:607:ec79:4db0 with SMTP id x68-20020a818747000000b00607ec794db0mr11292727ywf.48.1712042968299; Tue, 02 Apr 2024 00:29:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712042968; cv=pass; d=google.com; s=arc-20160816; b=yvcXjb64fsrBS33+l3/Db0erUzurb9r+6pEbHlTjZxIu2CGQNkuJd1iKjTJuTEoZCo oYJZC+I2zcYxGaPorXBqDAf9SSjzZsBWoRvDI58qAi/ypdbL2xLxSN3mLwiJSa790xmp IvJO/1fehhLoGFGpRmcEkkTYydJ2dvMR6ZRjOXcceQOkfBNbYXaCGWV6xoUwhfEpvmGp D+uqB/D6WlbV9jevcgNSTPKFEaW550pYUUOeSmsoMkAvA/vxEZVFVd4slO+slwWjT2m6 FWd0fVViZbJOLbl1KSknBxcyec1LchPSREJ2a9//zSPbTf4wjoBxtu1e/iKN/4ndqxpg FpIQ== ARC-Message-Signature: i=2; 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:dkim-signature; bh=Z3cnle4iwCd+R40QeP2L9ykcUKNwkO+w8K/xqqDQtp0=; fh=khec7XHT63AWIwmbm694dIno/kZSEr7K91usnoxYjOE=; b=rXKEeUxcN81bnB3SeLD0kcSavMX0atMDRIM0gnQi2IIVncuGVywNMk0u2OQxYpk1tO ECeEPr6KftxLUoas5eR0tFCRsA3nTdPUc8YWBYpel7izTd5QF0BX9KjcFZ4URS/Izn9h aI9k7peqp7AQO/UhRrTJXV+zRn5KDdjBvd47IDHRVuoAHWXLXrWvHyVSl4m/ss81BLdn XjFVavPmsPWuKnHAk924NF7mEp6O0wKH5homMUvqurq2IZudleIm01VwE42tB6o6J/3Y UbPRVgSMMB7mp9AZ1WVm56psrSYeAhN74J+k+J9TR/lvpoYzpgF/2kCmsfoYu8/PCC2b V69Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=YP+bATBr; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=VqXZOvZV; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-127504-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127504-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id j1-20020a37ef01000000b0078a3a2db433si11183498qkk.144.2024.04.02.00.29.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 00:29:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-127504-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=@arndb.de header.s=fm1 header.b=YP+bATBr; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=VqXZOvZV; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-127504-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127504-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de 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 0CDA61C22080 for ; Tue, 2 Apr 2024 07:29:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 932573AC2B; Tue, 2 Apr 2024 07:29:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="YP+bATBr"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="VqXZOvZV" Received: from wfhigh7-smtp.messagingengine.com (wfhigh7-smtp.messagingengine.com [64.147.123.158]) (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 15C0B39AD5 for ; Tue, 2 Apr 2024 07:29:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.158 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712042962; cv=none; b=NvnSTJAOpuxPBwV8aJE17X/6hWEMyFrym+Jb50qbAh8NAJua1m3qQUGhNPX6Xt4PWQOI9lOjpE0NxMAk4l5elrC7zFa+PdOtjlEy32K1Uh9TiUU+xFAC1BcNxDktfKO2nl+X7e2e+X2VrucXrR+Cqd1ZFOgTPg4KSUdqoge9yU0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712042962; c=relaxed/simple; bh=dy5mf8wUaHiqNi7xt+mivTQz6gs6CRe4j2Tyv8PSl80=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=jvIRlWZex9MkdgaR1umoPI2yKJfxyvdIvIxLHXsxkiOAJA6rcLKiAsebn0Ilg0PW+Obzsh/g8wxMGZPZ9c7KfW1fIjQNc7cWfalm1wS3+CMOKc//crOML7xZXIjtSwWr0zeF7G/eTMe9NvMVWglK+IjaDAr1myfEm8IQmXzucxA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=YP+bATBr; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=VqXZOvZV; arc=none smtp.client-ip=64.147.123.158 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfhigh.west.internal (Postfix) with ESMTP id 65C7E1800098; Tue, 2 Apr 2024 03:29:19 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Tue, 02 Apr 2024 03:29:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1712042958; x=1712129358; bh=Z3cnle4iwC d+R40QeP2L9ykcUKNwkO+w8K/xqqDQtp0=; b=YP+bATBrsyQeAIkFtRnRwAGGMq 1WaPOm97FXC15NQUBgq77zouHMaAcB+C2Y65YfUBEPNJcvL5aBiHycuMJcryp8Df QuyztGfet9MJGyYmwHxl9ClEwEk0kHv6Gxl/SH/ZP0ggRwbL9Jj3Q4g3us3N6IOs y5MMtkfyD37s4+CFPUINCVlY9ZyaCxLHT3KSIub+0yHS/DP8d5R3OAk5yFoaeySd IVmNRaOS29Cb+VjQA/i0HZhtWMjieienCk5UKMuaR6tE43c7F5MtZEYWZfHf1+dG XICHxGB6zzzpxfgMfoCmBxgb8q0SXUmCGs+tkUbs7dkXLuCAZIYozE2p360A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1712042958; x=1712129358; bh=Z3cnle4iwCd+R40QeP2L9ykcUKNw kO+w8K/xqqDQtp0=; b=VqXZOvZVNplobqxv/mqHa/NWJIW/+0hDMy0fVIM17FVa jmajIIs2mOTnz8RdJmUVyNtMf5vFtnAou7w/wIyUbSElbgFPjEoSHC9G/7LDoQqR RsfmYu7fwtETMiiFka0UsCi75jwNkCr//dw/bFIGBM8dyTacPUjar5/qvQcZaWsM rYKzroPfWhzDjNBwo9TqNIXiFh0KLp1ecA4iE59Dd7W3ObCDGz2nCrIJQ/0CivfJ FSLdMLJxVIb0rm+YmKuOi4dPM8jNHgq+zJ6W9cYqQ4J83i5u1K6Q8hXzPMtVGEgX 09UsHpsjW1RoH2E9udTGSpTEaCLvmUj9UMfMPww3Xg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudefuddguddvudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrg htthgvrhhnpeevhfffledtgeehfeffhfdtgedvheejtdfgkeeuvefgudffteettdekkeeu feehudenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomheprghrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 2678FB6008D; Tue, 2 Apr 2024 03:29:18 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-333-gbfea15422e-fm-20240327.001-gbfea1542 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: In-Reply-To: <20240402042835.11815-3-viro@zeniv.linux.org.uk> References: <20240402041138.GF538574@ZenIV> <20240402042835.11815-1-viro@zeniv.linux.org.uk> <20240402042835.11815-3-viro@zeniv.linux.org.uk> Date: Tue, 02 Apr 2024 09:28:57 +0200 From: "Arnd Bergmann" To: "Alexander Viro" , "Paul E. McKenney" Cc: 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} Content-Type: text/plain 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. Arnd