We have a KMDF driver for our USB device. The problem we are facing
is
that after some random time the WdfRequestSend call to the Bulk-out
endpoint returns TRUE but the corresponding Completion Routine set
with WdfRequestSetCompletionRoutine never gets called.
After this none of the calls to that endpoint result in the
completion
routine getting called.
When I dumped the status of the endpoint, I got this output:
-----
6: kd> !wdfusbpipe 0x7ab69920 1
WDFUSBPIPE 7ab69920
===========================
State: WdfIoTargetStarted
Requests pending: 0
Requests sent: 116
WDFREQUEST 7a383880 !irp 0x85c7c668
Completion routine: (00000000)
context: 85c7b640
WDFREQUEST 7a3f5710 !irp 0x85c0a7d8
Completion routine: (00000000)
context: 85c0a9c8
<snip>
WDFREQUEST 7a3766c8 !irp 0x85c89820
Completion routine: (00000000)
context: 85c88110
DumpEntryList Debugger extension Count of 50 entries exceeded
Requests sent with ignore-target-state: 0
Type UsbdPipeTypeBulk
Direction Out
MaxPacket 0x200, Max Transfer 0x400000
Endpoint Address 0x2
USBD_PIPE_HANDLE 8549657c
!WDFUSBDEVICE 7a413d60
!WDFUSBINTERFACE 7ab69390
-----
The "Requests sent" simply goes on incrementing for every call to
WdfRequestSend.
If I put a breakpoint on the KMDF completion routine associated with
all these IRPs (bp nt!IopUnloadSafeCompletion), I see that it itself
is not getting called.
Any help will be greatly appreciated.
Thanks,
Regards,
Suresh
--
Don Burn (MVP, Windows DKD)
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply
"suresh" <patil_s...@yahoo.com> wrote in message
news:2b0edf54-937f-4561...@w37g2000prg.googlegroups.com...
> __________ Information from ESET NOD32 Antivirus, version of virus
> signature database 4430 (20090916) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>
__________ Information from ESET NOD32 Antivirus, version of virus signature database 4430 (20090916) __________
The message was checked by ESET NOD32 Antivirus.
Regards,
Suresh
On Sep 16, 9:33 pm, "Don Burn" <b...@windrvr.com> wrote:
> Are you sure you did WdfRequestSetCompletionRoutine( Request,
> CompletionRoutine, Context )? It looks to me like your completion routine
> is NULL.
>
> --
> Don Burn (MVP, Windows DKD)
> Windows Filesystem and Driver Consulting
> Website:http://www.windrvr.com
> Blog:http://msmvps.com/blogs/WinDrvr
> Remove StopSpam to reply
>
> "suresh" <patil_suresh...@yahoo.com> wrote in message
> http://www.eset.com- Hide quoted text -
>
> - Show quoted text -