[speedtouch] Re: speedtouch 330 - a lot of "usb_submit_urb returned -22" messages

2006-12-31 Thread Marek Klon

On Sun, Dec 31, 2006 at 10:38:28AM +0100, Duncan Sands wrote:
> 
> > > So can you please
> > > do the following: make sure that usbcore is loaded with usbfs_snoop=1
> > > (usbfs_snoop is a module parameter).  You can do this by (as root)
> > > removing usbcore then reloading it:
> > > 
> > >   rmmod usbcore
> > >   modprobe usbcore usbfs_snoop=1
> > In new kernel I compiled usbcore into kernel, not as a modules. 
> > so IFAIK to load usbcore with parameter, I should append 
> > to kernel commandline usbfs_snoop=1 right ?? 
> 
> No, it should (I think) be: usbcore.usbfs_snoop=1
> There's a general mechanism in the kernel whereby
> parameter p for module m can be specified on the
> kernel command line as m.p
My mistake...

After correction, syslog-ng take aprox. 90% CPU time,
load slightly increased and messages in dmesg changed to:
[...]
usb 1-2: control read: data 00 
usb 1-2: usbdev_ioctl: CONTROL
usb 1-2: control read: bRequest=01 bRrequestType=c0 wValue=000f
wIndex= wLength=0001
usb 1-2: control read: data 00 
usb 1-2: usbdev_ioctl: SUBMITURB
usb 1-2: bulk urb
usb 1-2: submit urb
usb 1-2: direction=IN
usb 1-2: userurb=bf82efec
usb 1-2: transfer_buffer_length=6
usb 1-2: actual_length=0
usb 1-2: data: c0 01 0f 00 00 00 
usb 1-2: usbfs: usb_submit_urb returned -22
usb 1-2: usbdev_ioctl: CONTROL
usb 1-2: control read: bRequest=12 bRrequestType=c0 wValue=0007
wIndex= wLength=0001
usb 1-2: control read: data 20 
usb 1-2: usbdev_ioctl: CONTROL
usb 1-2: control read: bRequest=12 bRrequestType=c0 wValue=000b
wIndex= wLength=0008
usb 1-2: control read: data 00 00 80 02 00 00 a0 00 
usb 1-2: usbdev_ioctl: CONTROL
usb 1-2: control read: bRequest=12 bRrequestType=c0 wValue=000d
wIndex= wLength=0004
usb 1-2: control read: data 00 00 00 00 
usb 1-2: usbdev_ioctl: CONTROL
usb 1-2: control read: bRequest=01 bRrequestType=c0 wValue=000e
wIndex= wLength=0001
usb 1-2: control read: data 00 
usb 1-2: usbdev_ioctl: CONTROL
usb 1-2: control read: bRequest=01 bRrequestType=c0 wValue=000f
wIndex= wLength=0001
[...]

interesting... The problem is reading data from usb. 

-- 
Marek Klon

Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se désinscrire : mailto:[EMAIL PROTECTED]




[speedtouch] Re: gyp from kernel > 2.6.17.8

2006-12-31 Thread Duncan Sands

> > Lots changed in the kernel and the USB layer.  Nothing changed in
> > the speedtouch driver between 2.6.17 and 2.6.18.  There were some
> > changes for 2.6.19.
> 
> Yes, I noticed. My question was really to do with the USB stuff, mainly
> because this all started when I experienced massive packet loss with
> 2.6.17.8. In particular (and I think it was mentioned on this list) I
> remember reading of problems being experienced with failed URBs when a
> packet full of 0xff's was received; it seemed that the URBs would get
> lost somewhere in the USB stack, although I do not remember seeing a
> fix. Of course my memory could be deceiving me.

What host controller driver are you using?  uhci underwent major surgery
during this time.  Also, I understand that the 0xff problem you mentioned
was fixed.

> > Are you using enable_isoc=1?
> 
> Nope. What does it do? The only option I have set is dl_512_first=1,
> which I turned on in a vain attempt to get speedtch working way back
> when I first bought the modem and was doing battle with udev. I'm sure I
> could remove it without it making any difference.

There's an experimental feature which only works with speedtouch 330s or
better: download using isochronous urbs, rather than bulk urbs.  This
should improve performance on high speed connections.  You can turn it
on with enable_isoc=1.  It may be worth turning on, because one possible
explanation for your problem is that data is coming into the modem faster
than it is being extracted by the computer, and some buffers in the modem
are overflowing.  Of course this wouldn't happen in a bug free world...
Try some recent firmware, such as bin/sachu3/zzzlp2.eni from
http://www.speedtouch.co.uk/downloads/330/301/UK3012%20Extended.zip

> >  Do you also have the userspace driver
> > (it could be forceably disconnecting the kernel module).
> 
> Nope. The only software running at this point is the kernel, udevd,
> udevtrigger and then udevsettle, plus whatever they spawn (modprobe and
> the mounting of /proc/bus/usb). Might udev have something to do with
> this, perhaps by loading modules before their dependencies are properly
> initialized?

Maybe usbatm is built into the kernel, but speedtouch is a module, or
vice-versa?

> On a further note, I have captured an instance of my connection going 
> down inexplicably using 2.6.17.8, and I wonder if you could pass 
> judgement on why this happens.
> 
> At 21:39 on Boxing Day I started experiencing heavy packet loss. Apart 
> from a few bots (like the news spool) which slowly choked to death, 
> nothing much happened, and nothing appeared in the logs until this:
> 
> Dec 26 21:59:12 pfw kernel: ATM dev 0: usbatm_complete: urb 0xd7135ba0 
> failed (-84)!
> Dec 26 21:59:12 pfw kernel: ATM dev 0: usbatm_complete: urb 0xd7135b20 
> failed (-84)!
> Dec 26 21:59:12 pfw kernel: ATM dev 0: usbatm_complete: urb 0xd7135ca0 
> failed (-84)!
> Dec 26 21:59:12 pfw kernel: ATM dev 0: usbatm_complete: urb 0xd7135c20 
> failed (-84)!
> Dec 26 21:59:13 pfw kernel: usb 1-2: USB disconnect, address 2
> Dec 26 21:59:13 pfw kernel: uhci_hcd :00:07.2: remove, state 1
> Dec 26 21:59:13 pfw kernel: usb usb1: USB disconnect, address 1
> Dec 26 21:59:13 pfw kernel: hub 1-0:1.0: hub_port_status failed (err = -19)
> Dec 26 21:59:13 pfw kernel: hub 1-0:1.0: connect-debounce failed, port 2 
> disabled
> Dec 26 21:59:13 pfw kernel: hub 1-0:1.0: cannot disable port 2 (err = -19)
> Dec 26 21:59:13 pfw kernel: uhci_hcd :00:07.2: USB bus 1 deregistered
> Dec 26 21:59:13 pfw kernel: ACPI: PCI interrupt for device :00:07.2 
> disabled
> 
> after which packet loss was 100% (obviously), but pppd (2.4.4) remained
> up for hours until I rebooted. It has gone down a few times since then
> without so much as a squeak from the kernel, just massive packet loss.
> Any ideas?

The pppd behavior is known and annoying - it needs changes to the kernel's
pppoatm module, but I never managed to convince its author of that.  As for
the above, I think it would be best to wait for the CONFIG_USB_DEBUG results
before speculating.

Best wishes,

Duncan.

Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se désinscrire : mailto:[EMAIL PROTECTED]




[speedtouch] Re: speedtouch 330 - a lot of "usb_submit_urb returned -22" messages

2006-12-31 Thread Duncan Sands

> > So can you please
> > do the following: make sure that usbcore is loaded with usbfs_snoop=1
> > (usbfs_snoop is a module parameter).  You can do this by (as root)
> > removing usbcore then reloading it:
> > 
> > rmmod usbcore
> > modprobe usbcore usbfs_snoop=1
> In new kernel I compiled usbcore into kernel, not as a modules. 
> so IFAIK to load usbcore with parameter, I should append 
> to kernel commandline usbfs_snoop=1 right ?? 

No, it should (I think) be: usbcore.usbfs_snoop=1
There's a general mechanism in the kernel whereby
parameter p for module m can be specified on the
kernel command line as m.p

Ciao,

Duncan.

Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se désinscrire : mailto:[EMAIL PROTECTED]