Date: Thu, 1 Dec 2005 03:54:28 +0200 From: Ion-Mihai Tetcu <itetcu@people.tecnik93.com> To: Alexander Leidinger <Alexander@Leidinger.net> Cc: freebsd-multimedia@freebsd.org Subject: Re: [backtrace] (snd_solo) mtx_lock_sleep: recursed on non-recursive mutex Message-ID: <20051201035428.6a9de01b@it.buh.tecnik93.com> In-Reply-To: <20051130220018.56240358@Magellan.Leidinger.net> References: <20051130214101.05e5d0b0@it.buh.tecnik93.com> <20051130220018.56240358@Magellan.Leidinger.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 30 Nov 2005 22:00:18 +0100 Alexander Leidinger <Alexander@Leidinger.net> wrote: > On Wed, 30 Nov 2005 21:41:01 +0200 > Ion-Mihai Tetcu <itetcu@people.tecnik93.com> wrote: > > > Hi, > > > > > > In my quest to find an other sound card that works with skype, I > > salvaged an ESS Solo-1 (ES1938S H209). Trying to play anything > > through it results from "pcm channel dead" to hard freezes and ,the > > last time I got the panic bellow. Any chance to make it work or > > should I keep searching ? > > > > > > FreeBSD it.buh.tecnik93.com 6.0-STABLE FreeBSD 6.0-STABLE #4: Wed > > Nov 16 15:38:12 EET 2005 > > > > Unread portion of the kernel message buffer: > > panic: _mtx_lock_sleep: recursed on non-recursive mutex pcm0 > > @ /usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/sound.c:381 > > Try the appropriate patch from http://people.freebsd.org/~ariff/ and > report back please. Script started on Thu Dec 1 02:57:31 2005 ESC[7mroot@it> ESC[0;31m/rootESC[0m [2:57:31] ESC[1;36m0ESC[0m ESC[80`ESC[27m ESC[1m ESC[0;31m#ESC[ 0m ESC[m mpg123 -a /dev/audio0.0 ~itetcu/Media/mp3/Leonard\ Cohen/Leonard\ Cohen\ -\^M Greatest\ Hits/01\ -\ Suzanne\ .mp3? Greatest\ Hits/01\ -\ Suzanne\ .mp3^M High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2 and 3. Version 0.59r (1999/Jun/15). Written and copyrights by Michael Hipp. Uses code from various people. See 'README' for more! THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK! /dev/dsp: Operation not supported by device /dev/dsp: Operation not supported by device /dev/dsp: Operation not supported by device audio: Operation not supported by device ESC[7mroot@it> ESC[0;31m/rootESC[0m [2:57:35] ESC[1;36m1ESC[0m ESC[80`ESC[27m ESC[1m ESC[0;31m#ESC[ 0m ESC[mcat /dev/sndstat ^M FreeBSD Audio Driver (newpcm) Installed devices: pcm0: <ESS Solo-1E> at io 0xa000,0xa400,0xa800 irq 19 kld snd_solo (1p/0s/1r/0v channels default) [pcm0:play:0]: spd 5000/-7456, fmt 0x00000000/0x10000010, flags 0x00000000, 0x00000020 interrupts 0, underruns 0, ready 0 [b:16384/8192/2|bs:131072/128/1024] {userland} -> feeder_root(0x00000000) -> {hardware} [pcm0:record:0]: spd 0, fmt 0x00000000/0x00000008, flags 0x00000000, 0x00000000 interrupts 0, overruns 0, hfree 16384, sfree 0 [b:16384/8192/2|bs:0/0/0] {hardware} -> feeder_root(0x00000000) -> {userland} File Versions: $FreeBSD: src/sys/dev/sound/pci/solo.c,v 1.35 2005/03/01 08:58:05 imp Exp $ $FreeBSD: src/sys/dev/sound/isa/sndbuf_dma.c,v 1.3 2005/01/06 01:43:17 imp Exp $ $FreeBSD: src/sys/dev/sound/pcm/vchan.c,v 1.20 2005/10/18 21:33:51 ariff Exp $ $FreeBSD: src/sys/dev/sound/pcm/sound.c,v 1.97 2005/10/02 15:43:57 netchild Exp $ $FreeBSD: src/sys/dev/sound/pcm/sndstat.c,v 1.22 2005/10/02 15:43:57 netchild Exp $ $FreeBSD: src/sys/dev/sound/pcm/feeder.c,v 1.34 2005/09/10 17:47:38 netchild Exp $ $FreeBSD$ $FreeBSD: src/sys/dev/sound/pcm/mixer.c,v 1.48 2005/11/14 18:19:33 ariff Exp $ $FreeBSD: src/sys/dev/sound/pcm/buffer.c,v 1.26 2005/07/31 16:16:22 netchild Exp $ $FreeBSD: src/sys/dev/sound/pcm/feeder_volume.c,v 1.2 2005/11/14 18:37:59 ariff Exp $ $FreeBSD: src/sys/dev/sound/pcm/feeder_rate.c,v 1.14 2005/11/14 18:37:59 ariff Exp $ $FreeBSD: src/sys/dev/sound/pcm/ac97_patch.c,v 1.4 2005/10/02 15:50:22 netchild Exp $ $FreeBSD: src/sys/dev/sound/pcm/fake.c,v 1.16 2005/09/10 17:47:38 netchild Exp $ $FreeBSD: src/sys/dev/sound/pcm/dsp.c,v 1.88 2005/11/14 18:20:47 ariff Exp $ $FreeBSD: src/sys/dev/sound/pcm/channel.c,v 1.104 2005/11/15 04:19:27 kan Exp $ $FreeBSD: src/sys/dev/sound/pcm/feeder_fmt.c,v 1.18 2005/11/26 03:54:17 ariff Exp $ $FreeBSD: src/sys/dev/sound/pcm/ac97.c,v 1.59 2005/11/30 01:44:22 yongari Exp $ ESC[7mroot@it> ESC[0;31m/rootESC[0m [2:57:42] ESC[1;36m0ESC[0m ESC[80`ESC[27m ESC[1m ESC[0;31m#ESC[ 0m ESC[msysctl hw,sESC[ESC[ESC[K.snd^M hw.snd.report_soft_formats: 1 hw.snd.targetirqrate: 32 hw.snd.feeder_rate_buffersize: 8192 hw.snd.feeder_rate_scaling: 5 hw.snd.feeder_rate_ratemax: 1102500 hw.snd.feeder_rate_ratemin: 4000 hw.snd.verbose: 3 hw.snd.slave_enabled: 1 hw.snd.maxautovchans: 4 hw.snd.unit: 0 hw.snd.pcm0.buffersize: 16384 hw.snd.pcm0.vchans: 0 ESC[7mroot@it> ESC[0;31m/rootESC[0m [2:57:59] ESC[1;36m0ESC[0m ESC[80`ESC[27m ESC[1m ESC[0;31m#ESC[ 0m ESC[mexit The following sequence lead to a panic: boot with snd_via8233="YES", try to play (OK), kldunload via_8233, kld_load snd_solo, try to ply (no dsp devices), kldunload snd_solo, kldunload sound, kldload sound, kldload snd_solo (try to play, no dsp devices), kldunload snd_solo, ldunload snd_solo, kldload via_8233. Unread portion of the kernel message buffer: pci0: driver added found-> vendor=0x125d, dev=0x1969, revid=0x01 bus=0, slot=11, func=0 class=04-01-00, hdrtype=0x00, mfdev=0 cmdreg=0x0005, statreg=0x0290, cachelnsz=0 (dwords) lattimer=0x20 (960 ns), mingnt=0x02 (500 ns), maxlat=0x18 (6000 ns) intpin=a, irq=19 powerspec 1 supports D0 D1 D2 D3 current D0 pci0:11:0: reprobing on driver added found-> vendor=0x109e, dev=0x0878, revid=0x11 bus=0, slot=13, func=1 class=04-80-00, hdrtype=0x00, mfdev=1 cmdreg=0x0006, statreg=0x0290, cachelnsz=0 (dwords) lattimer=0x20 (960 ns), mingnt=0x04 (1000 ns), maxlat=0xff (63750 ns) intpin=a, irq=17 powerspec 2 supports D0 D3 current D0 pci0:13:1: reprobing on driver added found-> vendor=0x1106, dev=0x3038, revid=0x81 bus=0, slot=16, func=0 class=0c-03-00, hdrtype=0x00, mfdev=1 cmdreg=0x0007, statreg=0x0210, cachelnsz=8 (dwords) lattimer=0x20 (960 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) intpin=a, irq=21 powerspec 2 supports D0 D1 D2 D3 current D0 pci0:16:0: reprobing on driver added found-> vendor=0x1106, dev=0x3038, revid=0x81 bus=0, slot=16, func=1 class=0c-03-00, hdrtype=0x00, mfdev=1 cmdreg=0x0007, statreg=0x0210, cachelnsz=8 (dwords) lattimer=0x20 (960 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) intpin=a, irq=21 powerspec 2 supports D0 D1 D2 D3 current D0 pci0:16:1: reprobing on driver added found-> vendor=0x1106, dev=0x3038, revid=0x81 bus=0, slot=16, func=2 class=0c-03-00, hdrtype=0x00, mfdev=1 cmdreg=0x0007, statreg=0x0210, cachelnsz=8 (dwords) lattimer=0x20 (960 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) intpin=b, irq=21 powerspec 2 supports D0 D1 D2 D3 current D0 pci0:16:2: reprobing on driver added found-> vendor=0x1106, dev=0x3038, revid=0x81 bus=0, slot=16, func=3 class=0c-03-00, hdrtype=0x00, mfdev=1 cmdreg=0x0007, statreg=0x0210, cachelnsz=8 (dwords) lattimer=0x20 (960 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) intpin=b, irq=21 powerspec 2 supports D0 D1 D2 D3 current D0 pci0:16:3: reprobing on driver added found-> vendor=0x1106, dev=0x3104, revid=0x86 bus=0, slot=16, func=4 class=0c-03-20, hdrtype=0x00, mfdev=1 cmdreg=0x0007, statreg=0x0210, cachelnsz=8 (dwords) lattimer=0x20 (960 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) intpin=c, irq=21 powerspec 2 supports D0 D1 D2 D3 current D0 pci0:16:4: reprobing on driver added found-> vendor=0x1106, dev=0x3059, revid=0x60 bus=0, slot=17, func=5 class=04-01-00, hdrtype=0x00, mfdev=0 cmdreg=0x0001, statreg=0x0210, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) intpin=c, irq=22 powerspec 2 supports D0 D1 D2 D3 current D0 pci0:17:5: reprobing on driver added pcm0: <VIA VT8237> port 0xe000-0xe0ff irq 22 at device 17.5 on pci0 pcm0: [MPSAFE] pcm0: <Avance Logic ALC655 AC97 Codec (id = 0x414c4760)> pcm0: Codec features 5 bit master volume, no 3D Stereo Enhancement pcm0: Primary codec extended features reserved 1, center DAC, surround DAC, LFE DAC, reserved 5 pcm0: ac97 codec dac ready count: 0 pcm0: sndbuf_setmap 2b1a0000, 1000; 0xc570c000 -> 2b1a0000 pcm0: sndbuf_setmap 2bff5000, 1000; 0xc5681000 -> 2bff5000 panic: make_dev() by driver dsp on pre-existing device (min=20003, name=dsp0.2) KDB: stack backtrace: panic(c066413a,c07f09c2,20003,c50d6778,2bb) at panic+0x13a make_dev_credv(0,0,0,1b6,c07f1291) at make_dev_credv+0x12f make_dev(c07f2c80,20003,0,0,1b6) at make_dev+0x3b pcm_chn_add(c56f7200,c5064900,c4c0b320,1,c5542e00) at pcm_chn_add+0x133 pcm_addchan(c4ba3380,1,c4c0b320,c5542e00,16) at pcm_addchan+0x51 via_attach(c4ba3380,c5731850,c0693360,c06698c8,0) at via_attach+0x926 device_attach(c4ba3380,c4b7c900,11,5,c4e98e80) at device_attach+0x2a7 pci_driver_added(c4b95700,c4c0b1a0,101,0,c4af01c0) at pci_driver_added+0xdf devclass_add_driver(c4af01c0,c4c0b1a0,c0668313,c4c0b1a0,c50e2340) at devclass_add_driver+0xcd driver_module_handler(c50e2340,0,c4c0b18c,0,c0665e2b) at driver_module_handler+0xa4 module_register_init(c4c0b180,c0665e2b,ef7e5b10,ef7e5b14,0) at module_register_init+0x73 linker_load_module(c4bb9c00,0,0,0,ef7e5cc0) at linker_load_module+0x712 kldload(c56aa480,ef7e5d04,4,1,1) at kldload+0x12f syscall(3b,3b,3b,0,bfbfed0c) at syscall+0x13d Xint0x80_syscall() at Xint0x80_syscall+0x1f --- syscall (304, FreeBSD ELF32, kldload), eip = 0x280c5217, esp = 0xbfbfec9c, ebp = 0xbfbfecd8 --- KDB: enter: panic Dumping 1023 MB (2 chunks) chunk 0: 1MB (159 pages) ... ok chunk 1: 1023MB (261872 pages) 1007 991 975 959 943 927 911 895 879 863 847 831 815 799 783 767 751 735 719 703 687 671 655 639 623 607 591 575 559 543 527 (CTRL-C to abort) (CTRL-C to abort) (CTRL-C to abort) 511 495 479 463 447 431 415 399 383 367 351 335 319 303 287 271 255 239 223 207 191 175 159 143 127 111 95 79 63 47 31 15 #0 doadump () at pcpu.h:165 165 pcpu.h: No such file or directory. in pcpu.h (kgdb) bt #0 doadump () at pcpu.h:165 #1 0xc04444e7 in db_fncall (dummy1=-276932900, dummy2=0, dummy3=16, dummy4=0xef7e56d4 "ÐåaÀ_}fÀôþgÀ") at /usr/src/sys/ddb/db_command.c:492 #2 0xc0444980 in db_command_loop () at /usr/src/sys/ddb/db_command.c:350 #3 0xc04467a4 in db_trap (type=3, code=0) at /usr/src/sys/ddb/db_main.c:221 #4 0xc04f44e2 in kdb_trap (type=0, code=0, tf=0xef7e5808) at /usr/src/sys/kern/subr_kdb.c:473 #5 0xc0632e87 in trap (frame= {tf_fs = 8, tf_es = 40, tf_ds = 40, tf_edi = 256, tf_esi = 1, tf_ebp = -276932528, tf_isp = -276932556, tf_ebx = 1, tf_edx = 1, tf_ecx = -1066683008, tf_eax = 18, tf_trapno = 3, tf_err = 0, tf_eip = -1068548014, tf_cs = 32, tf_eflags = 646, tf_esp = -1067016762, tf_ss = -1067025263}) at /usr/src/sys/i386/i386/trap.c:593 #6 0xc06209ca in calltrap () at /usr/src/sys/i386/i386/exception.s:139 #7 0xc04f4052 in kdb_enter (msg=0x12 <Address 0x12 out of bounds>) at cpufunc.h:60 #8 0xc04d7a2c in panic (fmt=0x1 <Address 0x1 out of bounds>) at /usr/src/sys/kern/kern_shutdown.c:539 #9 0xc04abc4f in make_dev_credv (devsw=0xc07f2c80, minornr=-988977288, cr=0x0, uid=18, gid=18, mode=18, fmt=0x12 <Address 0x12 out of bounds>, ap=0x12 <Address 0x12 out of bounds>) at /usr/src/sys/kern/kern_conf.c:535 #10 0xc04abccb in make_dev (devsw=0x12, minornr=1, uid=3228284288, gid=3228284288, mode=-1066683008, fmt=0xc06bb580 "make_dev() by driver dsp on pre-existing device (min=20003, name=dsp0.2)") at /usr/src/sys/kern/kern_conf.c:567 #11 0xc07ecde3 in ?? () #12 0xc07f2c80 in ?? () -- IOnut - Unregistered ;) FreeBSD "user" "Intellectual Property" is nowhere near as valuable as "Intellect" BOFH excuse #450: Terrorists crashed an airplane into the server room.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051201035428.6a9de01b>
