Re: 1394 + WinXP SP2

From: Philip Lukidis (pagefault0x0_at_hotmail.com)
Date: 08/12/04


Date: Thu, 12 Aug 2004 11:01:16 -0400


"Arne Caspari" <arne_caspari@nospam> wrote in message
news:%236cnneHgEHA.592@TK2MSFTNGP11.phx.gbl...
> Philip Lukidis wrote:
>
>
> > [snip]
> >
> > Your driver symbols to not appear to be correct (or the symbols have
been
> > unloaded as your driver seems to have been, see below), best that you
use
> > current driver symbols for a stack trace. I have not used the DDK 1394
> > samples, so I am not familiar with their structure. But the first entry
in
> > the trace seems to indicate that your driver has unloaded (hence its
symbols
> > have been unloaded as well) without having unregistered its bus reset
> > routine. Verify that you are unregistering for bus reset notification
along
> > all unload paths for your device.
>
> Right, the bus reset routine was not unregistered but it should since
> HwInitialize returned with an error.
>
> I have fixed that now but I still can not send a single asynchronous
> packet after I unplug/replug the device.
>
> Have you tested your device with the SP2 yet? If I uninstall SP2,
> everything is fine again...
>
> Thanks,
>
> Arne

Unfortunately, I am not familiar with the DDK 1394 example code, so I don't
know what HwInitialize does, or what paths are taken if it fails, or where
bus reset notification unregistration is done. What is failing in
HwInitialize when you step through it with WinDBG? This may give a clue.

My own drivers do very light async I/O, mostly quadlet reads/writes/lock.
Since my device is an audio device most of my I/O is isoch. Async I/O
consists mainly of commands to set control state in the device, or query
control state from it. So far for me, async I/O works fine after several
plug, and unplug. But like I said, I did not do extensive SP2 testing. I
did more testing with SP2 RC2, and found no issues.

Try using SP2 checked build (well, just checked 1394bus.sys, ohci1394.sys to
start with), and setting debug tracing on
(http://support.microsoft.com/default.aspx?scid=kb;EN-US;259855). Download
SP2 checked from here
(http://www.microsoft.com/downloads/details.aspx?FamilyID=7a4d8d12-9f5d-42bb
-b31c-7b31657c869c&DisplayLang=en). If this does not help, try using the
checked HAL and kernel in conjunction as well (see here to do this:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ddtools/hh/ddtools/Checked_104d4d60-e480-4ce7-81c1-cbc5d35e73b8.xml.asp?frame=true).
I honestly don't remember if there is a way of setting kernel and HAL
verbosity of traces (maybe here?
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q314743)

I left the audio device in an audio loop overnight 1 SMP and 1 HT machine
(both with SP2), with no problems (async and isoch I/O is performed in that
case). My control panel application seems to be ok so far. But this is all
preliminary testing.

I guess HwInitialize failure is the place to start...Out of curiosity, did
you try your device with CUV and driver verifier with SP1?

kind regards,

Philip Lukidis



Relevant Pages

  • Re: Driver Sponataneously Unloads
    ... If your driver only has DriverEntry and Unload it will by default unload ... unless you have created a device object. ... however the same problems persist in a bare XP SP2 ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Self-removing driver
    ... I ended up following Volodymyr M. Shcherbyna's suggestion: ... Incremented HandleCount on IRP_MJ_CREATE ... to my Unload routine to prevent a closing conflict as suggested by Pavel A. ... Windows Filesystem and Driver Consulting ...
    (microsoft.public.development.device.drivers)
  • Re: Notification of Driver Unloading
    ... I am not sure if you can force a driver not to unload, ... that this happens becuase the applications is communicating with the COM ... Is there any notification like this? ...
    (microsoft.public.windowsce.platbuilder)
  • Re: WdfControlDeviceInitSetShutdownNotification
    ... why wouuldn't you just do it on device unload as well? ... Please do not send e-mail directly to this alias. ... I tried using EvtDeviceD0Exit but my driver gets called when it is unloaded, ... register shutdown notification. ...
    (microsoft.public.development.device.drivers)
  • Re: newbus integration of MOD_QUIESCE
    ... an unload request is treated as a blocking quiesce request. ... such as "State transition driver into 'shutting ... load overlap? ... it" may mean one thing for a driver, but something else for a file system. ...
    (freebsd-arch)