Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > pnpdtest.exe Double Start Test, is this a valid test?

Reply
Thread Tools Display Modes

pnpdtest.exe Double Start Test, is this a valid test?

 
 
DavidP
Guest
Posts: n/a

 
      08-08-2006
Hello,

I was testing my device stack with pnpdtest.exe (from the vista beta
DDK) and it worked fine until I got to the double start test. The test
was complaining that the second start IRP it sent me did not complete
with success. Is this a valid test? I thought that the correct
behaviour of a driver was to fail the second start IRP if the device
was already started...

Also, is there a real world case in which a driver could get back to
back start IRPs?

thanks for your time
David

 
Reply With Quote
 
 
 
 
Eliyas Yakub [MSFT]
Guest
Posts: n/a

 
      08-08-2006
PNP manager sends a start request (IRP_MN_START_DEVICE) after the device is
started only if a function driver (or any driver in charge of the device) in
the device-stack invalidates the device-state by calling
IoInvalidateDeviceState and responds to IRP_MN_QUERY_DEVICE_STATE with
PNP_DEVICE_RESOURCE_REQUIREMENTS_CHANGED.

The pnp manager will never do Start->Start to rebalance resources. It will
always stop the device first before restarting it. So the double start
sequence should be tested only if your driver wants to support such an
operation for any reason.

This is not a required test for logo. In fact, this option is already
removed from the pnpdtest UI. The command line option is still there just in
case the driver wants to support this sequence.


--
-Eliyas
This posting is provided "AS IS" with no warranties, and confers no rights.
http://www.microsoft.com/whdc/driver/tips/default.mspx


 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Kerberos test fialed on netdiag, but kerbtray shows valid tickets Edward Ray Windows Vista Security 0 09-16-2006 12:51 AM
HCT FAT - File I/O Test passed but test log contain red lines Long Ta Windows Vista Drivers 0 11-08-2004 04:04 PM
Compliance Test Suite (for USB 2.0 device) Fails (Enumeration Test) Vishwa Windows Vista Drivers 0 07-14-2004 02:20 PM
WHQL test :card reader test failed in power management test laudraup Windows Vista Drivers 4 07-09-2004 09:25 AM
Re: HCT 11.2 Driver Verifier test : Problem in PMTE test Stephan Wolf Windows Vista Drivers 0 09-29-2003 10:00 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59