From owner-freebsd-multimedia@FreeBSD.ORG Mon Jul 11 02:16:40 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA75E16A41C for ; Mon, 11 Jul 2005 02:16:40 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA6F843D46 for ; Mon, 11 Jul 2005 02:16:39 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: by wproxy.gmail.com with SMTP id 50so759438wri for ; Sun, 10 Jul 2005 19:16:39 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=GpJh1XkeZenOICAO8V4T72lG82OFWk9/kC0FCviQeNOJ3gee2MjRuhERSoPQ1WKXDx6RPPQE9fxfuv/3Hgtoh0CjNDKVYwpNZEa/KLsZAInE89RkuQMlg65YYYSUYAM73I168PAgBOKs1LcMF2Lr0ykon/16Nu6J7egIvWVKOSU= Received: by 10.54.26.4 with SMTP id 4mr3622161wrz; Sun, 10 Jul 2005 19:16:39 -0700 (PDT) Received: from michelle.rndsoft.co.kr ([211.32.202.209]) by mx.gmail.com with ESMTP id d7sm2188037wra.2005.07.10.19.16.37; Sun, 10 Jul 2005 19:16:39 -0700 (PDT) Received: from michelle.rndsoft.co.kr (localhost.rndsoft.co.kr [127.0.0.1]) by michelle.rndsoft.co.kr (8.13.1/8.13.1) with ESMTP id j6B2FKF2001302 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 11 Jul 2005 11:15:20 +0900 (KST) (envelope-from yongari@rndsoft.co.kr) Received: (from yongari@localhost) by michelle.rndsoft.co.kr (8.13.1/8.13.1/Submit) id j6B2FDPO001301; Mon, 11 Jul 2005 11:15:13 +0900 (KST) (envelope-from yongari@rndsoft.co.kr) Date: Mon, 11 Jul 2005 11:15:13 +0900 From: Pyun YongHyeon To: Jonathan Noack Message-ID: <20050711021513.GA858@rndsoft.co.kr> References: <42D02CA9.4080201@alumni.rice.edu> <20050710051523.0a67cd91.skywizard@MyBSD.org.my> <42D0F4D4.10700@alumni.rice.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42D0F4D4.10700@alumni.rice.edu> User-Agent: Mutt/1.4.2.1i Cc: freebsd-multimedia@freebsd.org, mat@cnd.mcgill.ca, Ariff Abdullah Subject: Re: Massive sound changes / fix (24/32bit pcm support, new sampling rate converter, various fixes) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jul 2005 02:16:40 -0000 On Sun, Jul 10, 2005 at 05:13:40AM -0500, Jonathan Noack wrote: [...] > > I also see this LOR when detaching: > lock order reversal > 1st 0xc23a2cc0 pcm0 (sound cdev) @ > /usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/sound.c:706 > 2nd 0xc0837760 sndstat (sndstat) @ > /usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/sndstat.c:256 > KDB: stack backtrace: > witness_checkorder(c0837760,9,c08330a8,100,c050c874) at > witness_checkorder+0x3af > _sx_xlock(c0837760,c08330a8,100,0,c234ca00) at _sx_xlock+0x5c > sndstat_unregister(c2376e00,c25f4700,c08331a6,2c2,c2376e00) at > sndstat_unregister+0x27 > pcm_unregister(c2376e00,c06f75b0,c2376e00,f9771be8,c2376e00) at > pcm_unregister+0x112 > es_pci_detach(c2376e00,c2333850,c06f75b0,961,c08439c0) at es_pci_detach+0x17 > device_detach(c2376e00,c08425f0,c2320640,1,c22fb000) at device_detach+0x8f > devclass_delete_driver(c22fb000,c08439c0,0,0,c226edc0) at > devclass_delete_driver+0xcb > driver_module_handler(c226edc0,1,c08439ac) at driver_module_handler+0xd9 > module_unload(c226edc0,0,1fb,c2274d00,3) at module_unload+0x66 > linker_file_unload(c2274d00,0,c06c4f26,327,bfbfe890) at > linker_file_unload+0x276 > kern_kldunload(0,f9771d04,8,421,2) at kern_kldunload+0x8d > syscall(3b,3b,3b,3,bfbfedf6) at syscall+0x13b > Xint0x80_syscall() at Xint0x80_syscall+0x1f > --- syscall (444, FreeBSD ELF32, kldunloadf), eip = 0x280c0e63, esp = > 0xbfbfe88c, ebp = 0xbfbfecf8 --- > AFAIK this is not real LOR(WITNESS was confused). As you know it's not legal to grab sx lock while holding a mutex. I think almost all MPSAFE audio drivers suffer from the same issue. So I guess it's ok to ignore the issue for a while. The LOR message would be the result of truckman's commit(rev. 1.18 sndstat.c). He already knows the issue but I don't know current status of the fix. -- Regards, Pyun YongHyeon