Try it on a non vm system. Only then can you say hat the vm is not introducing this error. The usb stack in the vm is entirely synthetic so who know what is going on in it.
d
debt from my phone
From: xxxxx@yahoo.com
Sent: 1/5/2012 3:30 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] USB device & hibernation
Tim,
- I put a bp on my POWER handler and it wasn’t called. Well, I did it only once and was a bit tired (it was at 3:00 AM). Probably I missed something. Have to try again. I debug using VMWare.
Does everything work OK if you suspend and resume?
Didn’t get what you meant. If you speak about “stand by” mode – then everything is Ok. My driver handles it correctly, a user app doesn’t loose connection with the device. If you speak about hibernation, then behavior is what I described above.
- Thank you, I’ll try to issue ‘.reload’ to debugger.
Doron, it looks that I didn’t get neither S nor D POWER IRPs. But again, I have to check more, because it looks too strange. Probably I missed something.
The architecture is XP SP2 on x86 on VMWare. Also tried the same driver on Win7 x86-64 on VMWare, but got strange BSoD, saying that IRP that came from OS is NULL. I don’t trust VMWare when working with hardware (even tested and proved drivers that work with USB generate BSoDs on VMWare), but the problem still reproducible in XP SP2 on x86 on VMWare. So I think about trying to debug on XP SP2 x86 on VMWare, if it is not possible then will look how to connect to real PC.
Alex, could you explain what did you mean saying:
I found that it needs quite exact sequence of power IRP handling and configuration requests.
Also I’ll try (Ctrl+Alt+V) and (Ctrl+Alt+K), thank you.
I am out of the device for a few days, will continue working with it on Sunday evening. So now I can just reread POWER handler’s code without any real debugging :(. Probably will try to reproduce the problem on this weekend with other USB hardware if will find any…
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