Re: [RFC PATCH 2/2] riscv/atomic: Strengthen implementations with fences

2018-03-05 Thread Andrea Parri
On Mon, Mar 05, 2018 at 07:24:36PM +0100, Andrea Parri wrote: > Atomics present the same issue with locking: release and acquire > variants need to be strengthened to meet the constraints defined > by the Linux-kernel memory consistency model [1]. > > Atomics present a further issue: implementatio

[RFC PATCH 2/2] riscv/atomic: Strengthen implementations with fences

2018-03-05 Thread Andrea Parri
Atomics present the same issue with locking: release and acquire variants need to be strengthened to meet the constraints defined by the Linux-kernel memory consistency model [1]. Atomics present a further issue: implementations of atomics such as atomic_cmpxchg() and atomic_add_unless() rely on L