arm64: support for 8.1 LSE atomic instructions
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest20 patches 0 repliesNew
- v118 patches 0 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/20 | arm64: rwlocks: don't fail trylock purely due to contentionarch/ | +8 | 1 reply | |
| 2/20 | documentation: Clarify failed cmpxchg memory ordering semanticsDocumentation/ Documentation/ | +6 | 1 reply | |
| 2/20 | documentation: Clarify failed cmpxchg memory ordering semantics | +0 | 1 reply | |
| 2/20 | documentation: Clarify failed cmpxchg memory ordering semantics | +0 | 0 replies | |
| 3/20 | arm64: cpufeature.h: add missing #include of kernel.harch/ | +2 | 1 reply | |
| 4/20 | arm64: atomics: move ll/sc atomics into separate header filearch/ arch/ | +207 | 1 reply | |
| 5/20 | arm64: elf: advertise 8.1 atomic instructions as new hwcaparch/ arch/ | +15 | 1 reply | |
| 6/20 | arm64: alternatives: add cpu feature for lse atomicsarch/ arch/ | +3 | 1 reply | |
| 7/20 | arm64: introduce CONFIG_ARM64_LSE_ATOMICS as fallback to ll/sc atomicsarch/ arch/ arch/ +3 more | +214 | 1 reply | |
| 8/20 | arm64: atomics: patch in lse instructions when supported by the CPUarch/ arch/ arch/ +3 more | +229 | 1 reply | |
| 9/20 | arm64: locks: patch in lse instructions when supported by the CPUarch/ | +108 | 1 reply | |
| 10/20 | arm64: bitops: patch in lse instructions when supported by the CPUarch/ arch/ | +45 | 1 reply | |
| 11/20 | arm64: xchg: patch in lse instructions when supported by the CPUarch/ | +33 | 1 reply | |
| 12/20 | arm64: cmpxchg: patch in lse instructions when supported by the CPUarch/ arch/ arch/ +1 more | +98 | 1 reply | |
| 13/20 | arm64: cmpxchg_dbl: patch in lse instructions when supported by the CPUarch/ arch/ arch/ | +94 | 1 reply | |
| 14/20 | arm64: cmpxchg: avoid "cc" clobber in ll/sc routinesarch/ arch/ | +8 | 1 reply | |
| 15/20 | arm64: cmpxchg: avoid memory barrier on comparison failurearch/ | +22 | 1 reply | |
| 16/20 | arm64: atomics: tidy up common atomic{,64}_* macrosarch/ | +38 | 1 reply | |
| 17/20 | arm64: atomics: prefetch the destination word for write prior to stxrarch/ arch/ arch/ +1 more | +21 | 1 reply | |
| 18/20 | arm64: atomics: implement atomic{, 64}_cmpxchg using cmpxchgarch/ arch/ arch/ | +2 | 1 reply | |
| 19/20 | arm64: atomic64_dec_if_positive: fix incorrect branch conditionarch/ arch/ | +2 | 1 reply | |
| 20/20 | arm64: kconfig: select HAVE_CMPXCHG_LOCALarch/ | +1 | 1 reply |
Reviews trailers per patch
All 22 patches have a Reviewed-by or Acked-by.
| Patch | Steve Capper | Catalin Marinas |
|---|---|---|
| 1/20 | R-b | |
| 2/20 | A-b | |
| 2/20 | A-b | |
| 2/20 | A-b | |
| 3/20 | A-b | |
| 4/20 | R-b | R-b |
| 5/20 | R-b | R-b |
| 6/20 | R-b | R-b |
| 7/20 | R-b | |
| 8/20 | R-b | |
| 9/20 | R-b | |
| 10/20 | R-b | R-b |
| 11/20 | R-b | R-b |
| 12/20 | R-b | |
| 13/20 | R-b | |
| 14/20 | R-b | R-b |
| 15/20 | R-b | R-b |
| 16/20 | R-b | R-b |
| 17/20 | R-b | |
| 18/20 | R-b | R-b |
| 19/20 | R-b | A-b |
| 20/20 | R-b | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 00/20] arm64: support for 8.1 LSE atomic instructions
Hello,
This is version two of the patches I originally posted here:
http://lists.infradead.org/pipermail/linux-arm-kernel/2015-July/355980.html
Changes since v1 include:
* Fixed WFE usage in rwlock code
* Fixed rwlock trylock retry semantics
* Added documentation update for failed cmpxchg semantics
* Replaced explicit save/restore of LR with a clobber
Tested on Juno and Fastmodel.
Peter -- do you want to pick up the documentation update, or shall I
keep it with the rest of this series?
Will
--->8
Will Deacon (20):
arm64: rwlocks: don't fail trylock purely due to contention
documentation: Clarify failed cmpxchg memory ordering semantics
arm64: cpufeature.h: add missing #include of kernel.h
arm64: atomics: move ll/sc atomics into separate header file
arm64: elf: advertise 8.1 atomic instructions as new hwcap
arm64: alternatives: add cpu feature for lse atomics
arm64: introduce CONFIG_ARM64_LSE_ATOMICS as fallback to ll/sc atomics
arm64: atomics: patch in lse instructions when supported by the CPU
arm64: locks: patch in lse instructions when supported by the CPU
arm64: bitops: patch in lse instructions when supported by the CPU
arm64: xchg: patch in lse instructions when supported by the CPU
arm64: cmpxchg: patch in lse instructions when supported by the CPU
arm64: cmpxchg_dbl: patch in lse instructions when supported by the
CPU
arm64: cmpxchg: avoid "cc" clobber in ll/sc routines
arm64: cmpxchg: avoid memory barrier on comparison failure
arm64: atomics: tidy up common atomic{,64}_* macros
arm64: atomics: prefetch the destination word for write prior to stxr
arm64: atomics: implement atomic{,64}_cmpxchg using cmpxchg
arm64: atomic64_dec_if_positive: fix incorrect branch condition
arm64: kconfig: select HAVE_CMPXCHG_LOCAL
Documentation/atomic_ops.txt | 4 +- Documentation/memory-barriers.txt | 6 +- arch/arm64/Kconfig | 13 ++ arch/arm64/Makefile | 13 +- arch/arm64/include/asm/atomic.h | 262 ++++++------------------------- arch/arm64/include/asm/atomic_ll_sc.h | 237 ++++++++++++++++++++++++++++ arch/arm64/include/asm/atomic_lse.h | 285 ++++++++++++++++++++++++++++++++++ arch/arm64/include/asm/cmpxchg.h | 192 +++++++++-------------- arch/arm64/include/asm/cpufeature.h | 5 +- arch/arm64/include/asm/futex.h | 2 + arch/arm64/include/asm/lse.h | 53 +++++++ arch/arm64/include/asm/spinlock.h | 147 ++++++++++++++---- arch/arm64/include/uapi/asm/hwcap.h | 1 + arch/arm64/kernel/setup.c | 18 +++ arch/arm64/lib/Makefile | 13 ++ arch/arm64/lib/atomic_ll_sc.c | 3 + arch/arm64/lib/bitops.S | 45 +++--- 17 files changed, 911 insertions(+), 388 deletions(-) create mode 100644 arch/arm64/include/asm/atomic_ll_sc.h create mode 100644 arch/arm64/include/asm/atomic_lse.h create mode 100644 arch/arm64/include/asm/lse.h create mode 100644 arch/arm64/lib/atomic_ll_sc.c
Signature · 1 line
2.1.4