Summary: | cannot submit datapipe for urb 0, error -28: not enough bandwidth when streaming 2 webcams through hub | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Martin Gerdzhev <mgerdjev> |
Component: | [OLD] Core system | Assignee: | Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel> |
Status: | RESOLVED TEST-REQUEST | ||
Severity: | normal | CC: | gentoo |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | linux-2.6.31 | ||
Package list: | Runtime testing required: | --- | |
Attachments: |
/var/log/messages with the error
output of lsusb -v .config gentoo .config ubuntu |
Description
Martin Gerdzhev
2009-05-19 19:32:28 UTC
Created attachment 191825 [details]
/var/log/messages with the error
please attach the output of lsusb -v with hub and camera attached. Created attachment 192135 [details]
output of lsusb -v
The cameras in question are the Logitech, Inc. QuickCam for Notebook Deluxe and the hub appears as NEC Corp. HighSpeed Hub
Let's move to filing this upstream.. Can you reproduce on the latest vanilla kernel release, currently v2.6.30? With 2.6.30 vanilla sources I get only a couple of these: uhci_hcd 0000:00:1d.1: reserve dev 3 ep81-ISO, period 1, phase 0, 608 us Jun 22 16:45:31 MARTO [ 1317.511268] uhci_hcd 0000:00:1d.1: bandwidth allocation failed: period 1, phase 0, 620 + 608 us Jun 22 16:45:31 MARTO [ 1317.511271] gspca: usb_submit_urb [0] err -28 Jun 22 16:45:31 MARTO [ 1317.519905] uhci_hcd 0000:00:1d.1: reserve dev 3 ep83-ISO, period 1, phase 0, 34 us Jun 22 16:45:32 MARTO [ 1319.149261] zc3xx: probe 2wr ov vga 0x0000 Jun 22 16:45:33 MARTO [ 1319.517249] uhci_hcd 0000:00:1d.1: bandwidth allocation failed: period 1, phase 0, 654 + 408 us Jun 22 16:45:33 MARTO [ 1319.517252] gspca: usb_submit_urb [0] err -28 And then the streaming works. The interesting thing is that I managed to test this on Ubuntu with kernel 2.6.27 and it was working ok there as well. I'll try this on the beagleboard as well and will report if it works with the 2.6.30. Anything to report here? I'm using 2.6.31-gentoo-r6 now and this still is a problem with gentoo sources. At the same time on a Ubuntu 9.10 with a 2.6.31-15-generic it works fine. Plugging into 2 different usb ports not through the hub still works but with the hub I am still getting the errors. Ubuntu disables/enables configuration options by default. Can we get .config's for both gentoo and ubuntu's kernel. Created attachment 211954 [details]
.config gentoo
This is my gentoo .config. I'll try and upload the ubuntu .config as soon as possible.
Created attachment 212378 [details]
.config ubuntu
Here's the ubuntu 2.6.31-15 .config
Have you tried compiling the gentoo kernel with the ubuntu config? I can confirm this bug. It will also happen when attempting to use a USB camera and USB headset at the same time. [1]: http://www.mail-archive.com/linux-usb@vger.kernel.org/msg00484.html There are issues with scheduling multiple full-speed USB devices on high-speed USB buses (like your hub) [1]. One quick workaround would be to plug one of the two cameras directly into a full-speed root hub on your PC. You could also buy a hub that supports a Transaction Translator (TT) for each port because your current one has a single one for the whole hub ("Single TT" line in your lsusb). Finally, you can also try some software solutions like playing around with the following kernel options: a) CONFIG_USB_EHCI_TT_NEWSCHED (check out the linux-usb linked thread) b) CONFIG_USB_EHCI_SPLIT_ISO With this option enabled I'm still getting the errors. USB_EHCI_TT_NEWSCHED=y [ 1943.423233] gspca: usb_submit_urb alt 2 err -28 Jan 26 12:10:20 MARTO kernel: [ 1944.922465] zc3xx: probe 2wr ov vga 0x0000 Jan 26 12:10:20 MARTO kernel: [ 1945.134479] ehci_hcd 0000:00:1d.7: iso sched full ffff8800bde4bc00 (now 3016 max 11208) Jan 26 12:10:20 MARTO kernel: [ 1945.134485] gspca: usb_submit_urb alt 1 err -28 Jan 26 12:10:20 MARTO kernel: [ 1945.155101] gspca: no transfer endpoint found And I couldn't find an option CONFIG_USB_EHCI_SPLIT_ISO in the menuconfig. (In reply to comment #11) > Have you tried compiling the gentoo kernel with the ubuntu config? > Have you tried this? I noticed in your Ubuntu config you have this set: USB_EHCI_TT_NEWSCHED But you don't in the gentoo one. Can you build this into the kernel and then retest, please. Symbol: USB_EHCI_TT_NEWSCHED Prompt: Improved Transaction Translator scheduling (EXPERIMENTAL) Depends on: USB_SUPPORT && USB_EHCI_HCD && EXPERIMENTAL Location: -> Device Drivers -> USB support (USB_SUPPORT [=y]) -> Support for Host-side USB (USB [=y]) -> EHCI HCD (USB 2.0) support (USB_EHCI_HCD [=y]) (In reply to comment #16) > I noticed in your Ubuntu config you have this set: > USB_EHCI_TT_NEWSCHED > > But you don't in the gentoo one. Can you build this into the kernel and then > retest, please. > > Symbol: USB_EHCI_TT_NEWSCHED > Prompt: Improved Transaction > Translator scheduling (EXPERIMENTAL) > Depends on: USB_SUPPORT && USB_EHCI_HCD && > EXPERIMENTAL > Location: > -> Device > Drivers > -> USB support (USB_SUPPORT [=y]) > -> Support for Host-side USB (USB [=y]) > -> EHCI HCD (USB 2.0) support (USB_EHCI_HCD [=y]) > I already tried that option. Still didn't work. See comment #14 for the output with the option enabled. I've tried it on linux-2.6.32 and doesn't work there either. Maybe the difference is that the ubuntu on my other machine is x86 not x86_64? Can you compare the output of lsmod from the ubuntu kernel and the gentoo one? Shot in the dark: Can you build into the kernel: USB_GADGET_SELECTED USB_GADGET_DUMMMY_HCD USB_GADGET_DUALSPEED I was experiencing the same issue on a ThinkPad W510 with a USB headset. Adding USB_EHCI_TT_NEWSCHED appears to have fixed the problem for me. I was working now for 2 day's on the problem: "cannot submit datapipe for urb 0, error -28: not enough bandwidth". finally - u cant imagine how simple it was - i found the reason and got my usb-sound back again. the main reason was the "auto-mute feature" after changing audio source with pulse. so try to go ahead. - open gnome-alsamixer or alsamixer - switch to tab USB Mixer - and increase master volume (Speaker) from zero to more... here is the original source for this hint: http://forum.ubuntuusers.de/topic/medusa-5-1-usb-headset/#post-2532118 looks like the errormessage above has nothing todo with missing sound. hope this will help. regards ds |