Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp365832lqb; Tue, 4 Jun 2024 13:52:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUGgt85wlB9VM6TEddjUbLRP+rPwDWUV09WQiR1B7tC9V6fQhAIVAYCEV1490lRt+qO1KNFLDFrA3XSCkuKvEpknS8l6IUgV0lB49LH8g== X-Google-Smtp-Source: AGHT+IGODSFzte97yzJ9WdQbVA3IAL5C0NJOXtZ/cygEqdd7eMl+OdeHgM9ajGl9TbBZ3cNos2O9 X-Received: by 2002:a05:6214:5b06:b0:6af:c873:8e70 with SMTP id 6a1803df08f44-6b030a810f3mr3880356d6.44.1717534363769; Tue, 04 Jun 2024 13:52:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717534363; cv=pass; d=google.com; s=arc-20160816; b=vwaHy3JSUt/WoUsSZKKxXTc4MhsQyG/fOlhXjnp6x410/89Q06m/nOpUad2VmJtboX mHcZcdfCDFiEobIJLcPncAnx5mDBV0qHVA2r1lqihLmWgmGIXXm/ZS4AUxVjZ1RHj0tx bOd9BmG6UrQPzL5GGRl17NhJiOoFN3uZlXazPWDkQp26KHBsBtcFWF2wBKFY8NyQfKK/ xrUSmaUyYOGaZZq3iM2QIgsNQJvn4WwxcBcS7uq4nAaVYKdq/2WgrXAyHpuslz+c3AL5 bjbt3Nz7Mw7lC0eI2UpCBSI49oo721ZT2DIcvMKo3RhHNczItdpagPhHQdB1IOcH7maE RrwQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=2jC9d73OOtgTNGntmuaDsfT65a7uzZs0IHtC3nuFuas=; fh=zfRInFdkSswt8k8VrY8WjgVNsDt/9zvmSqjD235+BWs=; b=DBfYTroEhv37AvWQKJ+VyhSmdKPxFfrdaV++/GG8IPjWKRUfJTZOk8CqrixafEGWPE aMDTBy5HrAWij8xs0+/dzJBcY0+kcZ5XeGNqITrsNOvhmtu76bXFdGwoEggSA+7KlrH+ //5NEbdewiduMETE3+KvnlV7u9ts0Iz5zGyxQHeqRSRcjNb04X+t0qFs56ZFBOFpc70D MD+u5YLJllp9vCanudYlJemPKh2bsx+OAQeSYBaVvhmFUsAWAX63p/AlO5Ky188w9dr+ 7Cxv5kqoZmwIeD4sq/nA4dpxtoh2LnYWzkyOyk4ClD6Tp6BfWPji9jjPh8fm7x9ZraL/ kZNQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cByaJ4hu; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-201364-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201364-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6ae4b417ca5si24957006d6.404.2024.06.04.13.52.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 13:52:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201364-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cByaJ4hu; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-201364-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201364-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 7FCD11C24A13 for ; Tue, 4 Jun 2024 20:52:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7A4FF14BFB1; Tue, 4 Jun 2024 20:52:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="cByaJ4hu" Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com [209.85.208.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 114E914B97D for ; Tue, 4 Jun 2024 20:52:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717534358; cv=none; b=JHXECmTrKtKtW8+mNVeXIGrhxz7t7MXIDrpqFXvJOd1GHKyxn4yPhqfxFX0qVl9jocGQrEZI+STcCicSLnHCRGz457CUNCow9hj7Id0jnsN1SE8uFJuohdcbJE1yrsTFUDoWa5PZTjNnSUJCw2sEFimGwHS1GnhylPUkexCGu6M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717534358; c=relaxed/simple; bh=lTzurSuy+sTB/+xYz5UJ7uXansp4aRLe290h4X7ZcIo=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=ePiSj/QCEeu2MVEw4EVxpSB5JMLUKtX0VIceVpgxwcjlKi4lU+TdQyQg75WFpkiYF/+BHQytpga1cZ4ORM76B6Vt/OHUZMhOdAEneQeVr/gEDnlD/uggr8sac3tGrMDXxtPTwmQgQobJEmkfX2XnIL0kNKC397g9moIX+s+xhGc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=cByaJ4hu; arc=none smtp.client-ip=209.85.208.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lj1-f182.google.com with SMTP id 38308e7fff4ca-2eaa80cb573so47634691fa.1 for ; Tue, 04 Jun 2024 13:52:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717534355; x=1718139155; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=2jC9d73OOtgTNGntmuaDsfT65a7uzZs0IHtC3nuFuas=; b=cByaJ4huHfZnXZr0pxTONQs0aU/8ApI19YUWHZnXjOeblsqQ0OK5Ck6Ks29xk1PWsh M98Dk3+Uv6Bk+jOoa8RpqpsZZVbyEwieIrVJOEDA0zgLe6VS+yNzpAp6Ix6hMKZMNzCK FKtOxTRXn+Bi7ZoUYuuc2wtfWrVTbrakwWM84TTmgmyd5RVWByktYeM0a6ovtp2xI9Gl 2Cz67ijDKIAPWfhtDMCGmO73/hScSAMSyPLNasPJSRKI7a0wDM8ul/I0kmVelc+tX3AK pDMRssoHoitvaCXG4wIL7kEFiO8e7Ilf2Cen+++JXTjZ+Trk1qKhhAfAZj0JxE9nDBv4 GuFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717534355; x=1718139155; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2jC9d73OOtgTNGntmuaDsfT65a7uzZs0IHtC3nuFuas=; b=hDvpuOP2pl/GcJQ8p+q46LOrSjrbVr52g3eIaojbEMmsBsPUw1NUjaBPxFJtXxOkvp IxqMI6Jl1NOGw1JqA0zPWTl1mwulIGDbWd9PNm6AzkTDd+GVKodGoEAOQ0GirDi2I3Md 15zv1St3oONB5p79ILZXD2CGl8/F/pohmCkDjr1GrtkmX/KxmvRRFz6SRNj77hmTpvix jkDk8vYprpeJntnw6DZW0yRBdy+PZLMO++tcnochDLznAw7prw0Llc2wm+xNnxfBm+oA hS/myPBoAdcAg1JpR6L93WYSYzKkCMIIMSK8vjXb/mm0f9cDINFs12j2MuSW1RcY0znf FtlQ== X-Forwarded-Encrypted: i=1; AJvYcCVC2L42aCqDcLngztKuJa5p3Oq1dnbBVuFximGNF1FDWlGOCDXkobiGAS1jVOdHfrBNvOtrdY2YtMvzM2LR7JnEOjN0WdTKg866mnWz X-Gm-Message-State: AOJu0YwTDa8uDQ8vbl4jvvR0n0rEGKV71IUdF++B3bCGXWUCtIOIiI+8 5VV+Zgakk1GcV8qVAwo8pRhBYtECxD+1xWZNtVCzaK35BJc6XsV5gWLhObDRpd/3AS4pWPYNgfU Rz4woYWKctT3/5jhBNHZ0LknTZwn9Prpt40Gfdw== X-Received: by 2002:a05:651c:210a:b0:2e6:be3c:9d37 with SMTP id 38308e7fff4ca-2eac79c2ea9mr2458351fa.14.1717534355187; Tue, 04 Jun 2024 13:52:35 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <1dee481f-d584-41d6-a5f1-d84375be5fe8@paulmck-laptop> <20240604170437.2362545-4-paulmck@kernel.org> In-Reply-To: <20240604170437.2362545-4-paulmck@kernel.org> From: Linus Walleij Date: Tue, 4 Jun 2024 22:52:23 +0200 Message-ID: Subject: Re: [PATCH v3 cmpxchg 4/4] ARM: Emulate one-byte cmpxchg To: "Paul E. McKenney" Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@meta.com, elver@google.com, akpm@linux-foundation.org, tglx@linutronix.de, peterz@infradead.org, dianders@chromium.org, pmladek@suse.com, torvalds@linux-foundation.org, arnd@arndb.de, Mark Brown , Naresh Kamboju , Nathan Chancellor , "Russell King (Oracle)" , Andrew Davis , Eric DeVolder , Rob Herring , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Paul, thanks for your patch! This caught my eye: On Tue, Jun 4, 2024 at 7:04=E2=80=AFPM Paul E. McKenney wrote: > Use the new cmpxchg_emu_u8() to emulate one-byte cmpxchg() on ARM systems > with ARCH < ARMv6K. ARCH =3D=3D ARMv6. This ARCH < ARMv6K comes from inversion of the the a bit terse comment for ifndef CONFIG_CPU_V6, which means "out of the post-v6 CPUs, the following applies to those > V6". The code in the patch, IIUC make use of cmpxchg_emu_u8() if and only if the CPU is V6. > -#ifndef CONFIG_CPU_V6 /* min ARCH >=3D ARMv6K */ > +#ifdef CONFIG_CPU_V6 /* min ARCH < ARMv6K */ This is now a set with one member so this comment should say: /* ARCH =3D=3D ARMv6 */ After this change. Yours, Linus Walleij