Skip to content

ARC: spinlocks/atomics rework

Vineet Gupta lkml 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 1 replyIn review
  2. v16 patches 14 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6Revert "ARCv2: STAR 9000837815 workaround hardware exclusive transactions livelock"arch/arc/include/asm/atomic.h+2 -120 replies
2/6ARC: refactor atomic inline asm operands with symbolic namesarch/arc/include/asm/atomic.h+17 -150 replies
3/6ARC: LLOCK/SCOND based spin_lockarch/arc/include/asm/spinlock.h+69 -70 replies
4/6ARC: LLOCK/SCOND based rwlockarch/arc/include/asm/spinlock.h arch/arc/include/asm/spinlock_types.h+166 -100 replies
5/6ARCv2: spinlock/rwlock/atomics: Delayed retry of failed SCOND with exponential backoffarch/arc/Kconfig arch/arc/include/asm/atomic.h arch/arc/include/asm/spinlock.h +1 more+347 -40 replies
6/6ARCv2: spinlock/rwlock: Reset retry delay when starting a new spin-wait cyclearch/arc/include/asm/spinlock.h+3 -30 replies

Reviews trailers per patch

None of the 6 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPeter Zijlstra (Intel)
SeriesA-b
1/6
2/6
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/6] ARC: spinlocks/atomics rework

The PREFETCHW workaround for llock/scond livelock was not sufficient after all and we had to do some work there. Extending testing of quad core FPGA builds shows things pretty stable, whereas w/o patches some of the LTP tests (shm_open/23-1) would cause the system to go bonkers.

Changes since v1* (all thx to Peter Zijlstra)

* 3/6 - updated changelog
* 4/6 - updated changelog
arch_write_unlock() need not use LLOCK/SCOND
* 5/6 - Conditional implementation of SCOND_FAIL_RETRY* in atomics (reduced dup) Handle overflow of delay counter in SCOND_FAIL_RETRY_ASM
* 6/6 - updated changelog

[*] http://lkml.kernel.org/r/[email protected]

Vineet Gupta (6):
Revert "ARCv2: STAR 9000837815 workaround hardware exclusive
transactions livelock"
ARC: refactor atomic inline asm operands with symbolic names
ARC: LLOCK/SCOND based spin_lock
ARC: LLOCK/SCOND based rwlock
ARCv2: spinlock/rwlock/atomics: Delayed retry of failed SCOND with
exponential backoff
ARCv2: spinlock/rwlock: Reset retry delay when starting a new
spin-wait cycle

 arch/arc/Kconfig                      |   5 +
 arch/arc/include/asm/atomic.h         |  79 +++--
 arch/arc/include/asm/spinlock.h       | 539 +++++++++++++++++++++++++++++++++-
 arch/arc/include/asm/spinlock_types.h |   2 +
 arch/arc/kernel/setup.c               |   4 +
 5 files changed, 591 insertions(+), 38 deletions(-)
Signature · 1 line
1.9.1