From joeo@incubus.nks.net Sat Mar  6 19:35:22 1999
Return-Path: <joeo@incubus.nks.net>
Received: from incubus.nks.net (dt021nec.tampabay.rr.com [24.92.8.236])
	by hub.freebsd.org (Postfix) with ESMTP id 00A75152CE
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  6 Mar 1999 19:33:43 -0800 (PST)
	(envelope-from joeo@incubus.nks.net)
Received: (from root@localhost)
	by incubus.nks.net (8.9.1/8.8.8) id WAA00478;
	Sat, 6 Mar 1999 22:33:04 -0500 (EST)
	(envelope-from joeo)
Message-Id: <199903070333.WAA00478@incubus.nks.net>
Date: Sat, 6 Mar 1999 22:33:04 -0500 (EST)
From: jorthoef@gte.net
Sender: joeo@incubus.nks.net
Reply-To: joeo@nks.net
To: FreeBSD-gnats-submit@freebsd.org
Subject: pcaudio.c/clock.c interaction
X-Send-Pr-Version: 3.2

>Number:         10455
>Category:       kern
>Synopsis:       pcaudio breakage
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar  6 19:40:00 PST 1999
>Closed-Date:    Wed May 30 03:15:04 PDT 2001
>Last-Modified:  Wed May 30 03:16:22 PDT 2001
>Originator:     Joseph Orthoefer
>Release:        FreeBSD 3.0.0-19990106-SNAP i386
>Organization:
Network Knowledge Systems
>Environment:

CPU: Cyrix 6x86 (486-class CPU)
  Origin = "CyrixInstead"  DIR=0x2231  Stepping=2  Revision=2
real memory  = 33554432 (32768K bytes)
config> quit
avail memory = 30334976 (29624K bytes)
Probing for devices on PCI bus 0:
chip0: <VIA 82C585 (Apollo VP1/VPX) system controller> rev 0x23 on pci0.0.0
chip1: <VIA 82C586 PCI-ISA bridge> rev 0x25 on pci0.7.0
ide_pci0: <VIA 82C586x (Apollo) Bus-master IDE controller> rev 0x06 on pci0.7.1
vga0: <ATI model 4755 graphics accelerator> rev 0x9a on pci0.9.0

/sys/i386/isa/clock.c vers 1.129
/sys/i386/isa/pcaudio vers 1.45 


>Description:

Cat'ing various, know to previously work, raw audio files to
/dev/pcaudio results in an error indicating a device busy condition.

>How-To-Repeat:

see description

>Fix:
	
In /sys/i386/isa/clock.c the function acquire_timer0 has a check
for the use of the i8254 timer.  This was added somewhere between
2.2 and 3.0.  Commenting this out fixes the busy condition.  

It is unclear what the test for the use of the i8254 
protects against (SMP APIC problems?).  


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->analyzed 
State-Changed-By: bde 
State-Changed-When: Sun Jul 18 11:26:19 PDT 1999 
State-Changed-Why:  
Fixed in -current in rev.1.140 of clock.c. 
State-Changed-From-To: analyzed->closed 
State-Changed-By: sos 
State-Changed-When: Wed May 30 03:15:04 PDT 2001 
State-Changed-Why:  
committed, thanks 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=10455 
>Unformatted:
