locked
PNP Surprise Remove Device Test - Problem code 43, status 25175040 (0x18024000) RRS feed

  • Question

  • I have written a PCI based ethernet drivers based on NDIS/netvmini sample code. While running the certification tests it fails PNP Surprise Remove Device Test. It passes the PNPSurpriseRemoveAndRestartDevice test step but fails EDTTryStopDeviceFailRestart step. See the error log below. I googled status 0x1802400 and it seems to be something about the resource not being properly freed. How do I get more debug information about which resources are not being freed? Any other help/suggestions would be appreciated. 

    INFO: [0000000000000000] ******************************Got PNP request IRP_MN_REMOVE_DEVICE
    INFO: [0000000000000000] Enter DriverUnload
    INFO: [0000000000000000] Exit DriverUnload
    WDTF_PNP                  :          Result:   SurpriseRemove processed as expected... 
    WDTF_PNP                  :  - EDTTryStopDeviceFailRestart()
    WDTF_PNP                  :          Target: nsu_host Device PCI\VEN_1957&DEV_0824&SUBSYS_01010100&REV_11\4&E5D2217&0&0008 
    Error: WDTF_PNP                  :          Result:  Device is not started. 
    WDTF_SUPPORT              :  - WaitForSeconds : 15
    Starting HMFT GathererLooking for HMFTs on systemLoading HMFT helper dll:HMFTGatherer_MFHelper.dllSuccessfully loaded MFT hlper DLLChecking for category 1, mediatype 00 MFTs foundChecking for category 1, mediatype 10 MFTs foundChecking for category 1, mediatype 20 MFTs foundChecking for category 1, mediatype 30 MFTs foundChecking for category 1, mediatype 40 MFTs foundChecking for category 1, mediatype 50 MFTs foundChecking for category 1, mediatype 60 MFTs foundChecking for category 1, mediatype 70 MFTs foundChecking for category 1, mediatype 80 MFTs foundChecking for category 1, mediatype 90 MFTs foundChecking for category 1, mediatype 100 MFTs foundChecking for category 2, mediatype 00 MFTs foundChecking for category 2, mediatype 10 MFTs foundChecking for category 2, mediatype 20 MFTs foundChecking for category 2, mediatype 30 MFTs foundChecking for category 2, mediatype 40 MFTs foundChecking for category 2, mediatype 50 MFTs foundChecking for category 2, mediatype 60 MFTs foundChecking for category 2, mediatype 70 MFTs foundChecking for category 2, mediatype 80 MFTs foundChecking for category 2, mediatype 90 MFTs foundChecking for category 2, mediatype 100 MFTs foundHMFT Gatherer succeeded
    EndGroup: PNPDTest::PNPSurpriseRemoveAndRestartDevice#metadataSet0 [Failed]
    Invoking method [PNPDTest::DevFundTestCleanup].
    Telemetry: Unregistering Trace Logging.
    Destroying class [PNPDTest].
    
    Summary of Non-passing Tests:
        PNPDTest::PNPSurpriseRemoveAndRestartDevice#metadataSet0 [Failed]
    
    Summary: Total=1, Passed=0, Failed=1, Blocked=0, Not Run=0, Skipped=0
    Test Authoring and Execution Framework v10.29k for x64
    Property: TAEF: Description [This script reboots the system if the test device is banged out.]
    Instantiating class [RebootForDeviceRecovery].
    
    StartGroup: RebootForDeviceRecovery::RebootForDeviceRecovery_Test
    Property: TAEF: Description [This script reboots the system if the test device is banged out.]
    Invoking method [RebootForDeviceRecovery::RebootForDeviceRecovery_Test].
    Verify: SUCCEEDED(m_pWDTF.CoCreateInstance(__uuidof(WDTF2)))
    WDTF_TARGETS              :  - Query("IsPhantom=False AND ((HardwareIds='PCI\VEN_1957&DEV_0824&SUBSYS_01010100&REV_11' OR DeviceId='PCI\VEN_1957&DEV_0824&SUBSYS_01010100&REV_11\4&E5D2217&0&0008'))")
    WDTF_TARGETS              :          Target: nsu_host Device PCI\VEN_1957&DEV_0824&SUBSYS_01010100&REV_11\4&E5D2217&0&0008 
    Error: WDTF_TEST                 : Found a device that has a non-zero problem code or is phantom. Logging device info.
    WDTF_TEST                 : DeviceID:		PCI\VEN_1957&DEV_0824&SUBSYS_01010100&REV_11\4&E5D2217&0&0008
    WDTF_TEST                 : DisplayName:	nsu_host Device
    WDTF_TEST                 : Status:			25175040
    WDTF_TEST                 : IsPhantom:		FALSE
    WDTF_TEST                 : ProblemCode:	43
    WDTF_TEST                 : Rebooting the system.
    TAEF: Notifying WTT of pending reboot
    EndGroup: RebootForDeviceRecovery::RebootForDeviceRecovery_Test [Failed]
    Destroying class [RebootForDeviceRecovery].
    Invalid parameter passed to C runtime function.
    ShutdownAdapter called
    Start service process [Success]
    MSAFD: Pending APCs in cleanup! Waiting...
    MSAFD: (cleanup) ... No APCs fired, keeping DLL ref count
    Shutdown occurred at (Mon Nov 23 13:45:19.439 2020 (UTC + 0:00))...unloading all symbol tables.
    Using NET for debugging
    Opened WinSock 2.0
    Waiting to reconnect...
    

    Monday, November 23, 2020 4:27 PM