From aaron@meta.lo-res.org  Mon Sep 24 19:56:51 2001
Return-Path: <aaron@meta.lo-res.org>
Received: from meta.lo-res.org (meta.lo-res.org [195.58.189.92])
	by hub.freebsd.org (Postfix) with ESMTP id 5F58637B41C
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 24 Sep 2001 19:56:50 -0700 (PDT)
Received: (from aaron@localhost)
	by meta.lo-res.org (8.11.6/8.11.6) id f8P31wQ85664;
	Tue, 25 Sep 2001 05:01:58 +0200 (CEST)
	(envelope-from aaron)
Message-Id: <200109250301.f8P31wQ85664@meta.lo-res.org>
Date: Tue, 25 Sep 2001 05:01:58 +0200 (CEST)
From: aaron <aaron@lo-res.org>
Reply-To: aaron <aaron@lo-res.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: t4dwave on Acer Alladin M5451 interrupt problem
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         30808
>Category:       i386
>Synopsis:       t4dwave on Acer Alladin M5451 interrupt problem
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    sound
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 24 20:00:00 PDT 2001
>Closed-Date:    Mon Apr 22 13:28:04 PDT 2002
>Last-Modified:  Mon Apr 22 13:28:04 PDT 2002
>Originator:     aaron
>Release:        FreeBSD 4.4-RELEASE i386
>Organization:
home
>Environment:
System: FreeBSD chillig.lo-res.org 4.4-RELEASE FreeBSD 4.4-RELEASE #1: Tue Sep 25 04:32:19 CEST 2001 root@chillig.lo-res.org:/usr/src/sys/compile/chillig i386


	
>Description:
	Running an Acer TravelMate 512TE.
        sound output is only _sometimes_ possible.

        The TravelMate uses an Acer M5451 sound chip. however if I kldload
        snd_t4dwave.ko I sometimes get the message:
         pcm0: play interrupt timeout, channel dead
        
        I highly assume this is because of IRQ sharing between the soundcard
        and the graphics card (both are on IRQ 10), grfx card is:
         ATI Rage Mobility Pro

        On other occasions sound will work - but only for the first time.
        After opening the device and closing it the next open will result 
        in no sound output.

        I did a comparison: 5.0-current works with this laptop. sound plays
        perfectly and every time.

        But rest assured, commercial OSS is far behind in supporting that
        irq-sharing monster :]

>How-To-Repeat:
	share interrupts with sound card.
        kldload t4dwave for an M5451 chip based sound card
        try to play some wav/mp3
        observe kern logs

>Fix:

	no fix known.	
>Release-Note:
>Audit-Trail:

