Commit 1bd37420 authored by Paul E. McKenney's avatar Paul E. McKenney Committed by Ingo Molnar

tools/memory-model: Flag "cumulativity" and "propagation" tests

This commit flags WRC+pooncerelease+rmbonceonce+Once.litmus
as being forbidden by smp_store_release() A-cumulativity and
IRIW+mbonceonces+OnceOnce.litmus as being forbidden by the LKMM
propagation rule.
Suggested-by: default avatarAndrea Parri <andrea.parri@amarulasolutions.com>
Reported-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
[ paulmck: Updated wording as suggested by Alan Stern. ]
Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Acked-by: default avatarAlan Stern <stern@rowland.harvard.edu>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Will Deacon <will.deacon@arm.com>
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: npiggin@gmail.com
Cc: parri.andrea@gmail.com
Link: http://lkml.kernel.org/r/1526340837-12222-11-git-send-email-paulmck@linux.vnet.ibm.comSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent 15553dcb
...@@ -7,7 +7,7 @@ C IRIW+mbonceonces+OnceOnce ...@@ -7,7 +7,7 @@ C IRIW+mbonceonces+OnceOnce
* between each pairs of reads. In other words, is smp_mb() sufficient to * between each pairs of reads. In other words, is smp_mb() sufficient to
* cause two different reading processes to agree on the order of a pair * cause two different reading processes to agree on the order of a pair
* of writes, where each write is to a different variable by a different * of writes, where each write is to a different variable by a different
* process? * process? This litmus test exercises LKMM's "propagation" rule.
*) *)
{} {}
......
...@@ -23,7 +23,8 @@ IRIW+mbonceonces+OnceOnce.litmus ...@@ -23,7 +23,8 @@ IRIW+mbonceonces+OnceOnce.litmus
between each pairs of reads. In other words, is smp_mb() between each pairs of reads. In other words, is smp_mb()
sufficient to cause two different reading processes to agree on sufficient to cause two different reading processes to agree on
the order of a pair of writes, where each write is to a different the order of a pair of writes, where each write is to a different
variable by a different process? variable by a different process? This litmus test is forbidden
by LKMM's propagation rule.
IRIW+poonceonces+OnceOnce.litmus IRIW+poonceonces+OnceOnce.litmus
Test of independent reads from independent writes with nothing Test of independent reads from independent writes with nothing
...@@ -119,8 +120,10 @@ S+wmbonceonce+poacquireonce.litmus ...@@ -119,8 +120,10 @@ S+wmbonceonce+poacquireonce.litmus
WRC+poonceonces+Once.litmus WRC+poonceonces+Once.litmus
WRC+pooncerelease+rmbonceonce+Once.litmus WRC+pooncerelease+rmbonceonce+Once.litmus
These two are members of an extension of the MP litmus-test class These two are members of an extension of the MP litmus-test
in which the first write is moved to a separate process. class in which the first write is moved to a separate process.
The second is forbidden because smp_store_release() is
A-cumulative in LKMM.
Z6.0+pooncelock+pooncelock+pombonce.litmus Z6.0+pooncelock+pooncelock+pombonce.litmus
Is the ordering provided by a spin_unlock() and a subsequent Is the ordering provided by a spin_unlock() and a subsequent
......
...@@ -5,7 +5,9 @@ C WRC+pooncerelease+rmbonceonce+Once ...@@ -5,7 +5,9 @@ C WRC+pooncerelease+rmbonceonce+Once
* *
* This litmus test is an extension of the message-passing pattern, where * This litmus test is an extension of the message-passing pattern, where
* the first write is moved to a separate process. Because it features * the first write is moved to a separate process. Because it features
* a release and a read memory barrier, it should be forbidden. * a release and a read memory barrier, it should be forbidden. More
* specifically, this litmus test is forbidden because smp_store_release()
* is A-cumulative in LKMM.
*) *)
{} {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment