Hi:
I have an issue on my driver with the next Dump, this error only happens on Windows XP, i tested on Windows 7 and Vista and nothing happens.
I got this error when I connect 2 devices that uses the same driver in a different usb Hub.
usbser
|
filter
|
PDO (lower_usb.sys) //This gives me the error in dump
|
FDO
This is the way i assign the device id:
DECLARE_CONST_UNICODE_STRING(hstring, L"USB\VID_15A2&PID_005A&USB2SER");
WCHAR hstring2 = {L"USB\VID_15A2&PID_005A&USB2SER"};
pDeviceInit = WdfPdoInitAllocate(Device);
if (pDeviceInit == NULL) {
status = STATUS_INSUFFICIENT_RESOURCES;
goto Cleanup;
}
//
// Set DeviceType
//
WdfDeviceInitSetDeviceType(pDeviceInit, FILE_DEVICE_SERIAL_PORT);
//
// Provide DeviceID, HardwareIDs, CompatibleIDs and InstanceId
//
deviceId.Buffer = hstring2;
deviceId.Length = 0x0;
deviceId.MaximumLength = sizeof(hstring2);
RtlInitUnicodeString(&deviceId,HardwareIds);
status = WdfPdoInitAssignDeviceID(pDeviceInit, &hstring);
if (!NT_SUCCESS(status)) {
goto Cleanup;
}
status = WdfPdoInitAddHardwareID(pDeviceInit, &hstring);
if (!NT_SUCCESS(status)) {
goto Cleanup;
}
status = WdfPdoInitAddCompatibleID(pDeviceInit, &hstring );
if (!NT_SUCCESS(status)) {
return status;
}
status = WdfPdoInitAssignInstanceID(pDeviceInit, &buffer);
if (!NT_SUCCESS(status)) {
goto Cleanup;
}
*******************************************************************************
* *
* Bugcheck Analysis *
* *
*******************************************************************************
PNP_DETECTED_FATAL_ERROR (ca)
PnP encountered a severe error, either as a result of a problem in a driver or
a problem in PnP itself. The first argument describes the nature of the
problem, the second argument is the address of the PDO. The other arguments
vary depending on argument 1.
Arguments:
Arg1: 00000001, Duplicate PDO
A specific instance of a driver has enumerated multiple PDOs with
identical device id and unique ids.
Arg2: 88f1a668, Newly reported PDO.
Arg3: 890b3a08, PDO of which it is a duplicate.
Arg4: 00000000
Debugging Details:
*** ERROR: Module load completed but symbols could not be loaded for lower_usb.sys
*** No owner thread found for resource 80551f60
*** No owner thread found for resource 80551f60
*** No owner thread found for resource 80551f60
*** No owner thread found for resource 80551f60
BUGCHECK_STR: 0xCA_1
DEVICE_OBJECT: 88f1a668
DRIVER_OBJECT: 8993e5d8
IMAGE_NAME: lower_usb.sys
DEBUG_FLR_IMAGE_TIMESTAMP: 4dfbce3c
MODULE_NAME: lower_usb
FAULTING_MODULE: bae50000 lower_usb
DEFAULT_BUCKET_ID: DRIVER_FAULT
PROCESS_NAME: System
LOCK_ADDRESS: 80551fe0 – (!locks 80551fe0)
Resource @ nt!IopDeviceTreeLock (0x80551fe0) Shared 1 owning threads
Threads: 89ab78b8-01<*>
1 total locks, 1 locks currently held
PNP_TRIAGE:
Lock address : 0x80551fe0
Thread Count : 1
Thread address: 0x89ab78b8
Thread wait : 0x33d0
LAST_CONTROL_TRANSFER: from 80586ec5 to 804f8cb5
STACK_TEXT:
bacff9cc 80586ec5 000000ca 00000001 88f1a668 nt!KeBugCheckEx+0x1b
bacffac8 80587687 89011ee8 88ef1c10 88f2e3d8 nt!PipProcessNewDeviceNode+0x5d1
bacffd1c 80587c56 88f2e3d8 00000001 00000000 nt!PipProcessDevNodeTree+0x16b
bacffd4c 804f58ce 00000003 80552040 8055b0fc nt!PiRestartDevice+0x80
bacffd74 80534c02 00000000 00000000 89ab78b8 nt!PipDeviceActionWorker+0x15e
bacffdac 805c6160 00000000 00000000 00000000 nt!ExpWorkerThread+0x100
bacffddc 80541dd2 80534b02 00000001 00000000 nt!PspSystemThreadStartup+0x34
00000000 00000000 00000000 00000000 00000000 nt!KiThreadStartup+0x16
STACK_COMMAND: kb
FOLLOWUP_NAME: MachineOwner
FAILURE_BUCKET_ID: 0xCA_1_IMAGE_lower_usb.sys_DATE_2011_06_17
BUCKET_ID: 0xCA_1_IMAGE_lower_usb.sys_DATE_2011_06_17
Followup: MachineOwner
Thanks for your help!!