none
USB HCK test failure only on Server 2012 RRS feed

  • Question

  • I’m running HCK tests on a USB device and its associated driver using the HCK Studio RC, HCK Manager version:  2.0.8400.  I’ve applied the latest filters as of 8/9/2012 @ 1:00AM.

    The failure I’m seeing is on Server 2012 RC when running the “USB Driver Level Re-Enumeration Test”.   This test passes on Windows 8 x86 RC and Windows 8 x64 RC using the same driver and device.   I’ve applied the recent filters, and apparently this test failure isn’t excluded.

    Note that this is the only test that is failing on Server 2012, all other HCK tests have passed.   All tests are passing on Windows 8 x86 RC and Windows 8 x64 RC 

    The error in the log file looks like it might indicate some type of permissions issue when getting the handle to the hub driver which is needed to send the power-cycle IOCTL to the device’s USB port.   I’m basing this guess on the error code 0x80004005 which seems to be related to access restrictions in a number of different circumstances.  Based on comparing the log file to the log file from Win8 x64 where the test passes, it appears that the test fails before the port is ever actually power-cycled. 

    Log file snippet:

    -------

    <Msg
     UserText="Each device existence and state details are obtained.
    " CA="2839808" LA="2866312" >
     <rti id="722821024" />
     <ctx id="2429198766" />
    </Msg>
    <Msg
     UserText="Performing Power Cycle Operation...
    " CA="2839844" LA="2942788" >
     <rti id="722821024" />
     <ctx id="2429198766" />
    </Msg>
    <Msg
     UserText="Getting Driver Information for Executing the Power Cycle call.
    " CA="2839871" LA="2948090" >
     <rti id="722821024" />
     <ctx id="2429198766" />
    </Msg>
    <Msg
     UserText="Obtaining the Driver information...
    " CA="2839899" LA="2956919" >
     <rti id="722821024" />
     <ctx id="2429198766" />
    </Msg>
    <Error
     File="testsrc\driverstest\usb\logotests\device\usbvirttest\user\usbdevicetest.cpp"
     Line="657"
     ErrCode="0x0"
     ErrType="HRESULT"
     ErrorText="The operation completed successfully."
     UserText="Failed to obtain device handle.
    " CA="2840231" LA="2964368" >
     <rti id="722821024" />
     <ctx id="2429198766" />
    </Error>
    <Error
     File="testsrc\driverstest\usb\logotests\device\usbvirttest\user\usbdevicetest.cpp"
     Line="218"
     ErrCode="0x80004005"
     ErrType="HRESULT"
     ErrorText="Unspecified error"
     UserText="Failed PerformPowerCycleOperation call.
    " CA="2840317" LA="2983612" >
     <rti id="722821024" />
     <ctx id="2429198766" />
    </Error>
    <EndTest
     Title="USB Virtualization Test Execution"
     TUID=""
     Result="Fail"
     Repro="&quot;C:\WLK\JobsWorkingDir\Tasks\WTTJobRunFA08ACF3-3870-4E4F-ACAF-0A1EE31F80B4\USBVirtTest.exe&quot;  0957 0123" CA="2840448" LA="3004791" >
     <rti id="722821024" />
     <ctx id="2429198766" />
    </EndTest>

    -------

    The system event log on the test client computer also has a couple of interesting messages:

    -------

    Log Name:      System
    Source:        Application Popup
    Date:          8/10/2012 9:18:19 AM
    Event ID:      26
    Task Category: None
    Level:         Information
    Keywords:      Classic
    Description:
    USBVirtTest.sys cannot find usbrpm.sys

    and

    Log Name:      System
    Source:        Microsoft-Windows-Kernel-PnP
    Date:          8/10/2012 9:18:19 AM
    Event ID:      219
    Task Category: (212)
    Level:         Warning
    Keywords:     
    User:          SYSTEM
    Description:
    The driver \Driver\USBVirtTest failed to load for the device ROOT\SYSTEM\0002.

    ----------

    Apparently there is an unmet dependency on usbrpm.sys.  usbrpm.sys is not present in Windows\system32\drivers directory on the Server 2012 installation.  As an experiment, when I copy a version of usbrpm.sys from Win8 x64 to the Windows\system32\drivers directory and re-run the test, I see messages that indicate that both usbrpm.sys and UsbVirtTest.sys failed to load, although the message about "not finding usbrpm.sys" goes away.

    Any suggestions about what is going wrong here?  If there is any other information that might be useful to diagnose the issue, I would be happy to try and provide it.

    Thanks,

    Steve

    • Moved by HLK ModeratorModerator Wednesday, October 3, 2012 6:17 PM WLK/WHCK related (From:Windows Hardware WDK and Driver Development)
    Friday, August 10, 2012 11:35 PM

Answers