Re: [PATCH] ARC: atomics: Implement arch_atomic64_cmpxchg using _relaxed

2025-06-09 Thread Jason Gunthorpe
On Sun, Apr 27, 2025 at 07:34:55PM -0700, Vineet Gupta wrote: > Thx for this. > > FWIW I missed the cmpxchg API when the rest of atomics were relaxed in commit > 301014cf6d728 ("ARC: atomic_cmpxchg/atomic_xchg: implement relaxed variants") > > Added to ARC for-curr (for next) I'm looking at v6.1

Re: [PATCH] ARC: atomics: Implement arch_atomic64_cmpxchg using _relaxed

2025-04-27 Thread Vineet Gupta
On 4/8/25 10:22, Jason Gunthorpe wrote: > The core atomic code has a number of macros where it elaborates > architecture primitives into more functions. ARC uses > arch_atomic64_cmpxchg() as it's architecture primitive which disable alot > of the additional functions. > > Instead provide arch_cmpxc

[PATCH] ARC: atomics: Implement arch_atomic64_cmpxchg using _relaxed

2025-04-08 Thread Jason Gunthorpe
The core atomic code has a number of macros where it elaborates architecture primitives into more functions. ARC uses arch_atomic64_cmpxchg() as it's architecture primitive which disable alot of the additional functions. Instead provide arch_cmpxchg64_relaxed() as the primitive and rely on the cor