]> git.openfabrics.org - ~shefty/libibverbs.git/commit
Implement PPC wmb() with sync instead of eieio
authorShirley Ma <mashirle@us.ibm.com>
Tue, 22 Jul 2008 22:06:50 +0000 (15:06 -0700)
committerRoland Dreier <rolandd@cisco.com>
Wed, 20 Aug 2008 16:35:56 +0000 (09:35 -0700)
commit6b1838b684e43715103f980cb162880018cd2008
tree131c713bd89d94b840bc078c61ed166b469100fb
parent99d055285ba1bf6b925dda1578fa21e49de89caa
Implement PPC wmb() with sync instead of eieio

wmb() for PPC was incorrect defined as an eieio instruction in
libibverbs.  eieio only orders pure I/O memory or a pure system memory
accesses.  In a situation where the device drivers use the d_map
kernel services to share a portion of system memory with an I/O
adapter, we need to use sync() instead. See below link for reference:

http://www.ibm.com/developerworks/eserver/articles/powerpc.html

Signed-off-by: Shirley Ma <xma@us.ibm.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
include/infiniband/arch.h