Re: [PATCH] Add loongarch native checksum implementation.

2023-07-25 Thread YANG Xudong
Many thanks to huchangqi. Now we have loongarch64 support for both old world ABI and new world ABI on the buildfarm! Forwarded Message Subject: Re: [PATCH] Add loongarch native checksum implementation. Date: Tue, 25 Jul 2023 15:51:43 +0800 From: huchangqi To: YANG Xudong

Re: [PATCH] Add loongarch native checksum implementation.

2023-07-25 Thread YANG Xudong
On 2023/7/26 11:16, Michael Paquier wrote> The performance numbers presented upthread for the CRC computations are kind of nice in this environment, but honestly I have no idea how much this architecture is used. Perhaps that's only something in China? I am not seeing much activity around that

Re: [PATCH] Add loongarch native checksum implementation.

2023-08-07 Thread YANG Xudong
Thanks for the comment. I have updated the patch to v3. Please have a look. On 2023/8/7 19:01, John Naylor wrote: On Fri, Jun 16, 2023 at 8:28 AM YANG Xudong <mailto:yangxud...@ymatrix.cn>> wrote: > > +# If the intrinsics are supported, sets pgac_loongarch_crc32c_intrinsic

Re: [PATCH] Add loongarch native checksum implementation.

2023-08-08 Thread YANG Xudong
On 2023/8/8 14:38, John Naylor wrote: It seems that platforms capable of running Postgres only support 64 bit. I think so. > So I guess using aligned memory access is necessary and I have updated > the comment in the code. Okay, so it's not "necessary" in the sense that it's illegal,

[PATCH] Add loongarch64 native spin lock.

2023-05-17 Thread YANG Xudong
linux/blob/f1fcbaa18b28dec10281551dfe6ed3a3ed80e3d6/arch/loongarch/include/asm/cmpxchg.h#L12 YANG XudongFrom fe4fb3c9b8027a3e9664e8e99ac78dec4c4ef83d Mon Sep 17 00:00:00 2001 From: YANG Xudong Date: Wed, 17 May 2023 16:21:45 +0800 Subject: [PATCH 1/2] Implement loongarch64 native spinlock with TAS. --- src/inclu

Re: [PATCH] Add loongarch64 native spin lock.

2023-05-17 Thread YANG Xudong
Thanks for the information. I checked the assembly code of __sync_lock_test_and_set generated by GCC for loongarch64. It is exactly the same as this patch. I guess this patch is not necessary any more. Regards On 2023/5/17 20:37, Tom Lane wrote: YANG Xudong writes: This patch set tries

[PATCH] Add loongarch native checksum implementation.

2023-06-07 Thread YANG Xudong
6ccee980a42f1706094a51fa146c55edc3adfbb1 Mon Sep 17 00:00:00 2001 From: YANG Xudong Date: Thu, 8 Jun 2023 13:22:03 +0800 Subject: [PATCH] Add loongarch native checksum implementation. --- config/c-compiler.m4 | 34 ++ configure | 118 +++-- configure.ac

Re: [PATCH] Add loongarch native checksum implementation.

2023-06-13 Thread YANG Xudong
Attached a new patch with fixes based on the comment below. On 2023/6/13 18:26, John Naylor wrote: On Thu, Jun 8, 2023 at 12:24 PM YANG Xudong <mailto:yangxud...@ymatrix.cn>> wrote: > > This patch tries to add loongarch native crc32 check with crcc.* > instruct

Re: [PATCH] Add loongarch native checksum implementation.

2023-06-15 Thread YANG Xudong
Updated the patch based on the comments. On 2023/6/15 18:30, John Naylor wrote: On Wed, Jun 14, 2023 at 9:20 AM YANG Xudong <mailto:yangxud...@ymatrix.cn>> wrote: > > Attached a new patch with fixes based on the comment below. Note: It's helpful to pass "-v"

Re: [PATCH] Add loongarch native checksum implementation.

2023-07-04 Thread YANG Xudong
Is there any other comment? If the patch looks OK, I would like to update its status to ready for committer in the commitfest. Thanks! On 2023/6/16 09:28, YANG Xudong wrote: Updated the patch based on the comments. On 2023/6/15 18:30, John Naylor wrote: On Wed, Jun 14, 2023 at 9:20 AM

Re: [PATCH] Add loongarch native checksum implementation.

2023-07-06 Thread YANG Xudong
iated. Thanks! -Original Messages- From: "YANG Xudong" Send time:Wednesday, 07/05/2023 10:15:51 To: "John Naylor" Cc: pgsql-hackers@lists.postgresql.org, wengyanq...@ymatrix.cn, wang...@ymatrix.cn Subject: Re: [PATCH] Add loongarch native checksum implementation. I