From owner-freebsd-questions Thu Dec 5 14:34:40 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AEBD037B401 for ; Thu, 5 Dec 2002 14:34:36 -0800 (PST) Received: from hermes.aueb.gr (hermes.aueb.gr [195.251.255.142]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7338C43EBE for ; Thu, 5 Dec 2002 14:34:35 -0800 (PST) (envelope-from dds@aueb.gr) Received: from aueb.gr (faculty07.right.dialup.aueb.gr [195.251.255.251]) by hermes.aueb.gr (8.12.6/8.12.6) with ESMTP id gB5MXxf5014553; Fri, 6 Dec 2002 00:34:00 +0200 Message-ID: <3DEFD3EB.F7773AB4@aueb.gr> Date: Fri, 06 Dec 2002 00:32:11 +0200 From: Diomidis Spinellis X-Mailer: Mozilla 4.78 [en] (Windows NT 5.0; U) X-Accept-Language: en,el,de MIME-Version: 1.0 To: freebsd-questions@FreeBSD.ORG Subject: Sound driver hangs when writing to the system console Content-Type: text/plain; charset=iso-8859-7 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 real memory = 33554432 (32768K bytes) avail memory = 29765632 (29068K bytes) Intel Pentium detected, installing workaround for F00F bug md0: Malloc disk npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0xffa0-0xffaf at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 orm0: