Skip to content

Fix atomic operations so that atomic64_test passes on ARM

Will Deacon linux-arm-kernel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ARM: atomic ops: add memory constraints to inline asmarch/arm/include/asm/atomic.h+62 -610 replies
2/2ARM: atomic64_test: add ARM as supported architecturelib/atomic64_test.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Fix atomic operations so that atomic64_test passes on ARM

A recently introduced Kernel feature is the atomic64_test on boot. ARM fails these tests because the compiler is not correctly informed about updates occuring to memory and is at liberty to constant-fold atomic64_t variables.

This patch series adds the correct memory constraints to the atomic operations on ARM and also enables all of the atomic64 tests in atomic64_test.c.

Will Deacon (2):
ARM: atomic ops: add memory constraints to inline asm
ARM: atomic64_test: add ARM as supported architecture

 arch/arm/include/asm/atomic.h |  123 +++++++++++++++++++++--------------------
 lib/atomic64_test.c           |    2 +-
 2 files changed, 63 insertions(+), 62 deletions(-)