From: aaron <aaron@lo-res.org>
To: freebsd-gnats-submit@FreeBSD.org, aaron@lo-res.org
Cc:  
Subject: Re: i386/30808: t4dwave on Acer Alladin M5451 interrupt problem
Date: Wed, 26 Sep 2001 00:17:43 +0200

 here is my pci configuration ("scanpci -v"). Maybe it helps
 
 ---- cut here ----
 
 PCI says configuration type 1
  
 PCI probing configuration type 1
  
 Probing for devices on PCI bus 0:
  
 pci bus 0x0 cardnum 0x00 function 0x0000: vendor 0x10b9 device 0x1621
  ALI  Device unknown
  CardVendor 0x0000 card 0x0000
   STATUS    0xa410  COMMAND 0x0006
   CLASS     0x06 0x00 0x00  REVISION 0x05
  
 pci bus 0x0 cardnum 0x01 function 0x0000: vendor 0x10b9 device 0x5247
  ALI  Device unknown
  CardVendor 0x0000 card 0x0000
   STATUS    0x0000  COMMAND 0x0107
   CLASS     0x06 0x04 0x00  REVISION 0x01
   HEADER    0x01  LATENCY 0x00
   PRIBUS    0x00  SECBUS 0x01  SUBBUS 0x01  SECLT 0x00
   IOBASE    0x8000  IOLIM 0x8fff  SECSTATUS 0x2020
   NOPREFETCH_MEMBASE 0x80600000  MEMLIM 0x820fffff
   PREFETCH_MEMBASE   0xfff00000  MEMLIM 0x000fffff
   NO_FAST_B2B NO_SEC_BUS_RST NO_M_ABRT VGA_EN NO_ISA_EN NO_PERR_EN
  
 pci bus 0x0 cardnum 0x06 function 0x0000: vendor 0x10b9 device 0x5451
  ALI  Device unknown
  CardVendor 0x1025 card 0x1010
   STATUS    0xc290  COMMAND 0x0007
   CLASS     0x04 0x01 0x00  REVISION 0x01
   BIST      0x00  HEADER 0x00  LATENCY 0x20  CACHE 0x00
   BASE0     0x00009001  addr 0x00009000  I/O
   BASE1     0x82200000  addr 0x82200000  MEM
   MAX_LAT   0x18  MIN_GNT 0x02  INT_PIN 0x01  INT_LINE 0x0a
  
 pci bus 0x0 cardnum 0x07 function 0x0000: vendor 0x10b9 device 0x1533
  ALI M1533 Aladdin IV
  CardVendor 0x1025 card 0x1010
   STATUS    0x0210  COMMAND 0x000f
   CLASS     0x06 0x01 0x00  REVISION 0x00
  
 pci bus 0x0 cardnum 0x0a function 0x0000: vendor 0x8086 device 0x1229
  Intel 82557/8 10/100MBit network controller
  CardVendor 0x1025 card 0x1010
   STATUS    0x0290  COMMAND 0x0007
   CLASS     0x02 0x00 0x00  REVISION 0x08
   BIST      0x00  HEADER 0x00  LATENCY 0x20  CACHE 0x08
   BASE0     0x80100000  addr 0x80100000  MEM
   BASE1     0x00007001  addr 0x00007000  I/O
   BASE2     0x80200000  addr 0x80200000  MEM
   BASEROM   0x80300000  addr 0x80300000  not-decode-enabled
   MAX_LAT   0x38  MIN_GNT 0x08  INT_PIN 0x01  INT_LINE 0x0a
 pci bus 0x0 cardnum 0x10 function 0x0000: vendor 0x10b9 device 0x5229
  ALI M5229 TXpro
  CardVendor 0x1025 card 0x1010
   STATUS    0x0290  COMMAND 0x0005
   CLASS     0x01 0x01 0xfa  REVISION 0xc3
   BIST      0x00  HEADER 0x00  LATENCY 0x20  CACHE 0x00
   BASE4     0x00006051  addr 0x00006050  I/O
   MAX_LAT   0x04  MIN_GNT 0x02  INT_PIN 0x01  INT_LINE 0x0f
   BYTE_0    0x06  BYTE_1  0x00  BYTE_2  0x00  BYTE_3  0x7a
  
 pci bus 0x0 cardnum 0x11 function 0x0000: vendor 0x10b9 device 0x7101
  ALI  Device unknown
  CardVendor 0x1025 card 0x1010
   STATUS    0x0200  COMMAND 0x0000
   CLASS     0x06 0x80 0x00  REVISION 0x00
  
 pci bus 0x0 cardnum 0x13 function 0x0000: vendor 0x1217 device 0x6933
  Device unknown
  CardVendor 0x0001 card 0x0000
   STATUS    0x0410  COMMAND 0x0087
   CLASS     0x06 0x07 0x00  REVISION 0x01
   HEADER    0x82  LATENCY 0x20
  
 pci bus 0x0 cardnum 0x13 function 0x0001: vendor 0x1217 device 0x6933
  Device unknown
  CardVendor 0x0001 card 0x0000
   STATUS    0x0410  COMMAND 0x0087
   CLASS     0x06 0x07 0x00  REVISION 0x01
   HEADER    0x82  LATENCY 0x20
  
 pci bus 0x0 cardnum 0x14 function 0x0000: vendor 0x10b9 device 0x5237
  ALI  Device unknown
  CardVendor 0x1025 card 0x1010
   STATUS    0x0290  COMMAND 0x0007
   CLASS     0x0c 0x03 0x10  REVISION 0x03
   BIST      0x00  HEADER 0x00  LATENCY 0x20  CACHE 0x08
   BASE0     0x82400000  addr 0x82400000  MEM
   MAX_LAT   0x50  MIN_GNT 0x00  INT_PIN 0x01  INT_LINE 0x0b
   BYTE_0    0x00  BYTE_1  0x00  BYTE_2  0x1f  BYTE_3  0x00
  
 Probing for devices on PCI bus 1:
  
 pci bus 0x1 cardnum 0x00 function 0x0000: vendor 0x1002 device 0x4c4d
  ATI Mach64 LM
   STATUS    0x0290  COMMAND 0x0087
   CLASS     0x03 0x00 0x00  REVISION 0x64
   BIST      0x00  HEADER 0x00  LATENCY 0x20  CACHE 0x08
   APBASE    0x81000000  addr 0x81000000
   BLOCKIO   0x00008001  addr 0x00008000
   REGBASE   0x80600000  addr 0x80600000
   BASEROM   0x80620000  addr 0x80620000  not-decode-enabled
   MAX_LAT   0x00  MIN_GNT 0x08  INT_PIN 0x01  INT_LINE 0x0b
   SPARSEIO  0x2ec    Block IO enabled    Disable 0x46E8
 
 
Responsible-Changed-From-To: freebsd-bugs->sound 
Responsible-Changed-By: greid 
Responsible-Changed-When: Sat Sep 29 12:44:00 PDT 2001 
Responsible-Changed-Why:  
Sound issue 

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

From: aaron <aaron@lo-res.org>
To: freebsd-gnats-submit@FreeBSD.org, aaron@lo-res.org
Cc:  
Subject: Re: i386/30808: t4dwave on Acer Alladin M5451 interrupt problem
Date: Tue, 12 Feb 2002 01:32:32 +0100

 this PR can be closed (for me at least). Sound works on 4.5. (at last, 
 yes!!!!) I additionally compiled the "pca" device so maybe that fixed it, 
 dont know. I can cross check if needed.
 
 aaron.
 -- 
 COSHER - completely open source headers engineering and research

From: aaron <aaron@lo-res.org>
To: freebsd-gnats-submit@freebsd.org, aaron@lo-res.org
Cc:  
Subject: Re: i386/30808: t4dwave on Acer Alladin M5451 interrupt problem
Date: Mon, 22 Apr 2002 20:02:44 +0200

 please close this PR (yeah!)
 It definetely works now (thanks to the recent MFC of snd_*)
 
 [ Tested on 4.5-STABLE]
 
 aaron.
State-Changed-From-To: open->closed 
State-Changed-By: orion 
State-Changed-When: Mon Apr 22 13:27:35 PDT 2002 
State-Changed-Why:  
Reported fixed. 


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