Re: [LAD] snd-usb-audio dying on jackd xruns
I got a new PCI USB 2.0 card and now I'm running Jackd at -n2 -p64. I figured this was a hardware glitch. Thanks for confirming... I'll still run debug on this and report. Which kernel did you want me to test? ...Rods ;-) On Thu, Feb 3, 2011 at 01:22, Clemens Ladisch wrote: > Rods Bobavich wrote: > > USB interface is any one of the M-Audio Line. FastTrack USB, FastTrack > Pro, > > MobilePre USB... In other words multiple interfaces have been tested. > This > > problem is specific to this machine... > > > > ALSA urb.c:480: frame 0 active: -75 > > Thank you for not mentioning this message on alsa-devel. > > In the context of USB, the error code -75 means "babble", which is > a technical term from the USB specification that means that the device > sent some data at a time when it shouldn't (or at least the controller > thinks so). > > > ALSA urb.c:146: timeout: still 7 active urbs.. > > ALSA urb.c:146: timeout: still 2 active urbs.. > > ALSA pcm.c:223: 4:2:1: usb_set_interface failed > > As a result of that, the USB controller driver gets wedged. > > > This looks like a hardware problem with your USB controller. Please try > the latest kernel; there were added some workarounds recently. > > You might also try connecting the device through a hub (but there are > some bugs in the EHCI driver which might make it think that it cannot > schedule enough bandwidth for full duplex). > > > > CE: hpet increased min_delta_ns to 7500 nsec > > > > It seems that the error happened about the time of the hpet increase. Do > we > > have a timer problem? > > No, this has nothing to do with USB. This message typically occurs on > AMD system with C1E enabled, and is harmless. > > > Regards, > Clemens > -- > Don't anthropomorphize computers; they don't like it. > ___ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.org http://lists.linuxaudio.org/listinfo/linux-audio-dev
Re: [LAD] snd-usb-audio dying on jackd xruns
> Which kernel? > Ubuntu Linux 2.6.35-25-generic http://packages.ubuntu.com/maverick-updates/linux-image-2.6.35-25-generic I've tried various kernels from 2.6.32 to 2.6.35 various Ubuntu and Debian kernels. All experience the same. I have not yet compiled a kernel myself since it's a lot of work and the performance gains are negligible. Since the problem persists in all kernels I've tried it makes me suspect that the bug is in the master tree not something that was added on in a distro kernel. > Shooting from the hip (and also digging in 2.6.26.5 sources)... looks > like there was a timeout when calling usb_set_interface() > (drivers/usb/core/message.c). The urb transfers look like they > stalled rather than failed to allocate bandwidth. That makes me think > there's a bad cable, bad USB controller, bad USB controller /driver/, > bad format request, bad device, or something like that. > That sounds consistent with my reports. It's speculation, but at least we have that... I bought two PCI USB cards to test against. One is PCI Express USB 3.0 the other is PCI USB 2.0 - I'll report the results. Assuming that the on-board hardware is being unusually slow - this ought to fix it. If it's deeper in the core hardware I should probably scrap this board and get something that works properly. Either way I ought to know something soon. :-D I'll add the USB cards tonight. Stay tuned! :-D ...Rods ;-) ___ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.org http://lists.linuxaudio.org/listinfo/linux-audio-dev
Re: [LAD] snd-usb-audio dying on jackd xruns
I was looking at the wrong urb.c file. The correct one is linux-kernel/sound/usb/urb.c Actually the KERN_ERR is on 138 for my version triggers as line 146... On line 460 is the second KERN_ERR. This is all in a function called retire_capture_urb() It appears that there is a commented continue that would drastically change the for-loop this one is in. I wonder... Could this be the offending line? If I'm reading the code correctly it appears to be some sort of locking mechanism check while retiring the urb from use to make sure it is retired when it is no longer active. Without the continue the urb will still be retired. Perhaps this is causing something unstable? Clemens might know more about this. I'm not that familiar with kernel code. ...Rods ;-) On Wed, Feb 2, 2011 at 11:53, Gabriel Beddingfield wrote: > This link is for a vanilla 2.6.37 kernel. Is this the kernel you're > running? It was only just recently released. > > Also, gotta check that you're looking at the right urb.c and pcm.c > files. IIRC, there's more than one. > > -gabriel > ___ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.org http://lists.linuxaudio.org/listinfo/linux-audio-dev
Re: [LAD] snd-usb-audio dying on jackd xruns
Neither of those lines have anything that looks like it would trigger an error. There are no KERN_ERR calls remotely close. http://lxr.free-electrons.com/source/drivers/usb/core/urb.c ...Rods ;-) On Wed, Feb 2, 2011 at 11:20, Gabriel Beddingfield wrote: > > OK. Next step is to dig in to what these mean: > > [ 46.508331] ALSA urb.c:480: frame 0 active: -75 > [ 46.560332] ALSA urb.c:480: frame 0 active: -75 > [ 98.971734] ALSA urb.c:146: timeout: still 7 active urbs.. > [ 104.970917] ALSA urb.c:146: timeout: still 2 active urbs.. > [ 121.260876] ALSA pcm.c:223: 4:2:1: usb_set_interface failed > > Others might know what these mean. > > Me? I don't. I'd have to inspect the kernel source code. urb.c and > pcm.c are file names in the kernel sources (possibly in the sound/ > folder). The number after the colon (:) is a line number. So, if you > go to urb.c line 480, you see something like printk(KERN_ERR "frame: > %d active: %d", frame, active); The code around might give a clue to > what actually failed. > > -gabriel > ___ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.org http://lists.linuxaudio.org/listinfo/linux-audio-dev
Re: [LAD] snd-usb-audio dying on jackd xruns
I already did that. Unplugged ALL the devices EXCEPT the Audio Interface. Even pulled my keyboard and mouse! This does not appear to be a USB sharing problem. ...Rods ;-) On Wed, Feb 2, 2011 at 11:07, Gabriel Beddingfield wrote: > > Well, maybe try to find out which device it's sharing with (sudo lspci > -v) and then try to unplug/disable that device. > > -gabriel > ___ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.org http://lists.linuxaudio.org/listinfo/linux-audio-dev
Re: [LAD] snd-usb-audio dying on jackd xruns
Tried all the different ports I could. Seems I can't get it on the EHCI buses no matter which ports I use. Even replugged the front USB cable to the other ports but it always comes back on the two OHCI busses. Am thinking of buying a separate PCIE USB card as a temporary work around... I've had to cancel my studio sessions for the week on account of the systems being down. ARG! ...Rods ;-) On Wed, Feb 2, 2011 at 10:48, Gabriel Beddingfield wrote: > > dmsg, lsusb, lsusb -t > > [ 46.458327] ALSA urb.c:480: frame 0 active: -75 > > [ 46.461327] ALSA urb.c:480: frame 0 active: -75 > > [ 46.463328] ALSA urb.c:480: frame 0 active: -75 > > URB is kind of a bulk transfer protocol. Not sure what this error > message means without digging in. > > > /: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ohci_hcd/6p, 12M > > |__ Port 3: Dev 2, If 0, Class=HID, Driver=usbhid, 1.5M > > |__ Port 3: Dev 2, If 1, Class=HID, Driver=usbhid, 1.5M > > /: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ohci_hcd/6p, 12M > > |__ Port 3: Dev 3, If 0, Class=HID, Driver=usbhid, 1.5M > > |__ Port 4: Dev 4, If 0, Class=audio, Driver=snd-usb-audio, 12M > > |__ Port 4: Dev 4, If 1, Class=audio, Driver=snd-usb-audio, 12M > > |__ Port 4: Dev 4, If 2, Class=audio, Driver=snd-usb-audio, 12M > > /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/6p, 480M > > /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/6p, 480M > > Try plugging it into different USB ports. Looks like you're sharing > it with a mouse or something (possibly internally on the MoBo). > > -gabriel > ___ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.org http://lists.linuxaudio.org/listinfo/linux-audio-dev
Re: [LAD] snd-usb-audio dying on jackd xruns
Sorry Gabriel, USB interface is any one of the M-Audio Line. FastTrack USB, FastTrack Pro, MobilePre USB... In other words multiple interfaces have been tested. This problem is specific to this machine... dmsg, lsusb, lsusb -t [ 46.458327] ALSA urb.c:480: frame 0 active: -75 [ 46.461327] ALSA urb.c:480: frame 0 active: -75 [ 46.463328] ALSA urb.c:480: frame 0 active: -75 [ 46.466328] ALSA urb.c:480: frame 0 active: -75 [ 46.468329] ALSA urb.c:480: frame 0 active: -75 [ 46.472326] ALSA urb.c:480: frame 0 active: -75 [ 46.475327] ALSA urb.c:480: frame 0 active: -75 [ 46.479328] ALSA urb.c:480: frame 0 active: -75 [ 46.482328] ALSA urb.c:480: frame 0 active: -75 [ 46.487329] ALSA urb.c:480: frame 0 active: -75 [ 46.489329] ALSA urb.c:480: frame 0 active: -75 [ 46.494290] ALSA urb.c:480: frame 0 active: -75 [ 46.498322] ALSA urb.c:480: frame 0 active: -75 [ 46.501287] ALSA urb.c:480: frame 0 active: -75 [ 46.508331] ALSA urb.c:480: frame 0 active: -75 [ 46.560332] ALSA urb.c:480: frame 0 active: -75 [ 98.971734] ALSA urb.c:146: timeout: still 7 active urbs.. [ 104.970917] ALSA urb.c:146: timeout: still 2 active urbs.. [ 121.260876] ALSA pcm.c:223: 4:2:1: usb_set_interface failed Bus 004 Device 002: ID 046d:c31c Logitech, Inc. Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 004: ID 0763:200f Midiman M-Audio MobilePre Bus 003 Device 003: ID 15ca:00c3 Textech International Ltd. Mini Optical Mouse Bus 003 Device 002: ID 0408:3001 Quanta Computer, Inc. Optical Touch Screen Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub /: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ohci_hcd/6p, 12M |__ Port 3: Dev 2, If 0, Class=HID, Driver=usbhid, 1.5M |__ Port 3: Dev 2, If 1, Class=HID, Driver=usbhid, 1.5M /: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ohci_hcd/6p, 12M |__ Port 3: Dev 3, If 0, Class=HID, Driver=usbhid, 1.5M |__ Port 4: Dev 4, If 0, Class=audio, Driver=snd-usb-audio, 12M |__ Port 4: Dev 4, If 1, Class=audio, Driver=snd-usb-audio, 12M |__ Port 4: Dev 4, If 2, Class=audio, Driver=snd-usb-audio, 12M /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/6p, 480M /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/6p, 480M ...Rods ;-) On Wed, Feb 2, 2011 at 09:58, Gabriel Beddingfield wrote: > And the usb interface is ?? > > Does `dmesg` have any error messages? > > The output of `sudo lsusb` and `sudo lsusb -t` may also be helpful. > (E.g. is the audio interface sharing a hub with something else?) > > -gabriel > ___ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.org http://lists.linuxaudio.org/listinfo/linux-audio-dev
[LAD] snd-usb-audio dying on jackd xruns
So I start jackd and it runs fine for a while. Then ALSA crashes and triggers an xrun. Jackd continues to do its merry thing - minus the part about spitting info out to my soundcard... I've tried multiple usb intefaces. All work fine with other computers. I've tried multiple version of Ubuntu with various versions of ALSA. Only this machine is affected. I have 3 other machines that run these interfaces just fine... So it seems to be a hardware compatibility issue not a software glitch in one version. I've tried many boot flags but to no avail. Am at a loss on how to troubleshoot. The machine is M4N75TD motherboard with a Phenom II 1055T and the latest bios flash. ...Rods ;-) ___ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.org http://lists.linuxaudio.org/listinfo/linux-audio-dev