]> asedeno.scripts.mit.edu Git - linux.git/commit
tools/memory-model: Add a S lock-based external-view litmus test
authorAlan Stern <stern@rowland.harvard.edu>
Tue, 20 Feb 2018 23:25:10 +0000 (15:25 -0800)
committerIngo Molnar <mingo@kernel.org>
Wed, 21 Feb 2018 08:58:15 +0000 (09:58 +0100)
commit556bb7d252ae42d4653557325670e665087c38ad
treee57c5bd41de47f4ff5c19f406f063bda54b163fd
parent8f7f2fbd00898deaf01e05a00095411811befd64
tools/memory-model: Add a S lock-based external-view litmus test

This commit adds a litmus test in which P0() and P1() form a lock-based S
litmus test, with the addition of P2(), which observes P0()'s and P1()'s
accesses with a full memory barrier but without the lock.  This litmus
test asks whether writes carried out by two different processes under the
same lock will be seen in order by a third process not holding that lock.
The answer to this question is "yes" for all architectures supporting
the Linux kernel, but is "no" according to the current version of LKMM.

A patch to LKMM is under development.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: akiyks@gmail.com
Cc: boqun.feng@gmail.com
Cc: dhowells@redhat.com
Cc: j.alglave@ucl.ac.uk
Cc: linux-arch@vger.kernel.org
Cc: luc.maranget@inria.fr
Cc: nborisov@suse.com
Cc: npiggin@gmail.com
Cc: parri.andrea@gmail.com
Cc: will.deacon@arm.com
Link: http://lkml.kernel.org/r/1519169112-20593-10-git-send-email-paulmck@linux.vnet.ibm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
tools/memory-model/litmus-tests/ISA2+pooncelock+pooncelock+pombonce.litmus [new file with mode: 0644]