<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2654.45">
<TITLE>executing the ibv_srq_pingpong with many QPs sometimes causes to a test failure</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2 FACE="Arial">Hi.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I'm using gen2 driver svn revision 3137 on 2 Mellanox HCAs(23108) connected b2b (without any switch).</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">When I'm executing the ibv_srq_pingpong with many QPs(255) each executable is a different HCA (on different node) there is a completion with error in the server side and a seg fault in the client side.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">I think that there is a race in the test because when I'm using 248 QPs sometimes there is a failure and sometimes the test passes.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Here is the command line + output of each side:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">*************** Daemon side *******************</FONT>
<BR><FONT SIZE=2 FACE="Arial">% ./ibv_srq_pingpong --port=19872 --ib-dev=mthca0 --ib-port=1 --num-qp=255</FONT>
<BR><FONT SIZE=2 FACE="Arial">  remote address: LID 0x0002, QPN 0xf604fe, PSN 0x992558</FONT>
<BR><FONT SIZE=2 FACE="Arial">  remote address: LID 0x0002, QPN 0xf604ff, PSN 0x428b53</FONT>
<BR><FONT SIZE=2 FACE="Arial">  remote address: LID 0x0002, QPN 0xf60500, PSN 0x70675a</FONT>
<BR><FONT SIZE=2 FACE="Arial">  remote address: LID 0x0002, QPN 0xf60501, PSN 0x999770</FONT>
<BR><FONT SIZE=2 FACE="Arial">  remote address: LID 0x0002, QPN 0xf60502, PSN 0x3d496f</FONT>
<BR><FONT SIZE=2 FACE="Arial">  remote address: LID 0x0002, QPN 0xf60503, PSN 0xf7ff70</FONT>
<BR><FONT SIZE=2 FACE="Arial">  remote address: LID 0x0002, QPN 0xf60504, PSN 0x76ab8f</FONT>
<BR><FONT SIZE=2 FACE="Arial">  [ 0] 00b50408</FONT>
<BR><FONT SIZE=2 FACE="Arial">  [ 4] 00000000</FONT>
<BR><FONT SIZE=2 FACE="Arial">  [ 8] 00000000</FONT>
<BR><FONT SIZE=2 FACE="Arial">  [ c] 00000000</FONT>
<BR><FONT SIZE=2 FACE="Arial">  [10] 15810000</FONT>
<BR><FONT SIZE=2 FACE="Arial">  [14] 00000000</FONT>
<BR><FONT SIZE=2 FACE="Arial">  [18] 000000c2</FONT>
<BR><FONT SIZE=2 FACE="Arial">  [1c] ff000000</FONT>
<BR><FONT SIZE=2 FACE="Arial">  [ 0] 00b50409</FONT>
<BR><FONT SIZE=2 FACE="Arial">  [ 4] 00000000</FONT>
<BR><FONT SIZE=2 FACE="Arial">  [ 8] 00000000</FONT>
<BR><FONT SIZE=2 FACE="Arial">  [ c] 00000000</FONT>
<BR><FONT SIZE=2 FACE="Arial">  [10] 15810000</FONT>
<BR><FONT SIZE=2 FACE="Arial">  [14] 00000000</FONT>
<BR><FONT SIZE=2 FACE="Arial">  [18] 000000c2</FONT>
<BR><FONT SIZE=2 FACE="Arial">  [1c] ff000000</FONT>
<BR><FONT SIZE=2 FACE="Arial">Failed status 12 for wr_id 2</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">*************** Client side *******************</FONT>
<BR><FONT SIZE=2 FACE="Arial">% ./ibv_srq_pingpong --port=19872 --ib-dev=mthca0 --ib-port=1 10.4.8.31 --num-qp=255</FONT>
<BR><FONT SIZE=2 FACE="Arial">  remote address: LID 0x0001, QPN 0xb50500, PSN 0x8913db</FONT>
<BR><FONT SIZE=2 FACE="Arial">  remote address: LID 0x0001, QPN 0xb50501, PSN 0x02f05d</FONT>
<BR><FONT SIZE=2 FACE="Arial">  remote address: LID 0x0001, QPN 0xb50502, PSN 0x791458</FONT>
<BR><FONT SIZE=2 FACE="Arial">  remote address: LID 0x0001, QPN 0xb50503, PSN 0x86baa5</FONT>
<BR><FONT SIZE=2 FACE="Arial">  remote address: LID 0x0001, QPN 0xb50504, PSN 0x49ff20</FONT>
<BR><FONT SIZE=2 FACE="Arial">Segmentation fault</FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Arial">The seg fault is somewhere is the polling for completion section (i didn't find the specific location).</FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Arial">Thanx</FONT>
<BR><B><I><FONT COLOR="#008080" SIZE=6 FACE="Script">Dotan Barak</FONT></I></B>
<BR><FONT FACE="Times New Roman">Software Verification Engineer</FONT>
<BR><FONT FACE="Times New Roman">Mellanox Technologies LTD</FONT>
<BR><FONT FACE="Times New Roman">Tel: +972-4-9097200 Ext: 231 Fax: +972-4-9593245</FONT>
<BR><FONT FACE="Times New Roman">P.O. Box 86 Yokneam 20692 ISRAEL.</FONT>
<BR><FONT FACE="Times New Roman">Home: +972-77-8841095  Cell: 0</FONT><FONT SIZE=2 FACE="Arial">52-4222383</FONT>
</P>

<P><FONT COLOR="#008080" SIZE=2 FACE="Arial">[ May the fork be with you ]</FONT>
</P>

</BODY>
</HTML>