Subject: Re: kern/32473: GUS PnP audio device seem to be broken in NetBSD 3.0
To: Mike M. Volokhov <>
From: Ben Collver <>
List: netbsd-users
Date: 04/13/2006 20:04:24
On Mon, Apr 10, 2006 at 06:07:29PM +0300, Mike M. Volokhov wrote:
> Heh, unfortunately, I'm not device drivers expert (so please correct me
> please, if I'm wrong), but looking to your backtrace, seems something
> introduced by Tamura Kent in rev 1.24 (2005/01/10, kent-audio1 branch)
> to Interwave driver (sys/dev/ic/interwave.c) was not smooth. Possible
> easiest way to check it (Ben?) is testing kernels from 2005/01/09, and
> then from 2005/01/11. If problem would not occurs on first, and would
> existent on second, I'm right.
> Such way we can find responsible (in this case Kent) for this problem.
> Could you do this, please?

I was not able to build -current from 20050109.

I reproduced the problem in NetBSD 2.0, and the backtrace looks pretty
much the same as the 3.0 backtrace.  Since this release pre-dates Tamura
Kent's changes, I am guessing he is not responsible for the problem.

The error message I get is:

isa0: dma start on free channel 5
panic: _isa_dmastart
Stopped in pid 526.1 (audioplay) at   netbsd:cpu_Debugger+0x4:   leave

The dmesg follows:

NetBSD 2.0 (GENERIC) #0: Mon Dec 13 10:03:52 PST 2004
total memory = 32380 KB
avail memory = 23968 KB
BIOS32 rev. 0 found at 0xfd960
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel Pentium (P54C) (586-class), 132.96 MHz, id 0x52c
cpu0: features 1bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82437VX System Controller (TVX) (rev. 0x02)
pcib0 at pci0 dev 7 function 0
pcib0: Intel 82371SB PCI-to-ISA Bridge (PIIX3) (rev. 0x01)
piixide0 at pci0 dev 7 function 1
piixide0: Intel 82371SB IDE Interface (PIIX3) (rev. 0x00)
piixide0: bus-master DMA support present
piixide0: primary channel wired to compatibility mode
piixide0: primary channel interrupting at irq 14
atabus0 at piixide0 channel 0
piixide0: secondary channel wired to compatibility mode
piixide0: secondary channel ignored (disabled)
S3 Trio32/64 (VGA display, revision 0x44) at pci0 dev 8 function 0 not configured
vga1 at pci0 dev 13 function 0: Nvidia Corporation & SGS-Thomson Microelectronics Riva 128 (rev. 0x10)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
ohci0 at pci0 dev 14 function 0: Opti RM861HA (rev. 0x10)
ohci0: interrupting at irq 11
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Opti OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
isa0 at pcib0
lpt0 at isa0 port 0x378-0x37b irq 7
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
isapnp0: read port 0x203
guspnp0 at isapnp0 port 0x220/16,0x320/8,0x32c/4 irq 7,5 drq 7,5
guspnp0: Gravis Ultrasound Plug'n'Pray WSS & GUS EMU
guspnp0: bank[0]: 0K, bank[1]: 0K, bank[2]: 0K, bank[3]: 0K
guspnp0: interwave version 1.26
audio0 at guspnp0: full duplex, mmap
isapnp0: <Gravis Ultrasound Plug'n'Pray, GRV0011, , Disabled[IDE Co> not configured
joy0 at isapnp0 port 0x201/1
joy0: Gravis Ultrasound Plug'n'Pray Game Port
joy0: joystick not connected
isapnp0: <Gravis Ultrasound Plug'n'Pray, GRV0013, , Disabled[SB & O> not configured
isapnp0: <Gravis Ultrasound Plug'n'Pray, GRV0014, , Disabled[GM EMU> not configured
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
Kernelized RAIDframe activated
wd0 at atabus0 drive 0: <WDC AC21600H>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 1549 MB, 3148 cyl, 16 head, 63 sec, 512 bytes/sect x 3173184 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2
wd0(piixide0:0:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)