From owner-freebsd-bugs Wed Mar 7 21:30: 7 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 2F75C37B71A for ; Wed, 7 Mar 2001 21:30:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f285U1b22256; Wed, 7 Mar 2001 21:30:01 -0800 (PST) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 752A337B719 for ; Wed, 7 Mar 2001 21:24:40 -0800 (PST) (envelope-from nobody@FreeBSD.org) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f285Oel21924; Wed, 7 Mar 2001 21:24:40 -0800 (PST) (envelope-from nobody) Message-Id: <200103080524.f285Oel21924@freefall.freebsd.org> Date: Wed, 7 Mar 2001 21:24:40 -0800 (PST) From: darkwalker@bigfoot.com To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: kern/25600: Loading/unloading sound modules (snd_sb16) more than once makes errors Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 25600 >Category: kern >Synopsis: Loading/unloading sound modules (snd_sb16) more than once makes errors >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Mar 07 21:30:00 PST 2001 >Closed-Date: >Last-Modified: >Originator: michael lothian >Release: 4.2-STABLE as of Mon Mar 5 18:35:55 PST 2001 >Organization: none >Environment: FreeBSD stones.internal.dsmx.net 4.2-STABLE FreeBSD 4.2-STABLE #0: Mon Mar 5 18:35:55 PST 2001 root@stones.internal.dsmx.net:/usr/src/sys/compile/STONES i386 >Description: Loading a sound kld (snd_sb16 for instance), unloading it, then loading and unloading it again causes a few errors from the kernel. Every subsequent load/unload causes another error on top of the ones that have already shown to appear again. It seems to not release DMAs after acquiring them, and not destroy children devices of the SB16 properly on module unload I have a K6-2 500 with an SB AWE64 Value, FreeBSD installed about 2 days ago and upgraded to -STABLE w/ cvsup dmesg output after load/unloading snd_sb16 3 times: --- c0: at port 0x220-0x22f,0x330-0x331,0x388-0x38b irq 5 drq 1,5 on isa0 pcm0: on sbc0 pcm0: detached sbc0: detached sbc0: at port 0x220-0x22f,0x330-0x331,0x388-0x38b irq 5 drq 1,5 on isa0 pcm0: on sbc0 isa_dma_acquire: channel 1 already in use isa_dma_acquire: channel 5 already in use pcm1: on sbc0 device_probe_and_attach: pcm1 attach returned 6 pcm0: detached sbc0: detached sbc0: at port 0x220-0x22f,0x330-0x331,0x388-0x38b irq 5 drq 1,5 on isa0 pcm0: on sbc0 isa_dma_acquire: channel 1 already in use isa_dma_acquire: channel 5 already in use pcm1: on sbc0 device_probe_and_attach: pcm1 attach returned 6 pcm2: on sbc0 device_probe_and_attach: pcm2 attach returned 6 pcm0: detached sbc0: detached --- >How-To-Repeat: execute `kldload snd_sb16; kldunload snd_sb16` three times with a sound blaster in the system (may work with other modules too) >Fix: This diff will get rid of the errors and fix what looks like a typo in /sys/dev/sound/isa/sb16.c, but I'm not sure if they're the right way to fix it (only been using freebsd 2 days :)) http://sync.dyndns.org/~walker/files/sbfix.diff >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message