: module hangs at seemingly random times
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1047>
======================================================================
Reported By: alien999999999 Assigned To: mjander ====================================================================== Project: ALSA - driver Issue ID: 1047 Category: PCI - au88x0 Reproducibility: sometimes Severity: block Priority: normal Status: assigned Distribution: Mandrake Kernel Version: 2.6.7 ====================================================================== Date Submitted: 04-12-2005 20:43 CEST Last Modified: 04-12-2005 20:51 CEST
======================================================================
Summary: module hangs at seemingly random times
Description:
sometimes i start playing a song, and it starts playing a few second or so and hangs, then i kill the application and modprobe -r all sound modules and modprobe them again to make it work again.
BUT: sometimes not only that happens, but also when i try to kill the apps it will not kill. when that happens, all kill, killall, top, ps aux commands hang at the command line and cannot be killed by CTRL-C or otherwise, i have been able to see that when i stopped my display managener I did an lsmod and it gave something like this:
snd-pcm-oss 59752 11 snd-mixer-oss 20480 1 snd-pcm-oss snd-au8810 43760 220 snd-ac97-codec 83408 1 snd-au8810 snd-pcm 108172 112 snd-pcm-oss,snd-au8810,snd-ac97-codec snd-page-alloc 10384 1 snd-pcm gameport 3840 1 snd-au8810 snd-mpu401-uart 11904 1 snd-au8810
as you can see the snd-au8810 module seem to have an impossible number of "dependencies" (i think has to do with the number of unclosed sound-apps trying to be played; this could be since gaim is programmed to execute an 'aplay %s')
i've had this major crash below only 3 times; and the logs didn't detect anything specific at the time. the only thing the logs mentioned at that time was an ntpd sync going on; so the only thing i can think of is that at a certain moment when a sync is going on, some kind of lock is holding cause this to happen... the only thing that i can do to fix this is reset...
it is interesting to note that i also have an snd-emu10k1 as second card, which never gave problems like this, and i am always able to "modprobe -r snd-emu10k1" ...
======================================================================
----------------------------------------------------------------------
alien999999999 - 04-12-05 20:48
----------------------------------------------------------------------
i forgot to note that i have the mdk 10.1 x86_64 distro and my version has a few 64bit fixes to get past kernel hangs and kernel oopses
----------------------------------------------------------------------
alien999999999 - 04-12-05 20:51
----------------------------------------------------------------------
i have attached the changed files (since i don't have a CVS version of alsa to diff against)
these files are located in the alsa-driver-1.0.8/alsa-kernel/pci/au88x0/ path
Issue History
Date Modified Username Field Change
======================================================================
04-12-05 20:43 alien999999999 New Issue
04-12-05 20:43 alien999999999 Distribution => Mandrake
04-12-05 20:43 alien999999999 Kernel Version => 2.6.7
04-12-05 20:48 alien999999999 Note Added: 0004461 04-12-05 20:49 alien999999999 File Added: au88x0.c 04-12-05 20:49 alien999999999 File Added: au88x0.h 04-12-05 20:50 alien999999999 File Added: au88x0_core.c 04-12-05 20:50 alien999999999 File Added: au88x0_mixer.c 04-12-05 20:51 alien999999999 Note Added: 0004462
======================================================================
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
au8820 is working on a NForce3-based AMD64 box
http://savannah.nongnu.org/patch/?func=detailitem&item_id=3948
Quoted 79 lines · [email protected] wrote:
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1047> ======================================================================Reported By: alien999999999 Assigned To: mjander ====================================================================== Project: ALSA - driver Issue ID: 1047 Category: PCI - au88x0 Reproducibility: sometimes Severity: block Priority: normal Status: assigned Distribution: Mandrake Kernel Version: 2.6.7 ====================================================================== Date Submitted: 04-12-2005 20:43 CEST Last Modified: 04-12-2005 20:51 CEST======================================================================
Summary: module hangs at seemingly random times
Description: sometimes i start playing a song, and it starts playing a few second or so and hangs, then i kill the application and modprobe -r all sound modules and modprobe them again to make it work again.BUT: sometimes not only that happens, but also when i try to kill the apps it will not kill. when that happens, all kill, killall, top, ps aux commands hang at the command line and cannot be killed by CTRL-C or otherwise, i have been able to see that when i stopped my display managener I did an lsmod and it gave something like this:
snd-pcm-oss 59752 11 snd-mixer-oss 20480 1 snd-pcm-oss snd-au8810 43760 220 snd-ac97-codec 83408 1 snd-au8810 snd-pcm 108172 112 snd-pcm-oss,snd-au8810,snd-ac97-codec snd-page-alloc 10384 1 snd-pcm gameport 3840 1 snd-au8810 snd-mpu401-uart 11904 1 snd-au8810as you can see the snd-au8810 module seem to have an impossible number of "dependencies" (i think has to do with the number of unclosed sound-apps trying to be played; this could be since gaim is programmed to execute an 'aplay %s')
i've had this major crash below only 3 times; and the logs didn't detect anything specific at the time. the only thing the logs mentioned at that time was an ntpd sync going on; so the only thing i can think of is that at a certain moment when a sync is going on, some kind of lock is holding cause this to happen... the only thing that i can do to fix this is reset...
it is interesting to note that i also have an snd-emu10k1 as second card, which never gave problems like this, and i am always able to "modprobe -r snd-emu10k1" ...
======================================================================----------------------------------------------------------------------
alien999999999 - 04-12-05 20:48
----------------------------------------------------------------------
i forgot to note that i have the mdk 10.1x86_64distro and my version has a few 64bit fixes to get past kernel hangs and kernel oopses----------------------------------------------------------------------
alien999999999 - 04-12-05 20:51
----------------------------------------------------------------------
i have attached the changed files (since i don't have a CVS version of alsa to diff against)these files are located in the alsa-driver-1.0.8/alsa-kernel/pci/au88x0/ path
Issue History
Date Modified Username Field Change ======================================================================
04-12-05 20:43 alien999999999 New Issue 04-12-05 20:43 alien999999999 Distribution => Mandrake 04-12-05 20:43 alien999999999 Kernel Version => 2.6.7 04-12-05 20:48 alien999999999 Note Added: 0004461 04-12-05 20:49 alien999999999 File Added:au88x0.c04-12-05 20:49 alien999999999 File Added:au88x0.h04-12-05 20:50 alien999999999 File Added:au88x0_core.c04-12-05 20:50 alien999999999 File Added:au88x0_mixer.c04-12-05 20:51 alien999999999 Note Added: 0004462 ======================================================================
Quoted 5 lines
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
Quoted 28 lines · Alien
Op dinsdag 7 juni 2005 15:44, schreef Raymond:
Quoted 27 lines
After eight instances of "mplayer" playing stereo music concurrently in my 32-bits machine and start an instance of aplay.
aplay outls.wav
Playing WAVE 'outls.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Stereoaplay: set_params:935: Unable to install hw params: ACCESS: RW_INTERLEAVED FORMAT: S16_LE SUBFORMAT: STD SAMPLE_BITS: 16 FRAME_BITS: 32 CHANNELS: 2 RATE: 22050 PERIOD_TIME: (46439 46440) PERIOD_SIZE: 1024 PERIOD_BYTES: 4096 PERIODS: 11 BUFFER_TIME: (510839 510840) BUFFER_SIZE: 11264 BUFFER_BYTES: 45056 TICK_TIME: 10000aplay abort as there is no more SampleRateConvertors available.
Quoted 8 lines
Quoted 3 lines
There is no deadlock or hang. After the "mplayer" finish playing and release the SRCs, I can start another instance of ALSA application to play music.
I'm going to try to do the same thing with xine and CVS aplay, see what happens...
I have use the following script to test, I can hear the sound and my 32-bits machine does not hang/freeze.
aplay mono1.wav &
aplay mono2.wav &
aplay mono3.wav &
aplay mono4.wav &
aplay mono5.wav &
aplay mono6.wav &
aplay mono7.wav &
aplay mono8.wav &
aplay mono9.wav &
aplay mono10.wav &
aplay mono11.wav &
aplay mono12.wav &
aplay mono13.wav &
aplay mono14.wav &
aplay mono15.wav &
aplay mono16.wav &
aplay mono17.wav
Quoted 1 line
and the logs didn't detect anything specific at the time.
#dmesg
vortex: FATAL: ResManager: resource type 1 exhausted.
The above message is correct since 16 SRC (Type 1 resource) have been used up
Quoted 2 lines
snd-pcm-oss 59752 11 snd-mixer-oss 20480 1 snd-pcm-oss
Which oss applications are you rnning ?
Since you are using VIA chipset, have you try the pcifix switch ?
Quoted 52 lines · [email protected] wrote:
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1047> ======================================================================Reported By: alien999999999 Assigned To: mjander ====================================================================== Project: ALSA - driver Issue ID: 1047 Category: PCI - au88x0 Reproducibility: sometimes Severity: block Priority: normal Status: assigned Distribution: Mandrake Kernel Version: 2.6.7 ====================================================================== Date Submitted: 04-12-2005 20:43 CEST Last Modified: 04-12-2005 20:51 CEST======================================================================
Summary: module hangs at seemingly random times
Description: sometimes i start playing a song, and it starts playing a few second or so and hangs, then i kill the application and modprobe -r all sound modules and modprobe them again to make it work again.BUT: sometimes not only that happens, but also when i try to kill the apps it will not kill. when that happens, all kill, killall, top, ps aux commands hang at the command line and cannot be killed by CTRL-C or otherwise, i have been able to see that when i stopped my display managener I did an lsmod and it gave something like this:
snd-pcm-oss 59752 11 snd-mixer-oss 20480 1 snd-pcm-oss snd-au8810 43760 220 snd-ac97-codec 83408 1 snd-au8810 snd-pcm 108172 112 snd-pcm-oss,snd-au8810,snd-ac97-codec snd-page-alloc 10384 1 snd-pcm gameport 3840 1 snd-au8810 snd-mpu401-uart 11904 1 snd-au8810as you can see the snd-au8810 module seem to have an impossible number of "dependencies" (i think has to do with the number of unclosed sound-apps trying to be played; this could be since gaim is programmed to execute an 'aplay %s')
i've had this major crash below only 3 times; and the logs didn't detect anything specific at the time. the only thing the logs mentioned at that time was an ntpd sync going on; so the only thing i can think of is that at a certain moment when a sync is going on, some kind of lock is holding cause this to happen... the only thing that i can do to fix this is reset...
Quoted 3 lines
it is interesting to note that i also have an snd-emu10k1 as second card, which never gave problems like this, and i am always able to "modprobe -r snd-emu10k1" ...
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
If there are 16 instances of aplay playing mono stream.
What error will be returned by snd_pcm_open() for the 17th instance of aplay ?
alsa-kernel/pci/au88x0/au8810.h
#define NR_ADB 0x10
alsa-kernel/pci/au88x0/au8830.h
#define NR_ADB 0x20
alsa-kernel/pci/au88x0/au88x0.c
if ((err = snd_vortex_new_pcm(chip, VORTEX_PCM_ADB, NR_ADB)) < 0) {
snd_card_free(card);
return err;
}Quoted 69 lines · [email protected] wrote:
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1047> ======================================================================Reported By: alien999999999 Assigned To: mjander ====================================================================== Project: ALSA - driver Issue ID: 1047 Category: PCI - au88x0 Reproducibility: sometimes Severity: block Priority: normal Status: assigned Distribution: Mandrake Kernel Version: 2.6.7 ====================================================================== Date Submitted: 04-12-2005 20:43 CEST Last Modified: 04-12-2005 20:51 CEST======================================================================
Summary: module hangs at seemingly random times
Description: sometimes i start playing a song, and it starts playing a few second or so and hangs, then i kill the application and modprobe -r all sound modules and modprobe them again to make it work again.BUT: sometimes not only that happens, but also when i try to kill the apps it will not kill. when that happens, all kill, killall, top, ps aux commands hang at the command line and cannot be killed by CTRL-C or otherwise, i have been able to see that when i stopped my display managener I did an lsmod and it gave something like this:
snd-pcm-oss 59752 11 snd-mixer-oss 20480 1 snd-pcm-oss snd-au8810 43760 220 snd-ac97-codec 83408 1 snd-au8810 snd-pcm 108172 112 snd-pcm-oss,snd-au8810,snd-ac97-codec snd-page-alloc 10384 1 snd-pcm gameport 3840 1 snd-au8810 snd-mpu401-uart 11904 1 snd-au8810as you can see the snd-au8810 module seem to have an impossible number of "dependencies" (i think has to do with the number of unclosed sound-apps trying to be played; this could be since gaim is programmed to execute an 'aplay %s')
i've had this major crash below only 3 times; and the logs didn't detect anything specific at the time. the only thing the logs mentioned at that time was an ntpd sync going on; so the only thing i can think of is that at a certain moment when a sync is going on, some kind of lock is holding cause this to happen... the only thing that i can do to fix this is reset...
it is interesting to note that i also have an snd-emu10k1 as second card, which never gave problems like this, and i am always able to "modprobe -r snd-emu10k1" ...
======================================================================----------------------------------------------------------------------
alien999999999 - 04-12-05 20:48
----------------------------------------------------------------------
i forgot to note that i have the mdk 10.1x86_64distro and my version has a few 64bit fixes to get past kernel hangs and kernel oopses----------------------------------------------------------------------
alien999999999 - 04-12-05 20:51
----------------------------------------------------------------------
i have attached the changed files (since i don't have a CVS version of alsa to diff against)
Quoted 9 lines
these files are located in the alsa-driver-1.0.8/alsa-kernel/pci/au88x0/ path
Issue History
Date Modified Username Field Change ======================================================================
04-12-05 20:43 alien999999999 New Issue 04-12-05 20:43 alien999999999 Distribution => Mandrake 04-12-05 20:43 alien999999999 Kernel Version => 2.6.7 04-12-05 20:48 alien999999999 Note Added: 0004461 04-12-05 20:49 alien999999999 File Added:au88x0.c04-12-05 20:49 alien999999999 File Added:au88x0.h04-12-05 20:50 alien999999999 File Added:au88x0_core.c04-12-05 20:50 alien999999999 File Added:au88x0_mixer.c04-12-05 20:51 alien999999999 Note Added: 0004462 ======================================================================
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
I'm not too sure, but i _can_ tell you that lastly i had two weird errors about something adb, when snd-au8810 didn't play any sound anymore, i was able to kill all apps who use sound and modprobe -r snd-au8810, and modprobe again, and without reboot i was able to get sound working again.
I must say that i haven't been on this PC much and haven't had much time to test these things, allthough i'm planning too, (but i think i'll update CVS first with these 2 patches who got lost accidentally before i test this. I hope i'll get some time this week(end).
thanks for all the help and info concerning snd-au8810 (in 64bit)
AL13N
Op zondag 31 juli 2005 09:59, schreef Raymond:
Quoted 116 lines
If there are 16 instances of aplay playing mono stream.
What error will be returned by
snd_pcm_open()for the 17th instance of aplay ?
alsa-kernel/pci/au88x0/au8810.h#define
NR_ADB0x10
alsa-kernel/pci/au88x0/au8830.h#define
NR_ADB0x20
alsa-kernel/pci/au88x0/au88x0.cif ((err = snd_vortex_new_pcm(chip, VORTEX_PCM_ADB, NR_ADB)) < 0) { snd_card_free(card); return err; }Quoted 74 lines · [email protected] wrote:
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1047>
======================================================================Reported By: alien999999999 Assigned To: mjander ====================================================================== Project: ALSA - driver Issue ID: 1047 Category: PCI - au88x0 Reproducibility: sometimes Severity: block Priority: normal Status: assigned Distribution: Mandrake Kernel Version: 2.6.7 ====================================================================== Date Submitted: 04-12-2005 20:43 CEST Last Modified: 04-12-2005 20:51 CEST======================================================================
Summary: module hangs at seemingly random times
Description:
sometimes i start playing a song, and it starts playing a few second or so and hangs, then i kill the application and modprobe -r all sound modules and modprobe them again to make it work again.BUT: sometimes not only that happens, but also when i try to kill the apps it will not kill. when that happens, all kill, killall, top, ps aux commands hang at the command line and cannot be killed by CTRL-C or otherwise, i have been able to see that when i stopped my display managener I did an lsmod and it gave something like this:
snd-pcm-oss 59752 11 snd-mixer-oss 20480 1 snd-pcm-oss snd-au8810 43760 220 snd-ac97-codec 83408 1 snd-au8810 snd-pcm 108172 112 snd-pcm-oss,snd-au8810,snd-ac97-codec snd-page-alloc 10384 1 snd-pcm gameport 3840 1 snd-au8810 snd-mpu401-uart 11904 1 snd-au8810as you can see the snd-au8810 module seem to have an impossible number of "dependencies" (i think has to do with the number of unclosed sound-apps trying to be played; this could be since gaim is programmed to execute an 'aplay %s')
i've had this major crash below only 3 times; and the logs didn't detect anything specific at the time. the only thing the logs mentioned at that time was an ntpd sync going on; so the only thing i can think of is that at a certain moment when a sync is going on, some kind of lock is holding cause this to happen... the only thing that i can do to fix this is reset...
it is interesting to note that i also have an snd-emu10k1 as second card, which never gave problems like this, and i am always able to "modprobe -r snd-emu10k1" ...
======================================================================----------------------------------------------------------------------
alien999999999 - 04-12-05 20:48
----------------------------------------------------------------------
i forgot to note that i have the mdk 10.1x86_64distro and my version has a few 64bit fixes to get past kernel hangs and kernel oopses----------------------------------------------------------------------
alien999999999 - 04-12-05 20:51
----------------------------------------------------------------------
i have attached the changed files (since i don't have a CVS version of alsa to diff against)these files are located in the alsa-driver-1.0.8/alsa-kernel/pci/au88x0/ path
Quoted 13 lines
Issue History
Date Modified Username Field Change
======================================================================
04-12-05 20:43 alien999999999 New Issue
04-12-05 20:43 alien999999999 Distribution => Mandrake
04-12-05 20:43 alien999999999 Kernel Version => 2.6.7
04-12-05 20:48 alien999999999 Note Added: 0004461 04-12-05 20:49 alien999999999 File Added:au88x0.c04-12-05 20:49 alien999999999 File Added:au88x0.h04-12-05 20:50 alien999999999 File Added:au88x0_core.c04-12-05 20:50 alien999999999 File Added:au88x0_mixer.c04-12-05 20:51 alien999999999 Note Added: 0004462
======================================================================_______________________________________________
Openvortex-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/openvortex-dev
Although au8810, au8820 and au8830 have 16 Sample Rate Convertors.
For au8820 and au8830 driver, snd_pcm_hw_params() will return "no more mixer error" and "no more sample rate convertor error" before all configured substreams are opened.
It seem to me that au8810's problem is related to snd_pcm_open() after all configured substreams are opened.
May be you can change NR_ADB from 0x10 to 0x20 (a dirty workaround) ?
Quoted 2 lines · Alien
I'm not too sure, but i _can_ tell you that lastly i had two weird errors about something adb, when snd-au8810 didn't play any sound anymore, i was able to kill all apps who use sound and modprobe -r snd-au8810, and modprobe again, and without reboot i was able to get sound working again.
In your case, if there are one or more stereo stream playing, snd_pcm_hw_params() will return "no more sample rate convertor error" before all configured substreams are opened.
Quoted 1 line
I must say that i haven't been on this PC much and haven't had much time to test these things, allthough i'm planning too, (but i think i'll update CVS first with these 2 patches who got lost accidentally before i test this. I hope i'll get some time this week(end).
Igor V. Kovalenko already include the two lost patches in his patch to fix oopses on amd64
Quoted 30 lines
thanks for all the help and info concerning snd-au8810 (in 64bit)
AL13N
Op zondag 31 juli 2005 09:59, schreef Raymond:
Quoted 23 lines
If there are 16 instances of aplay playing mono stream.
What error will be returned by
snd_pcm_open()for the 17th instance of aplay ?
alsa-kernel/pci/au88x0/au8810.h#define
NR_ADB0x10
alsa-kernel/pci/au88x0/au8830.h#define
NR_ADB0x20
alsa-kernel/pci/au88x0/au88x0.cif ((err = snd_vortex_new_pcm(chip, VORTEX_PCM_ADB, NR_ADB)) < 0) { snd_card_free(card); return err; }
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click