NetBSD Problem Report #10088
Received: (qmail 25911 invoked from network); 10 May 2000 04:05:16 -0000
Message-Id: <200005100405.QAA04378@city-art.mcs.vuw.ac.nz>
Date: Wed, 10 May 2000 16:05:13 +1200 (NZST)
From: Mark Davies <mark@MCS.VUW.AC.NZ>
Reply-To: mark@MCS.VUW.AC.NZ
To: gnats-bugs@gnats.netbsd.org
Subject: Problems with Ensoniq AudioPCI 97, intel 820 chipset
X-Send-Pr-Version: 3.95
>Number: 10088
>Category: kern
>Synopsis: Problems with Ensoniq AudioPCI 97, intel 820 chipset
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed May 10 04:06:00 +0000 2000
>Closed-Date: Thu Apr 18 17:14:08 +0000 2002
>Last-Modified: Thu Apr 18 17:14:08 +0000 2002
>Originator: Mark Davies
>Release: NetBSD-current 2000/05/09
>Organization:
Dept. of Comp. Sci., Victoria Uni. of Wellington, New Zealand.
>Environment:
System: NetBSD city-art.mcs.vuw.ac.nz 1.4X NetBSD 1.4X (MCS_WORKSTATION) #0: Sun Apr 9 10:29:55 NZST 2000 mark@turakirae.mcs.vuw.ac.nz:/src/build/src/sys/arch/i386/compile/MCS_WORKSTATION i386
>Description:
I'm having difficulty with playing sound on some Intel 820 motherboard
based machines with recent -current's.
Opening /dev/sound and sending something to it works the first few
times you try it after a reboot but after a (short) while any further
attempts just hang opening the device. This state continues till a
reboot.
This is with a 1.4X system of early April vintage and I've just tried
a kernel from todays sources with the same result. Any ideas?
A dmesg for the machine is below.
cheers
mark
NetBSD 1.4Y (MCS_WORKSTATION) #0: Tue May 9 23:42:26 NZST 2000
mark@turakirae.mcs.vuw.ac.nz:/src/work/src/sys/arch/i386/compile/MCS_WORKSTATION
cpu0: family 6 model 8 step 1
cpu0: Intel Pentium III (E) (686-class)
total memory = 64896 KB
avail memory = 57344 KB
using 836 buffers containing 3344 KB of memory
RTC BIOS diagnostic error 2
BIOS32 rev. 0 found at 0xfda74
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 0 function 0
pchb0: Intel product 0x2501 (rev. 0x03)
ppb0 at pci0 dev 1 function 0: Intel product 0x250f (rev. 0x03)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 0 function 0: Matrox MGA G200 AGP (rev. 0x03)
wsdisplay0 at vga1: console (80x25, vt100 emulation)
ppb1 at pci0 dev 30 function 0: Intel 82801AA Hub-to-PCI Bridge (rev. 0x02)
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled
eap0 at pci2 dev 7 function 0: Ensoniq AudioPCI 97 ES1373B (rev. 0x06)
eap0: interrupting at irq 9
eap0: Crystal CS4297A codec; headphone, 20 bit DAC, 18 bit ADC, Spatializer 3D
audio0 at eap0: full duplex, mmap, independent
midi0 at eap0: AudioPCI MIDI UART
ex0 at pci2 dev 9 function 0: 3Com 3c905B-TX 10/100 Ethernet (rev. 0x64)
ex0: interrupting at irq 10
ex0: MAC address 00:10:5a:85:f6:91
ukphy0 at ex0 phy 24: Generic IEEE 802.3u media interface
ukphy0: OUI 0x001018, model 0x0016, rev. 2
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pcib0 at pci0 dev 31 function 0
pcib0: Intel 82801AA LPC Interface Bridge (rev. 0x02)
pciide0 at pci0 dev 31 function 1: Intel 82801AA IDE Controller (ICH)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
wd0 at pciide0 channel 0 drive 0: <ST34313A>
wd0: drive supports 32-sector pio transfers, lba addressing
wd0: 4126 MB, 8944 cyl, 15 head, 63 sec, 512 bytes/sect x 8452080 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4 (using DMA data transfers)
pciide0: secondary channel wired to compatibility mode
atapibus0 at pciide0 channel 1
cd0 at atapibus0 drive 1: <ATAPI CD-ROM DRIVE 40X MAXIMUM, , N0DP> type 5 cdrom
removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2
pciide0: secondary channel interrupting at irq 15
cd0(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2 (using DMA data transfers)
uhci0 at pci0 dev 31 function 2: Intel 82801AA USB Controller (rev. 0x02)
uhci0: interrupting at irq 9
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
Intel 82801AA SMBus Controller (SMBus serial bus, revision 0x02) at pci0 dev 31
function 3 not configured
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: 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
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
lpt0 at isa0 port 0x378-0x37b irq 7
pcppi0 at isa0 port 0x61
midi1 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
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
isapnp0: no ISA Plug 'n Play devices found
biomask eb65 netmask ef65 ttymask ffe7
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
XFree86 aperture driver version 2.0
Pentium Pro MTRR support enabled
Accounting started
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)
wsmux1: connecting to wsdisplay0
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
From: "Perry E. Metzger" <perry@piermont.com>
To: mark@MCS.VUW.AC.NZ
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: kern/10088: Problems with Ensoniq AudioPCI 97, intel 820 chipset
Date: 10 May 2000 14:09:42 -0400
Mark Davies <mark@MCS.VUW.AC.NZ> writes:
> This is with a 1.4X system of early April vintage and I've just tried
> a kernel from todays sources with the same result. Any ideas?
-current sources aren't working for you? I thought Lennart had
committed an (at least partial) fix...
.pm
From: Mark Davies <mark@MCS.VUW.AC.NZ>
To: "Perry E. Metzger" <perry@piermont.com>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: kern/10088: Problems with Ensoniq AudioPCI 97, intel 820 chipset
Date: Thu, 11 May 2000 09:34:58 +1200
From: "Perry E. Metzger" <perry@piermont.com>
Date: 10 May 2000 14:09:42 -0400
> Mark Davies <mark@MCS.VUW.AC.NZ> writes:
> > This is with a 1.4X system of early April vintage and I've just tried
> > a kernel from todays sources with the same result. Any ideas?
>
> -current sources aren't working for you? I thought Lennart had
> committed an (at least partial) fix...
There were some patches to eap.c on 1/5 that were certainly in the kernel I
tried yesterday but they don't seem to have made any difference to this.
cheers
mark
From: Mason Loring Bliss <mason@acheron.middleboro.ma.us>
To: gnats-bugs@gnats.netbsd.org
Cc:
Subject: kern/10088: Problems with Ensoniq AudioPCI 97, intel 820 chipset
Date: Sun, 4 Jun 2000 09:07:43 -0400
More problems, more information.
I just picked up an Ensoniq AudioPCI card, and it fails fairly
consistently. It's occasionally able to get some sound out, but most
of the time the process trying to access /dev/audio hangs for a while
and is unresponsive to signals, indicating that it's hanging out in
the kernel or something.
My card:
eap0 at pci0 dev 18 function 0: Ensoniq AudioPCI 97 (rev. 0x08)
eap0: interrupting at irq 5
eap0: TRA35 codec; no 3D stereo
audio0 at eap0: full duplex, mmap, independent
midi0 at eap0: AudioPCI MIDI UART
Some non-responsiveness:
$ audioctl -w play.gain=255
play.gain: -> 127
$ audioctl -w play.gain=100
play.gain: -> 127
$ audioctl -w play.gain=0
play.gain: -> 127
$ audioctl -w play.gain=999999
play.gain: -> 127
I don't ever see any actual error messages as I try to do things, which
is unfortunate. However, my mouse gets somewhat jerky when over xmix,
presumably because xmix is reading from the eap. (An annoying side note
is that xlockmore is slightly broken in that the new version (post
security-hole fix) ignores my request that it not do audio, and
consequently hangs around annoyingly when I'm trying to get back into
a locked session.)
Another random side-note: The presence or absence of PCIBIOS doesn't
impact the non-functioning of the card.
--
Mason Loring Bliss mason@acheron.middleboro.ma.us They also surf who
awake ? sleep : dream; http://acheron.ne.mediaone.net only stand on waves.
From: Chris Jones <chris@cjones.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: kern/10088
Date: Mon, 26 Mar 2001 11:43:43 -0700
One more detail: Reproducing this on my 1.5.1_ALPHA system, the hung
process has WCHAN "aud_wr". This appears to correspond to
sys/dev/audio.c, in the vicinity of line 1500.
Chris
--
----------------------------------------------------- chris@cjones.org
Chris Jones Mad scientist at large
From: Chris Jones <chris@cjones.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: kern/10088
Date: Mon, 26 Mar 2001 12:59:29 -0700
I've rebuilt my kernel with "options AUDIO_DEBUG".
Now, each time I kill madplay and (successfully) start another one, I
get:
Mar 26 12:03:37 legolas /netbsd: audio_sleep: woke up st=-1
After setting audiodebug and eapdebug to 2, killing a madplay which is
hung on "aud_wr" results in:
Mar 26 12:29:31 legolas /netbsd: audio_sleep: woke up st=-1
Mar 26 12:29:31 legolas /netbsd: audio_close: sc=0xc07ff400
Mar 26 12:29:31 legolas /netbsd: audio_drain: enter busy=1 used=61600
Mar 26 12:29:31 legolas /netbsd: audio_drain: used=61600, drops=0
Mar 26 12:30:01 legolas /netbsd: audio_sleep: woke up st=35
Mar 26 12:30:01 legolas /netbsd: eap: eap_halt_output
Mar 26 12:30:01 legolas /netbsd: eap: eap_halt_output
Mar 26 12:30:01 legolas /netbsd: eap: eap_halt_input
Mar 26 12:30:01 legolas /netbsd: audio_close: done
Running a madplay which hangs immediately upon starting produces this
output:
Mar 26 12:33:19 legolas /netbsd: audio_open: flags=0x2 sc=0xc07ff400 hdl=0xc07f7400
Mar 26 12:33:19 legolas /netbsd: audio: Setting record params sr=8000, enc=1, chan=1, prec=8
Mar 26 12:33:19 legolas /netbsd: audio: Setting play params sr=8000, enc=1, chan=1, prec=8
Mar 26 12:33:19 legolas /netbsd: audio_calc_blksize: record blksize=384
Mar 26 12:33:19 legolas /netbsd: audio_calc_blksize: play blksize=800
Mar 26 12:33:19 legolas /netbsd: audio: After setting record params sr=8000, enc=1, chan=1, prec=8
Mar 26 12:33:19 legolas /netbsd: audio: After setting play params sr=8000, enc=1, chan=1, prec=8
Mar 26 12:33:19 legolas /netbsd: audio_initbufs: mode=0x5
Mar 26 12:33:19 legolas /netbsd: audio_init_ringbuffer: blksize=384
Mar 26 12:33:19 legolas /netbsd: audio_init_ringbuffer: blksize=800
Mar 26 12:33:19 legolas /netbsd: audio_open: done sc_mode = 0x5
Mar 26 12:33:19 legolas /netbsd: audio_ioctl(0,'A',23)
Mar 26 12:33:19 legolas /netbsd: AUDIO_DRAIN
Mar 26 12:33:19 legolas /netbsd: audio_drain: enter busy=0 used=0
Mar 26 12:33:19 legolas /netbsd: audio_ioctl(0,'A',23) result 0
Mar 26 12:33:19 legolas /netbsd: audio_ioctl(136,'A',22)
Mar 26 12:33:19 legolas /netbsd: AUDIO_SETINFO mode=0x5
Mar 26 12:33:19 legolas /netbsd: audio: Setting play params sr=44100, enc=3, chan=2, prec=16
Mar 26 12:33:19 legolas /netbsd: audio_calc_blksize: record blksize=384
Mar 26 12:33:19 legolas /netbsd: audio_calc_blksize: play blksize=8800
Mar 26 12:33:19 legolas /netbsd: audio: After setting play params sr=44100, enc=6, chan=2, prec=16
Mar 26 12:33:19 legolas /netbsd: audio_initbufs: mode=0x5
Mar 26 12:33:19 legolas /netbsd: audio_init_ringbuffer: blksize=384
Mar 26 12:33:19 legolas /netbsd: audio_init_ringbuffer: blksize=8800
Mar 26 12:33:19 legolas /netbsd: audio_ioctl(136,'A',22) result 0
Mar 26 12:33:19 legolas /netbsd: audio_write: sr=44100, enc=6, prec=16, chan=2, sw=0x0, fact=1
Mar 26 12:33:19 legolas /netbsd: audio_write: uiomove cc=4608 inp=0xd215c000, left=4608
Mar 26 12:33:19 legolas /netbsd: audiostartp: start=0xd215c000 used=4608(hi=61600) mmapped=0
Mar 26 12:33:19 legolas /netbsd: audio_write: sr=44100, enc=6, prec=16, chan=2, sw=0x0, fact=1
Mar 26 12:33:19 legolas /netbsd: audio_write: uiomove cc=4608 inp=0xd215d200, left=4608
Mar 26 12:33:19 legolas /netbsd: audiostartp: start=0xd215c000 used=9216(hi=61600) mmapped=0
Mar 26 12:33:19 legolas /netbsd: eap_trigger_output: sc=0xc07f7400 start=0xd215c000 end=0xd216b0a0 blksize=8800 intr=0xc0122644(0xc07ff400)
Mar 26 12:33:19 legolas /netbsd: eap_trigger_output: DAC2_ADDR=0x21000, DAC2_SIZE=0x3c27
Mar 26 12:33:19 legolas /netbsd: eap_trigger_output: set ICSC = 0x00000000
Mar 26 12:33:19 legolas /netbsd: audio_write: sr=44100, enc=6, prec=16, chan=2, sw=0x0, fact=1
Mar 26 12:33:19 legolas /netbsd: audio_write: uiomove cc=4608 inp=0xd215e400, left=4608
Mar 26 12:33:19 legolas /netbsd: audio_write: sr=44100, enc=6, prec=16, chan=2, sw=0x0, fact=1
Mar 26 12:33:19 legolas /netbsd: audio_write: uiomove cc=4608 inp=0xd215f600, left=4608
[...]
Mar 26 12:33:19 legolas /netbsd: audio_write: sr=44100, enc=6, prec=16, chan=2, sw=0x0, fact=1
Mar 26 12:33:19 legolas /netbsd: audio_write: uiomove cc=4608 inp=0xd2169800, left=4608
Mar 26 12:33:19 legolas /netbsd: audio_write: sr=44100, enc=6, prec=16, chan=2, sw=0x0, fact=1
Mar 26 12:33:19 legolas /netbsd: audio_write: uiomove cc=1696 inp=0xd216aa00, left=4608
And then I killed it:
Mar 26 12:33:50 legolas /netbsd: audio_sleep: woke up st=-1
Mar 26 12:33:50 legolas /netbsd: audio_close: sc=0xc07ff400
Mar 26 12:33:50 legolas /netbsd: audio_drain: enter busy=1 used=61600
Mar 26 12:33:50 legolas /netbsd: audio_drain: used=61600, drops=0
Mar 26 12:34:20 legolas /netbsd: audio_sleep: woke up st=35
Mar 26 12:34:20 legolas /netbsd: eap: eap_halt_output
Mar 26 12:34:20 legolas /netbsd: eap: eap_halt_output
Mar 26 12:34:20 legolas /netbsd: eap: eap_halt_input
Mar 26 12:34:20 legolas /netbsd: audio_close: done
--
---------------------------------------------------- chris@cjones.org
Chris Jones Mad scientist at large
www.netbsd.org www.postgresql.org www.schemers.org www.python.org
State-Changed-From-To: open->feedback
State-Changed-By: mycroft
State-Changed-When: Wed Apr 17 05:43:12 PDT 2002
State-Changed-Why:
Should be fixed by eap.c 1.45 on 2001/04/24.
State-Changed-From-To: feedback->closed
State-Changed-By: mycroft
State-Changed-When: Thu Apr 18 10:13:41 PDT 2002
State-Changed-Why:
Confirmed to work on other boxes, and user is unable to test it again.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.