Possible sound driver or /proc/ioports bug?

Brent M. Smith (smitten@lagged.net)
Sun, 8 Nov 1998 19:15:11 -0800 (PST)


This seems like a possible bug in the sound driver or /proc/ioports...
I was screwing around with loading my sound drivers as modules instead of
building them into the kernel... I got an error when I tried to insert the
sb module, that said the 0x220 io port was already in use. So i tried
to determine which device was using them with "cat /proc/ioports", at
which time it Oops'd. Below is a typescript file of the session.

Contact me if you need more info/testing/whatever.

===========================================================================
[root@smitten]:/home/smitten/misc/sounds# lsmod
Module Size Used by
[root@smitten]:/home/smitten/misc/sounds# modprobe sound
[root@smitten]:/home/smitten/misc/sounds# lsmod
Module Size Used by
sound 55880 0 (unused)
soundlow 208 0 [sound]
soundcore 1804 3 [sound]
[root@smitten]:/home/smitten/misc/sounds# modprobe sb irq=5 dma=1 io=0x220
/lib/modules/2.1.127/misc/sb.o: init_module: Device or resource busy
Soundblaster audio driver Copyright (C) by Hannu Savolainen 1993-1996
sb_card: I/O port 220 is already in use
sound: Device or resource busy
[root@smitten]:/home/smitten/misc/sounds# cat /proc/ioports
Unable to handle kernel paging request at virtual address c88284a4
current->tss.cr3 = 04e45000, %cr3 = 04e45000
*pde = 0009c063
*pte = 00000000
Oops: 0000
CPU: 0
EIP: 0010:[<c0190147>]
EFLAGS: 00010297
eax: c88284a4 ebx: ffffffff ecx: c88284a4 edx: fffffffe
esi: ffffffff edi: c4d5c0c2 ebp: 00000000 esp: c4d65ee8
ds: 0018 es: 0018 ss: 0018
Process cat (pid: 289, process nr: 23, stackpage=c4d65000)
Stack: c4d5c000 c4d5c000 c035d7c0 00088000 c01d2f80 00000297 ffffffff
0000001b
00000001 c01902e8 c4d5c0b6 c019356c c4d65f34 c0115c08 c4d5c0b6
c019355d
00000220 0000022f c88284a4 00000000 c4d65f98 00000c00 c013fbfa
c4d5c000

Call Trace: [<c01902e8>] [<c019356c>] [<c0115c08>] [<c019355d>]
[<c88284a4>] [<c013fbfa>] [<c013fd8a>]
[<c010ccab>] [<c0121cda>] [<c0107a04>]
Code: 80 38 00 74 07 40 4a 83 fa ff 75 f4 29 c8 89 c6 f7 c5 10 00
Segmentation fault
[root@smitten]:/home/smitten/misc/sounds# cat /proc/interrupts
CPU0
0: 97828 XT-PIC timer
1: 3994 XT-PIC keyboard
2: 0 XT-PIC cascade
9: 1 XT-PIC ni6510 EtherBlaster
13: 1 XT-PIC fpu
14: 4618 XT-PIC ide0
15: 2 XT-PIC ide1
NMI: 0
[root@smitten]:/home/smitten/misc/sounds# exi
bash: exi: command not found
[root@smitten]:/home/smitten/misc/sounds# exit
exit

Script done on Sun Nov 8 11:03:23 1998
[smitten@smitten]:~$
=============================================================================

Brent M. Smith, <smitten@lagged.net>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/