Re: [v1 05/24] eal/loongarch: add spinlock operations for LoongArch

2022-05-29 Thread zhoumin
Stephen, Thanks for your comments! I'm evaluating the generic code of spinlock on std atomics of LoongArch toolchain. An updated patch will come later. On 2022/5/28 下午11:54, Stephen Hemminger wrote: On Sat, 28 May 2022 17:32:52 +0800 Min Zhou wrote: This patch adds spinlock operations for L

Re: [v1 05/24] eal/loongarch: add spinlock operations for LoongArch

2022-05-28 Thread Stephen Hemminger
On Sat, 28 May 2022 17:32:52 +0800 Min Zhou wrote: > This patch adds spinlock operations for LoongArch architecture. > These implementations refer to GLIBC pthread_spin_xxlock(). The > underlying implementation is based on LoongArch atomic > instructions (ie, AMSWAP_DB.W). > > Signed-off-by: Min

[v1 05/24] eal/loongarch: add spinlock operations for LoongArch

2022-05-28 Thread Min Zhou
This patch adds spinlock operations for LoongArch architecture. These implementations refer to GLIBC pthread_spin_xxlock(). The underlying implementation is based on LoongArch atomic instructions (ie, AMSWAP_DB.W). Signed-off-by: Min Zhou --- lib/eal/loongarch/include/rte_spinlock.h | 93 +++