storport miniport: showing disk in disk management creating problem

hi all,
i am writing storport miniport driver and able to pass all the command.
it is displaying as disk in device manager-> disk management.
but when i click on initialize disk it is creating problem.
i am continuously getting reset lun and reset device command.
if i am not wrong i should get write command. but i am not getting,
does anybody knows what could be the problem?
if you know then plz help me,
thanks,
Hitesh

You are going to have to provide more information if you expect an
answer other than “new code is broken code”.

What sort of adapter device is this?
Is this a real scsi disk or some emulation?
Have you compared the sequence of events on a functional storport
miniport disk device with the sequence of events on your device?
Have you looked at the sources of disk.sys to understand what the
class driver is doing?

Mark Roddy

On Mon, Oct 11, 2010 at 4:04 AM, wrote:
> hi all,
> i am writing storport miniport driver and able to pass all the command.
> it is displaying as disk in device manager-> disk management.
> but when i click on initialize disk it is creating problem.
> i am continuously getting reset lun and reset device command.
> if i am not wrong i should get write command. but i am not getting,
> does anybody knows what could be the problem?
> if you know then plz help me,
> thanks,
> Hitesh
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
>

>hi all, i am writing storport miniport driver and able to pass all the command. it is displaying as >disk in device manager-> disk management. but when i click on initialize disk it is creating >problem. i am continuously getting reset lun and reset device command. if i am not wrong i should >get write command. but i am not getting, does anybody knows what could be the problem? if you >know then plz help me, thanks, Hitesh

“Reset Lun” and “Reset Device” could be caused by different reasons. I suggest to set up a check version of storport.sys and enable printing debug messages. It would give some information to analyze. If you get “Reset device” I would suggest to check if the driver properly initialize PORT_CONFIGURATION_INFORMATION. You should probably set up a check build of pci.sys. You may see what resources initialize by pci.sys and what you get from storport. For example, if you specify using MSI interrupt in *.inf file but not specifying using MSI in PORT_CONFIGURATION_INFORMATION you would get “Reset device”.

Igor Sharovar

My hunch in this case is OP is not handling any of the SCSI WRITE commands
properly - especially not completing within Srb->TimeOutValue; and as part
of timeout handling storport issues DeviceReset, TargetReset, BusReset and
finally calls HwStorResetBus to reset adapter.

Regards,
Gokul T V

On Mon, Oct 11, 2010 at 10:06 PM, wrote:

> >hi all, i am writing storport miniport driver and able to pass all the
> command. it is displaying as >disk in device manager-> disk management. but
> when i click on initialize disk it is creating >problem. i am continuously
> getting reset lun and reset device command. if i am not wrong i should >get
> write command. but i am not getting, does anybody knows what could be the
> problem? if you >know then plz help me, thanks, Hitesh
>
> “Reset Lun” and “Reset Device” could be caused by different reasons. I
> suggest to set up a check version of storport.sys and enable printing debug
> messages. It would give some information to analyze. If you get “Reset
> device” I would suggest to check if the driver properly initialize
> PORT_CONFIGURATION_INFORMATION. You should probably set up a check build of
> pci.sys. You may see what resources initialize by pci.sys and what you get
> from storport. For example, if you specify using MSI interrupt in *.inf file
> but not specifying using MSI in PORT_CONFIGURATION_INFORMATION you would get
> “Reset device”.
>
> Igor Sharovar
>
>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>