<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:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:st="" xmlns="http://www.w3.org/TR/REC-html40"
xmlns:ns3="http://schemas.microsoft.com/sharepoint/soap/workflow/"
xmlns:ns4="http://schemas.microsoft.com/office/2006/digsig-setup"
xmlns:ns5="http://schemas.microsoft.com/office/2006/digsig"
xmlns:ns6="http://schemas.openxmlformats.org/package/2006/digital-signature"
xmlns:ns7="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ns0="http://schemas.microsoft.com/office/2004/12/omml"
xmlns:ns8="http://schemas.openxmlformats.org/package/2006/relationships"
xmlns:ns9="http://microsoft.com/sharepoint/webpartpages"
xmlns:ns10="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns:ns11="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:ns12="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/"
xmlns:ns13="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService"
xmlns:ns14="urn:schemas-microsoft-com:">

<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]-->
<style>
<!--a:link
        {mso-style-priority: 99
;}
span.MSOHYPERLINK
        {mso-style-priority: 99
;}
a:visited
        {mso-style-priority: 99
;}
span.MSOHYPERLINKFOLLOWED
        {mso-style-priority: 99
;}
p.MSOACETATE
        {mso-style-priority: 99
;}
li.MSOACETATE
        {mso-style-priority: 99
;}
div.MSOACETATE
        {mso-style-priority: 99
;}
p.MSOLISTPARAGRAPH
        {mso-style-priority: 34
;}
li.MSOLISTPARAGRAPH
        {mso-style-priority: 34
;}
div.MSOLISTPARAGRAPH
        {mso-style-priority: 34
;}
span.BALLOONTEXTCHAR
        {mso-style-priority: 99
;}
span.BALLOONTEXTCHAR0
        {mso-style-priority: 99
;}
span.BALLOONTEXTCHAR00
        {mso-style-priority: 99
;}
span.BALLOONTEXTCHAR000
        {mso-style-priority: 99
;}
span.BALLOONTEXTCHAR0000
        {mso-style-priority: 99
;}
span.BALLOONTEXTCHAR00000
        {mso-style-priority: 99
;}
span.BALLOONTEXTCHAR000000
        {mso-style-priority: 99
;}
span.BALLOONTEXTCHAR0000000
        {mso-style-priority: 99
;}
span.BALLOONTEXTCHAR00000000
        {mso-style-priority: 99
;}
span.BALLOONTEXTCHAR000000000
        {mso-style-priority: 99
;}
span.BALLOONTEXTCHAR0000000000
        {mso-style-priority: 99
;}
span.BALLOONTEXTCHAR00000000000
        {mso-style-priority: 99
;}

 /* Font Definitions */
 @font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:Calibri;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
pre
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:Tahoma;}
p.msolistparagraph, li.msolistparagraph, div.msolistparagraph
        {margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:Calibri;}
p.sp27233607, li.sp27233607, div.sp27233607
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
p.normaltimesnewroman, li.normaltimesnewroman, div.normaltimesnewroman
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:Arial;
        color:blue;}
span.balloontextchar
        {font-family:Tahoma;}
span.balloontextchar0
        {font-family:Tahoma;}
span.balloontextchar00
        {font-family:Tahoma;}
span.balloontextchar000
        {font-family:Tahoma;}
span.balloontextchar0000
        {font-family:Tahoma;}
span.balloontextchar00000
        {font-family:Tahoma;}
span.balloontextchar000000
        {font-family:Tahoma;}
span.balloontextchar0000000
        {font-family:Tahoma;}
span.balloontextchar00000000
        {font-family:Tahoma;}
span.balloontextchar000000000
        {font-family:Tahoma;}
span.balloontextchar0000000000
        {font-family:Tahoma;}
span.balloontextchar00000000000
        {font-family:Tahoma;}
span.EmailStyle33
        {mso-style-type:personal;
        font-family:Calibri;
        color:windowtext;}
span.EmailStyle34
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.EmailStyle35
        {mso-style-type:personal;
        font-family:Calibri;
        color:#1F497D;}
span.EmailStyle36
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.EmailStyle37
        {mso-style-type:personal;
        font-family:Calibri;
        color:#1F497D;}
span.EmailStyle38
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.EmailStyle39
        {mso-style-type:personal;
        font-family:Calibri;
        color:#1F497D;}
span.EmailStyle40
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.EmailStyle41
        {mso-style-type:personal;
        font-family:Calibri;
        color:#1F497D;}
span.EmailStyle42
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.EmailStyle43
        {mso-style-type:personal;
        font-family:Calibri;
        color:#1F497D;}
span.EmailStyle44
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.EmailStyle45
        {mso-style-type:personal;
        font-family:Calibri;
        color:#1F497D;}
span.EmailStyle46
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.EmailStyle47
        {mso-style-type:personal;
        font-family:Calibri;
        color:#1F497D;}
span.EmailStyle48
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.EmailStyle49
        {mso-style-type:personal;
        font-family:Calibri;
        color:#1F497D;}
span.EmailStyle50
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.EmailStyle51
        {mso-style-type:personal;
        font-family:Calibri;
        color:#1F497D;}
span.EmailStyle52
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.sc272533
        {color:black;
        font-weight:bold;}
span.sc272503
        {color:black;}
span.EmailStyle55
        {mso-style-type:personal;
        font-family:Calibri;
        color:#1F497D;}
span.EmailStyle56
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.EmailStyle57
        {mso-style-type:personal;
        font-family:Calibri;
        color:#1F497D;}
span.EmailStyle58
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.EmailStyle59
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.EmailStyle60
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.EmailStyle61
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.EmailStyle62
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.EmailStyle63
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.EmailStyle64
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.EmailStyle65
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.EmailStyle66
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.EmailStyle67
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.EmailStyle68
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.EmailStyle69
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.EmailStyle71
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

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

<div class=Section1>

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

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

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>In this case, since the PDO is not created
based on the information saved in registry, I think one quick fix is to
initialize pdo.p_pdo_device_info  to a fixed information used by partition
manager during _port_mgr_pkey_add() PDO creation. I never used part_man, but my
understanding is that it created new device through IOCTL call.<o:p></o:p></span></font></p>

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

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

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

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

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

<div>

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

<hr size=2 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'> Leonid Keller
[mailto:leonid@mellanox.co.il] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Sunday, May 24, 2009 8:09 AM<br>
<b><span style='font-weight:bold'>To:</span></b> James Yang<br>
<b><span style='font-weight:bold'>Cc:</span></b> ofw@lists.openfabrics.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> Bugzilla 1233: machine
crashes when adding a new partition.</span></font><font size=3
face="Times New Roman"><span style='font-size:12.0pt;font-family:"Times New Roman"'><o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt'><o:p> </o:p></span></font></p>

<div>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>We've come accross a fact, that
driver crashes after 'part_man add guid part-ID' execution.</span></font><font
size=3 face="Times New Roman"><span style='font-size:12.0pt;font-family:"Times New Roman"'><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'>I looked into it and found out that the
problem was introduced 16/02 by 1965 openib patch - "added
support for creating vendor defined devices.".</span></font><font size=3
face="Times New Roman"><span style='font-size:12.0pt;font-family:"Times New Roman"'><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'>The problem arises from the fact, that
port_query_device_id (as well as port_query_hardware_ids,
port_query_compatible_ids et al) takes now the data for the reply from its PDO
and not from a built-in string. PDO, in turn, gets the data at the start up
from the list of statically (in .inf) configured vendor devices.</span></font><font
size=3 face="Times New Roman"><span style='font-size:12.0pt;font-family:"Times New Roman"'><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'>The data are saved in
pdo.p_pdo_device_info, which is NULL for the devices added by part_man.</span></font><font
size=3 face="Times New Roman"><span style='font-size:12.0pt;font-family:"Times New Roman"'><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'>This NULL causes the crash.</span></font><font
size=3 face="Times New Roman"><span style='font-size:12.0pt;font-family:"Times New Roman"'><o:p></o:p></span></font></p>

</div>

<div>

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

</div>

<div><pre id="comment_text_2"><font size=2 face="Courier New"><span
style='font-size:10.0pt'>call stack is:<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>1: kd> k<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>Child-SP          RetAddr           Call Site<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>fffffadf`a6292a38 fffff800`010d673e nt!DbgBreakPointWithStatus<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>fffffadf`a6292a40 fffff800`010d7d0e nt!KiBugCheckDebugBreak+0x1e<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>fffffadf`a6292aa0 fffff800`0102ea54 nt!KeBugCheck2+0x640<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>fffffadf`a62930e0 fffff800`013731b1 nt!KeBugCheckEx+0x104<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>fffffadf`a6293120 fffff800`010556ab nt!PspSystemThreadStartup+0x270<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>fffffadf`a6293170 fffff800`010549fd nt!_C_specific_handler+0x9b<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>fffffadf`a6293200 fffff800`01054f93 nt!RtlpExecuteHandlerForException+0xd<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>fffffadf`a6293230 fffff800`0100b901 nt!RtlDispatchException+0x2c0<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>fffffadf`a62938f0 fffff800`0102e76f nt!KiDispatchException+0xd9<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>fffffadf`a6293ef0 fffff800`0102d5e1 nt!KiExceptionExit<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>fffffadf`a6294070 fffffadf`a53350dc nt!KiPageFault+0x1e1<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>fffffadf`a6294200 fffffadf`a534f041 ibbus!port_query_device_id+0x2ec<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>[s:\builds\4329\trunk\core\bus\kernel\bus_port_mgr.c @ 1598]<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>fffffadf`a6294250 fffffadf`a53496bd ibbus!__query_id+0x3d1<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>[s:\builds\4329\trunk\core\complib\kernel\cl_pnp_po.c @ 1053]<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>fffffadf`a62942b0 fffff800`0133ed04 ibbus!cl_pnp+0x284d<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>[s:\builds\4329\trunk\core\complib\kernel\cl_pnp_po.c @ 312]<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>fffffadf`a62943c0 fffff800`0133e621 nt!IopSynchronousCall+0x144<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>fffffadf`a6294430 fffff800`01331c87 nt!PpQueryDeviceID+0x91<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>fffffadf`a62944f0 fffff800`0133591b nt!PiProcessNewDeviceNode+0x67<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>fffffadf`a6294890 fffff800`013376e5 nt!PipProcessDevNodeTree+0x223<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>fffffadf`a6294c20 fffff800`010cc9d8 nt!PiProcessReenumeration+0x85<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>fffffadf`a6294c70 fffff800`0103768a nt!PipDeviceActionWorker+0x368<o:p></o:p></span></font></pre></div>

</div>

</body>

</html>