none
StorPortEnablePassiveInitialization is not working RRS feed

  • Question

  • Hi All,

    I am developing a Storport Miniport driver, and I came across a strange problem today. 

    I have below sample routines:

    HwInit(){
    StorPortEnablePassiveInitialization(PassiveInit);
    }

    PassiveInit(){
    //DPC initialization 
    }

    HwStorAdapterControl(){
    ScsiQuerySupportedControlTypes: SCSI_STOP_ADAPTER
    //I have registered only SCSI_STOP_ADAPTER.
    }


    I installed the driver, driverentry -> FindAdapter -> HwInit -> PassiveInit -> AdapterControl Executed in Sequence. Driver successfully installed.

    Then I did a Power Off(Cold) and Powerd On the PC, Since I didn't register ScsiRestartAdapter in adapter power control routine, I was expecting Findadapter, hwinit,and PassiveInit to be called. But the strange part is only Findadapter and HwInit was getting called not PassiveInit(). 

    Eventhough StorPortEnablePassiveInitialization(PassiveInit) was returing TRUE. Still PassiveInit was not getting called.

    Any suggestion would be helpful.

    Thanks in advance,
    Muthu

    Wednesday, August 14, 2019 4:42 AM

All replies

  • For restart adapter code path, HW_PASSIVE_INITIALIZE_ROUTINE is not called which is by design and expected since it is introduced for DPC initialization.
    Thursday, August 22, 2019 5:30 PM
    Moderator