Fix atomic operations so that atomic64_test passes on ARM [V2]
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | ARM: atomic ops: fix register constraints for atomic64_add_unlessarch/ | +1 | 1 reply | |
| 2/4 | ARM: atomic ops: reduce critical region in atomic64_cmpxchgarch/ | +1 | 1 reply | |
| 2/4 | ARM: atomic ops: reduce critical region in atomic64_cmpxchg | +0 | 0 replies | |
| 3/4 | ARM: atomic ops: add memory constraints to inline asmarch/ | +66 | 3 replies | |
| 3/4 | ARM: atomic ops: add memory constraints to inline asm | +0 | 0 replies | |
| 3/4 | ARM: atomic ops: add memory constraints to inline asm | +0 | 0 replies | |
| 3/4 | ARM: atomic ops: add memory constraints to inline asm | +0 | 0 replies | |
| 4/4 | ARM: atomic64_test: add ARM as supported architecturelib/ | +1 | 1 reply |
Reviews trailers per patch
6 of 8 patches have a Reviewed-by or Acked-by.
| Patch | Nicolas Pitre |
|---|---|
| 1/4 | R-b |
| 2/4 | |
| 2/4 | |
| 3/4 | R-b |
| 3/4 | R-b |
| 3/4 | R-b |
| 3/4 | R-b |
| 4/4 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/4] Fix atomic operations so that atomic64_test passes on ARM [V2]
This is version 2 of the patches originally posted here:
http://lists.infradead.org/pipermail/linux-arm-kernel/2010-June/018742.html
There are quite a few changes, mainly because I now understand the compiler bug I was hitting previously.
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 fixes some problems with the current atomic64 operations, adds the correct memory constraints to all of the atomic operations and finally enables all of the atomic64 tests for ARM. I had to speak with the GCC guys at ARM to get the memory constraints right in patch 3/4. The problem with the "m" constraint likely affects other parts of the Kernel, for example, kprobes-decode seems to have multiple uses of an "m" operand within a single block of inline asm.
Will Deacon (4):
ARM: atomic ops: fix register constraints for atomic64_add_unless
ARM: atomic ops: reduce critical region in atomic64_cmpxchg
ARM: atomic ops: add memory constraints to inline asm
ARM: atomic64_test: add ARM as supported architecture
arch/arm/include/asm/atomic.h | 132 ++++++++++++++++++++-------------------- lib/atomic64_test.c | 2 +- 2 files changed, 67 insertions(+), 67 deletions(-)