Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 06 Dec 2002 00:32:11 +0200
From:      Diomidis Spinellis <dds@aueb.gr>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Sound driver hangs when writing to the system console
Message-ID:  <3DEFD3EB.F7773AB4@aueb.gr>

next in thread | raw e-mail | index | archive | help
For a couple of months I've been trying to crack a puzzling problem. 
After upgrading from 4.1 to 4.6 (and now to 4.7) my on-board sound card
would pause or die after playing for approximately 20 minutes with a
message:

pcm0:play:0: play interrupt timeout, channel dead

I have now managed to isolate the timing dependency: the problem comes
from writing to the system console (which a cron job apparently did
every 20 minutes).  So a command like:

cat /usr/share/dict/words >/dev/console

will immediately break the sound driver with the same message.  I have
dissabled PnP from the BIOS and locked the card to two different IRQs. 
I have also dissabled the VGA IRQ and even removed entirely the VGA card
(the box works as an appliance), but none of these measures helped.  

The sound hardware is an on-board WSS-compatible CS4231-based device on
an Intel Triton motherboard (Pentium 150MHz) running the latest BIOS
update.  The box has no local storage booting remotely from another
FreeBSD box through Etherboot.

I am attaching the output of uname, dmesg, and pciconf.  Any ideas or
hints on what try would be really appreciated.

Diomidis - http://www.dmst.aueb.gr/dds



office# uname -a
FreeBSD office 4.7-RELEASE-p2 FreeBSD 4.7-RELEASE-p2 #12: Thu Dec  5
23:18:43 EET 2002     dds@spiti:/vol/obj/vol/src/sys/OFFICE  i386

office# dmesg
Copyright (c) 1992-2002 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights
reserved.
FreeBSD 4.7-RELEASE-p2 #12: Thu Dec  5 23:18:43 EET 2002
    dds@spiti:/vol/obj/vol/src/sys/OFFICE
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium/P54C (149.69-MHz 586-class CPU)
  Origin = "GenuineIntel"  Id = 0x52c  Stepping = 12
  Features=0x1bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>
real memory  = 33554432 (32768K bytes)
avail memory = 29765632 (29068K bytes)
Intel Pentium detected, installing workaround for F00F bug
md0: Malloc disk
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
isab0: <Intel 82371SB PCI to ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX3 ATA controller> port 0xffa0-0xffaf at device 7.1
on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
orm0: <Option ROMs> at iomem
0xc8000-0xcbfff,0xcc000-0xcffff,0xea000-0xebfff on isa0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on
isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
sio0 at port 0x3f8-0x3ff irq 4 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
ed0 at port 0x240-0x25f iomem 0xd8000 irq 9 on isa0
ed0: address 00:00:e8:32:81:e8, type NE2000 (16 bit)
pcm0: <CS4231> at port 0x530-0x537,0x538-0x539,0xf8c-0xf94,0xe0e irq 11
drq 0 flags 0xa111 on isa0
bootpc_init: wired to interface 'ed0'
Sending DHCP Discover packet from interface ed0 (00:00:e8:32:81:e8)
Received DHCP Offer packet on ed0 from 192.168.136.1 (accepted) (no root
path)
Sending DHCP Request packet from interface ed0 (00:00:e8:32:81:e8)
Received DHCP Ack packet on ed0 from 192.168.136.1 (accepted) (got root
path)
ed0 at 192.168.136.2 server 192.168.136.1 boot file kernel
subnet mask 255.255.255.0 rootfs 192.168.136.1:/
Adjusted interface ed0
Mounting root from nfs:
NFS ROOT: 192.168.136.1:/
pcm0:play:0: play interrupt timeout, channel dead

office# pciconf -lv
chip0@pci0:0:0: class=0x060000 card=0x00000000 chip=0x12508086 rev=0x03
hdr=0x00
    vendor   = 'Intel Corporation'
    device   = '82439HX System Controller (TXC)'
    class    = bridge
    subclass = HOST-PCI
isab0@pci0:7:0: class=0x060100 card=0x00000000 chip=0x70008086 rev=0x01
hdr=0x00
    vendor   = 'Intel Corporation'
    device   = '82371SB PIIX3 PCI-to-ISA Bridge (Triton II)'
    class    = bridge
    subclass = PCI-ISA
atapci0@pci0:7:1:       class=0x010180 card=0x00000000 chip=0x70108086
rev=0x00 hdr=0x00
    vendor   = 'Intel Corporation'
    device   = '82371SB PIIX3 IDE Interface (Triton II)'
    class    = mass storage
    subclass = ATA

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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