[PATCH cmpxchg 0/3] Provide emulation for one-byte cmpxchg()

2024-08-05 Thread Paul E. McKenney
Hello! This series provides an emulation function for one-byte cmpxchg(), and uses it for the remaining architectures not supporting these in hardware and not providing emulation. The emulation is in terms of the fully ordered four-byte cmpxchg() that is supplied by all of these architectures. T

[PATCH cmpxchg 3/3] sh: Emulate one-byte cmpxchg

2024-08-05 Thread Paul E. McKenney
Use the new cmpxchg_emu_u8() to emulate one-byte cmpxchg() on sh. [ paulmck: Drop two-byte support per Arnd Bergmann feedback. ] [ paulmck: Apply feedback from Naresh Kamboju. ] [ Apply Geert Uytterhoeven feedback. ] Signed-off-by: Paul E. McKenney Cc: Andi Shyti Cc: Palmer Dabbelt Cc: Masami

[PATCH cmpxchg 1/3] xtensa: Emulate one-byte cmpxchg

2024-08-05 Thread Paul E. McKenney
Use the new cmpxchg_emu_u8() to emulate one-byte cmpxchg() on xtensa. [ paulmck: Apply kernel test robot feedback. ] [ paulmck: Drop two-byte support per Arnd Bergmann feedback. ] [ Apply Geert Uytterhoeven feedback. ] Signed-off-by: Paul E. McKenney Tested-by: Yujie Liu Cc: Andi Shyti Cc: Gee

[PATCH cmpxchg 2/3] ARC: Emulate one-byte cmpxchg

2024-08-05 Thread Paul E. McKenney
Use the new cmpxchg_emu_u8() to emulate one-byte cmpxchg() on arc. [ paulmck: Drop two-byte support per Arnd Bergmann feedback. ] [ paulmck: Apply feedback from Naresh Kamboju. ] [ paulmck: Apply kernel test robot feedback. ] Signed-off-by: Paul E. McKenney Cc: Vineet Gupta Cc: Andi Shyti Cc:

Re: [PATCH cmpxchg 3/3] sh: Emulate one-byte cmpxchg

2024-08-05 Thread John Paul Adrian Glaubitz
On Mon, 2024-08-05 at 12:21 -0700, Paul E. McKenney wrote: > Use the new cmpxchg_emu_u8() to emulate one-byte cmpxchg() on sh. > > [ paulmck: Drop two-byte support per Arnd Bergmann feedback. ] > [ paulmck: Apply feedback from Naresh Kamboju. ] > [ Apply Geert Uytterhoeven feedback. ] > > Signed-

Re: [PATCH cmpxchg 3/3] sh: Emulate one-byte cmpxchg

2024-08-05 Thread Paul E. McKenney
On Mon, Aug 05, 2024 at 10:13:38PM +0200, John Paul Adrian Glaubitz wrote: > On Mon, 2024-08-05 at 12:21 -0700, Paul E. McKenney wrote: > > Use the new cmpxchg_emu_u8() to emulate one-byte cmpxchg() on sh. > > > > [ paulmck: Drop two-byte support per Arnd Bergmann feedback. ] > > [ paulmck: Apply

Re: [PATCH cmpxchg 2/3] ARC: Emulate one-byte cmpxchg

2024-08-05 Thread Vineet Gupta
Hi Paul, On 8/5/24 12:21, Paul E. McKenney wrote: > Use the new cmpxchg_emu_u8() to emulate one-byte cmpxchg() on arc. > > [ paulmck: Drop two-byte support per Arnd Bergmann feedback. ] > [ paulmck: Apply feedback from Naresh Kamboju. ] > [ paulmck: Apply kernel test robot feedback. ] > > Signed-o

Re: [PATCH cmpxchg 2/3] ARC: Emulate one-byte cmpxchg

2024-08-05 Thread Paul E. McKenney
On Mon, Aug 05, 2024 at 06:27:57PM -0700, Vineet Gupta wrote: > Hi Paul, > > On 8/5/24 12:21, Paul E. McKenney wrote: > > Use the new cmpxchg_emu_u8() to emulate one-byte cmpxchg() on arc. > > > > [ paulmck: Drop two-byte support per Arnd Bergmann feedback. ] > > [ paulmck: Apply feedback from Nar

Re: [PATCH cmpxchg 2/3] ARC: Emulate one-byte cmpxchg

2024-08-05 Thread Vineet Gupta
On 8/5/24 21:28, Paul E. McKenney wrote: > On Mon, Aug 05, 2024 at 06:27:57PM -0700, Vineet Gupta wrote: >> Hi Paul, >> >> On 8/5/24 12:21, Paul E. McKenney wrote: >>> Use the new cmpxchg_emu_u8() to emulate one-byte cmpxchg() on arc. >>> >>> [ paulmck: Drop two-byte support per Arnd Bergmann fe