Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp583128lqh; Fri, 31 May 2024 09:55:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXRObRbjZtx97EsAevWcZYuvFgV2UPaTcF84QrrPFtCw4XunesbraQjCnI8tvSL7Vdlx1cjA3l8oXZnNMs+UDomzXliuLC+NnX4Azydmg== X-Google-Smtp-Source: AGHT+IFZZ3wRANUN/n4CjyFat+i5p10M3X9olCAPeykpgyCw0rVRfVVq3fQvyM8PVOzwfHwzQm3G X-Received: by 2002:a05:6512:5d0:b0:524:652e:1696 with SMTP id 2adb3069b0e04-52b896cac46mr1647326e87.60.1717174523012; Fri, 31 May 2024 09:55:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717174522; cv=pass; d=google.com; s=arc-20160816; b=vdBSAg2B7zoPXn55rwoLWGT3+isSZHMQBU8FKn3tzbIZ28ySU/r5snHZbHutZiLMjl NEoWQrCwfjCwzYVurAp0pGyA4DHw4+IkUsCySB6+IERr8iejwlbO3nZAhG/oYa8394lK CBsRQNcpWhTzBjdkEa/38tWyGs5tnFz/adzoRfxnC9lG2wR5vEKAOuo0wtzkgmq5XJ9r tSDmYQFS8nhAIYOdh/H00NU3cZ2z2AkP3DWOcJ0pf9Y2cgf4M5rmnqEkVKFDxIN5eqKB yMatdf7i+SkFsLXnZpTp4gtRWtQ9KYQgv8hW8C8IM+Sw60wWMAtFiBybe2L77cq8U48B ho8A== 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; bh=bcFV1gmFSaZ8P42U10BbRcyUHWWvHYvCLFF1kii/5w0=; fh=piSQbPXLtao4o4eSLI9hFCBeVZ83eIHqfTwhSvambz0=; b=Zr43G5P6kuS0P/dsH0FATLlCdEqHeSUZOzNTz40iKOGIgu2FKWjdhBn+tcpeQ1Jp5P B32igpnn3GiBAPxv03FYETLMQmyVmepAaegT6L0ia3+pfOBAv/rmpQpMpHiq5dcq8KU1 OMZZy90ztT+qCAlqtdIX+grlye84GnLBO0fnuPWk3QWZbyctTUGxTpUrpK7TEdyQrsRV cF6VI2CtcaBDbegHaQuft0JXUPN3qyQEZ4v72zCNLzoS/Ko//PWrE4QWHavpvaPXrTHo SccSHM/3GUg+NknfJeuF8Sj9m+08lho3xrglEbLCX2XwdXCT2jnKgfOxNsQWL7Dk+vFS RSNw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YTW0caGN; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-197199-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197199-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a67eae70aa9si108465766b.754.2024.05.31.09.55.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 09:55:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197199-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YTW0caGN; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-197199-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197199-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 am.mirrors.kernel.org (Postfix) with ESMTPS id B62B41F26F50 for ; Fri, 31 May 2024 16:55:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E100416D9AC; Fri, 31 May 2024 16:55:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="YTW0caGN" 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 17067158869; Fri, 31 May 2024 16:55:16 +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=1717174517; cv=none; b=rRpB6sEfAij3lI088nMdf2g19KXwW1KqRJb772YeUv8kXH3Ibktsa5InZB2mrSjJOfYwJHLTldUGnbPJU5WQtrfp5elcCf28VaMPL6fntJJcaZq82P4L1TjhvUGLPNXzftDFGaD4NiUjHTs1di020RczdZqhK/eohWfOt3JVGig= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717174517; c=relaxed/simple; bh=7QPWM2N9EG2WUmorU7S5Ra1EE96HYP9JbFWUpJBFO2c=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=KOK3/EhVPNnuKwaRbni713mZfmgxmXXVmk/Z3nOoXVHU7zwvTYjUyGrYN8ccMkqa6ADMwEIo06mhAdd8UVjh0sMBJIHYugyRsAqcPS2dVMVOJgMI6GHMBfGxsa99UHnqqEooay8HK9SSpKHLqOqah/QCLwYpSVZS5w62CQlf/C8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=YTW0caGN; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 32EDDC32786; Fri, 31 May 2024 16:55:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717174516; bh=7QPWM2N9EG2WUmorU7S5Ra1EE96HYP9JbFWUpJBFO2c=; h=In-Reply-To:References:Date:From:To:Cc:Subject:From; b=YTW0caGNY5ZehpMMh5y6oEmuOdXIEkaVMWA7aiNzdycLl+tW361CxiKrgMVtZoJA9 1/MMH6kPmJ4Kpu4jZrhvIX1fKiPtkJt4aCaitXP2F/uJONVdH0MhzRqgi/uotGeSVA byVf/e4VoZhJgT8qooWq52TStMUFZWxw4DRArKtenTktJJhxy0QTFShfmHKB5GujuO WbTSPquUOO0Slpogg1864L8nU1Wnd4l+SOjuhI6q1xIzUnfGaJe1pXOezsEXxcMUpR WQTea0SeluhNSLDVZl5+T8VtXEfLKjj16y10J6WswieVQh7G1yY0i3ShwHx7ZzokCf ZlOqVPIDTRlhA== Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfauth.nyi.internal (Postfix) with ESMTP id 1AD2C1200068; Fri, 31 May 2024 12:55:15 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Fri, 31 May 2024 12:55:15 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdekiedguddthecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugeskhgvrhhnvghlrdhorhhgqeenucggtf frrghtthgvrhhnpeelvefgudeiheefledttedthfffgfekudegkeelffdtiedvgfevieet teekheffveenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghrnhguodhmvghsmhhtphgruhht hhhpvghrshhonhgrlhhithihqdduvdekhedujedtvdegqddvkeejtddtvdeigedqrghrnh gupeepkhgvrhhnvghlrdhorhhgsegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i36794607:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id C8D83B60092; Fri, 31 May 2024 12:55:14 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-491-g033e30d24-fm-20240520.001-g033e30d2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <1d926855-ef1f-4cdc-bccf-2286b012c2eb@app.fastmail.com> In-Reply-To: References: <20240503081125.67990-1-arnd@kernel.org> <272a909522f2790a30b9a8be73ab7145bf06d486.camel@physik.fu-berlin.de> <4bb50dc0-244a-4781-85ad-9ebc5e59c99a@app.fastmail.com> Date: Fri, 31 May 2024 18:54:54 +0200 From: "Arnd Bergmann" To: "Linus Torvalds" , "Arnd Bergmann" Cc: "Maciej W. Rozycki" , "Paul E. McKenney" , "John Paul Adrian Glaubitz" , linux-alpha@vger.kernel.org, "Richard Henderson" , "Ivan Kokshaysky" , "Matt Turner" , "Alexander Viro" , "Marc Zyngier" , linux-kernel@vger.kernel.org, "Michael Cree" , "Frank Scheiner" Subject: Re: [PATCH 00/14] alpha: cleanups for 6.10 Content-Type: text/plain On Fri, May 31, 2024, at 18:32, Linus Torvalds wrote: > On Fri, 31 May 2024 at 08:48, Arnd Bergmann wrote: > > and the solution would be to make a __WRITE_ONCE() that then uses > "sizeof()" to decide at compile-time whether it can just do it as a > regular write, or whether it needs to do it as a LL/SC loop. Just to clarify: I did not mean to suggest we actually apply the patch from my email or anything close to it, this was meant as a demonstration for instances that are likely broken but each one would need to be individually documented if we were to try to fix them, as Maciej asked about what it would take. My "alpha: drop pre-EV56 support" actually removed two workarounds for non-BWX alphas, and neither of them even uses WRITE_ONCE, so these would also have gone unnoticed by any changes we do to WRITE_ONCE. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/include/linux/?id=a4184174be36369c3af8d937e165f28a43ef1e02 Arnd