From nobody@FreeBSD.org  Mon Mar  6 09:19:43 2000
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21])
	by hub.freebsd.org (Postfix) with ESMTP id DC91737BE67
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  6 Mar 2000 09:19:42 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.9.3/8.9.2) id JAA04119;
	Mon, 6 Mar 2000 09:19:42 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Message-Id: <200003061719.JAA04119@freefall.freebsd.org>
Date: Mon, 6 Mar 2000 09:19:42 -0800 (PST)
From: larse@isi.edu
Sender: nobody@FreeBSD.org
To: freebsd-gnats-submit@FreeBSD.org
Subject: 4.0-20000214-CURRENT: pcm/csa sound - shared irq problem?
X-Send-Pr-Version: www-1.0

>Number:         17224
>Category:       kern
>Synopsis:       4.0-20000214-CURRENT: pcm/csa sound - shared irq problem?
>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:   Mon Mar  6 09:20:02 PST 2000
>Closed-Date:    Wed Jan 30 01:20:33 PST 2002
>Last-Modified:  Wed Jan 30 01:20:36 PST 2002
>Originator:     Lars Eggert
>Release:        4.0-20000214-CURRENT
>Organization:
USC Information Sciences Institute
>Environment:
FreeBSD hbo.isi.edu 4.0-20000214-CURRENT FreeBSD 4.0-20000214-CURRENT #4: Thu Feb 24 16:47:59 PST 2000     root@pub.isi.edu:/usr/src/sys/compile/PRECISION  i386

>Description:
I have some trouble with the pcm/csa sound driver under 
4.0-20000214-CURRENT. This is with an onboard CS4614 audio chip. The
board also has an onboard Adaptec aic7899 Ultra160 SCSI adapter that
shares irq5 with the sound chip:

[hbo: ~] dmesg | grep 'pcm\|csa\|ahc'
ahc0: <Adaptec aic7899 Ultra160 SCSI adapter> port 0xec00-0xecff mem 0xfafff000-0xfaffffff irq 5 at device 10.0 on pci3
ahc0: aic7899 Wide Channel A, SCSI Id=7, 16/255 SCBs
ahc1: <Adaptec aic7899 Ultra160 SCSI adapter> port 0xe800-0xe8ff mem 0xfaffe000-0xfaffefff irq 11 at device 10.1 on pci3
ahc1: aic7899 Wide Channel B, SCSI Id=7, 16/255 SCBs
csa0: <Crystal Semiconductor CS4614/4622/4624 Audio accelerator/4280 Audio controller> mem 0xfae00000-0xfaefffff,0xfaffe000-0xfaffefff irq 5 at device 6.0 on pci2
pcm0: <CS461x PCM Audio> on csa0

Sound output works fine after rebooting, but after a few hours of
playback, sound starts to get choppy and hissing. Nothing short of a
reboot seems to fix this.

Also, if I disable the ahc controller in the BIOS (there are no devices
connected to it), I get messed up sound output right from the start. 
I suspect there is some problem with the pcm/csa driver and shared 
interrupts.

Please let me know if you require more information.
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:

From: Lars Eggert <larse@isi.edu>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: kern/17224: 4.0-20000214-CURRENT: pcm/csa sound - shared irq problem?
Date: Mon, 27 Mar 2000 15:06:04 +0000 (GMT)

 Just a quick followup on how things are with 4.0-STABLE: 
 
 - the sound corruption problem after a long continous playback is gone
 - however, disabling the SCSI controller on the shared irq will still
   mess up sound output immediatly
 
 Lars
 ________________________________________________________________________
 Lars Eggert <larse@isi.edu>               Information Sciences Institute
 http://www.isi.edu/~larse/             University of Southern California
 

From: Lars Eggert <larse@ISI.EDU>
To: freebsd-gnats-submit@FreeBSD.org, stable@freebsd.org
Cc:  
Subject: Re: kern/17224: 4.0-20000214-CURRENT: pcm/csa sound - shared irq 
 problem?
Date: Fri, 21 Jul 2000 18:54:57 -0700

 kern/17224 is still an issue with 4.1-RC, just verified it again: 
 
 Disabling an Adaptec aic7899 Ultra160 SCSI adapter that shares IRQ 5 with
 an onboard Crystal Semiconductor CS4614/4622/4624/4280 Audio controller in
 the BIOS produces choppy sound. (If the Adaptec is left enabled, the sound
 output is fine.)
 
 (The dump below was taken when the Adaptec controller was enabled.)
 
 [hbo: ~] dmesg | grep 'pcm\|csa\|ahc'
       ahc0: <Adaptec aic7899 Ultra160 SCSI adapter> port 0xec00-0xecff mem
 0xfafff000-0xfaffffff irq 5 at device 10.0 on pci3
       ahc0: aic7899 Wide Channel A, SCSI Id=7, 16/255 SCBs
       ahc1: <Adaptec aic7899 Ultra160 SCSI adapter> port 0xe800-0xe8ff mem
 0xfaffe000-0xfaffefff irq 11 at device 10.1 on pci3
       ahc1: aic7899 Wide Channel B, SCSI Id=7, 16/255 SCBs
       csa0: <Crystal Semiconductor CS4614/4622/4624 Audio accelerator/4280
 Audio controller> mem 0xfae00000-0xfaefffff,0xfaffe000-0xfaffefff irq 5 at
 device 6.0 on pci2
       pcm0: <CS461x PCM Audio> on csa0
 -- 
 Lars Eggert <larse@isi.edu>                 Information Sciences Institute
 http://www.isi.edu/larse/                University of Southern California
 
State-Changed-From-To: open->feedback 
State-Changed-By: iedowse 
State-Changed-When: Mon Aug 27 13:47:41 PDT 2001 
State-Changed-Why:  

Is this still a problem with more recent releases? 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=17224 

From: "Lars Eggert" <larse@ISI.EDU>
To: <freebsd-gnats-submit@FreeBSD.org>, <larse@ISI.EDU>
Cc:  
Subject: Re: kern/17224: 4.0-20000214-CURRENT: pcm/csa sound - shared irq problem?
Date: Mon, 27 Aug 2001 14:48:08 -0800

 This is a multi-part message in MIME format.
 
 ------=_NextPart_000_0000_01C12F07.493178A0
 Content-Type: text/plain;
 	charset="iso-8859-1"
 Content-Transfer-Encoding: 7bit
 
 Sorry, I can no longer test this. The hardware of the machine in question
 has changed too much (new BIOS, sound card, 2nd CPU).
 --
 Lars Eggert <larse@isi.edu>               Information Sciences Institute
 http://www.isi.edu/larse/              University of Southern California
 
 ------=_NextPart_000_0000_01C12F07.493178A0
 Content-Type: application/x-pkc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493178A0--
 
State-Changed-From-To: feedback->closed 
State-Changed-By: sheldonh 
State-Changed-When: Wed Jan 30 01:20:33 PST 2002 
State-Changed-Why:  
Automatic feedback timeout.  This PR remained unchanged in the feedback 
state for more than 4 months. 

If additional feedback that warrants the re-opening of this PR is 
available but not included in the audit trail, please include the 
feedback in a reply to this message (preserving the Subject line) and 
ask that the PR be re-opened. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=17224 
>Unformatted:
