<br><tt><font size=2>> The mmiowb() is definitely necessary, because
without it then commands<br>
> were getting messed up on large Altix systems.</font></tt>
<br>
<br><tt><font size=2>I'm using Duo-core Xeon and I just grep the source
of "mmiowb()" in kernel 2.6.23 include/asm-x86_64 /io.h and found
that this function does nothing on x86_64 platform, is it true?</font></tt>
<br>
<br><tt><font size=2>Thanks!</font></tt>
<br><tt><font size=2>Yicheng<br>
</font></tt>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Roland Dreier <rdreier@cisco.com></b>
</font>
<p><font size=1 face="sans-serif">01/02/2008 02:52 PM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">Yicheng Jia <YJia@tmriusa.com></font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">general@lists.openfabrics.org, Jack
Morgenstein <jackm@dev.mellanox.co.il></font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [ofa-general] synchronize commands
issued to MTHCA</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><tt><font size=2> > Could you tell me what's the difference
between "wmb()" and "mmiowb()". I <br>
> notice that ofa-1.3 has added "mmiowb()" at the end of
mthca_cmd_post, <br>
> since "wmb()" is already called at the end of cmd_post,
is "mmiowb()" <br>
> really necessary?<br>
<br>
wmb() orders writes from the same CPU -- it prevents highly<br>
out-of-order architectures from making writes visible in an order<br>
different from program order. mmiowb() orders MMIO writes between<br>
different CPUs, and prevents systems (such as SGI Altix) where the CPU<br>
fabric may reorder writes before they reach the IO bus.<br>
<br>
The mmiowb() is definitely necessary, because without it then commands<br>
were getting messed up on large Altix systems.<br>
<br>
- R.<br>
<br>
_____________________________________________________________________________<br>
Scanned by IBM Email Security Management Services powered by MessageLabs.
For more information please visit http://www.ers.ibm.com<br>
_____________________________________________________________________________<br>
</font></tt>
<br>