RFC arch: Provide atomic logic ops
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest24 patches 26 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/24 | alpha: Provide atomic_{or,xor,and}arch/ | +6 | 0 replies | |
| 2/24 | arc: Provide atomic_{or,xor,and}arch/ | +12 | 3 replies | |
| 3/24 | arm: Provide atomic_{or,xor,and}arch/ | +6 | 2 replies | |
| 4/24 | arm64: Provide atomic_{or,xor,and}arch/ | +6 | 5 replies | |
| 5/24 | avr32: Provide atomic_{or,xor,and}arch/ | +12 | 0 replies | |
| 6/24 | blackfin: Provide atomic_{or,xor,and}arch/ arch/ arch/ | +38 | 0 replies | |
| 7/24 | hexagon: Provide atomic_{or,xor,and}arch/ | +3 | 0 replies | |
| 8/24 | ia64: Provide atomic_{or,xor,and}arch/ | +20 | 0 replies | |
| 9/24 | m32r: Provide atomic_{or,xor,and}arch/ | +7 | 0 replies | |
| 10/24 | m68k: Provide atomic_{or,xor,and}arch/ | +7 | 1 reply | |
| 11/24 | metag: Provide atomic_{or,xor,and}arch/ arch/ | +14 | 0 replies | |
| 12/24 | mips: Provide atomic_{or,xor,and}arch/ | +6 | 1 reply | |
| 13/24 | mn10300: Provide atomic_{or,xor,and}arch/ | +7 | 0 replies | |
| 14/24 | parisc: Provide atomic_{or,xor,and}arch/ | +6 | 0 replies | |
| 15/24 | powerpc: Provide atomic_{or,xor,and}arch/ | +6 | 1 reply | |
| 16/24 | sh: Provide atomic_{or,xor,and}arch/ arch/ arch/ +1 more | +19 | 0 replies | |
| 17/24 | sparc: Provide atomic_{or,xor,and}arch/ arch/ arch/ +2 more | +34 | 1 reply | |
| 18/24 | xtensa: Provide atomic_{or,xor,and}arch/ | +13 | 0 replies | |
| 19/24 | s390: Provide atomic_{or,xor,and}arch/ | +31 | 4 replies | |
| 20/24 | x86: Provide atomic_{or,xor,and}arch/ arch/ arch/ | +55 | 0 replies | |
| 21/24 | atomic: Provide atomic_{or,xor,and}arch/ include/ include/ +2 more | +22 | 0 replies | |
| 22/24 | frv: Rewrite atomic implementationarch/ arch/ arch/ +5 more | +228 | 0 replies | |
| 23/24 | atomic: Collapse all atomic_{set,clear}_mask definitionsarch/ arch/ arch/ +12 more | +17 | 8 replies | |
| 24/24 | atomic: Replace atomic_{set,clear}_mask() usagearch/ arch/ arch/ +11 more | +92 | 0 replies |
Reviews trailers per patch
6 of 24 patches have a Reviewed-by or Acked-by.
| Patch | David S. Miller | Ralf Baechle | Benjamin Herrenschmidt | Vineet Gupta | Heiko Carstens | Geert Uytterhoeven |
|---|---|---|---|---|---|---|
| 1/24 | ||||||
| 2/24 | A-b | |||||
| 3/24 | ||||||
| 4/24 | ||||||
| 5/24 | ||||||
| 6/24 | ||||||
| 7/24 | ||||||
| 8/24 | ||||||
| 9/24 | ||||||
| 10/24 | A-b | |||||
| 11/24 | ||||||
| 12/24 | A-b | |||||
| 13/24 | ||||||
| 14/24 | ||||||
| 15/24 | A-b | |||||
| 16/24 | ||||||
| 17/24 | A-b | |||||
| 18/24 | ||||||
| 19/24 | A-b | |||||
| 20/24 | ||||||
| 21/24 | ||||||
| 22/24 | ||||||
| 23/24 | ||||||
| 24/24 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 6 reviewers.
Cover letter [RFC][PATCH 00/24] arch: Provide atomic logic ops
Currently there is an incoherent mess of atomic_{set,clear}_mask() and atomic_or() (but no atomic_{and,nand,xor}()) in the tree.
Those archs that implement atomic_{set,clear}_mask() are not even consistent on its signature.
Implement atomic_{or,and,xor}() on all archs and deprecate atomic_{set,clear}_mask().
Notes:
- FRV got a total rewrite of its atomic implementation,
- Blackfin could use one, or at least some macro help,
- TILE still needs to be done.
The series has been compile tested by the build-bot, only TILE fails to build.
--- arch/alpha/include/asm/atomic.h | 6 + arch/arc/include/asm/atomic.h | 4 arch/arm/include/asm/atomic.h | 6 + arch/arm64/include/asm/atomic.h | 6 + arch/avr32/include/asm/atomic.h | 12 ++ arch/blackfin/include/asm/atomic.h | 16 ++- arch/blackfin/kernel/bfin_ksyms.c | 7 - arch/blackfin/mach-bf561/atomic.S | 30 +++--- arch/blackfin/mach-common/smp.c | 2 arch/frv/include/asm/atomic.h | 107 ++++++++++++------------ arch/frv/include/asm/atomic_defs.h | 143 +++++++++++++++++++++++++++++++++ arch/frv/include/asm/bitops.h | 99 ++-------------------- arch/frv/kernel/dma.c | 6 - arch/frv/lib/Makefile | 2 arch/frv/lib/atomic-lib.c | 7 + arch/frv/lib/atomic-ops.S | 110 ------------------------- arch/frv/lib/atomic64-ops.S | 94 --------------------- arch/hexagon/include/asm/atomic.h | 3 arch/ia64/include/asm/atomic.h | 24 ++++- arch/m32r/include/asm/atomic.h | 44 ---------- arch/m32r/kernel/smp.c | 4 arch/m68k/include/asm/atomic.h | 13 --- arch/metag/include/asm/atomic_lnkget.h | 37 -------- arch/metag/include/asm/atomic_lock1.h | 23 ----- arch/mips/include/asm/atomic.h | 6 + arch/mn10300/include/asm/atomic.h | 70 ---------------- arch/mn10300/mm/tlb-smp.c | 2 arch/parisc/include/asm/atomic.h | 6 + arch/powerpc/include/asm/atomic.h | 6 + arch/powerpc/kernel/misc_32.S | 19 ---- arch/s390/include/asm/atomic.h | 41 +++++---- arch/s390/kernel/time.c | 4 arch/s390/kvm/interrupt.c | 28 +++--- arch/s390/kvm/kvm-s390.c | 24 ++--- arch/sh/include/asm/atomic-grb.h | 42 --------- arch/sh/include/asm/atomic-irq.h | 21 ---- arch/sh/include/asm/atomic-llsc.h | 31 ------- arch/sparc/include/asm/atomic_32.h | 3 arch/sparc/include/asm/atomic_64.h | 3 arch/sparc/lib/atomic32.c | 22 ++++- arch/sparc/lib/atomic_64.S | 6 + arch/sparc/lib/ksyms.c | 3 arch/x86/include/asm/atomic.h | 25 +++-- arch/x86/include/asm/atomic64_32.h | 14 +++ arch/x86/include/asm/atomic64_64.h | 15 +++ arch/xtensa/include/asm/atomic.h | 72 ---------------- drivers/gpu/drm/i915/i915_drv.c | 2 drivers/gpu/drm/i915/i915_gem.c | 2 drivers/gpu/drm/i915/i915_irq.c | 4 drivers/s390/scsi/zfcp_aux.c | 2 drivers/s390/scsi/zfcp_erp.c | 62 +++++++------- drivers/s390/scsi/zfcp_fc.c | 8 - drivers/s390/scsi/zfcp_fsf.c | 26 +++--- drivers/s390/scsi/zfcp_qdio.c | 14 +-- include/asm-generic/atomic.h | 11 +- include/asm-generic/atomic64.h | 3 include/linux/atomic.h | 30 +++--- lib/atomic64.c | 3 58 files changed, 569 insertions(+), 866 deletions(-)