From owner-freebsd-current Wed Feb 12 9:32:55 2003 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 517DF37B401 for ; Wed, 12 Feb 2003 09:32:54 -0800 (PST) Received: from cognet.ci0.org (cognet.ci0.org [80.65.224.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 136CD43FB1 for ; Wed, 12 Feb 2003 09:32:53 -0800 (PST) (envelope-from mlfbsd@cognet.ci0.org) Received: from cognet.ci0.org (localhost [127.0.0.1]) by cognet.ci0.org (8.12.6/8.12.7) with ESMTP id h1CHW16l071736; Wed, 12 Feb 2003 18:32:01 +0100 (CET) (envelope-from mlfbsd@cognet.ci0.org) Received: (from mlfbsd@localhost) by cognet.ci0.org (8.12.7/8.12.7/Submit) id h1CHW063071735; Wed, 12 Feb 2003 18:32:00 +0100 (CET) Date: Wed, 12 Feb 2003 18:32:00 +0100 From: Olivier Houchard To: vidalrod@in.tum.de Cc: CURRENT Subject: Re: [Fwd: panic: don't do that ?] Message-ID: <20030212173200.GA41353@ci0.org> References: <3E498609.2030300@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3E498609.2030300@web.de> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Feb 12, 2003 at 12:23:53AM +0100, David Vidal Rodr?guez wrote: Hi, > 1) > If they aren't loaded (I forgot them on the 1st try by mistake), the > kernel panics if I try to change hw.snd.maxautovchans (that odd "bwrite: > buffer is not busy???" message again!). That shouldn't happen: if I > don't have any soundcards, this oid shouldn't _exist_ either! I'm afraid I don't know anything about that. The oid doesn't exist for me if I don't load the kernel module. > 2) > If they're loaded, an attempt to unload snd_via82c686.ko results in a > panic with the funny message in the subject. But: Aren't modules > supposed to be unloadable? What's the fun with modules then? I believe it has been fixed on -CURRENT. You may try this patch : http://people.FreeBSD.org/~cognet/sound.c.diff > Any hints on solving this? > > My attempt to load modules instead of the monolithic solution (which > always works) comes due to an odd behaviour of pcm0 (multiplexed with > hw.snd.pcm0.vchans=8) telling that some /dev/dsp{W,}0.[0-7] devices are > busy after their first usage. I wanted to address it by unloading the > affected module and loading it again, but... that'll panic the system. AFAIK, The device being busy issue is fixed by Brian Feldman's recent commit. You can find the patch here : http://people.FreeBSD.org/~cognet/dsp.c.diff Cheers, Olivier Houchard To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message