From owner-freebsd-current@FreeBSD.ORG Mon Aug 23 18:29:42 2004 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 487BB16A4CE; Mon, 23 Aug 2004 18:29:42 +0000 (GMT) Received: from lakermmtao01.cox.net (lakermmtao01.cox.net [68.230.240.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id A691F43D3F; Mon, 23 Aug 2004 18:29:41 +0000 (GMT) (envelope-from conrads@cox.net) Received: from dolphin.local.net ([68.11.71.51]) by lakermmtao01.cox.net (InterMail vM.6.01.03.02.01 201-2131-111-104-103-20040709) with ESMTP <20040823182933.EJFH15934.lakermmtao01.cox.net@dolphin.local.net>; Mon, 23 Aug 2004 14:29:33 -0400 Received: from dolphin.local.net (localhost.local.net [127.0.0.1]) by dolphin.local.net (8.13.1/8.13.1) with SMTP id i7NITY6I047679; Mon, 23 Aug 2004 13:29:34 -0500 (CDT) (envelope-from conrads@cox.net) Date: Mon, 23 Aug 2004 13:29:29 -0500 From: "Conrad J. Sabatier" To: Don Lewis Message-Id: <20040823132929.2efa5be3@dolphin.local.net> In-Reply-To: <200408201936.i7KJZw40003489@gw.catspoiler.org> References: <20040818193348.7633da35@dolphin.local.net> <200408201936.i7KJZw40003489@gw.catspoiler.org> X-Mailer: Sylpheed-Claws 0.9.12 (GTK+ 1.2.10; amd64-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-current@freebsd.org Subject: Re: pcm timeout (debug output from snd_ich driver) 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, 23 Aug 2004 18:29:42 -0000 On Fri, 20 Aug 2004 12:35:58 -0700 (PDT) Don Lewis wrote: > On 18 Aug, Conrad J. Sabatier wrote: > > On Wed, 18 Aug 2004 19:24:58 -0500 > > "Conrad J. Sabatier" wrote: > > > > Also, I've been meaning to ask: is there no possibility of somehow > > recovering gracefully from this condition so that the sound device > > might still be useable (similar to the recovery from ata and other > > timeouts), rather than leaving the device flat-out broken? > > Only if we know where it is getting lost. > > Try adding a three of global integers variables to ich.c. Increment > one of them on entry to inch_intr(), and increment the others in the > area of the code that calls chn_intr(). > > debug2++; > if (ch->run) { > debug3++; > chn_intr(ch->channel); > } > > Make the variables readable via sysctl with something like the > following: > > SYSCTL_INT(_debug_ich, OID_AUTO, debug1, CTLFLAG_RD, > &debug1, 0, "Number of times ich_intr() called"); > > > Run the sound code until it hangs, and then use sysctl to see which if > any of these variables continue to increment. Thanks, Don. I'll give that a try. Sorry for not replying sooner, but I very nearly just gave up altogether, started downloading Fedora Core 2, and was *this close* to going ahead and overwriting my FreeBSD amd64 install with it. But I held off in the hopes that maybe something would emerge soon. Seeing Mat is back online gives me some hope. And I've also corresponded with Cameron Grant recently. Still hoping we can resolve this issue. I really would hate to replace FreeBSD with Linux. But sound, and MIDI especially, are very important to me (I'm an amateur musician with a nice Yamaha MIDI keyboard just going to waste here), and if it comes down to it, I've already decided I'm willing to make the switch if necessary. Hopefully, it *won't* be necessary. :-) -- Conrad J. Sabatier -- "In Unix veritas"