LKML Archive mirror
 help / color / mirror / Atom feed
From: "Paul E. McKenney" <paulmck@kernel.org>
To: torvalds@linux-foundation.org
Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org,
	linux-csky@vger.kernel.org, kernel-team@meta.com,
	viro@zeniv.linux.org.uk, elver@google.com,
	akpm@linux-foundation.org, tglx@linutronix.de,
	peterz@infradead.org, dianders@chromium.org, pmladek@suse.com,
	arnd@arndb.de, yujie.liu@intel.com, guoren@kernel.org
Subject: [GIT PULL] Native and emulated one-byte cmpxcha()g for v6.10
Date: Sun, 12 May 2024 10:28:33 -0700	[thread overview]
Message-ID: <a03cbcce-ac01-46e7-9fd5-c4f0b782c8df@paulmck-laptop> (raw)

Hello, Linus,

Please pull the following cmpxchg()-related changes:

  git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git tags/cmpxchg.2024.05.11a
  # HEAD: 5800e77d88c0cd98bc10460df148631afa7b5e4d: csky: Emulate one-byte cmpxchg (2024-05-11 07:07:07 -0700)

Please note that the commit and tag are quite recent.  However, the
only change was to add the architecture maintainer'a ack.  The exact
same change (other than the ack) has been in -next for quite some time.

Of course, if you would prefer that this exact commit be in -next for a
decent interval, please let me know and I will be happy to re-send this
pull request after a few days in -next.

----------------------------------------------------------------
sparc32,parisc,csky: Provide one-byte and two-byte cmpxchg() support

This series provides native one-byte and two-byte cmpxchg() support
for sparc32 and parisc, courtesy of Al Viro.  This support is provided
by the same hashed-array-of-locks technique used for the other atomic
operations provided for these two platforms.

This series also provides emulated one-byte cmpxchg() support for csky
using a new cmpxchg_emu_u8() function that uses a four-byte cmpxchg()
to emulate the one-byte variant.

Similar patches for emulation of one-byte cmpxchg() for arc, sh, and
xtensa have not yet received maintainer acks, so they are slated for
the v6.11 merge window.

----------------------------------------------------------------
Al Viro (8):
      sparc32: make __cmpxchg_u32() return u32
      sparc32: make the first argument of __cmpxchg_u64() volatile u64 *
      sparc32: unify __cmpxchg_u{32,64}
      sparc32: add __cmpxchg_u{8,16}() and teach __cmpxchg() to handle those sizes
      parisc: __cmpxchg_u32(): lift conversion into the callers
      parisc: unify implementations of __cmpxchg_u{8,32,64}
      parisc: add missing export of __cmpxchg_u8()
      parisc: add u16 support to cmpxchg()

Paul E. McKenney (2):
      lib: Add one-byte emulation function
      csky: Emulate one-byte cmpxchg

 arch/Kconfig                        |  3 +++
 arch/csky/Kconfig                   |  1 +
 arch/csky/include/asm/cmpxchg.h     | 10 +++++++
 arch/parisc/include/asm/cmpxchg.h   | 22 +++++++---------
 arch/parisc/kernel/parisc_ksyms.c   |  2 ++
 arch/parisc/lib/bitops.c            | 52 ++++++++++++-------------------------
 arch/sparc/include/asm/cmpxchg_32.h | 20 +++++++-------
 arch/sparc/lib/atomic32.c           | 45 ++++++++++++++------------------
 include/linux/cmpxchg-emu.h         | 15 +++++++++++
 lib/Makefile                        |  1 +
 lib/cmpxchg-emu.c                   | 45 ++++++++++++++++++++++++++++++++
 11 files changed, 133 insertions(+), 83 deletions(-)
 create mode 100644 include/linux/cmpxchg-emu.h
 create mode 100644 lib/cmpxchg-emu.c

             reply	other threads:[~2024-05-12 17:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-12 17:28 Paul E. McKenney [this message]
2024-05-13 17:27 ` [GIT PULL] Native and emulated one-byte cmpxcha()g for v6.10 pr-tracker-bot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a03cbcce-ac01-46e7-9fd5-c4f0b782c8df@paulmck-laptop \
    --to=paulmck@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=arnd@arndb.de \
    --cc=dianders@chromium.org \
    --cc=elver@google.com \
    --cc=guoren@kernel.org \
    --cc=kernel-team@meta.com \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-csky@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peterz@infradead.org \
    --cc=pmladek@suse.com \
    --cc=tglx@linutronix.de \
    --cc=torvalds@linux-foundation.org \
    --cc=viro@zeniv.linux.org.uk \
    --cc=yujie.liu@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).