| From: | YANG Xudong <yangxudong(at)ymatrix(dot)cn> |
|---|---|
| To: | pgsql-hackers(at)lists(dot)postgresql(dot)org |
| Cc: | wengyanqing(at)ymatrix(dot)cn |
| Subject: | [PATCH] Add loongarch64 native spin lock. |
| Date: | 2023-05-17 08:49:05 |
| Message-ID: | 2d5ac8b9-f720-095a-a7a8-74b526ce83bd@ymatrix.cn |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi,
This patch set tries to add loongarch64 native spin lock to postgresql.
- [PATCH 1/2] implements a loongarch64 native spin lock.
- [PATCH 2/2] fixes s_lock_test to make it runnable via `make check'.
The patch set is tested on my Loongson 3A5000 machine with Loong Arch
Linux and GCC 13.1.0 with default ./configure with no options.
Output of `make check' in src/backend/storage/lmgr is attached.
See:
[1]:
https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html#atomic-memory-access-instructions
[2]:
https://github.com/torvalds/linux/blob/f1fcbaa18b28dec10281551dfe6ed3a3ed80e3d6/arch/loongarch/include/asm/cmpxchg.h#L12
----
YANG Xudong
| Attachment | Content-Type | Size |
|---|---|---|
| 0001-Implement-loongarch64-native-spinlock-with-TAS.patch | text/plain | 1.5 KB |
| 0002-Make-s_lock_test-work.patch | text/plain | 1.6 KB |
| output.txt | text/plain | 2.7 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tomas Vondra | 2023-05-17 08:59:02 | Re: Add LZ4 compression in pg_dump |
| Previous Message | Michael Paquier | 2023-05-17 08:14:42 | Re: Autogenerate some wait events code and documentation |