On Fri, 30 Jan 2004, Alan Stern wrote:

> On Sat, 31 Jan 2004, Guennadi Liakhovetski wrote:
>
> > Hm, strange. Now I've got a hang without re-plugging. Just by doing
> > "list", "download". The second one hanged. Log attached.
>
> Strange indeed.  For what it's worth, at the end of your log the -75 error
> indicates that the camera is sending back more information than the
> computer asked for (that's an error with USB) -- assuming it's not a
> symptom of a bug in the UHCI driver!

Yep, babbling was also the error under 2.4, but the behaviour was
different. The driver didn't hang, although, it was unusable after that.
But I could at least remove and re-insert the module.

> The hang after that does appear to be due to a bug in the driver.  It
> doesn't handle unlinking (cancelling) of URBs properly when no devices are
> attached.  Apparently it believes the camera is no longer plugged in...
>
> Here's the next diagnostic for you to try.  Edit the file
> drivers/usb/host/uhci-hcd.c and near the beginning, where it says
>
> static int debug = 1;
>
> change the 1 to 3.  Recompile and install as usual.

Well, looks like I can just provide it as a parameter to the module - I
didn't say, I have it compiled as a module.

> Then run your test again, and after the hang occurs, in another window
> capture the contents of the /proc/driver/uhci/... file that corresponds to
> your controller.

Here it is:

HC status
  usbcmd    =     00c1   Maxp64 CF RS
  usbstat   =     0000
  usbint    =     000f
  usbfrnum  =   (0)9cc
  flbaseadd = 10144000
  sof       =       40
  stat1     =     0495   PortEnabled PortConnected
  stat2     =     0580   LowSpeed
Frame List
Skeleton QH's
- skel_int128_qh
    [d0175000] link (10175032) element (00000001)
      urbp == NULL
- skel_int64_qh
    [d0175030] link (10175062) element (00000001)
      urbp == NULL
- skel_int32_qh
    [d0175060] link (10175092) element (00000001)
      urbp == NULL
- skel_int16_qh
    [d0175090] link (101750c2) element (00000001)
      urbp == NULL
- skel_int8_qh
    [d01750c0] link (101750f2) element (00000001)
      urbp == NULL
- skel_int4_qh
    [d01750f0] link (10175122) element (00000001)
      urbp == NULL
- skel_int2_qh
    [d0175120] link (10175152) element (00000001)
      urbp == NULL
- skel_int1_qh
    [d0175150] link (10175182) element (00000001)
      urbp == NULL
- skel_ls_control_qh
    [d0175180] link (101751b2) element (00000001)
      urbp == NULL
- skel_hs_control_qh
    [d01751b0] link (101751e2) element (00000001)
      urbp == NULL
- skel_bulk_qh
    [d01751e0] link (10175212) element (00000001)
      urbp == NULL
- skel_term_qh
    [d0175210] link (00000001) element (10176000)
      urbp == NULL
Main list URBs: Empty
Remove list URBs:
  1: urb_priv [cf7ab4c4] urb [d48442c0] qh [00000000] Dev=2 EP=0(OUT) CTL FSBR_TO 
Status=0 TDs=2 queued URBs=0
Complete list URBs: Empty

In principle, I could try the camera also with another PC, where I have a
EHCI card. But the 1.1 controller is UHCI too, so, probably doesn't make
much sense. Wouldn't be too easy too: it's a P133...

Thanks
Guennadi
---
Guennadi Liakhovetski




-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to