Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Mar 2001 21:24:40 -0800 (PST)
From:      darkwalker@bigfoot.com
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/25600: Loading/unloading sound modules (snd_sb16) more than once makes errors
Message-ID:  <200103080524.f285Oel21924@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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: <Creative SB AWE64> at port 0x220-0x22f,0x330-0x331,0x388-0x38b irq 5 drq 
1,5 on isa0
pcm0: <SB16 DSP 4.16> on sbc0
pcm0: detached
sbc0: detached
sbc0: <Creative SB AWE64> at port 0x220-0x22f,0x330-0x331,0x388-0x38b irq 5 drq 1,5 on isa0
pcm0: <SB16 DSP 4.16> on sbc0
isa_dma_acquire: channel 1 already in use
isa_dma_acquire: channel 5 already in use
pcm1: <SB16 DSP 4.16> on sbc0
device_probe_and_attach: pcm1 attach returned 6
pcm0: detached
sbc0: detached
sbc0: <Creative SB AWE64> at port 0x220-0x22f,0x330-0x331,0x388-0x38b irq 5 drq 1,5 on isa0
pcm0: <SB16 DSP 4.16> on sbc0
isa_dma_acquire: channel 1 already in use
isa_dma_acquire: channel 5 already in use
pcm1: <SB16 DSP 4.16> on sbc0
device_probe_and_attach: pcm1 attach returned 6
pcm2: <SB16 DSP 4.16> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103080524.f285Oel21924>