* [ALSA - driver 0002070]: Hard lockup from aplay with low buffersizes on Tascam us-122 (snd_usb_usx2y)
@ 2006-04-25 21:07 bugtrack
0 siblings, 0 replies; 8+ messages in thread
From: bugtrack @ 2006-04-25 21:07 UTC (permalink / raw)
To: alsa-devel
The following issue has been SUBMITTED.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=2070>
======================================================================
Reported By: jaime
Assigned To: karsten
======================================================================
Project: ALSA - driver
Issue ID: 2070
Category: USB - usb-usx2y
Reproducibility: always
Severity: crash
Priority: normal
Status: assigned
Distribution: Gentoo ~x86
Kernel Version: 2.6.17-rc1
======================================================================
Date Submitted: 04-25-2006 23:07 CEST
Last Modified: 04-25-2006 23:07 CEST
======================================================================
Summary: Hard lockup from aplay with low buffersizes on
Tascam us-122 (snd_usb_usx2y)
Description:
Hi.
Here's the original I'm playing (440Hz sine wave):
www.carbon.eclipse.co.uk/origSine.wav
aplay --buffer-size=1024 origSine.wav sounds great:
www.carbon.eclipse.co.uk/aplay1024.wav
aplay --buffer-size=512 origSine.wav sounds bad:
www.carbon.eclipse.co.uk/aplay512.wav
aplay --buffer-size=256 origSine.wav sounds very bad:
www.carbon.eclipse.co.uk/aplay256.wav
aplay --buffer-size=128 origSine.wav gives only a very short click,
and then locks up the machine completely:
www.carbon.eclipse.co.uk/aplay128.wav
I've tried this using different usb cards/controllers, and I get the
same problem, so I think it is an alsa driver problem.
Thank you for any help you can offer.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
04-25-06 23:07 jaime New Issue
04-25-06 23:07 jaime Distribution => Gentoo ~x86
04-25-06 23:07 jaime Kernel Version => 2.6.17-rc1
======================================================================
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] 8+ messages in thread
* [ALSA - driver 0002070]: Hard lockup from aplay with low buffersizes on Tascam us-122 (snd_usb_usx2y)
@ 2006-04-26 14:23 bugtrack
0 siblings, 0 replies; 8+ messages in thread
From: bugtrack @ 2006-04-26 14:23 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=2070>
======================================================================
Reported By: jaime
Assigned To: karsten
======================================================================
Project: ALSA - driver
Issue ID: 2070
Category: USB - usb-usx2y
Reproducibility: always
Severity: crash
Priority: normal
Status: assigned
Distribution: Gentoo ~x86
Kernel Version: 2.6.17-rc1
======================================================================
Date Submitted: 04-25-2006 23:07 CEST
Last Modified: 04-26-2006 16:23 CEST
======================================================================
Summary: Hard lockup from aplay with low buffersizes on
Tascam us-122 (snd_usb_usx2y)
Description:
Hi.
Here's the original I'm playing (440Hz sine wave):
www.carbon.eclipse.co.uk/origSine.wav
aplay --buffer-size=1024 origSine.wav sounds great:
www.carbon.eclipse.co.uk/aplay1024.wav
aplay --buffer-size=512 origSine.wav sounds bad:
www.carbon.eclipse.co.uk/aplay512.wav
aplay --buffer-size=256 origSine.wav sounds very bad:
www.carbon.eclipse.co.uk/aplay256.wav
aplay --buffer-size=128 origSine.wav gives only a very short click,
and then locks up the machine completely:
www.carbon.eclipse.co.uk/aplay128.wav
I've tried this using different usb cards/controllers, and I get the
same problem, so I think it is an alsa driver problem.
Thank you for any help you can offer.
======================================================================
----------------------------------------------------------------------
jaime - 04-26-06 16:23
----------------------------------------------------------------------
Hello again. I've just upgraded to:
Linux 2.6.17-rc2 with Alsa 1.0.11 and I still get the same problem.
Let me know if there is any more info I can provide. :-)
Issue History
Date Modified Username Field Change
======================================================================
04-25-06 23:07 jaime New Issue
04-25-06 23:07 jaime Distribution => Gentoo ~x86
04-25-06 23:07 jaime Kernel Version => 2.6.17-rc1
04-26-06 16:23 jaime Note Added: 0009514
======================================================================
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] 8+ messages in thread
* [ALSA - driver 0002070]: Hard lockup from aplay with low buffersizes on Tascam us-122 (snd_usb_usx2y)
@ 2006-04-26 21:19 bugtrack
0 siblings, 0 replies; 8+ messages in thread
From: bugtrack @ 2006-04-26 21:19 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=2070>
======================================================================
Reported By: jaime
Assigned To: karsten
======================================================================
Project: ALSA - driver
Issue ID: 2070
Category: USB - usb-usx2y
Reproducibility: always
Severity: crash
Priority: normal
Status: assigned
Distribution: Gentoo ~x86
Kernel Version: 2.6.17-rc1
======================================================================
Date Submitted: 04-25-2006 23:07 CEST
Last Modified: 04-26-2006 23:19 CEST
======================================================================
Summary: Hard lockup from aplay with low buffersizes on
Tascam us-122 (snd_usb_usx2y)
Description:
Hi.
Here's the original I'm playing (440Hz sine wave):
www.carbon.eclipse.co.uk/origSine.wav
aplay --buffer-size=1024 origSine.wav sounds great:
www.carbon.eclipse.co.uk/aplay1024.wav
aplay --buffer-size=512 origSine.wav sounds bad:
www.carbon.eclipse.co.uk/aplay512.wav
aplay --buffer-size=256 origSine.wav sounds very bad:
www.carbon.eclipse.co.uk/aplay256.wav
aplay --buffer-size=128 origSine.wav gives only a very short click,
and then locks up the machine completely:
www.carbon.eclipse.co.uk/aplay128.wav
I've tried this using different usb cards/controllers, and I get the
same problem, so I think it is an alsa driver problem.
Thank you for any help you can offer.
======================================================================
----------------------------------------------------------------------
jaime - 04-26-06 16:23
----------------------------------------------------------------------
Hello again. I've just upgraded to:
Linux 2.6.17-rc2 with Alsa 1.0.11 and I still get the same problem.
Let me know if there is any more info I can provide. :-)
----------------------------------------------------------------------
karsten - 04-26-06 23:19
----------------------------------------------------------------------
$ cat /sys/module/snd_usb_usx2y/nrpacks
and if this shows the default 4,
please try again with nrpacks 1.
(rmmod snd_usb_usx2y; modprobe snd_usb_usx2y nrpacks=1)
ultimate info would be a stack backtrace of the crash:
you'd have to set up a serial console or a netconsole for that.
browse kernel/Documentation or google for "how to"s.
Issue History
Date Modified Username Field Change
======================================================================
04-25-06 23:07 jaime New Issue
04-25-06 23:07 jaime Distribution => Gentoo ~x86
04-25-06 23:07 jaime Kernel Version => 2.6.17-rc1
04-26-06 16:23 jaime Note Added: 0009514
04-26-06 23:19 karsten Note Added: 0009526
======================================================================
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] 8+ messages in thread
* [ALSA - driver 0002070]: Hard lockup from aplay with low buffersizes on Tascam us-122 (snd_usb_usx2y)
@ 2006-04-26 21:29 bugtrack
0 siblings, 0 replies; 8+ messages in thread
From: bugtrack @ 2006-04-26 21:29 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=2070>
======================================================================
Reported By: jaime
Assigned To: karsten
======================================================================
Project: ALSA - driver
Issue ID: 2070
Category: USB - usb-usx2y
Reproducibility: always
Severity: crash
Priority: normal
Status: assigned
Distribution: Gentoo ~x86
Kernel Version: 2.6.17-rc1
======================================================================
Date Submitted: 04-25-2006 23:07 CEST
Last Modified: 04-26-2006 23:29 CEST
======================================================================
Summary: Hard lockup from aplay with low buffersizes on
Tascam us-122 (snd_usb_usx2y)
Description:
Hi.
Here's the original I'm playing (440Hz sine wave):
www.carbon.eclipse.co.uk/origSine.wav
aplay --buffer-size=1024 origSine.wav sounds great:
www.carbon.eclipse.co.uk/aplay1024.wav
aplay --buffer-size=512 origSine.wav sounds bad:
www.carbon.eclipse.co.uk/aplay512.wav
aplay --buffer-size=256 origSine.wav sounds very bad:
www.carbon.eclipse.co.uk/aplay256.wav
aplay --buffer-size=128 origSine.wav gives only a very short click,
and then locks up the machine completely:
www.carbon.eclipse.co.uk/aplay128.wav
I've tried this using different usb cards/controllers, and I get the
same problem, so I think it is an alsa driver problem.
Thank you for any help you can offer.
======================================================================
----------------------------------------------------------------------
karsten - 04-26-06 23:19
----------------------------------------------------------------------
$ cat /sys/module/snd_usb_usx2y/nrpacks
and if this shows the default 4,
please try again with nrpacks 1.
(rmmod snd_usb_usx2y; modprobe snd_usb_usx2y nrpacks=1)
ultimate info would be a stack backtrace of the crash:
you'd have to set up a serial console or a netconsole for that.
browse kernel/Documentation or google for "how to"s.
----------------------------------------------------------------------
karsten - 04-26-06 23:29
----------------------------------------------------------------------
just red again:
aplay --buffer-size=128 isn't really possible:
thats 2 period with 64frames each.
USB1.1 tranfers data at 1ms chunks: that'll be like 44 to 48 frames.
so jitter is to big.
none the less it shouldn't crash the machine...
Issue History
Date Modified Username Field Change
======================================================================
04-25-06 23:07 jaime New Issue
04-25-06 23:07 jaime Distribution => Gentoo ~x86
04-25-06 23:07 jaime Kernel Version => 2.6.17-rc1
04-26-06 16:23 jaime Note Added: 0009514
04-26-06 23:19 karsten Note Added: 0009526
04-26-06 23:29 karsten Note Added: 0009527
======================================================================
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] 8+ messages in thread
* [ALSA - driver 0002070]: Hard lockup from aplay with low buffersizes on Tascam us-122 (snd_usb_usx2y)
@ 2006-04-30 17:35 bugtrack
0 siblings, 0 replies; 8+ messages in thread
From: bugtrack @ 2006-04-30 17:35 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=2070>
======================================================================
Reported By: jaime
Assigned To: karsten
======================================================================
Project: ALSA - driver
Issue ID: 2070
Category: USB - usb-usx2y
Reproducibility: always
Severity: crash
Priority: normal
Status: assigned
Distribution: Gentoo ~x86
Kernel Version: 2.6.17-rc1
======================================================================
Date Submitted: 04-25-2006 23:07 CEST
Last Modified: 04-30-2006 19:35 CEST
======================================================================
Summary: Hard lockup from aplay with low buffersizes on
Tascam us-122 (snd_usb_usx2y)
Description:
Hi.
Here's the original I'm playing (440Hz sine wave):
www.carbon.eclipse.co.uk/origSine.wav
aplay --buffer-size=1024 origSine.wav sounds great:
www.carbon.eclipse.co.uk/aplay1024.wav
aplay --buffer-size=512 origSine.wav sounds bad:
www.carbon.eclipse.co.uk/aplay512.wav
aplay --buffer-size=256 origSine.wav sounds very bad:
www.carbon.eclipse.co.uk/aplay256.wav
aplay --buffer-size=128 origSine.wav gives only a very short click,
and then locks up the machine completely:
www.carbon.eclipse.co.uk/aplay128.wav
I've tried this using different usb cards/controllers, and I get the
same problem, so I think it is an alsa driver problem.
Thank you for any help you can offer.
======================================================================
----------------------------------------------------------------------
karsten - 04-26-06 23:31
----------------------------------------------------------------------
just red again:
aplay --buffer-size=128 isn't really possible:
thats 2 periods with 64 frames each.
USB1.1 tranfers data at 1ms chunks: that'll be like 44 to 48 frames.
so jitter is too big.
none the less it shouldn't crash the machine...
----------------------------------------------------------------------
jaime - 04-30-06 19:35
----------------------------------------------------------------------
Hi Karsten.
Apologies for the delay - I've been trying to learn a little about kernel
debugging but I'm getting nowhere. :(
Firstly, when I set nrpacks to 1, the problem goes away. Everything then
works fine, even at low buffersizes (I've tested down to 128, which
crashed the system before, and now I just get lots of underrun messages
instead). Also, the audio quality at buffersizes 256 and 512 is now
perfect.
With regards to debugging the lock-ups with nrpacks=4, I've tried quite a
few things, but I can't get any useful info out. When the system locks up,
nothing is written out by the kernel (no oops messages or anything). The
caps-lock key no longer toggles the keyboard led, and magic-sysreq does
nothing. I've even tried running the aplay line in gdb, and when I type
"run" into gdb, my computer instantly reboots (no warnings, no oops
message, nothing, just an instant reboot!)
I'd really appreciate some more help as to what I could do to get some
more info out to debug this problem.
Thanks, Jaime
Issue History
Date Modified Username Field Change
======================================================================
04-25-06 23:07 jaime New Issue
04-25-06 23:07 jaime Distribution => Gentoo ~x86
04-25-06 23:07 jaime Kernel Version => 2.6.17-rc1
04-26-06 16:23 jaime Note Added: 0009514
04-26-06 23:19 karsten Note Added: 0009526
04-26-06 23:29 karsten Note Added: 0009527
04-26-06 23:31 karsten Note Edited: 0009527
04-30-06 19:35 jaime Note Added: 0009550
======================================================================
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] 8+ messages in thread
* [ALSA - driver 0002070]: Hard lockup from aplay with low buffersizes on Tascam us-122 (snd_usb_usx2y)
@ 2006-04-30 19:12 bugtrack
0 siblings, 0 replies; 8+ messages in thread
From: bugtrack @ 2006-04-30 19:12 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=2070>
======================================================================
Reported By: jaime
Assigned To: karsten
======================================================================
Project: ALSA - driver
Issue ID: 2070
Category: USB - usb-usx2y
Reproducibility: always
Severity: crash
Priority: normal
Status: assigned
Distribution: Gentoo ~x86
Kernel Version: 2.6.17-rc1
======================================================================
Date Submitted: 04-25-2006 23:07 CEST
Last Modified: 04-30-2006 21:12 CEST
======================================================================
Summary: Hard lockup from aplay with low buffersizes on
Tascam us-122 (snd_usb_usx2y)
Description:
Hi.
Here's the original I'm playing (440Hz sine wave):
www.carbon.eclipse.co.uk/origSine.wav
aplay --buffer-size=1024 origSine.wav sounds great:
www.carbon.eclipse.co.uk/aplay1024.wav
aplay --buffer-size=512 origSine.wav sounds bad:
www.carbon.eclipse.co.uk/aplay512.wav
aplay --buffer-size=256 origSine.wav sounds very bad:
www.carbon.eclipse.co.uk/aplay256.wav
aplay --buffer-size=128 origSine.wav gives only a very short click,
and then locks up the machine completely:
www.carbon.eclipse.co.uk/aplay128.wav
I've tried this using different usb cards/controllers, and I get the
same problem, so I think it is an alsa driver problem.
Thank you for any help you can offer.
======================================================================
----------------------------------------------------------------------
jaime - 04-30-06 19:35
----------------------------------------------------------------------
Hi Karsten.
Apologies for the delay - I've been trying to learn a little about kernel
debugging but I'm getting nowhere. :(
Firstly, when I set nrpacks to 1, the problem goes away. Everything then
works fine, even at low buffersizes (I've tested down to 128, which
crashed the system before, and now I just get lots of underrun messages
instead). Also, the audio quality at buffersizes 256 and 512 is now
perfect.
With regards to debugging the lock-ups with nrpacks=4, I've tried quite a
few things, but I can't get any useful info out. When the system locks up,
nothing is written out by the kernel (no oops messages or anything). The
caps-lock key no longer toggles the keyboard led, and magic-sysreq does
nothing. I've even tried running the aplay line in gdb, and when I type
"run" into gdb, my computer instantly reboots (no warnings, no oops
message, nothing, just an instant reboot!)
I'd really appreciate some more help as to what I could do to get some
more info out to debug this problem.
Thanks, Jaime
----------------------------------------------------------------------
karsten - 04-30-06 21:12
----------------------------------------------------------------------
ah, glad to read nrpacks=1 helps.
I guess its not necessary to further debug this:
the driver should be changed to only allow buffersizes >= 1024,
when nrpacks!=1.
(nrpacks!=1 is a means to make things work in slowish pc anyhow.)
In the meantime,
just modify your /etc/modprobe.conf so nrpacks=1 will always be applied.
Thanks, Karsten
Issue History
Date Modified Username Field Change
======================================================================
04-25-06 23:07 jaime New Issue
04-25-06 23:07 jaime Distribution => Gentoo ~x86
04-25-06 23:07 jaime Kernel Version => 2.6.17-rc1
04-26-06 16:23 jaime Note Added: 0009514
04-26-06 23:19 karsten Note Added: 0009526
04-26-06 23:29 karsten Note Added: 0009527
04-26-06 23:31 karsten Note Edited: 0009527
04-30-06 19:35 jaime Note Added: 0009550
04-30-06 21:12 karsten Note Added: 0009551
======================================================================
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] 8+ messages in thread
* [ALSA - driver 0002070]: Hard lockup from aplay with low buffersizes on Tascam us-122 (snd_usb_usx2y)
@ 2006-05-02 19:14 bugtrack
0 siblings, 0 replies; 8+ messages in thread
From: bugtrack @ 2006-05-02 19:14 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=2070>
======================================================================
Reported By: jaime
Assigned To: karsten
======================================================================
Project: ALSA - driver
Issue ID: 2070
Category: USB - usb-usx2y
Reproducibility: always
Severity: crash
Priority: normal
Status: assigned
Distribution: Gentoo ~x86
Kernel Version: 2.6.17-rc1
======================================================================
Date Submitted: 04-25-2006 23:07 CEST
Last Modified: 05-02-2006 21:14 CEST
======================================================================
Summary: Hard lockup from aplay with low buffersizes on
Tascam us-122 (snd_usb_usx2y)
Description:
Hi.
Here's the original I'm playing (440Hz sine wave):
www.carbon.eclipse.co.uk/origSine.wav
aplay --buffer-size=1024 origSine.wav sounds great:
www.carbon.eclipse.co.uk/aplay1024.wav
aplay --buffer-size=512 origSine.wav sounds bad:
www.carbon.eclipse.co.uk/aplay512.wav
aplay --buffer-size=256 origSine.wav sounds very bad:
www.carbon.eclipse.co.uk/aplay256.wav
aplay --buffer-size=128 origSine.wav gives only a very short click,
and then locks up the machine completely:
www.carbon.eclipse.co.uk/aplay128.wav
I've tried this using different usb cards/controllers, and I get the
same problem, so I think it is an alsa driver problem.
Thank you for any help you can offer.
======================================================================
----------------------------------------------------------------------
karsten - 04-30-06 21:12
----------------------------------------------------------------------
ah, glad to read nrpacks=1 helps.
I guess its not necessary to further debug this:
the driver should be changed to only allow buffersizes >= 1024,
when nrpacks!=1.
(nrpacks!=1 is a means to make things work in slowish pc anyhow.)
In the meantime,
just modify your /etc/modprobe.conf so nrpacks=1 will always be applied.
Thanks, Karsten
----------------------------------------------------------------------
jaime - 05-02-06 21:14
----------------------------------------------------------------------
Hi Karsten.
I know that you said that it's not worth debugging this, but I'm still
trying to get a stack trace, just to find out what's causing the lockup.
I'm managed to get a serial console working on another machine, and using
the nmi_watchdog, I get the following out 5 seconds after I start aplay:
BUG: NMI Watchdog detected LOCKUP on CPU0, eip c03393a4, registers:
Modules linked in: snd_usb_usx2y snd_usb_lib snd_rawmidi snd_seq_device
..]�.u�.}��...0.
That's all I get, and that was after I'd set the console logging level to
8 (using /proc/sys/kernel/printk).
I've read a lot in the last few days, but I'm not sure what is the best
tool to use, to get that elusive stack trace. What do you recommend?
Thanks
Issue History
Date Modified Username Field Change
======================================================================
04-25-06 23:07 jaime New Issue
04-25-06 23:07 jaime Distribution => Gentoo ~x86
04-25-06 23:07 jaime Kernel Version => 2.6.17-rc1
04-26-06 16:23 jaime Note Added: 0009514
04-26-06 23:19 karsten Note Added: 0009526
04-26-06 23:29 karsten Note Added: 0009527
04-26-06 23:31 karsten Note Edited: 0009527
04-30-06 19:35 jaime Note Added: 0009550
04-30-06 21:12 karsten Note Added: 0009551
05-02-06 21:14 jaime Note Added: 0009578
======================================================================
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] 8+ messages in thread
* [ALSA - driver 0002070]: Hard lockup from aplay with low buffersizes on Tascam us-122 (snd_usb_usx2y)
@ 2006-05-03 0:31 bugtrack
0 siblings, 0 replies; 8+ messages in thread
From: bugtrack @ 2006-05-03 0:31 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=2070>
======================================================================
Reported By: jaime
Assigned To: karsten
======================================================================
Project: ALSA - driver
Issue ID: 2070
Category: USB - usb-usx2y
Reproducibility: always
Severity: crash
Priority: normal
Status: assigned
Distribution: Gentoo ~x86
Kernel Version: 2.6.17-rc1
======================================================================
Date Submitted: 04-25-2006 23:07 CEST
Last Modified: 05-03-2006 02:31 CEST
======================================================================
Summary: Hard lockup from aplay with low buffersizes on
Tascam us-122 (snd_usb_usx2y)
Description:
Hi.
Here's the original I'm playing (440Hz sine wave):
www.carbon.eclipse.co.uk/origSine.wav
aplay --buffer-size=1024 origSine.wav sounds great:
www.carbon.eclipse.co.uk/aplay1024.wav
aplay --buffer-size=512 origSine.wav sounds bad:
www.carbon.eclipse.co.uk/aplay512.wav
aplay --buffer-size=256 origSine.wav sounds very bad:
www.carbon.eclipse.co.uk/aplay256.wav
aplay --buffer-size=128 origSine.wav gives only a very short click,
and then locks up the machine completely:
www.carbon.eclipse.co.uk/aplay128.wav
I've tried this using different usb cards/controllers, and I get the
same problem, so I think it is an alsa driver problem.
Thank you for any help you can offer.
======================================================================
----------------------------------------------------------------------
jaime - 05-02-06 21:14
----------------------------------------------------------------------
Hi Karsten.
I know that you said that it's not worth debugging this, but I'm still
trying to get a stack trace, just to find out what's causing the lockup.
I'm managed to get a serial console working on another machine, and using
the nmi_watchdog, I get the following out 5 seconds after I start aplay:
BUG: NMI Watchdog detected LOCKUP on CPU0, eip c03393a4, registers:
Modules linked in: snd_usb_usx2y snd_usb_lib snd_rawmidi snd_seq_device
..]�.u�.}��...0.
That's all I get, and that was after I'd set the console logging level to
8 (using /proc/sys/kernel/printk).
I've read a lot in the last few days, but I'm not sure what is the best
tool to use, to get that elusive stack trace. What do you recommend?
Thanks
----------------------------------------------------------------------
karsten - 05-03-06 02:31
----------------------------------------------------------------------
"LOCKUP" sounds like you'll not get a stacktrace, 'cause the cpu just
circles around in snd_usb_usx2y.ko somewhere.
this somewhere is about "eip c03393a4".
This bug might be by design:
With nrpacks=4 driver uses urbs with 4 iso packages; thats 4 ms.
With a samplerate of 44100 we have 177 pcm frames in 4ms.
On the other hand you've found out sound is bad for nrpacks=4 and
buffersize<=512:
buffersize=512 most likely means periodsize=256 with 2 periods.
so i think snd_usb_usx2y needs periodsize >= 2* (nrpacks in ms) *
(pcm-frames/ms).
also if i remember correctly, it always made some clicks when i ran it
(only a us428 here) with periodsize=128, 2 periods (and nrpacks=1).
periodsize=64, 4 periods was ok.
also periodsize=128, 2 periods is ok with special rawusb jack mode.
here i'm currently running it (only 44100 sr works) with periodsize=64, 2
periods.
but this is only possible with a VIA uhci usb controller set to 10000
SOFs/s.
(SOF=Start of frame)
Thats a custom feature i don't know of any other usb1.1 controller.
(They run with 1000 SOFs/s. That implies a 2 ms (or is it 3ms?
measurements suggest this, not shure) latency penalty each direction. with
10000 SOFs/s thats only 0.2ms)
this also requires a hacked uhci_hcd.ko and a custom firmware
((dis)assembled & changed it). good thing is measured latency now is
nearly as good as with the onboard soundcard.
Thanks, Karsten
Issue History
Date Modified Username Field Change
======================================================================
04-25-06 23:07 jaime New Issue
04-25-06 23:07 jaime Distribution => Gentoo ~x86
04-25-06 23:07 jaime Kernel Version => 2.6.17-rc1
04-26-06 16:23 jaime Note Added: 0009514
04-26-06 23:19 karsten Note Added: 0009526
04-26-06 23:29 karsten Note Added: 0009527
04-26-06 23:31 karsten Note Edited: 0009527
04-30-06 19:35 jaime Note Added: 0009550
04-30-06 21:12 karsten Note Added: 0009551
05-02-06 21:14 jaime Note Added: 0009578
05-03-06 02:31 karsten Note Added: 0009582
======================================================================
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2006-05-03 0:31 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-26 21:29 [ALSA - driver 0002070]: Hard lockup from aplay with low buffersizes on Tascam us-122 (snd_usb_usx2y) bugtrack
-- strict thread matches above, loose matches on Subject: below --
2006-05-03 0:31 bugtrack
2006-05-02 19:14 bugtrack
2006-04-30 19:12 bugtrack
2006-04-30 17:35 bugtrack
2006-04-26 21:19 bugtrack
2006-04-26 14:23 bugtrack
2006-04-25 21:07 bugtrack
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox