<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:Arial;
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:blue;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
11.0pt;font-family:Arial;color:blue'>Alex,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
11.0pt;font-family:Arial;color:blue'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
11.0pt;font-family:Arial;color:blue'>cl_get_physaddr has nothing to do with the
mapping.  It just retrieves the address that was previous mapped by whatever
methods.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
11.0pt;font-family:Arial;color:blue'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
11.0pt;font-family:Arial;color:blue'>Anh<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
11.0pt;font-family:Arial;color:blue'><o:p> </o:p></span></font></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=3 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> <st1:PersonName
w:st="on">Alex Estrin</st1:PersonName> <br>
<b><span style='font-weight:bold'>Sent:</span></b> Thursday, August 21, 2008
12:28 PM<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">Anh
 Duong</st1:PersonName>; 'ofw@lists.openfabrics.org'<br>
<b><span style='font-weight:bold'>Cc:</span></b> 'Stan C. Smith'; <st1:PersonName
w:st="on">John Russo</st1:PersonName>; 'ftillier@windows.microsoft.com';
'Tzachi Dar'; <st1:PersonName w:st="on">Usha Srinivasan</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> RE: Possible IPoIB DMA
problems</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>Anh,</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>From your examples ... these are
the places where appropriate <strong><b><font face=Arial><span
style='font-family:Arial'>physical address</span></font></b></strong> is taken
from virtual.</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>preparing send WR.</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>....</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=3 color="#010001" face=Arial><span
style='font-size:12.0pt;font-family:Arial;color:#010001'>p_desc</span></font><font
face=Arial><span style='font-family:Arial'>-><font color="#010001"><span
style='color:#010001'>local_ds</span></font>[1].<font color="#010001"><span
style='color:#010001'>vaddr</span></font> = <strong><b><font color=blue
face=Arial><span style='font-family:Arial;color:blue'>cl_get_physaddr</span></font></b></strong>(
<font color="#010001"><span style='color:#010001'>p_ib_arp</span></font> );<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>.....</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=green face=Arial><span style='font-size:
11.0pt;font-family:Arial;color:green'>/* Setup the first local data segment
(used for the IPoIB header). */<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#010001" face=Arial><span
style='font-size:11.0pt;font-family:Arial;color:#010001'>p_desc</span></font><font
size=2 face=Arial><span style='font-size:11.0pt;font-family:Arial'>-><font
color="#010001"><span style='color:#010001'>local_ds</span></font>[0].<font
color="#010001"><span style='color:#010001'>vaddr</span></font> = <strong><b><font
color=blue face=Arial><span style='font-family:Arial;color:blue'>cl_get_physaddr</span></font></b></strong>(
&<b><font color=red><span style='color:red;font-weight:bold'>p_port->hdr[hdr_idx]</span></font></b>
);<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>Thanks,</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>Alex</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

</div>

</div>

</div>

</body>

</html>