Bug 30808

Summary: t4dwave on Acer Alladin M5451 interrupt problem
Product: Base System Reporter: Aaron Kaplan <aaron>
Component: i386Assignee: sound
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.4-RELEASE   
Hardware: Any   
OS: Any   

Description Aaron Kaplan 2001-09-25 04:00:00 UTC
	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 :]

Fix: 

no fix known.
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
Comment 1 Aaron Kaplan 2001-09-25 23:17:43 UTC
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
Comment 2 greid freebsd_committer freebsd_triage 2001-09-29 20:44:00 UTC
Responsible Changed
From-To: freebsd-bugs->sound

Sound issue
Comment 3 Aaron Kaplan 2002-02-12 00:32:32 UTC
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
Comment 4 Aaron Kaplan 2002-04-22 19:02:44 UTC
please close this PR (yeah!)
It definetely works now (thanks to the recent MFC of snd_*)

[ Tested on 4.5-STABLE]

aaron.
Comment 5 orion freebsd_committer freebsd_triage 2002-04-22 21:27:35 UTC
State Changed
From-To: open->closed

Reported fixed.