From owner-freebsd-current@FreeBSD.ORG Sun Jan 4 06:50:21 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 3A58016A4CE for ; Sun, 4 Jan 2004 06:50:21 -0800 (PST) Received: from email02.aon.at (WARSL402PIP7.highway.telekom.at [195.3.96.94]) by mx1.FreeBSD.org (Postfix) with SMTP id C1EDC43D1F for ; Sun, 4 Jan 2004 06:50:18 -0800 (PST) (envelope-from shoesoft@gmx.net) Received: (qmail 29336 invoked from network); 4 Jan 2004 14:50:17 -0000 Received: from n755p030.dipool.highway.telekom.at (HELO ?212.183.104.94?) ([212.183.104.94]) (envelope-sender ) by qmail2rs.highway.telekom.at (qmail-ldap-1.03) with SMTP for ; 4 Jan 2004 14:50:17 -0000 From: Stefan Ehmann To: Don Lewis In-Reply-To: <200401030401.i0341O7E003439@gw.catspoiler.org> References: <200401030401.i0341O7E003439@gw.catspoiler.org> Content-Type: text/plain Message-Id: <1073227819.1764.13.camel@shoeserv.freebsd> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Sun, 04 Jan 2004 15:50:20 +0100 Content-Transfer-Encoding: 7bit cc: current@FreeBSD.org Subject: Re: page fault panic tracked down (selwakeuppri()) 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: Sun, 04 Jan 2004 14:50:21 -0000 On Sat, 2004-01-03 at 05:01, Don Lewis wrote: > I wouldn't rule out the dsp, since you audio player software may be > calling select() on the fd for the audio device. You might want to back > out Bruce's quick hack and change the second argument to selwakeuppri() > to -1 in chn_wakeup() in dev/sound/pcm/channel.c. > > Is your kernel compiled with the INVARIANTS and INVARIANTS_SUPPORT > options? > > Something else that I noticed is that the CHN_LOCKASSERT macro has an > empty definition in dev/sound/pcm/channel.h. You might want to try > defining it as > mtx_assert((struct mtx *)((c)->lock), MA_OWNED) > > I still don't see any obvious cause for this problem. I took out the debug options because it was just too slow. Put back INVARIANTS (but no WITNESS) now and speed is nice again. Applied your suggested changes which resulted in a panic. No assertations were triggered though.