<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="Generator" content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@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;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 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","sans-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.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
span.EmailStyle19
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle20
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle21
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle22
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang="EN-US" link="blue" vlink="purple"><div class="WordSection1"><p class="MsoNormal"><span style="color:#1f497d">HI Alex,</span></p><p class="MsoNormal"><span style="color:#1f497d"> </span></p><p class="MsoNormal">
<span style="color:#1f497d">And just to add on top of it is another related BSOD in IO_StorPortNotification() in nvmestd.c. The StorportDebugPrint statement tries to dereference pCdb structure. And while using STORAGE_REQUEST_BLOCKs, pCdb might be NULL in some cases. This will straight away cause a blue screen while loading the driver (unless it is using SCSI_REQUEST_BLOCK).</span></p>
<p class="MsoNormal"><span style="color:#1f497d"> </span></p><p class="MsoNormal"><span style="color:#1f497d">Thanks</span></p><p class="MsoNormal"><span style="color:#1f497d">Parag Sheth</span></p><p class="MsoNormal"><span style="color:#1f497d"> </span></p>
<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""> Parag Sheth [mailto:<a href="mailto:parag.sheth@avagotech.com">parag.sheth@avagotech.com</a>] <br>
<b>Sent:</b> Wednesday, June 25, 2014 5:23 PM<br><b>To:</b> '<a href="mailto:nvmewin@lists.openfabrics.org">nvmewin@lists.openfabrics.org</a>'<br><b>Subject:</b> RE: [nvmewin] Potential bug in OFA driver 1.3</span></p>
</div></div><p class="MsoNormal"> </p><p class="MsoNormal"><span style="color:#1f497d">Hi Alex,</span></p><p class="MsoNormal"><span style="color:#1f497d"> </span></p><p class="MsoNormal"><span style="color:#1f497d">To the best of my understanding, STORAGE_REQUEST_BLOCK will not be enabled just by building a windows 8 version of driver. We need to add </span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:green;background:white">hwInitData.SrbTypeFlags = SRB_TYPE_FLAG_STORAGE_REQUEST_BLOCK;</span><span style="color:#1f497d"></span></p><p class="MsoNormal">
<span style="color:#1f497d">line to our DriverEntry routine. If we omit this line (in the current 1.3 version of driver this line is omitted), driver will use SCSI_REQUEST_BLOCK.</span></p><p class="MsoNormal"><span style="color:#1f497d"> </span></p>
<p class="MsoNormal"><span style="color:#1f497d">Thanks</span></p><p class="MsoNormal"><span style="color:#1f497d">Parag Sheth</span></p><p class="MsoNormal"><span style="color:#1f497d"> </span></p><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""> Alex Chang [<a href="mailto:Alex.Chang@pmcs.com">mailto:Alex.Chang@pmcs.com</a>] <br>
<b>Sent:</b> Wednesday, June 25, 2014 5:18 PM<br><b>To:</b> Parag Sheth; <a href="mailto:nvmewin@lists.openfabrics.org">nvmewin@lists.openfabrics.org</a><br><b>Subject:</b> RE: [nvmewin] Potential bug in OFA driver 1.3</span></p>
</div></div><p class="MsoNormal"> </p><p class="MsoNormal"><span style="color:#1f497d">Hi Parag,</span></p><p class="MsoNormal"><span style="color:#1f497d"> </span></p><p class="MsoNormal"><span style="color:#1f497d">When you compile the driver for Windows 8 and up, STORAGE_REQUEST_BLOCK will be used rather than SCSI_REQUEST_BLOCK. I wonder how you can have SCSI_REQUEST_BLOCK + Windows 8 combination? And srbhelper is only compiled in for Windows 8.</span></p>
<p class="MsoNormal"><span style="color:#1f497d"> </span></p><p class="MsoNormal"><span style="color:#1f497d">Thanks,</span></p><p class="MsoNormal"><span style="color:#1f497d">Alex</span></p><p class="MsoNormal"><span style="color:#1f497d"> </span></p>
<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""> <a href="mailto:nvmewin-bounces@lists.openfabrics.org">nvmewin-bounces@lists.openfabrics.org</a> [<a href="mailto:nvmewin-bounces@lists.openfabrics.org">mailto:nvmewin-bounces@lists.openfabrics.org</a>] <b>On Behalf Of </b>Parag Sheth<br>
<b>Sent:</b> Wednesday, June 25, 2014 5:12 PM<br><b>To:</b> <a href="mailto:nvmewin@lists.openfabrics.org">nvmewin@lists.openfabrics.org</a><br><b>Subject:</b> [nvmewin] Potential bug in OFA driver 1.3</span></p></div></div>
<p class="MsoNormal"> </p><p class="MsoNormal">Hi All,</p><p class="MsoNormal"> </p><p class="MsoNormal">With the latest 1.3 driver, <span style="color:red">STORAGE</span>_REQUEST_BLOCK support has been added for windows 8 and up. Is this the only configuration allowed with Windows 8 or <span style="color:red">SCSI</span>_REQUEST_BLOCK + windows 8 combination is allowed as well? If allowed, than there are couple of bugs in the way srbhelper (from wdk) is being used. Specifically <span style="font-size:9.5pt;font-family:Consolas;color:black;background:white">SrbSetScsiData</span><span style="font-size:9.5pt;font-family:Consolas;color:black">() and <span style="background:white">SrbGetScsiData</span>() from srbhelper do not handle SCSI_REQUEST_BLOCK properly and will cause command failure.</span></p>
<p class="MsoNormal"> </p><p class="MsoNormal">Thanks</p><p class="MsoNormal">Parag Sheth</p><p class="MsoNormal"> </p></div></body></html>