Jump-start your project by learning from devs who
write Windows drivers and file systems every day.
Take an OSR seminar!

OSR is Hiring! Click here to find out more.

Windows Internals & Software Drivers Lab, Santa Clara, CA 5-9 August, 2013
Kernel Debugging & Crash Analysis for Windows Lab, Santa Clara, CA 9-13 September, 2013
Upcoming OSR Seminars:
Writing WDF Drivers for Windows Lab, Boston, MA 7-11 October, 2013
Developing File Systems for Windows, Seattle, WA 5-8 November, 2013


Go Back   OSR Online Lists > ntdev
Welcome, Guest
You must login to post to this list
  Message 1 of 4  
19 Jun 12 01:16
David Zeng
xxxxxx@gmail.com
Join Date: 28 May 2012
Posts To This List: 37
StorPort SRB timeout

Hi, All, I am writing a miniport driver for a raid controller. I have some questions about the SRB timeout: I send an IOCTL via a User-mode application as following: PSRB_IO_CONTROL pSic; pSic->HeaderLength = sizeof(SRB_IO_CONTROL); pSic->Length = cmdSize-sizeof(SRB_IO_CONTROL); pSic->Timeout = 5; pSic->ControlCode = xxxxxxxx; memcpy(pSic->Signature,UniqueString,strlen(UniqueString)); ........ rc = DeviceIoControl(fd, IOCTL_SCSI_MINIPORT, // operation to perform pSic, cmdSize, // input buffer pSic, cmdSize, // output buffer &bytesReturned, // # bytes returned (LPOVERLAPPED) NULL); // synchronous I/O Here I set the timeout value to 5 seconds. The driver received this request, and ignore it(returned the StartIo without calling StorPortNotification(RequestComplete)). But 5 seconds later, nothing happened. The User-mode app is still hanged. I want to know for SRB with SRB_FUNCTION_IO_CONTROL: 1. whether the StorPort will trigger a timeout and complete the SRB automatically? 2. If the SRB timeout, does StorPort send a SRB_FUNCTION_RESET_LOGICAL_UNIT function? I tried SRB with SRB_FUNCTION_EXECUTE_SCSI, StorPort will send SRB_FUNCTION_RESET_LOGICAL_UNIT after timeout. Thanks for your time! -- Best regards, David Zeng --
  Message 2 of 4  
24 Jun 12 21:21
David Zeng
xxxxxx@gmail.com
Join Date: 28 May 2012
Posts To This List: 37
Re: StorPort SRB timeout

Anyone know this about the IOCTL_SCSI_MINIPORT timeout? Pls give me some help! On Tue, Jun 19, 2012 at 1:16 PM, zeng xiaohua <xxxxx@gmail.com> wrote: > Hi, All, > > I am writing a miniport driver for a raid controller. I have some > questions about the SRB timeout: > I send an IOCTL via a User-mode application as following: > PSRB_IO_CONTROL pSic; > pSic->HeaderLength = sizeof(SRB_IO_CONTROL); > pSic->Length = cmdSize-sizeof(SRB_IO_CONTROL); > pSic->Timeout = 5; > pSic->ControlCode = xxxxxxxx; <...excess quoted lines suppressed...> -- Best regards, David Zeng --
  Message 3 of 4  
24 Jun 12 23:43
Girish Basrur
xxxxxx@hotmail.com
Join Date: 02 Jul 2009
Posts To This List: 65
RE: StorPort SRB timeout

Storport does not time the requests which came in as IOCTLs (SRB_FUNCTION_IO_CONTROL) and there is no recovery mechanism (like hierarchical resets) in-built.
  Message 4 of 4  
25 Jun 12 00:50
David Zeng
xxxxxx@gmail.com
Join Date: 28 May 2012
Posts To This List: 37
Re: StorPort SRB timeout

Thanks for you answer! But in the following link of msdn, the description of Timeout filed of SRB_IO_CONTROL says Miniport drivers are not required to time requests because the port driver does. http://msdn.microsoft.com/en-us/library/windows/hardware/ff566339(v=vs.85).aspx So if the documents is wrong, I have to time the IOCTLs requests in the miniport. But Storport just provide one timer through StorPortNotification(RequestTimerCall). Is there any suggestions if I want to time the IOCTLs? BTW, the version of DDK I used is 7600.16385.1. On Mon, Jun 25, 2012 at 11:41 AM, <xxxxx@hotmail.com> wrote: > Storport does not time the requests which came in as IOCTLs > (SRB_FUNCTION_IO_CONTROL) and there is no recovery mechanism (like > hierarchical resets) in-built. > > > --- > NTDEV is sponsored by OSR > > For our schedule of WDF, WDM, debugging and other seminars visit: > http://www.osr.com/seminars <...excess quoted lines suppressed...> -- Best regards, David Zeng --
Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You must login to OSR Online AND be a member of the ntdev list to be able to post.

All times are GMT -5. The time now is 01:14.


Copyright ©2012, OSR Open Systems Resources, Inc.
Based on vBulletin Copyright ©2000 - 2005, Jelsoft Enterprises Ltd.
Modified under license