pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Add RISC-V spinlock support in s_lock.h.
7+ messages / 1 participants
[nested] [flat]

* pgsql: Add RISC-V spinlock support in s_lock.h.
@ 2021-08-13 18:00  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2021-08-13 18:00 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Add RISC-V spinlock support in s_lock.h.

Like the ARM case, just use gcc's __sync_lock_test_and_set();
that will compile into AMOSWAP.W.AQ which does what we need.

At some point it might be worth doing some work on atomic ops
for RISC-V, but this should be enough for a creditable port.

Back-patch to all supported branches, just in case somebody
wants to try them on RISC-V.

Marek Szuba

Discussion: https://postgr.es/m/dea97b6d-f55f-1f6d-9109-504aa7dfa421@gentoo.org

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/4ffbd55d9346b6a8ba391c6df9a0f692c4b61ace

Modified Files
--------------
src/include/storage/s_lock.h | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Add RISC-V spinlock support in s_lock.h.
@ 2021-08-13 18:00  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2021-08-13 18:00 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Add RISC-V spinlock support in s_lock.h.

Like the ARM case, just use gcc's __sync_lock_test_and_set();
that will compile into AMOSWAP.W.AQ which does what we need.

At some point it might be worth doing some work on atomic ops
for RISC-V, but this should be enough for a creditable port.

Back-patch to all supported branches, just in case somebody
wants to try them on RISC-V.

Marek Szuba

Discussion: https://postgr.es/m/dea97b6d-f55f-1f6d-9109-504aa7dfa421@gentoo.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c32fcac56a212b4e6bb5ba63596f60a25a18109a

Modified Files
--------------
src/include/storage/s_lock.h | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Add RISC-V spinlock support in s_lock.h.
@ 2021-08-13 18:00  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2021-08-13 18:00 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Add RISC-V spinlock support in s_lock.h.

Like the ARM case, just use gcc's __sync_lock_test_and_set();
that will compile into AMOSWAP.W.AQ which does what we need.

At some point it might be worth doing some work on atomic ops
for RISC-V, but this should be enough for a creditable port.

Back-patch to all supported branches, just in case somebody
wants to try them on RISC-V.

Marek Szuba

Discussion: https://postgr.es/m/dea97b6d-f55f-1f6d-9109-504aa7dfa421@gentoo.org

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/8024ff478ba7ef65dfe25594f36a02265faed133

Modified Files
--------------
src/include/storage/s_lock.h | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Add RISC-V spinlock support in s_lock.h.
@ 2021-08-13 18:00  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2021-08-13 18:00 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Add RISC-V spinlock support in s_lock.h.

Like the ARM case, just use gcc's __sync_lock_test_and_set();
that will compile into AMOSWAP.W.AQ which does what we need.

At some point it might be worth doing some work on atomic ops
for RISC-V, but this should be enough for a creditable port.

Back-patch to all supported branches, just in case somebody
wants to try them on RISC-V.

Marek Szuba

Discussion: https://postgr.es/m/dea97b6d-f55f-1f6d-9109-504aa7dfa421@gentoo.org

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/cdda2b247dd5c5b7bdb6cc97ff439fea716b829e

Modified Files
--------------
src/include/storage/s_lock.h | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Add RISC-V spinlock support in s_lock.h.
@ 2021-08-13 18:00  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2021-08-13 18:00 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Add RISC-V spinlock support in s_lock.h.

Like the ARM case, just use gcc's __sync_lock_test_and_set();
that will compile into AMOSWAP.W.AQ which does what we need.

At some point it might be worth doing some work on atomic ops
for RISC-V, but this should be enough for a creditable port.

Back-patch to all supported branches, just in case somebody
wants to try them on RISC-V.

Marek Szuba

Discussion: https://postgr.es/m/dea97b6d-f55f-1f6d-9109-504aa7dfa421@gentoo.org

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/48695decc27159275a10cf9e1f31bae51f311305

Modified Files
--------------
src/include/storage/s_lock.h | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Add RISC-V spinlock support in s_lock.h.
@ 2021-08-13 18:00  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2021-08-13 18:00 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Add RISC-V spinlock support in s_lock.h.

Like the ARM case, just use gcc's __sync_lock_test_and_set();
that will compile into AMOSWAP.W.AQ which does what we need.

At some point it might be worth doing some work on atomic ops
for RISC-V, but this should be enough for a creditable port.

Back-patch to all supported branches, just in case somebody
wants to try them on RISC-V.

Marek Szuba

Discussion: https://postgr.es/m/dea97b6d-f55f-1f6d-9109-504aa7dfa421@gentoo.org

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/7915a9515cfb867d34c45f564daf70888274929f

Modified Files
--------------
src/include/storage/s_lock.h | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Add RISC-V spinlock support in s_lock.h.
@ 2021-08-13 18:00  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2021-08-13 18:00 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Add RISC-V spinlock support in s_lock.h.

Like the ARM case, just use gcc's __sync_lock_test_and_set();
that will compile into AMOSWAP.W.AQ which does what we need.

At some point it might be worth doing some work on atomic ops
for RISC-V, but this should be enough for a creditable port.

Back-patch to all supported branches, just in case somebody
wants to try them on RISC-V.

Marek Szuba

Discussion: https://postgr.es/m/dea97b6d-f55f-1f6d-9109-504aa7dfa421@gentoo.org

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/582a2affa4a945f5b9c8c233e71372ee9a7aa923

Modified Files
--------------
src/include/storage/s_lock.h | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread


end of thread, other threads:[~2021-08-13 18:00 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-08-13 18:00 pgsql: Add RISC-V spinlock support in s_lock.h. Tom Lane <tgl@sss.pgh.pa.us>
2021-08-13 18:00 pgsql: Add RISC-V spinlock support in s_lock.h. Tom Lane <tgl@sss.pgh.pa.us>
2021-08-13 18:00 pgsql: Add RISC-V spinlock support in s_lock.h. Tom Lane <tgl@sss.pgh.pa.us>
2021-08-13 18:00 pgsql: Add RISC-V spinlock support in s_lock.h. Tom Lane <tgl@sss.pgh.pa.us>
2021-08-13 18:00 pgsql: Add RISC-V spinlock support in s_lock.h. Tom Lane <tgl@sss.pgh.pa.us>
2021-08-13 18:00 pgsql: Add RISC-V spinlock support in s_lock.h. Tom Lane <tgl@sss.pgh.pa.us>
2021-08-13 18:00 pgsql: Add RISC-V spinlock support in s_lock.h. Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox