<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:m="http://schemas.microsoft.com/office/2004/12/omml" 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 12 (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>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@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","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
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><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I think the delay is there so that the IOC PnP manager has time
to sweep the fabric and discover the target again. I think it would be great
to have the query relations PNP IRP trigger a sweep, and block until it’s
complete. I don’t know how difficult this would be though.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>-Fab<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
ofw-bounces@lists.openfabrics.org [mailto:ofw-bounces@lists.openfabrics.org] <b>On
Behalf Of </b>Reuven Amitai<br>
<b>Sent:</b> Monday, March 16, 2009 10:09 AM<br>
<b>To:</b> Leonid Keller; James Yang; stan.smith@intel.com<br>
<b>Cc:</b> ofw@lists.openfabrics.org<br>
<b>Subject:</b> RE: [ofw][patch][[ibbus] boot in SAN environment<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<div>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:blue'>Hi,</span><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:blue'>Is this patch needed after Stan's patch ?</span><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:blue'>(Since IBBUS is on top of an HCA device, there is no longer a delay
and the bfi is bounded at creation time</span><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:blue'> -- If I understand the patch correctly ...)</span><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:blue'>Thanks, Reuven.</span><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> <o:p></o:p></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<div class=MsoNormal align=center style='text-align:center'>
<hr size=2 width="100%" align=center>
</div>
<p class=MsoNormal style='margin-bottom:12.0pt'><b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> ofw-bounces@lists.openfabrics.org
[mailto:ofw-bounces@lists.openfabrics.org] <b>On Behalf Of </b>Leonid Keller<br>
<b>Sent:</b> Monday, March 16, 2009 6:22 PM<br>
<b>To:</b> James Yang<br>
<b>Cc:</b> ofw@lists.openfabrics.org<br>
<b>Subject:</b> [ofw][patch][[ibbus] boot in SAN environment</span><o:p></o:p></p>
<div>
<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>this patch
adds a 5s delay to wait for hca up for remote boot in SAN environment.</span><o:p></o:p></p>
<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Signed-off-by:
James Yang </span><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Index:
core/bus/kernel/bus_pnp.c<br>
===================================================================<br>
--- core/bus/kernel/bus_pnp.c (revision 2032)<br>
+++ core/bus/kernel/bus_pnp.c (working copy)<br>
@@ -654,9 +654,10 @@<br>
IN IRP*
const p_irp, <br>
OUT cl_irp_action_t*
const p_action )<br>
{<br>
- NTSTATUS status;<br>
+ NTSTATUS status = STATUS_SUCCESS; /*default to
success*/<br>
bus_fdo_ext_t *p_ext;<br>
bus_filter_t *p_bfi;<br>
+ int waitLoop = 0;<br>
<br>
BUS_ENTER( BUS_DBG_PNP );<br>
<br>
@@ -673,16 +674,18 @@<br>
p_bfi = p_ext->bus_filter;<br>
CL_ASSERT( p_bfi->magic == BFI_MAGIC );<br>
<br>
- if ( p_bfi->ca_guid == 0ULL )<br>
+ while ( p_bfi->ca_guid == 0ULL )<br>
{<br>
/* HCA not yet bound to a BFI slot (no PNP ADD event seen),
no bus<br>
* relations yet.<br>
*/<br>
- status = STATUS_SUCCESS;<br>
- BUS_PRINT(BUS_DBG_PNP, ("%s ca_guid
%I64x\n",p_bfi->whoami,<br>
+ BUS_PRINT(BUS_DBG_ERROR, ("%s ca_guid
%I64x\n",p_bfi->whoami,<br>
p_bfi->ca_guid));<br>
+ cl_thread_suspend( 100 ); /* suspend for 100 ms */<br>
+ waitLoop++;<br>
+ if(waitLoop>50) break;<br>
}<br>
- else<br>
+ if ( p_bfi->ca_guid != 0ULL )<br>
{<br>
status = port_mgr_get_bus_relations( p_bfi->ca_guid, p_irp
);<br>
if( status == STATUS_SUCCESS || <br>
@@ -1271,6 +1274,7 @@<br>
switch( p_io_stack->Parameters.Power.Type )<br>
{<br>
case SystemPowerState:<br>
+#if 0<br>
/*<br>
* Process on the way up the stack. We cannot block
since the <br>
* power dispatch function can be called at elevated IRQL if
the<br>
@@ -1287,7 +1291,7 @@<br>
*p_action = IrpDoNothing;<br>
status = STATUS_PENDING;<br>
break;<br>
-<br>
+#endif<br>
case DevicePowerState:<br>
default:<br>
/* Pass down and let the PDO driver handle it. */</span><o:p></o:p></p>
</div>
</div>
</div>
</body>
</html>