From owner-freebsd-current@FreeBSD.ORG Mon Aug 11 14:19:31 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5708C37B401 for ; Mon, 11 Aug 2003 14:19:31 -0700 (PDT) Received: from ns1.gnf.org (ns1.gnf.org [63.196.132.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F99243F75 for ; Mon, 11 Aug 2003 14:19:30 -0700 (PDT) (envelope-from gtetlow@gnf.org) Received: from EXCHCLUSTER01.lj.gnf.org (exch02.lj.gnf.org [172.25.10.20]) by ns1.gnf.org (8.12.8p1/8.12.8) with ESMTP id h7BLJStF048242 for ; Mon, 11 Aug 2003 14:19:28 -0700 (PDT) (envelope-from gtetlow@gnf.org) Received: from roark.gnf.org ([172.25.24.15]) by EXCHCLUSTER01.lj.gnf.org with Microsoft SMTPSVC(5.0.2195.5329); Mon, 11 Aug 2003 14:19:30 -0700 Received: from roark.gnf.org (localhost [127.0.0.1]) by roark.gnf.org (8.12.9/8.12.9) with ESMTP id h7BLJTxO008710 for ; Mon, 11 Aug 2003 14:19:30 -0700 (PDT) (envelope-from gtetlow@gnf.org) Received: (from gtetlow@localhost) by roark.gnf.org (8.12.9/8.12.9/Submit) id h7BLJTBj008709 for current@FreeBSD.org; Mon, 11 Aug 2003 14:19:29 -0700 (PDT) (envelope-from gtetlow) Date: Mon, 11 Aug 2003 14:19:29 -0700 From: Gordon Tetlow To: current@FreeBSD.org Message-ID: <20030811211929.GE4672@roark.gnf.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="N1GIdlSm9i+YlY4t" Content-Disposition: inline User-Agent: Mutt/1.4i X-Habeas-SWE-1: winter into spring X-Habeas-SWE-2: brightly anticipated X-Habeas-SWE-3: like Habeas SWE (tm) X-Habeas-SWE-4: Copyright 2002 Habeas (tm) X-Habeas-SWE-5: Sender Warranted Email (SWE) (tm). The sender of this X-Habeas-SWE-6: email in exchange for a license for this Habeas X-Habeas-SWE-7: warrant mark warrants that this is a Habeas Compliant X-Habeas-SWE-8: Message (HCM) and not spam. Please report use of this X-Habeas-SWE-9: mark in spam to . X-OriginalArrivalTime: 11 Aug 2003 21:19:30.0255 (UTC) FILETIME=[408305F0:01C3604E] Subject: LOR in sound subsystem X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Aug 2003 21:19:31 -0000 --N1GIdlSm9i+YlY4t Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable =46rom yesterday's build, 2 different LORs: acquiring duplicate lock of same type: "pcm channel" 1st pcm0:record:0 @ /local/usr.src/sys/dev/sound/pcm/sound.c:191 2nd pcm0:play:0 @ /local/usr.src/sys/dev/sound/pcm/sound.c:191 Stack backtrace: backtrace(c052152d,c620a054,c0716750,bf,246) at backtrace+0x17 witness_lock(c621fb00,8,c0716750,bf,c620a000) at witness_lock+0x671 _mtx_lock_flags(c621fb00,0,c0716750,bf,3) at _mtx_lock_flags+0xb2 pcm_chnalloc(c6211000,1,1c8e,ffffffff,8) at pcm_chnalloc+0x49 dsp_open(c05de290,7,2000,c6912000,c69cab80) at dsp_open+0x14f spec_open(e6f4ba5c,e6f4bb18,c03827e8,e6f4ba5c,c05e52a0) at spec_open+0x28b spec_vnoperate(e6f4ba5c,c05e52a0,c05e6010,180,c6912000) at spec_vnoperate+0= x18 vn_open_cred(e6f4bbc4,e6f4bcc4,0,c69cab80,6) at vn_open_cred+0x528 vn_open(e6f4bbc4,e6f4bcc4,0,6,c0573924) at vn_open+0x30 kern_open(c6912000,c649bc00,1,7,0) at kern_open+0x13a linux_open(c6912000,e6f4bd14,c053a57e,3ee,3) at linux_open+0x11e syscall(2f,2f,2f,0,bfbff290) at syscall+0x253 Xint0x80_syscall() at Xint0x80_syscall+0x1d --- syscall (5), eip =3D 0x283716b4, esp =3D 0xbfbff258, ebp =3D 0xbfbff2b8= --- lock order reversal 1st 0xc621fec0 pcm0 (sound softc) @ /local/usr.src/sys/dev/sound/pci/cmi.c= :520 2nd 0xc621fb00 pcm0:play:0 (pcm channel) @ /local/usr.src/sys/dev/sound/pc= m/cha nnel.c:440 Stack backtrace: backtrace(c05215e4,c621fb00,c620a054,c07161f3,c0716271) at backtrace+0x17 witness_lock(c621fb00,8,c0716271,1b8,c620a000) at witness_lock+0x671 _mtx_lock_flags(c621fb00,0,c0716271,1b8,800000c1) at _mtx_lock_flags+0xb2 chn_intr(c620a000,c,10000,208,c621fdc0) at chn_intr+0x2f cmi_intr(c620a400,0,c051c223,215,c61cb3c8) at cmi_intr+0xa0 ithread_loop(c61cfd80,df0ebd48,c051c07d,30e,c61cfd80) at ithread_loop+0x164 fork_exit(c030d9a0,c61cfd80,df0ebd48) at fork_exit+0xc0 fork_trampoline() at fork_trampoline+0x8 --- trap 0x1, eip =3D 0, esp =3D 0xdf0ebd7c, ebp =3D 0 --- FWIW, I'm using cmi (obviously) and I have the following in my /etc/sysctl.conf: hw.snd.pcm0.vchans=3D4 hw.snd.maxautovchans=3D4 Hope it helps. -gordon --N1GIdlSm9i+YlY4t Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE/OAhhRu2t9DV9ZfsRAmvIAKDQ3oNG+vIiA/Isrx4yoCvfnshW0wCeME4Y bh0lOfUpjyR+MTHl7u5J5Ac= =hp6f -----END PGP SIGNATURE----- --N1GIdlSm9i+YlY4t--