openrisc.lists.librecores.org archive mirror
 help / color / mirror / Atom feed
From: Heiko =?unknown-8bit?q?St=C3=BCbner?= <heiko@sntech.de>
To: openrisc@lists.librecores.org
Subject: [PATCH v4 5/7] RISC-V: Move to generic spinlocks
Date: Wed, 04 May 2022 14:02:44 +0200	[thread overview]
Message-ID: <3428595.iIbC2pHGDl@diego> (raw)
In-Reply-To: <20220430153626.30660-6-palmer@rivosinc.com>

Am Samstag, 30. April 2022, 17:36:24 CEST schrieb Palmer Dabbelt:
> From: Palmer Dabbelt <palmer@rivosinc.com>
> 
> Our existing spinlocks aren't fair and replacing them has been on the
> TODO list for a long time.  This moves to the recently-introduced ticket
> spinlocks, which are simple enough that they are likely to be correct
> and fast on the vast majority of extant implementations.
> 
> This introduces a horrible hack that allows us to split out the spinlock
> conversion from the rwlock conversion.  We have to do the spinlocks
> first because qrwlock needs fair spinlocks, but we don't want to pollute
> the asm-generic code to support the generic spinlocks without qrwlocks.
> Thus we pollute the RISC-V code, but just until the next commit as it's
> all going away.
> 
> Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>

on riscv64+riscv32 qemu, beaglev and d1-nezha

Tested-by: Heiko Stuebner <heiko@sntech.de>



  reply	other threads:[~2022-05-04 12:02 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-30 15:36 [OpenRISC] [PATCH v4 0/7] Generic Ticket Spinlocks Palmer Dabbelt
2022-04-30 15:36 ` [OpenRISC] [PATCH v4 1/7] asm-generic: ticket-lock: New generic ticket-based spinlock Palmer Dabbelt
2022-05-04 11:57   ` Heiko =?unknown-8bit?q?St=C3=BCbner?=
2022-05-05  3:30     ` Guo Ren
2022-04-30 15:36 ` [OpenRISC] [PATCH v4 2/7] asm-generic: qspinlock: Indicate the use of mixed-size atomics Palmer Dabbelt
2022-05-04 12:02   ` Heiko =?unknown-8bit?q?St=C3=BCbner?=
2022-05-05 11:05     ` Arnd Bergmann
2022-04-30 15:36 ` [OpenRISC] [PATCH v4 3/7] asm-generic: qrwlock: Document the spinlock fairness requirements Palmer Dabbelt
2022-04-30 15:36 ` [OpenRISC] [PATCH v4 4/7] openrisc: Move to ticket-spinlock Palmer Dabbelt
2022-04-30 15:36 ` [OpenRISC] [PATCH v4 5/7] RISC-V: Move to generic spinlocks Palmer Dabbelt
2022-05-04 12:02   ` Heiko =?unknown-8bit?q?St=C3=BCbner?= [this message]
2022-05-05  3:21     ` Guo Ren
2022-05-05 13:00   ` Conor.Dooley
2022-04-30 15:36 ` [OpenRISC] [PATCH v4 6/7] RISC-V: Move to queued RW locks Palmer Dabbelt
2022-05-04 12:03   ` Heiko =?unknown-8bit?q?St=C3=BCbner?=
2022-05-05  3:20     ` Guo Ren
2022-05-05 13:00   ` Conor.Dooley
2022-04-30 15:36 ` [OpenRISC] [PATCH v4 7/7] csky: Move to generic ticket-spinlock Palmer Dabbelt
2022-05-05 11:09 ` [PATCH v4 0/7] Generic Ticket Spinlocks Arnd Bergmann
2022-05-06 14:34   ` Palmer Dabbelt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3428595.iIbC2pHGDl@diego \
    --to=heiko@sntech.de \
    --cc=openrisc@lists.librecores.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).