From owner-freebsd-multimedia@FreeBSD.ORG Mon Jan 2 19:45:30 2006 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 5453616A41F for ; Mon, 2 Jan 2006 19:45:30 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E64043D99 for ; Mon, 2 Jan 2006 19:45:03 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id D4B526CC25; Tue, 3 Jan 2006 03:51:23 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (TOMOYO.MYBSD.ORG.MY [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25632-10; Tue, 3 Jan 2006 03:51:22 +0800 (MYT) Received: from misaki (misaki.MyBSD.org.my [IPv6:2001:328:2002:aa2:dead:babe:feed:beef]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id B836A6CC22; Tue, 3 Jan 2006 03:51:21 +0800 (MYT) Date: Tue, 3 Jan 2006 03:45:01 +0800 From: Ariff Abdullah To: Julian Elischer Message-Id: <20060103034501.1df4dada.skywizard@MyBSD.org.my> In-Reply-To: <43B970E8.5010406@elischer.org> References: <43B970E8.5010406@elischer.org> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Amavisd AntiVirus & AntiSpam Scanner running on FreeBSD mailserver at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: recent Maestro messages. X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jan 2006 19:45:30 -0000 On Mon, 02 Jan 2006 10:28:56 -0800 Julian Elischer wrote: > Recently the MAestro attach code has started to spew out the > following during boot. > > someone who knows pcm_addchan() should look to see it the locking in > agg_attach() can be adjusted to avoid this error safely. > > Great catch! :) . I'll revise a patch shortly. Anyway, maestro.c is quite problematic especially for its excessive inlining issues. Thanks Julian! This backtrace is priceless since it is probably the key to solve all the maestro-2e fiasco. > > malloc(M_WAITOK) of "256", forcing M_NOWAIT with the following > non-sleepable loc ks held: > exclusive sleep mutex ESS Technology Maestro-2E (hardware status > lock) r = 0 (0x c228be28) locked @ > /usr/src/sys/modules/sound/driver/maestro/../../../../dev/sou > nd/pci/maestro.c:270 KDB: stack backtrace: > kdb_backtrace(1,e0,c10653c0,4,c0c209ec) at kdb_backtrace+0x29 > witness_warn(5,0,c089b071,c0840681,e0) at witness_warn+0x192 > uma_zalloc_arg(c10653c0,0,502) at uma_zalloc_arg+0x41 > malloc(d8,c0907860,502,c0c20a38,c062efe8) at malloc+0xb2 > devfs_alloc(c22c3800,0,c22c3780,c0c20a60,c062f0d4) at > devfs_alloc+0x17 make_dev_credv(c0ae0420,30004,0,0,0) at > make_dev_credv+0x34 make_dev(c0ae0420,30004,0,0,1b6) at > make_dev+0x20 pcm_chn_add(c228bc00,c22fad80,c228be00,0,0) at > pcm_chn_add+0x14e pcm_addchan(c22ba600,1,c0ac4ca0,c228be00,c228be28) > at pcm_addchan+0x36 agg_attach(c22ba600) at agg_attach+0x553 > device_attach(c22ba600,c22ba880,c22ba600,c22ba380,0) at > device_attach+0x58 device_probe_and_attach(c22ba600) at > device_probe_and_attach+0xe0 > bus_generic_attach(c22ba380,6,c229d7c0,1,c0b2c39c) at > bus_generic_attach+0x16 acpi_pci_attach(c22ba380) at > acpi_pci_attach+0xd0 > device_attach(c22ba380,c228acf0,c22ba380,0,c223ea80) at > device_attach+0x58 device_probe_and_attach(c22ba380) at > device_probe_and_attach+0xe0 > bus_generic_attach(c223ea80,c223ea80,0,c229d7c0,c22b5480) at > bus_generic_attach+ 0x16 > acpi_pcib_attach(c223ea80,c22b5494,0,c0c20c58,c066e3cc) at > acpi_pcib_attach+0x12 f > acpi_pcib_acpi_attach(c223ea80) at acpi_pcib_acpi_attach+0xcf > device_attach(c223ea80,c0c20ca0,c223ea80,c22b2c80,c223d600) at > device_attach+0x5 8 > device_probe_and_attach(c223ea80) at device_probe_and_attach+0xe0 > bus_generic_attach(c223d600,103f,1016,c22a3468,4) at > bus_generic_attach+0x16 acpi_attach(c223d600) at acpi_attach+0x631 > device_attach(c223d600,0,c223d600,c223dd00,0) at device_attach+0x58 > device_probe_and_attach(c223d600) at device_probe_and_attach+0xe0 > bus_generic_attach(c223dd00,c223dd00,c223dd00,c0c20d40,c066a624) at > bus_generic_ attach+0x16 > nexus_attach(c223dd00) at nexus_attach+0x13 > device_attach(c223dd00,c0951fb4,c223dd00,c0923ed0,c28000) at > device_attach+0x58 device_probe_and_attach(c223dd00) at > device_probe_and_attach+0xe0 > root_bus_configure(c0c20d88,c062b006,0,c1ec00,c1e000) at > root_bus_configure+0x16 configure(0,c1ec00,c1e000,0,c0446ce5) at > configure+0x9 mi_startup() at mi_startup+0x96 > begin() at begin+0x2c > "freebsd-multimedia-unsubscribe@freebsd.org" -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4)