Re: Not receiving SCSIOP_START_STOP_UNIT during Shutdown

Hi Anand,

Your controller only supports HDD right? If so, I don’t think you ever will
receive SCSIOP_START_STOP_UNIT. You only have SRB_SHUT_DOWN in some cases.

Vu

“Gurpreet Anand” wrote in message
news:xxxxx@ntdev…
> Hi All,
>
> I have the following queries regarding the Shutdown
> handling in the Windows 2000/2003.
>
> I am trying to use SCSIOP_START_STOP_UNIT command
> targeted at the LUN (and delivered to miniport via
> SRB_FUNCTION_EXECUTE_SCSI) to spin down the drives.
>
> To receive SCSIOP_START_STOP_UNIT, I am using the
> following registry entry
> [install_section_name.HW] HKR, “ScsiPort”,
> “NeedsSystemShutdownNotification”, 0x00010001, 1
>
> But I have seen that I am still not receiving
> SCSIOP_START_STOP_UNIT command during shutdown even
> after adding this entry to the registry.
>
> Does anyone has faced this issue.
>
> Thanks,
> Gurpreet
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - now with 250MB free storage. Learn more.
> http://info.mail.yahoo.com/mail_250
>

Hi Vu,

I have created Logical drives on the controllers.

Thanks,
Gurpreet
— ntDev wrote:

> Hi Anand,
>
> Your controller only supports HDD right? If so, I
> don’t think you ever will
> receive SCSIOP_START_STOP_UNIT. You only have
> SRB_SHUT_DOWN in some cases.
>
> Vu
>
> “Gurpreet Anand” wrote in
> message
> news:xxxxx@ntdev…
> > Hi All,
> >
> > I have the following queries regarding the
> Shutdown
> > handling in the Windows 2000/2003.
> >
> > I am trying to use SCSIOP_START_STOP_UNIT command
> > targeted at the LUN (and delivered to miniport via
> > SRB_FUNCTION_EXECUTE_SCSI) to spin down the
> drives.
> >
> > To receive SCSIOP_START_STOP_UNIT, I am using the
> > following registry entry
> > [install_section_name.HW] HKR, “ScsiPort”,
> > “NeedsSystemShutdownNotification”, 0x00010001, 1
> >
> > But I have seen that I am still not receiving
> > SCSIOP_START_STOP_UNIT command during shutdown
> even
> > after adding this entry to the registry.
> >
> > Does anyone has faced this issue.
> >
> > Thanks,
> > Gurpreet
> >
> >
> >
> >
> > Do you Yahoo!?
> > Yahoo! Mail - now with 250MB free storage. Learn
> more.
> > http://info.mail.yahoo.com/mail_250
> >
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as:
> xxxxx@yahoo.com
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>


Celebrate Yahoo!'s 10th Birthday!
Yahoo! Netrospective: 100 Moments of the Web
http://birthday.yahoo.com/netrospective/

Hi,

You normally receive only 1 SRB_SHUT_DOWN per your logical device, unless it
is a boot device. You will not receive any more requests after this SRB.
If 1 of your logical devices is a boot device, you will have multiple
SRB_SHUT_DOWN from the OS to this device (Normally 2). Just treat the
SRB_SHUT_DOWN as a normal request then you should be covered in all cases.

Note: You will not receive the SRB_SHUT_DOWN, or any SRB_FLUSH_CACHE if
your logical device has no valid partitions. Moreover, if you have no
logical data on the device, who cares if they were shut down improperly
right! I think this is why MS does not send you any flush cache or shut
down CMD to the logical devices that do not have valid partitions.

Does your controller supports ATAPI devices also???

Vu

“Gurpreet Anand” wrote in message
news:xxxxx@ntdev…
> Hi Vu,
>
> I have created Logical drives on the controllers.
>
> Thanks,
> Gurpreet
> — ntDev wrote:
>
> > Hi Anand,
> >
> > Your controller only supports HDD right? If so, I
> > don’t think you ever will
> > receive SCSIOP_START_STOP_UNIT. You only have
> > SRB_SHUT_DOWN in some cases.
> >
> > Vu
> >
> > “Gurpreet Anand” wrote in
> > message
> > news:xxxxx@ntdev…
> > > Hi All,
> > >
> > > I have the following queries regarding the
> > Shutdown
> > > handling in the Windows 2000/2003.
> > >
> > > I am trying to use SCSIOP_START_STOP_UNIT command
> > > targeted at the LUN (and delivered to miniport via
> > > SRB_FUNCTION_EXECUTE_SCSI) to spin down the
> > drives.
> > >
> > > To receive SCSIOP_START_STOP_UNIT, I am using the
> > > following registry entry
> > > [install_section_name.HW] HKR, “ScsiPort”,
> > > “NeedsSystemShutdownNotification”, 0x00010001, 1
> > >
> > > But I have seen that I am still not receiving
> > > SCSIOP_START_STOP_UNIT command during shutdown
> > even
> > > after adding this entry to the registry.
> > >
> > > Does anyone has faced this issue.
> > >
> > > Thanks,
> > > Gurpreet
> > >
> > >
> > >
> > >
> > > Do you Yahoo!?
> > > Yahoo! Mail - now with 250MB free storage. Learn
> > more.
> > > http://info.mail.yahoo.com/mail_250
> > >
> >
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as:
> > xxxxx@yahoo.com
> > To unsubscribe send a blank email to
> > xxxxx@lists.osr.com
> >
>
>
>
>
>
>

