[PATCH] Add LoongArch spinlock support in s_lock.h.

Started by zang ruochenover 3 years ago3 messageshackers
Beta feature

Hackorum builds and tests every patch posted to the lists, not only commitfest submissions. This is Hackorum's own CI rather than the PostgreSQL project's, and it is still under testing - please report anything that looks wrong.

appliessuccessCI history

You can run a PostgreSQL built from this patch straight from Docker, with no checkout and no build:

docker run --rm -p 5432:5432 ghcr.io/hackorum-dev/postgres-patch:t47926
psql -h localhost -U postgres

Built from patchset v1 (message #1), September 20, 2026 at 05:17 AM.

Every patchset is also pushed to a branch of our PostgreSQL fork, so you can check out the same tree CI built. Without a PostgreSQL checkout:

git clone --branch t47926_1 https://github.com/hackorum-dev/postgres.git

In a checkout you already have, add the fork once:

git remote add hackorum https://github.com/hackorum-dev/postgres.git

then, for this patchset and every later one:

git fetch hackorum t47926_1 && git checkout t47926_1

Patchset v1 (message #1) is on t47926_1

Jump to latest
#1zang ruochen
xmdy61@gmail.com

LoongArch is a new architecture that is already supported by linux-6.1,
gcc-12, and I want to add LoongArch spinlock support in s_lock.h.

Attachments:

t47926_1
0001-Add-LoongArch-spinlock-support-in-s_lock.h.patchtext/x-patch; charset=US-ASCII; name=0001-Add-LoongArch-spinlock-support-in-s_lock.h.patchDownload+40-1
#2Daniel Gustafsson
daniel@yesql.se
In reply to: zang ruochen (#1)
Re: [PATCH] Add LoongArch spinlock support in s_lock.h.

On 1 Jun 2023, at 09:53, zang ruochen <xmdy61@gmail.com> wrote:

LoongArch is a new architecture that is already supported by linux-6.1, gcc-12, and I want to add LoongArch spinlock support in s_lock.h.

This has been discussed a number of times, see the thread linked below for a
good starting point.

/messages/by-id/3098498.1684327050@sss.pgh.pa.us

--
Daniel Gustafsson

#3Daniel Gustafsson
daniel@yesql.se
In reply to: zang ruochen (#1)
Re: [PATCH] Add LoongArch spinlock support in s_lock.h.

On 1 Jun 2023, at 10:05, zang ruochen <xmdy61@gmail.com> wrote:

Thanks, due to my mistake, I didn't notice that someone had already submitted a patch, so please ignore my patch submission this time.

No worries, thanks for the submission and support of postgres!

--
Daniel Gustafsson