Whose driver is mrtcb?
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@embeddedintelligence.com
Sent: Wednesday, May 23, 2007 7:48 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Device cleanup not called after surprise removal
Hi Doron;
The device that I'm developing the driver for is a PCI card, not the bus
extender itself. I have my card plugged into the bus extender when I
surprise remove it (the extender) from the system. This sends the
surprise remove to my card.
After I've inserted the bus extender and my card has been recognized,
the following info is available from the debugger:
lkd> !wdfkd.wdfdevice 0x7b5daa60
Dumping WDFDEVICE 0x7b5daa60
WDM PDEVICE_OBJECTs:self 84a44b98, attached 84a87a60, pdo 85552030
Pnp state: 119 ( WdfDevStatePnpStarted )
Power state: 307 ( WdfDevStatePowerD0 )
Power Pol state: 565 ( WdfDevStatePwrPolStarted )
Default WDFIOTARGET: 7aa81ed8
No pended pnp or power irps
Device is the power policy owner for the stack
lkd> !devstack 84a44b98
!DevObj !DrvObj !DevExt ObjectName
84a44b98 \Driver\copleycan 84a25760
84a87a60 \Driver\mrtcb 84a87b18
85552030 \Driver\PCI 855520e8 NTPNP_PCI0027
!DevNode 84a84800 :
DeviceInst is
"PCI\VEN_10EE&DEV_D154&SUBSYS_D15410EE&REV_00\6&2b8c85f2&0&20200050"
ServiceName is "copleycan"
lkd> !devnode 84a84800
DevNode 0x84a84800 for PDO 0x85552030
Parent 0x84e803f0 Sibling 0000000000 Child 0000000000
InstancePath is
"PCI\VEN_10EE&DEV_D154&SUBSYS_D15410EE&REV_00\6&2b8c85f2&0&20200050"
ServiceName is "copleycan"
State = DeviceNodeStarted (0x308)
Previous State = DeviceNodeEnumerateCompletion (0x30d)
StateHistory[07] = DeviceNodeEnumerateCompletion (0x30d)
StateHistory[06] = DeviceNodeStarted (0x308)
StateHistory[05] = DeviceNodeStartPostWork (0x307)
StateHistory[04] = DeviceNodeStartCompletion (0x306)
StateHistory[03] = DeviceNodeResourcesAssigned (0x304)
StateHistory[02] = DeviceNodeDriversAdded (0x303)
StateHistory[01] = DeviceNodeInitialized (0x302)
StateHistory[00] = DeviceNodeUninitialized (0x301)
StateHistory[19] = Unknown State (0x0)
StateHistory[18] = Unknown State (0x0)
StateHistory[17] = Unknown State (0x0)
StateHistory[16] = Unknown State (0x0)
StateHistory[15] = Unknown State (0x0)
StateHistory[14] = Unknown State (0x0)
StateHistory[13] = Unknown State (0x0)
StateHistory[12] = Unknown State (0x0)
StateHistory[11] = Unknown State (0x0)
StateHistory[10] = Unknown State (0x0)
StateHistory[09] = Unknown State (0x0)
StateHistory[08] = Unknown State (0x0)
Flags (0x00000030) DNF_ENUMERATED, DNF_IDS_QUERIED
After surprise removal of the bus extender:
lkd> !wdfkd.wdfdevice 0x7b5daa60
Dumping WDFDEVICE 0x7b5daa60
WDM PDEVICE_OBJECTs:self 84a44b98, attached 84a87a60, pdo 85552030
Pnp state: 12e ( WdfDevStatePnpFailedWaitForRemove )
Power state: 315 ( WdfDevStatePowerStopped )
Power Pol state: 563 ( WdfDevStatePwrPolStopped )
Default WDFIOTARGET: 7aa81ed8
No pended pnp or power irps
Device is the power policy owner for the stack
lkd> !devstack 84a44b98
!DevObj !DrvObj !DevExt ObjectName
84a44b98 \Driver\copleycan 84a25760
84a87a60 \Driver\mrtcb 84a87b18
lkd> !devnode 84a84800
DevNode 0x84a84800 for PDO 0x85552030
Parent 0000000000 Sibling 0000000000 Child 0000000000
InstancePath is
"PCI\VEN_10EE&DEV_D154&SUBSYS_D15410EE&REV_00\6&2b8c85f2&0&20200050"
ServiceName is "copleycan"
State = DeviceNodeDeleted (0x314)
Previous State = DeviceNodeDeletePendingCloses (0x313)
StateHistory[12] = DeviceNodeDeletePendingCloses (0x313)
StateHistory[11] = DeviceNodeRemovePendingCloses (0x311)
StateHistory[10] = DeviceNodeStarted (0x308)
StateHistory[09] = DeviceNodeAwaitingQueuedDeletion (0x30e)
StateHistory[08] = DeviceNodeStarted (0x308)
StateHistory[07] = DeviceNodeEnumerateCompletion (0x30d)
StateHistory[06] = DeviceNodeStarted (0x308)
StateHistory[05] = DeviceNodeStartPostWork (0x307)
StateHistory[04] = DeviceNodeStartCompletion (0x306)
StateHistory[03] = DeviceNodeResourcesAssigned (0x304)
StateHistory[02] = DeviceNodeDriversAdded (0x303)
StateHistory[01] = DeviceNodeInitialized (0x302)
StateHistory[00] = DeviceNodeUninitialized (0x301)
StateHistory[19] = Unknown State (0x0)
StateHistory[18] = Unknown State (0x0)
StateHistory[17] = Unknown State (0x0)
StateHistory[16] = Unknown State (0x0)
StateHistory[15] = Unknown State (0x0)
StateHistory[14] = Unknown State (0x0)
StateHistory[13] = Unknown State (0x0)
Flags (0x00002020) DNF_IDS_QUERIED, DNF_HAS_PROBLEM
Problem = CM_PROB_DEVICE_NOT_THERE
I'm trying to make sense of this info, but am light on experience. Any
thoughts?
Thanks,
Steve
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at