All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/7] Zacas/Zabha support and qspinlocks
@ 2024-05-28 15:10 ` Alexandre Ghiti
  0 siblings, 0 replies; 88+ messages in thread
From: Alexandre Ghiti @ 2024-05-28 15:10 UTC (permalink / raw)
  To: Jonathan Corbet, Paul Walmsley, Palmer Dabbelt, Albert Ou,
	Peter Zijlstra, Ingo Molnar, Will Deacon, Waiman Long, Boqun Feng,
	Arnd Bergmann, Leonardo Bras, Guo Ren, linux-doc, linux-kernel,
	linux-riscv, linux-arch
  Cc: Alexandre Ghiti

This implements [cmp]xchgXX() macros using Zacas and Zabha extensions
and finally uses those newly introduced macros to add support for
qspinlocks: note that this implementation of qspinlocks satisfies the
forward progress guarantee.

Thanks to Guo and Leonardo for their work!

Alexandre Ghiti (5):
  riscv: Implement cmpxchg32/64() using Zacas
  riscv: Implement cmpxchg8/16() using Zabha
  riscv: Implement arch_cmpxchg128() using Zacas
  riscv: Implement xchg8/16() using Zabha
  riscv: Add qspinlock support based on Zabha extension

Guo Ren (2):
  asm-generic: ticket-lock: Reuse arch_spinlock_t of qspinlock
  asm-generic: ticket-lock: Add separate ticket-lock.h

 .../locking/queued-spinlocks/arch-support.txt |   2 +-
 arch/riscv/Kconfig                            |  35 ++++++
 arch/riscv/Makefile                           |  21 ++++
 arch/riscv/include/asm/Kbuild                 |   4 +-
 arch/riscv/include/asm/cmpxchg.h              | 114 ++++++++++++++++--
 arch/riscv/include/asm/hwcap.h                |   1 +
 arch/riscv/include/asm/spinlock.h             |  39 ++++++
 arch/riscv/kernel/cpufeature.c                |   1 +
 arch/riscv/kernel/setup.c                     |  18 +++
 include/asm-generic/qspinlock.h               |   2 +
 include/asm-generic/spinlock.h                |  87 +------------
 include/asm-generic/spinlock_types.h          |  12 +-
 include/asm-generic/ticket_spinlock.h         | 105 ++++++++++++++++
 13 files changed, 336 insertions(+), 105 deletions(-)
 create mode 100644 arch/riscv/include/asm/spinlock.h
 create mode 100644 include/asm-generic/ticket_spinlock.h

-- 
2.39.2


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

end of thread, other threads:[~2024-06-03 15:31 UTC | newest]

Thread overview: 88+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-28 15:10 [PATCH 0/7] Zacas/Zabha support and qspinlocks Alexandre Ghiti
2024-05-28 15:10 ` Alexandre Ghiti
2024-05-28 15:10 ` [PATCH 1/7] riscv: Implement cmpxchg32/64() using Zacas Alexandre Ghiti
2024-05-28 15:10   ` Alexandre Ghiti
2024-05-28 15:34   ` Conor Dooley
2024-05-28 15:34     ` Conor Dooley
2024-05-29 12:20     ` Alexandre Ghiti
2024-05-29 12:20       ` Alexandre Ghiti
2024-05-30 14:43       ` Conor Dooley
2024-05-30 14:43         ` Conor Dooley
2024-05-28 18:16   ` Andrea Parri
2024-05-28 18:16     ` Andrea Parri
2024-05-28 15:10 ` [PATCH 2/7] riscv: Implement cmpxchg8/16() using Zabha Alexandre Ghiti
2024-05-28 15:10   ` Alexandre Ghiti
2024-05-28 19:31   ` Nathan Chancellor
2024-05-28 19:31     ` Nathan Chancellor
2024-05-29 12:49     ` Alexandre Ghiti
2024-05-29 12:49       ` Alexandre Ghiti
2024-05-29 15:57       ` Nathan Chancellor
2024-05-29 15:57         ` Nathan Chancellor
2024-06-03 15:31         ` Alexandre Ghiti
2024-06-03 15:31           ` Alexandre Ghiti
2024-05-28 23:54   ` Andrea Parri
2024-05-28 23:54     ` Andrea Parri
2024-05-29 12:29     ` Alexandre Ghiti
2024-05-29 12:29       ` Alexandre Ghiti
2024-05-29 12:55       ` Alexandre Ghiti
2024-05-29 12:55         ` Alexandre Ghiti
2024-05-28 15:10 ` [PATCH 3/7] riscv: Implement arch_cmpxchg128() using Zacas Alexandre Ghiti
2024-05-28 15:10   ` Alexandre Ghiti
2024-05-28 15:10 ` [PATCH 4/7] riscv: Implement xchg8/16() using Zabha Alexandre Ghiti
2024-05-28 15:10   ` Alexandre Ghiti
2024-05-28 15:22   ` Conor Dooley
2024-05-28 15:22     ` Conor Dooley
2024-05-29  6:15     ` Alexandre Ghiti
2024-05-29  6:15       ` Alexandre Ghiti
2024-05-28 18:00   ` Andrea Parri
2024-05-28 18:00     ` Andrea Parri
2024-05-29  8:04     ` Alexandre Ghiti
2024-05-29  8:04       ` Alexandre Ghiti
2024-05-28 15:10 ` [PATCH 5/7] asm-generic: ticket-lock: Reuse arch_spinlock_t of qspinlock Alexandre Ghiti
2024-05-28 15:10   ` Alexandre Ghiti
2024-05-28 15:10 ` [PATCH 6/7] asm-generic: ticket-lock: Add separate ticket-lock.h Alexandre Ghiti
2024-05-28 15:10   ` Alexandre Ghiti
2024-05-28 15:10 ` [PATCH 7/7] riscv: Add qspinlock support based on Zabha extension Alexandre Ghiti
2024-05-28 15:10   ` Alexandre Ghiti
2024-05-29  0:55   ` Andrea Parri
2024-05-29  0:55     ` Andrea Parri
2024-05-31 13:37     ` Alexandre Ghiti
2024-05-31 13:37       ` Alexandre Ghiti
2024-05-31 15:52       ` Andrea Parri
2024-05-31 15:52         ` Andrea Parri
2024-06-01  6:18         ` Guo Ren
2024-06-01  6:18           ` Guo Ren
2024-06-03  0:41           ` Andrea Parri
2024-06-03  0:41             ` Andrea Parri
2024-05-29  9:23   ` Guo Ren
2024-05-29  9:23     ` Guo Ren
2024-05-29 13:03     ` Alexandre Ghiti
2024-05-29 13:03       ` Alexandre Ghiti
2024-05-30  1:54       ` Guo Ren
2024-05-30  1:54         ` Guo Ren
2024-05-30  5:30         ` Alexandre Ghiti
2024-05-30  5:30           ` Alexandre Ghiti
2024-05-31  1:57           ` Guo Ren
2024-05-31  1:57             ` Guo Ren
2024-05-31  6:22             ` Alexandre Ghiti
2024-05-31  6:22               ` Alexandre Ghiti
2024-05-31  6:42               ` Guo Ren
2024-05-31  6:42                 ` Guo Ren
2024-06-03  9:21                 ` Alexandre Ghiti
2024-06-03  9:21                   ` Alexandre Ghiti
2024-06-03 11:11                   ` Guo Ren
2024-06-03 11:11                     ` Guo Ren
2024-05-31 13:10       ` Guo Ren
2024-05-31 13:10         ` Guo Ren
2024-06-03  9:49         ` Alexandre Ghiti
2024-06-03  9:49           ` Alexandre Ghiti
2024-06-03 11:28           ` Guo Ren
2024-06-03 11:28             ` Guo Ren
2024-06-03 11:34             ` Alexandre Ghiti
2024-06-03 11:34               ` Alexandre Ghiti
2024-06-03 11:44               ` Guo Ren
2024-06-03 11:44                 ` Guo Ren
2024-06-03 11:49                 ` Alexandre Ghiti
2024-06-03 11:49                   ` Alexandre Ghiti
2024-06-03 11:57                   ` Guo Ren
2024-06-03 11:57                     ` Guo Ren

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.