> Celebrate Yahoo!'s 10th Birthday!
> Yahoo! Netrospective: 100 Moments of the Web
> http://birthday.yahoo.com/netrospective/
>

Hi Vu,

I dont think you have a way to tell in the Miniport
driver that the logical drive is a boot drive.
Moreover one can create a partition on the logical
drive.
DDK tells that SRB_FUNCTION_SHUTDOWN should not
considered as the last call as I can get multiple of
it ( at times more than 2).
I would push this question to MS too to check their
response.
We dont support ATAPI devices for the particular
controller I am using.

Thanks,
Gurpreet

— ntDev wrote:
> Hi,
>
> You normally receive only 1 SRB_SHUT_DOWN per your
> logical device, unless it
> is a boot device. You will not receive any more
> requests after this SRB.
> If 1 of your logical devices is a boot device, you
> will have multiple
> SRB_SHUT_DOWN from the OS to this device (Normally
> 2). Just treat the
> SRB_SHUT_DOWN as a normal request then you should be
> covered in all cases.
>
> Note: You will not receive the SRB_SHUT_DOWN, or
> any SRB_FLUSH_CACHE if
> your logical device has no valid partitions.
> Moreover, if you have no
> logical data on the device, who cares if they were
> shut down improperly
> right! I think this is why MS does not send you any
> flush cache or shut
> down CMD to the logical devices that do not have
> valid partitions.
>
> Does your controller supports ATAPI devices also???
>
> Vu
>
> “Gurpreet Anand” wrote in
> message
> news:xxxxx@ntdev…
> > Hi Vu,
> >
> > I have created Logical drives on the controllers.
> >
> > Thanks,
> > Gurpreet
> > — ntDev wrote:
> >
> > > Hi Anand,
> > >
> > > Your controller only supports HDD right? If so,
> I
> > > don’t think you ever will
> > > receive SCSIOP_START_STOP_UNIT. You only have
> > > SRB_SHUT_DOWN in some cases.
> > >
> > > Vu
> > >
> > > “Gurpreet Anand”
> wrote in
> > > message
> > > news:xxxxx@ntdev…
> > > > Hi All,
> > > >
> > > > I have the following queries regarding the
> > > Shutdown
> > > > handling in the Windows 2000/2003.
> > > >
> > > > I am trying to use SCSIOP_START_STOP_UNIT
> command
> > > > targeted at the LUN (and delivered to miniport
> via
> > > > SRB_FUNCTION_EXECUTE_SCSI) to spin down the
> > > drives.
> > > >
> > > > To receive SCSIOP_START_STOP_UNIT, I am using
> the
> > > > following registry entry
> > > > [install_section_name.HW] HKR, “ScsiPort”,
> > > > “NeedsSystemShutdownNotification”, 0x00010001,
> 1
> > > >
> > > > But I have seen that I am still not receiving
> > > > SCSIOP_START_STOP_UNIT command during shutdown
> > > even
> > > > after adding this entry to the registry.
> > > >
> > > > Does anyone has faced this issue.
> > > >
> > > > Thanks,
> > > > Gurpreet
> > > >
> > > >
> > > >
> > > >
> > > > Do you Yahoo!?
> > > > Yahoo! Mail - now with 250MB free storage.
> Learn
> > > more.
> > > > http://info.mail.yahoo.com/mail_250
> > > >
> > >
> > >
> > >
> > > —
> > > Questions? First check the Kernel Driver FAQ at
> > > http://www.osronline.com/article.cfm?id=256
> > >
> > > You are currently subscribed to ntdev as:
> > > xxxxx@yahoo.com
> > > To unsubscribe send a blank email to
> > > xxxxx@lists.osr.com
> > >
> >
> >
> >
> >
> >
> >

> > Celebrate Yahoo!'s 10th Birthday!
> > Yahoo! Netrospective: 100 Moments of the Web
> > http://birthday.yahoo.com/netrospective/
> >
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as:
> xxxxx@yahoo.com
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com