I had reported this problem a while back and I think never found the
solution and never sent the correct data to the forum. I’m trying to
figure out why this PDO is stuck on top of my bus driver. It has the
WdfDevStatePnpFailedWaitForRemove state. The device was working fine and
it was surprise removed and then it get stuck. There are no open handles
to the device. (not that I know of). What can I do to recover from this
situation?
!wdfdevice 0x7E06B4A0 0xf
Dumping WDFDEVICE 0x7e06b4a0
=================================
WDM PDEVICE_OBJECTs: self 81d8eb48
Pnp state: 12e ( WdfDevStatePnpFailedWaitForRemove )
Power state: 315 ( WdfDevStatePowerStopped )
Power Pol state: 563 ( WdfDevStatePwrPolStopped )
Parent WDFDEVICE 7d6e3bf0
Parent states:
Pnp state: 119 ( WdfDevStatePnpStarted )
Power state: 307 ( WdfDevStatePowerD0 )
Power Pol state: 565 ( WdfDevStatePwrPolStarted )
No pended pnp or power irps
Pnp state history:
[0] WdfDevStatePnpHardwareAvailable (0x108)
[1] WdfDevStatePnpEnableInterfaces (0x109)
[2] WdfDevStatePnpStarted (0x119)
[3] WdfDevStatePnpSurpriseRemoveIoStarted (0x127)
[4] WdfDevStatePnpFailedIoStarting (0x129)
[5] WdfDevStatePnpFailedOwnHardware (0x12a)
[6] WdfDevStatePnpFailed (0x12b)
[7] WdfDevStatePnpFailedWaitForRemove (0x12e)
Power state history:
[0] WdfDevStatePowerD0Starting (0x30f)
[1] WdfDevStatePowerD0StartingConnectInterrupt (0x310)
[2] WdfDevStatePowerD0StartingDmaEnable (0x311)
[3] WdfDevStatePowerD0StartingStartSelfManagedIo (0x312)
[4] WdfDevStatePowerDecideD0State (0x313)
[5] WdfDevStatePowerD0BusWakeOwner (0x309)
[6] WdfDevStatePowerGotoD3Stopped (0x314)
[7] WdfDevStatePowerStopped (0x315)
Power policy state history:
[0] WdfDevStatePwrPolObjectCreated (0x500)
[1] WdfDevStatePwrPolStarting (0x501)
[2] WdfDevStatePwrPolStarted (0x565)
[3] WdfDevStatePwrPolStartingSucceeded (0x502)
[4] WdfDevStatePwrPolStopping (0x55b)
[5] WdfDevStatePwrPolStoppingWaitingForImplicitPowerDown (0x579)
[6] WdfDevStatePwrPolStoppingSendStatus (0x55d)
[7] WdfDevStatePwrPolStopped (0x563)
!wdfqueue 0x7DE6F850
*** ERROR: Module load completed but symbols could not be loaded for
vpc-s3.sys
*** WARNING: Unable to verify timestamp for vpc-s3.dll
*** ERROR: Module load completed but symbols could not be loaded for
vpc-s3.dll
*** WARNING: Unable to verify timestamp for ATMFD.DLL
*** ERROR: Module load completed but symbols could not be loaded for
ATMFD.DLL
*** ERROR: Module load completed but symbols could not be loaded for
MRxVPC.sys
*** ERROR: Module load completed but symbols could not be loaded for
vmsrvc.sys
Dumping WDFQUEUE 0x7de6f850
=========================
Parallel, Not power-managed, PowerOn, Cannot accept, Can dispatch,
ExecutionLevelDispatch, SynchronizationScopeNone
Number of driver owned requests: 0
Number of waiting requests: 0
EvtIoDefault: (0xf74786b0) panobus!Device_EvtIoDefault
EvtIoRead: (0xf7478700) panobus!Device_EvtIoRead
EvtIoWrite: (0xf7478730) panobus!Device_EvtIoWrite
EvtIoDeviceControl: (0xf7478790) panobus!Device_EvtIoDeviceControl
EvtIoInternalDeviceControl: (0xf7478a00)
panobus!Device_EvtIoInternalDeviceControl
EvtIoCanceledOnQueue: (0xf7478760) panobus!Device_EvtIoCancelled
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: Tuesday, November 27, 2007 10:22 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] KMDF Stuck Device
The PDO is waiting for the remove irp to show up. either the PDO failed
the start irp b/c one of your power up routines returned !NT_SUCCESS or
you successfully started and then the PDO was reported as failed or
missing. Can you rerun !wdfdevice and specify 0xF as the flags and
send the output? For instance !wdfdevice 0x7cfb9820 0xF. This will
show the history of the pnp state machine which should be able to
indicate if it was a failed start or a s.r.
d
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Pankaj Garg
Sent: Tuesday, November 27, 2007 3:18 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] KMDF Stuck Device
I have a bus driver that creates virtual devices. Once in a while a
device gets stuck…(i.e gone from device manager but not gone from a
system perspective). Here is the dump from WinDBG. Its stuck in
WdfDevStatePnpFailedWaitForRemove.
My question is two part:
- How does this happen?
- What can I do to recover from this?
!wdfkd.WDFDEVICE 0x7cfb9820
Dumping WDFDEVICE 0x7cfb9820
=================================
WDM PDEVICE_OBJECTs: self 83084d28
Pnp state: 12e ( WdfDevStatePnpFailedWaitForRemove )
Power state: 315 ( WdfDevStatePowerStopped )
Power Pol state: 563 ( WdfDevStatePwrPolStopped )
Parent WDFDEVICE 7cfc9bf0
Parent states:
Pnp state: 119 ( WdfDevStatePnpStarted )
Power state: 307 ( WdfDevStatePowerD0 )
Power Pol state: 565 ( WdfDevStatePwrPolStarted )
No pended pnp or power irps
Thanks
Pankaj
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
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