Introduce cmpxchg128() -- aka. the demise of cmpxchg_double()
Status from this message: The following commit has been merged into the locking/core branch of tip:
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest11 patches 13 repliesApplied
- v210 patches 20 repliesSuperseded
- v1 RFC12 patches 44 repliesSuperseded
Changes in v3 from the cover letter
- reworked this_cpu_cmpxchg() to not implicity do u128 but provide explicit this_cpu_cmpxchg128() (arnd)
- added try_cmpxchg12_local() (per the addition of the try_cmpxchg*_local() family of functions)
- slight cleanup of the SLUB conversion (due to rebase and having to touch it)
- added a 'cleanup' patch for SLUB, since I was staring at that anyway
Patches in v3 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/11 | cyrpto/b128ops: Remove struct u128include/ | +3 | 0 replies | |
| 2/11 | types: Introduce [us]128include/ include/ lib/ +1 more | +9 | 0 replies | |
| 3/11 | arch: Introduce arch_{,try_}_cmpxchg128{,_local}()arch/ arch/ arch/ +3 more | +177 | 0 replies | |
| 4/11 | instrumentation: Wire up cmpxchg128()include/ include/ scripts/ +1 more | +183 | 0 replies | |
| 5/11 | percpu: Wire up cmpxchg128arch/ arch/ arch/ +1 more | +111 | 2 replies | |
| 6/11 | x86,amd_iommu: Replace cmpxchg_double()drivers/ drivers/ | +11 | 0 replies | |
| 7/11 | x86,intel_iommu: Replace cmpxchg_double()drivers/ include/ | +68 | 0 replies | |
| 8/11 | slub: Replace cmpxchg_double()include/ mm/ mm/ | +138 | 7 replies | |
| 9/11 | mm/slub: Fold slab_update_freelist()mm/ | +28 | 1 reply | |
| 10/11 | arch: Remove cmpxchg_doubleDocumentation/ arch/ arch/ +12 more | +5 | 1 reply | |
| 11/11 | s390/cpum_sf: Convert to cmpxchg128()arch/ arch/ | +4 | 0 replies |
Reviews trailers per patch
8 of 11 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Herbert Xu | Heiko Carstens | Vlastimil Babka | Hyeonggon Yoo | Mark Rutland | Lu Baolu | Vasant Hegde | Arnd Bergmann |
|---|---|---|---|---|---|---|---|---|
| Series | R-b | |||||||
| 1/11 | A-b | |||||||
| 2/11 | A-b | |||||||
| 3/11 | A-b | A-b | ||||||
| 4/11 | A-b | |||||||
| 5/11 | ||||||||
| 6/11 | T-b | |||||||
| 7/11 | R-b | |||||||
| 8/11 | A-b | A-b | ||||||
| 9/11 | ||||||||
| 10/11 | A-b | |||||||
| 11/11 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 8 reviewers.
Cover letter [PATCH v3 00/11] Introduce cmpxchg128() -- aka. the demise of cmpxchg_double()
Hi!
I seem to have forgotten to post this series last release; so here goes. I'm really hoping to merge it and forget about it.
Since Linus hated on cmpxchg_double(), a few patches to get rid of it, as proposed here:
https://lkml.kernel.org/r/[email protected]
These patches are based on 6.4.0-rc2.
Available here:
git://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git core/wip-u128
Since v2:
- reworked this_cpu_cmpxchg() to not implicity do u128 but provide explicit this_cpu_cmpxchg128() (arnd)
- added try_cmpxchg12_local() (per the addition of the try_cmpxchg*_local() family of functions)
- slight cleanup of the SLUB conversion (due to rebase and having to touch it)
- added a 'cleanup' patch for SLUB, since I was staring at that anyway
Since v1:
- rebaed on Eric's ghash cleanups (hence the cryptodev-2.6 dependency)
- rebased on Heiko's s390/cpum_sf CDSG patch
- fixed up a bunch of arch code
- fixed up the inline asm to use 'u128 *' mem argument so the compiler knows how wide the modification is.
- reworked the percpu thing to use union based type-punning instead of _Generic() based casts.
--- Documentation/core-api/this_cpu_ops.rst | 2 - arch/arm64/include/asm/atomic_ll_sc.h | 56 ++++---- arch/arm64/include/asm/atomic_lse.h | 39 +++--- arch/arm64/include/asm/cmpxchg.h | 48 ++----- arch/arm64/include/asm/percpu.h | 30 +++-- arch/s390/include/asm/cmpxchg.h | 32 +---- arch/s390/include/asm/cpu_mf.h | 2 +- arch/s390/include/asm/percpu.h | 34 +++-- arch/s390/kernel/perf_cpum_sf.c | 16 +-- arch/x86/include/asm/cmpxchg.h | 25 ---- arch/x86/include/asm/cmpxchg_32.h | 2 +- arch/x86/include/asm/cmpxchg_64.h | 63 ++++++++- arch/x86/include/asm/percpu.h | 100 +++++++++------ drivers/iommu/amd/amd_iommu_types.h | 9 +- drivers/iommu/amd/iommu.c | 10 +- drivers/iommu/intel/irq_remapping.c | 8 +- include/asm-generic/percpu.h | 66 ++-------- include/crypto/b128ops.h | 14 +- include/linux/atomic/atomic-arch-fallback.h | 95 +++++++++++++- include/linux/atomic/atomic-instrumented.h | 93 ++++++++++++-- include/linux/dmar.h | 125 +++++++++--------- include/linux/percpu-defs.h | 38 ------ include/linux/slub_def.h | 12 +- include/linux/types.h | 5 + include/uapi/linux/types.h | 4 + lib/crypto/curve25519-hacl64.c | 2 - lib/crypto/poly1305-donna64.c | 2 - mm/slab.h | 49 ++++++- mm/slub.c | 191 ++++++++++++++-------------- scripts/atomic/gen-atomic-fallback.sh | 4 +- scripts/atomic/gen-atomic-instrumented.sh | 19 +-- 31 files changed, 667 insertions(+), 528 deletions(-)