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: >=20 > > Hi, > >=20 > >=20 > > 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 ? > >=20 > >=20 > > FreeBSD it.buh.tecnik93.com 6.0-STABLE FreeBSD 6.0-STABLE #4: Wed > > Nov 16 15:38:12 EET 2005 > >=20 > > 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 >=20 > 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/1= r/0v channels default) [pcm0:play:0]: spd 5000/-7456, fmt 0x00000000/0x10000010, flags 0x0= 0000000, 0x00000020 interrupts 0, underruns 0, ready 0 [b:16384/8192/2|bs:131072/128/10= 24] {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 Ex= p $ $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 netchi= ld Exp $ $FreeBSD: src/sys/dev/sound/pcm/feeder.c,v 1.34 2005/09/10 17:47:38 netchil= d Exp $ $FreeBSD$ $FreeBSD: src/sys/dev/sound/pcm/mixer.c,v 1.48 2005/11/14 18:19:33 ariff Ex= p $ $FreeBSD: src/sys/dev/sound/pcm/buffer.c,v 1.26 2005/07/31 16:16:22 netchil= d Exp $ $FreeBSD: src/sys/dev/sound/pcm/feeder_volume.c,v 1.2 2005/11/14 18:37:59 a= riff Exp $ $FreeBSD: src/sys/dev/sound/pcm/feeder_rate.c,v 1.14 2005/11/14 18:37:59 ar= iff Exp $ $FreeBSD: src/sys/dev/sound/pcm/ac97_patch.c,v 1.4 2005/10/02 15:50:22 netc= hild 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 E= xp $ $FreeBSD: src/sys/dev/sound/pcm/feeder_fmt.c,v 1.18 2005/11/26 03:54:17 ari= ff Exp $ $FreeBSD: src/sys/dev/sound/pcm/ac97.c,v 1.59 2005/11/30 01:44:22 yongari E= xp $ 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=3D"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=3D0x125d, dev=3D0x1969, revid=3D0x01 bus=3D0, slot=3D11, func=3D0 class=3D04-01-00, hdrtype=3D0x00, mfdev=3D0 cmdreg=3D0x0005, statreg=3D0x0290, cachelnsz=3D0 (dwords) lattimer=3D0x20 (960 ns), mingnt=3D0x02 (500 ns), maxlat=3D0x18 (60= 00 ns) intpin=3Da, irq=3D19 powerspec 1 supports D0 D1 D2 D3 current D0 pci0:11:0: reprobing on driver added found-> vendor=3D0x109e, dev=3D0x0878, revid=3D0x11 bus=3D0, slot=3D13, func=3D1 class=3D04-80-00, hdrtype=3D0x00, mfdev=3D1 cmdreg=3D0x0006, statreg=3D0x0290, cachelnsz=3D0 (dwords) lattimer=3D0x20 (960 ns), mingnt=3D0x04 (1000 ns), maxlat=3D0xff (6= 3750 ns) intpin=3Da, irq=3D17 powerspec 2 supports D0 D3 current D0 pci0:13:1: reprobing on driver added found-> vendor=3D0x1106, dev=3D0x3038, revid=3D0x81 bus=3D0, slot=3D16, func=3D0 class=3D0c-03-00, hdrtype=3D0x00, mfdev=3D1 cmdreg=3D0x0007, statreg=3D0x0210, cachelnsz=3D8 (dwords) lattimer=3D0x20 (960 ns), mingnt=3D0x00 (0 ns), maxlat=3D0x00 (0 ns) intpin=3Da, irq=3D21 powerspec 2 supports D0 D1 D2 D3 current D0 pci0:16:0: reprobing on driver added found-> vendor=3D0x1106, dev=3D0x3038, revid=3D0x81 bus=3D0, slot=3D16, func=3D1 class=3D0c-03-00, hdrtype=3D0x00, mfdev=3D1 cmdreg=3D0x0007, statreg=3D0x0210, cachelnsz=3D8 (dwords) lattimer=3D0x20 (960 ns), mingnt=3D0x00 (0 ns), maxlat=3D0x00 (0 ns) intpin=3Da, irq=3D21 powerspec 2 supports D0 D1 D2 D3 current D0 pci0:16:1: reprobing on driver added found-> vendor=3D0x1106, dev=3D0x3038, revid=3D0x81 bus=3D0, slot=3D16, func=3D2 class=3D0c-03-00, hdrtype=3D0x00, mfdev=3D1 cmdreg=3D0x0007, statreg=3D0x0210, cachelnsz=3D8 (dwords) lattimer=3D0x20 (960 ns), mingnt=3D0x00 (0 ns), maxlat=3D0x00 (0 ns) intpin=3Db, irq=3D21 powerspec 2 supports D0 D1 D2 D3 current D0 pci0:16:2: reprobing on driver added found-> vendor=3D0x1106, dev=3D0x3038, revid=3D0x81 bus=3D0, slot=3D16, func=3D3 class=3D0c-03-00, hdrtype=3D0x00, mfdev=3D1 cmdreg=3D0x0007, statreg=3D0x0210, cachelnsz=3D8 (dwords) lattimer=3D0x20 (960 ns), mingnt=3D0x00 (0 ns), maxlat=3D0x00 (0 ns) intpin=3Db, irq=3D21 powerspec 2 supports D0 D1 D2 D3 current D0 pci0:16:3: reprobing on driver added found-> vendor=3D0x1106, dev=3D0x3104, revid=3D0x86 bus=3D0, slot=3D16, func=3D4 class=3D0c-03-20, hdrtype=3D0x00, mfdev=3D1 cmdreg=3D0x0007, statreg=3D0x0210, cachelnsz=3D8 (dwords) lattimer=3D0x20 (960 ns), mingnt=3D0x00 (0 ns), maxlat=3D0x00 (0 ns) intpin=3Dc, irq=3D21 powerspec 2 supports D0 D1 D2 D3 current D0 pci0:16:4: reprobing on driver added found-> vendor=3D0x1106, dev=3D0x3059, revid=3D0x60 bus=3D0, slot=3D17, func=3D5 class=3D04-01-00, hdrtype=3D0x00, mfdev=3D0 cmdreg=3D0x0001, statreg=3D0x0210, cachelnsz=3D0 (dwords) lattimer=3D0x00 (0 ns), mingnt=3D0x00 (0 ns), maxlat=3D0x00 (0 ns) intpin=3Dc, irq=3D22 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 =3D 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=3D20003, name= =3Ddsp0.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 devcla= ss_add_driver+0xcd driver_module_handler(c50e2340,0,c4c0b18c,0,c0665e2b) at driver_module_hand= ler+0xa4 module_register_init(c4c0b180,c0665e2b,ef7e5b10,ef7e5b14,0) at module_regis= ter_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 =3D 0x280c5217, esp =3D 0xbf= bfec9c, ebp =3D 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 8= 47 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 47= 9 463 447 431 415 399 383 367 351 335 319 303 287 271 255 239 223 207 191 1= 75 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=3D-276932900, dummy2=3D0, dummy3=3D16, = dummy4=3D0xef7e56d4 "=D0=E5a=C0_}f=C0=F4=FEg=C0") 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=3D3, code=3D0) at /usr/src/sys/ddb/db_main.= c:221 #4 0xc04f44e2 in kdb_trap (type=3D0, code=3D0, tf=3D0xef7e5808) at /usr/sr= c/sys/kern/subr_kdb.c:473 #5 0xc0632e87 in trap (frame=3D {tf_fs =3D 8, tf_es =3D 40, tf_ds =3D 40, tf_edi =3D 256, tf_esi =3D = 1, tf_ebp =3D -276932528, tf_isp =3D -276932556, tf_ebx =3D 1, tf_edx =3D 1= , tf_ecx =3D -1066683008, tf_eax =3D 18, tf_trapno =3D 3, tf_err =3D 0, tf_= eip =3D -1068548014, tf_cs =3D 32, tf_eflags =3D 646, tf_esp =3D -106701676= 2, tf_ss =3D -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=3D0x12 <Address 0x12 out of bounds>) at cp= ufunc.h:60 #8 0xc04d7a2c in panic (fmt=3D0x1 <Address 0x1 out of bounds>) at /usr/src= /sys/kern/kern_shutdown.c:539 #9 0xc04abc4f in make_dev_credv (devsw=3D0xc07f2c80, minornr=3D-988977288,= cr=3D0x0, uid=3D18, gid=3D18, mode=3D18, fmt=3D0x12 <Address 0x12 out of bounds>, ap=3D0x12 <Address 0x12 out of= bounds>) at /usr/src/sys/kern/kern_conf.c:535 #10 0xc04abccb in make_dev (devsw=3D0x12, minornr=3D1, uid=3D3228284288, gi= d=3D3228284288, mode=3D-1066683008, fmt=3D0xc06bb580 "make_dev() by driver dsp on pre-existing device (min= =3D20003, name=3Ddsp0.2)") at /usr/src/sys/kern/kern_conf.c:567 #11 0xc07ecde3 in ?? () #12 0xc07f2c80 in ?? () --=20 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>