Re: [PATCH v2 1/3] LoongArch: Fix the semantic of 16B CAS

2025-09-08 Thread Xi Ruoyao
On Fri, 2025-09-05 at 08:50 +0800, Lulu Cheng wrote: > > 在 2025/9/4 下午7:48, Lulu Cheng 写道: > > > > 在 2025/8/22 下午4:14, Xi Ruoyao 写道: > > > In a CAS operation, even if expected != *memory we still need to > > > do an > > > atomic load of *memory into output.  But I made a mistake in the > > > init

Re: [PATCH v2 1/3] LoongArch: Fix the semantic of 16B CAS

2025-09-05 Thread Lulu Cheng
在 2025/8/22 下午4:14, Xi Ruoyao 写道: In a CAS operation, even if expected != *memory we still need to do an atomic load of *memory into output. But I made a mistake in the initial implementation, causing the output to contain junk in this situation. Like a normal atomic load, the atomic load emb

Re: [PATCH v2 1/3] LoongArch: Fix the semantic of 16B CAS

2025-09-04 Thread Lulu Cheng
在 2025/9/4 下午7:48, Lulu Cheng 写道: 在 2025/8/22 下午4:14, Xi Ruoyao 写道: In a CAS operation, even if expected != *memory we still need to do an atomic load of *memory into output.  But I made a mistake in the initial implementation, causing the output to contain junk in this situation. Like a nor

[PATCH v2 1/3] LoongArch: Fix the semantic of 16B CAS

2025-08-22 Thread Xi Ruoyao
In a CAS operation, even if expected != *memory we still need to do an atomic load of *memory into output. But I made a mistake in the initial implementation, causing the output to contain junk in this situation. Like a normal atomic load, the atomic load embedded in the CAS semantic is required