Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1432411lqm; Thu, 2 May 2024 14:59:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVltGEZrRHS+Jp/YGAKkHty4Vib7QxbIdqxt8XsBBAYYRUGdz1y79DOjc27c4S7LepOOOXxBkhMKkeEuspl46MOWUP7Of8xVMAH/ceyzQ== X-Google-Smtp-Source: AGHT+IEPtA2vieM/wiXFHQUndtAKJ8Yqo4XdIqf43m0PZQ2cXgRYn7merQ3Ei314jbA9fkmpNuCG X-Received: by 2002:a17:902:da8d:b0:1eb:3df4:e63b with SMTP id j13-20020a170902da8d00b001eb3df4e63bmr1277355plx.7.1714687151548; Thu, 02 May 2024 14:59:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714687151; cv=pass; d=google.com; s=arc-20160816; b=TSZO2gCWvoCtPCXLjOEFGLa3jr1Fev2p3B1usAoBARdzDIIg/jZbqgCsYCAaP7luAZ KAAvd5JGkP09w4G2/+MgIS4vNkjuY0vY6kcQtRysEuOx3F4a6BOGSZ1j/QImtRiqLiKV RI002mH+Ff4HMcD6aB7E/qz02xWoXKc/+NQogSxprh9aRa+WKHieiRUQb/oFmr77gi/J jzV0kxIDhebaPNaMperF0i2hQ34ufHDua7WkRjZqZAjuhyIaTqiaLcwMQFmbhnYlSjJM QWsOiI0KIy1pjkY7o/wyASiYHe3jE0prk6xdSg36UzrWRVFHZ9aSd8tW5NMY7nCLr8Im MZOQ== 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=2xEr8h3gVEJjoI3V/19V222CsfqNzPh7c1A+pTfcW+0=; fh=rooVBoq3IByris9FIG9wOy7CA2mReRd+5mdNHQ29L6U=; b=L18IaIxcgt0UGqzwar8k3RsHp5dVK1A6iRIMeR/Ouh9jqrmsy5pZWgk2lMdJrCvODs lHOQGP96rRj7UIRZJ9qSzbbDAELftp+xDyzwhwKeJIHH2zbSqvCxCRNzd0HICEo7XtS2 zwdayBEjqa+/34gEYXIsc6lacm0nJ32+gLxc4Sx9zRJUNPrObrzLV15iVaEYv8jA1iVk mGlNmgaF4lCQw3471lwVDW8HEg2CIJiUDbF4J0x9PrAzTFEswbshKItxGfyZbpaNjKNw Zq6Gnx5CAHpmlJ59XsfKDVtHv8hn1H0r0OFIgAXybUwI+PXsLXRW7le4cm6/P4evr2Ip oIOg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=XpEDIhln; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=dqYcEfBJ; 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-166983-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166983-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id b2-20020a170903228200b001ec37be9ba0si1762400plh.623.2024.05.02.14.59.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 14:59:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166983-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=XpEDIhln; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=dqYcEfBJ; 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-166983-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166983-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 28A88B237CC for ; Thu, 2 May 2024 21:50:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 84D551DDC5; Thu, 2 May 2024 21:50:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="XpEDIhln"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="dqYcEfBJ" Received: from fhigh1-smtp.messagingengine.com (fhigh1-smtp.messagingengine.com [103.168.172.152]) (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 BE5F51DDF8; Thu, 2 May 2024 21:50:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.152 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714686647; cv=none; b=He13dzGMDOzlyHIZp5WoEFLP1/QRV+AxMWWhCBwt6pKCGujUdL3PXuZfX+4X7oj2paazXkAc4WzweGoLhkapDS/SN1MHuO27qHksQLZkaW7ZPCwvBpTMQqo9d8GmpjIu7JWkvP3knwIzth1RlU+WpJ704SoQnkTOAy0JOSZVito= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714686647; c=relaxed/simple; bh=Jed1AV3CR49t4uVWxKmzdIyhNPvwZTczj+PGto7SL0U=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=ZJ4/cVJHZHvkAHIWDQq1eGBfrsFmPmBgYtdiExaWRinCEUDwXL2JgyoJYvMICl+UmbQAE7i6uft7eKGZkotuAVwHv/iArnkOQHh+Edit3KtVTpPDgk1GGTZ2vvTaBWDszXD/8sPS/liAzzZwVF0OGWIgujX1cJKcfS5MAMVqr6g= 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=XpEDIhln; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=dqYcEfBJ; arc=none smtp.client-ip=103.168.172.152 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.nyi.internal (Postfix) with ESMTP id B8A15114019D; Thu, 2 May 2024 17:50:43 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Thu, 02 May 2024 17:50:43 -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=fm2; t=1714686643; x=1714773043; bh=2xEr8h3gVE JjoI3V/19V222CsfqNzPh7c1A+pTfcW+0=; b=XpEDIhlnx+gGfH5QINmQXyIC1o pQFGmEXk/ULgFP3Js0Q0bKj8GYAVG9I544Hq30Y6jonL54NKwZQQtL11WD+SJcnB yz8EBYLyXl0cvtdQLa9etSzJAhJ0hoB6BKmj/qJLoPw4htv7CrO4UfakihPPRdMd C+ZMTDOMRxLeHEtqNNeCWzDBCHRWV3We6NTyseBe5x/w5p9ZBOY6fZE80WBwMks8 jUSvSXPQQDWBigS7eteelP178i3IQdntfxaLHZOFIhSCySg/9/s9ikUC178Ijci0 52KActs94Iqx4gxOr8aalrIN8WLd5J1c+ST/fikWm9/2AFyu8g9PtQgqXOIw== 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= fm3; t=1714686643; x=1714773043; bh=2xEr8h3gVEJjoI3V/19V222CsfqN zPh7c1A+pTfcW+0=; b=dqYcEfBJj+XlXwR4w5HyWGrjeevy3Xlmyyx+4eVMZo/s 8lyPE+uQFIRvpCVQSCds9pfdU9SAumLlCN+8ErTurQzMLvZAc6MKOkEQeLtiPy3N 4Yk5/zOELWUjbvvjqYuoT+ICJmkzUnqQ40i/5ySV77Qkcfbkj6ArxbMJ8GyiKCTU CfewxGVzhP/raBsQbC6v7ajQja0uUW61nYrLU+Ws6eciLK1sncJsHbdaN4vMCNom JNliaqgFZUxdBdzZRX5wxGqVIekjRZAy/WTV9fgkcO/8JzXKlxLHkXBPHlvWXZoq zFtYXPDYhvfdFUlbdvg75MzNxbPoTpvhHe35CpAr0Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdduledgtdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepvefhffeltdegheeffffhtdegvdehjedtgfekueevgfduffettedtkeekueef hedunecuffhomhgrihhnpehkvghrnhgvlhdrohhrghenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id B1E5BB6008D; Thu, 2 May 2024 17:50:42 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-417-gddc99d37d-fm-hotfix-20240424.001-g2c179674 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <989112a7-c12a-40be-9c0d-e516880380ad@app.fastmail.com> In-Reply-To: <9a4e1928-961d-43af-9951-71786b97062a@paulmck-laptop> References: <20240501230130.1111603-12-paulmck@kernel.org> <1376850f47279e3a3f4f40e3de2784ae3ac30414.camel@physik.fu-berlin.de> <6f7743601fe7bd50c2855a8fd1ed8f766ef03cac.camel@physik.fu-berlin.de> <9a4e1928-961d-43af-9951-71786b97062a@paulmck-laptop> Date: Thu, 02 May 2024 23:50:21 +0200 From: "Arnd Bergmann" To: "Paul E. McKenney" , "John Paul Adrian Glaubitz" Cc: Linux-Arch , linux-kernel@vger.kernel.org, "Marco Elver" , "Andrew Morton" , "Thomas Gleixner" , "Peter Zijlstra" , "Doug Anderson" , "Petr Mladek" , "Linus Torvalds" , kernel-team@meta.com, "Andi Shyti" , "Palmer Dabbelt" , "Masami Hiramatsu" , linux-sh@vger.kernel.org, "Alexander Viro" Subject: Re: [PATCH v2 cmpxchg 12/13] sh: Emulate one-byte cmpxchg Content-Type: text/plain On Thu, May 2, 2024, at 15:33, Paul E. McKenney wrote: > On Thu, May 02, 2024 at 07:11:52AM +0200, John Paul Adrian Glaubitz wrote: >> On Wed, 2024-05-01 at 22:06 -0700, Paul E. McKenney wrote: >> > > Does cmpxchg_emu_u8() have any advantages over the native xchg_u8()? >> > >> > That would be 8-bit xchg() rather than 8-byte cmpxchg(), correct? >> >> Indeed. I realized this after sending my reply. > > So this one-byte-only series affects only Alpha systems lacking > single-byte load/store instructions. If I understand correctly, Alpha > 21164A (EV56) and later *do* have single-byte load/store instructions, > and thus are still just fine. In fact, it looks like EV56 also has > two-byte load/store instructions, and so would have been OK with > the original one-/two-byte RFC series. Correct, the only other architecture I'm aware of that is missing 16-bit load/store entirely is ARMv3. > Arnd will not be shy about correcting me if I am wrong. ;-) I'll take this as a reminder to send out my EV4/EV5 removal series. I've merged my patches with Al's bugfixes and rebased all on top of 6.9-rc now. It's a bit late now, so I'll send this tomorrow: https://git.kernel.org/pub/scm/linux/kernel/garch/alpha/include/asm/cmpxchg.hit/arnd/asm-generic.git/log/?h=alpha-cleanup-6.9 Arnd