From sec@btl.42.org  Fri Feb 14 09:26:42 2003
Return-Path: <sec@btl.42.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 51E1637B401
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 14 Feb 2003 09:26:42 -0800 (PST)
Received: from btl.42.org (btl.42.org [194.246.250.193])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 5057143FBD
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 14 Feb 2003 09:26:41 -0800 (PST)
	(envelope-from sec@btl.42.org)
Received: from btl.42.org (sec@localhost [127.0.0.1])
	by btl.42.org (8.12.7/8.12.6) with ESMTP id h1EHQdYR000693
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 14 Feb 2003 18:26:39 +0100 (CET)
	(envelope-from sec@btl.42.org)
Received: (from sec@localhost)
	by btl.42.org (8.12.7/8.12.6/Submit) id h1EHQch7000692;
	Fri, 14 Feb 2003 18:26:38 +0100 (CET)
Message-Id: <200302141726.h1EHQch7000692@btl.42.org>
Date: Fri, 14 Feb 2003 18:26:38 +0100 (CET)
From: Stefan `Sec` Zehl <sec@42.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: sound (pcm/sbc) broken with acpi
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         48283
>Category:       i386
>Synopsis:       sound (pcm/sbc) broken with acpi
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    acpi-jp@jp.FreeBSD.org
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 14 09:30:12 PST 2003
>Closed-Date:    Wed Aug 13 13:38:05 PDT 2003
>Last-Modified:  Wed Aug 13 13:38:05 PDT 2003
>Originator:     Stefan `Sec` Zehl
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD btl 5.0-CURRENT FreeBSD 5.0-CURRENT #3: Fri Feb 14 17:39:25 CET 2003 root@btl:/usr/obj/usr/src/sys/BTL i386

FreeBSD 5.0-Current freshly cvsup'd and make world/kernel'd

A Sounblaster AWE64 card 

sbc0: <Creative SB AWE64> at port 0x388-0x38b,0x330-0x331,0x220-0x22f irq 5 drq 5,1 on isa0
pcm0: <SB16 DSP 4.16> on sbc0

>Description:

This card does fine in FreeBSD-4.7, but fails in FreeBSD-5.0 (with ACPI
enabled, which is the default). When trying to access the audio device,
all I hear is a single 'pop' and the following log message:

pcm0:play:0: play interrupt timeout, channel dead

>How-To-Repeat:
	
>Fix:

A workaround is to disable ACPI by adding 'hint.acpi.0.disabled="1"' to
/boot/loader.conf

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: kris 
State-Changed-When: Sun Jul 13 22:57:39 PDT 2003 
State-Changed-Why:  
Can you please retry with 5.1-RELEASE or 5.1-CURRENT? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=48283 
Responsible-Changed-From-To: freebsd-bugs->acpi-jp@jp.FreeBSD.org 
Responsible-Changed-By: kris 
Responsible-Changed-When: Mon Jul 14 01:29:08 PDT 2003 
Responsible-Changed-Why:  
Assign to ACPI maintainers 

http://www.freebsd.org/cgi/query-pr.cgi?pr=48283 

From: Nate Lawson <nate@root.org>
To: sec@42.org
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: i386/48283
Date: Mon, 21 Jul 2003 15:07:12 -0700 (PDT)

 Please try 5.1-current.  There has been an ACPI import.  Also, please
 report full dmesg with acpi enabled.
 
 -Nate

From: Stefan `Sec` Zehl <sec@42.org>
To: Nate Lawson <nate@root.org>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: i386/48283
Date: Tue, 22 Jul 2003 17:09:17 +0200

 --wac7ysb48OaltWcw
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 Hi,
 
 On Mon, Jul 21, 2003 at 03:07:12PM -0700, Nate Lawson wrote:
 > Please try 5.1-current.  There has been an ACPI import.  Also, please
 > report full dmesg with acpi enabled.
 
 I have recompiled world and kernel with todays 5-CURRENT.
 
 Attached is the full dmesg with acpi turned on. The last line (interrupt
 timeout) was generated from my attempt to play an .mp3 file.
 
 I would be glad if you could help fix this.
 
 CU,
     Sec
 -- 
 perl -nle 'print "$_ is divisible by 7" if (unpack("B*",reverse pack("L",$_))=~
 /^0*((1((0(01|1(001*0)*11)*(00|1(001*0)*10))|1(01*0(1(10)*11)*0)*01*0(1(10)*
 11)*1(10)*0)*(1(01*0(1(10)*11)*0)*1|0(01|1(001*0)*11)*1(001*0)*01))0*)+$/x)'
 
 --wac7ysb48OaltWcw
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="dmesg.acpi"
 
 Copyright (c) 1992-2003 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 5.1-CURRENT #12: Tue Jul 22 14:31:03 CEST 2003
     root@btl:/usr/obj/usr/src/sys/BTL
 Preloaded elf kernel "/boot/kernel/kernel" at 0xc054a000.
 Preloaded elf module "/boot/kernel/acpi.ko" at 0xc054a1f4.
 Timecounter "i8254"  frequency 1193182 Hz
 Timecounter "TSC"  frequency 598840140 Hz
 CPU: AMD Athlon(tm) Processor (598.84-MHz 686-class CPU)
   Origin = "AuthenticAMD"  Id = 0x621  Stepping = 1
   Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
   AMD Features=0xc0400000<AMIE,DSP,3DNow!>
 real memory  = 671023104 (639 MB)
 avail memory = 646004736 (616 MB)
 Pentium Pro MTRR support enabled
 npx0: <math processor> on motherboard
 npx0: INT 16 interface
 acpi0: <MSISYS AWRDACPI> on motherboard
 pcibios: BIOS version 2.10
 acpi0: power button is handled as a fixed feature programming model.
 acpi0: sleep button is handled as a fixed feature programming model.
 Timecounter "ACPI-fast"  frequency 3579545 Hz
 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x5008-0x500b on acpi0
 acpi_cpu0: <CPU> port 0x530-0x537 on acpi0
 acpi_tz0: <thermal zone> port 0x530-0x537 on acpi0
 acpi_button0: <Power Button> on acpi0
 pcib0: <ACPI Host-PCI bridge> port 0x5080-0x50ff,0x5000-0x507f,0xcf8-0xcff on acpi0
 pci0: <ACPI PCI bus> on pcib0
 pcib0: slot 7 INTD is routed to irq 10
 pcib0: slot 9 INTA is routed to irq 12
 pcib0: slot 9 INTA is routed to irq 12
 pcib0: slot 11 INTA is routed to irq 10
 pcib0: slot 12 INTA is routed to irq 11
 agp0: <AMD 751 host to AGP bridge> port 0xe000-0xe003 mem 0xeb004000-0xeb004fff,0xd8000000-0xdfffffff at device 0.0 on pci0
 pcib1: <PCI-PCI bridge> at device 1.0 on pci0
 pci1: <PCI bus> on pcib1
 pcib0: slot 1 INTB is routed to irq 12
 pcib1: slot 5 INTA is routed to irq 12
 pci1: <display, VGA> at device 5.0 (no driver attached)
 pci1: <display> at device 5.1 (no driver attached)
 isab0: <PCI-ISA bridge> at device 7.0 on pci0
 isa0: <ISA bus> on isab0
 atapci0: <AMD 756 UDMA66 controller> port 0xf000-0xf00f at device 7.1 on pci0
 ata0: at 0x1f0 irq 14 on atapci0
 ata1: at 0x170 irq 15 on atapci0
 pci0: <bridge, PCI-unknown> at device 7.3 (no driver attached)
 ohci0: <AMD-756 USB Controller> mem 0xeb000000-0xeb000fff irq 10 at device 7.4 on pci0
 usb0: OHCI version 1.0, legacy support
 usb0: <AMD-756 USB Controller> on ohci0
 usb0: USB revision 1.0
 uhub0: AMD OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub0: 4 ports with 4 removable, self powered
 ums0: Microsoft IntelliMouse, rev 1.00/1.04, addr 2, iclass 3/1
 ums0: 3 buttons and Z dir.
 bktr0: <BrookTree 878> mem 0xeb001000-0xeb001fff irq 12 at device 9.0 on pci0
 bktr0: Hauppauge Model 38104 B429
 bktr0: Hauppauge WinCast/TV, Philips PAL I tuner.
 pci0: <multimedia> at device 9.1 (no driver attached)
 ahc0: <Adaptec 2940 Ultra SCSI adapter> port 0xe400-0xe4ff mem 0xeb003000-0xeb003fff irq 10 at device 11.0 on pci0
 aic7880: Ultra Wide Channel A, SCSI Id=7, 16/253 SCBs
 rl0: <RealTek 8139 10/100BaseTX, rev. B> port 0xe800-0xe8ff mem 0xeb005000-0xeb0050ff irq 11 at device 12.0 on pci0
 rl0: Ethernet address: 00:00:cb:59:15:9c
 miibus0: <MII bus> on rl0
 rlphy0: <RealTek internal media interface> on miibus0
 rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> port 0x3f7,0x3f2-0x3f5 irq 6 drq 2 on acpi0
 fdc0: FIFO enabled, 8 bytes threshold
 fd0: <1440-KB 3.5" drive> on fdc0 drive 0
 sio0 port 0x3f8-0x3ff irq 4 on acpi0
 sio0: type 16550A
 sio1 port 0x2f8-0x2ff irq 3 on acpi0
 sio1: type 16550A
 ppc0 port 0x378-0x37f irq 7 on acpi0
 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
 ppbus0: <Parallel port bus> on ppc0
 plip0: <PLIP network interface> on ppbus0
 lpt0: <Printer> on ppbus0
 lpt0: Interrupt-driven port
 ppi0: <Parallel I/O> on ppbus0
 atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
 atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
 kbd0 at atkbd0
 orm0: <Option ROMs> at iomem 0xd0000-0xd47ff,0xc0000-0xccfff on isa0
 pmtimer0 on isa0
 sc0: <System console> at flags 0x100 on isa0
 sc0: VGA <16 virtual consoles, flags=0x300>
 vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
 sbc0: <Creative SB AWE64> at port 0x388-0x38b,0x330-0x331,0x220-0x22f irq 5 drq 5,1 on isa0
 pcm0: <SB16 DSP 4.16> on sbc0
 joy0: <Generic PnP Joystick> at port 0x200-0x207 on isa0
 Timecounters tick every 10.000 msec
 acpi_cpu: throttling enabled, 2 steps (100% to 50.0%), currently 100.0%
 ad0: 58644MB <IC35L060AVVA07-0> [119150/16/63] at ata0-master UDMA66
 ad1: 27199MB <ST328040A> [55262/16/63] at ata0-slave UDMA66
 acd0: CD-RW <HL-DT-ST RW/DVD GCC-4320B> at ata1-master PIO4
 Waiting 2 seconds for SCSI devices to settle
 da0 at ahc0 bus 0 target 0 lun 0
 da0: <IBM DCAS-34330 S65A> Fixed Direct Access SCSI-2 device 
 da0: 20.000MB/s transfers (20.000MHz, offset 15)
 da0: 4134MB (8467200 512 byte sectors: 255H 63S/T 527C)
 Mounting root from ufs:/dev/ad0s2a
 drm0: <ATI Radeon If R250 9000> port 0xd000-0xd0ff mem 0xe9000000-0xe900ffff,0xe0000000-0xe3ffffff irq 12 at device 5.0 on pci1
 info: [drm] AGP at 0xd8000000 128MB
 info: [drm] Initialized radeon 1.8.0 20020828 on minor 0
 info: [drm] Loading R200 Microcode
 cd0 at ahc0 bus 0 target 6 lun 0
 cd0: <PLEXTOR CD-ROM PX-32TS 1.02> Removable CD-ROM SCSI-2 device 
 cd0: 20.000MB/s transfers (20.000MHz, offset 15)
 cd0: Attempt to query device size failed: NOT READY, Medium not present
 pcm0:play:0: play interrupt timeout, channel dead
 
 --wac7ysb48OaltWcw--

From: Nate Lawson <nate@root.org>
To: Stefan `Sec` Zehl <sec@42.org>, jhb@freebsd.org, cg@freebsd.org
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: i386/48283
Date: Fri, 8 Aug 2003 09:15:57 -0700 (PDT)

 I see your sound card uses irq 5.  There were a lot of changes between 4.x
 and 5.x including interrupt routing changes.  I am ccing someone who knows
 irq allocation and someone who knows soundcards to see if they know
 anything to look for here.  I don't see anything out of line here.  I'd
 make sure irq 5 is set to "allocate to ISA" in your BIOS.
 
 -Nate

From: John Baldwin <jhb@FreeBSD.org>
To: Nate Lawson <nate@root.org>
Cc: freebsd-gnats-submit@freebsd.org, cg@freebsd.org,
	Stefan `Sec` Zehl <sec@42.org>
Subject: Re: i386/48283
Date: Fri, 08 Aug 2003 14:28:28 -0400 (EDT)

 On 08-Aug-2003 Nate Lawson wrote:
 > I see your sound card uses irq 5.  There were a lot of changes between 4.x
 > and 5.x including interrupt routing changes.  I am ccing someone who knows
 > irq allocation and someone who knows soundcards to see if they know
 > anything to look for here.  I don't see anything out of line here.  I'd
 > make sure irq 5 is set to "allocate to ISA" in your BIOS.
 
 Since it is an ISA device, the PCI interrupt routing code shouldn't
 affect it.  None of the PCI interrupts were routed to IRQ 5 at least.
 You are definitely losing interrupts though.  I would make sure that
 IRQ 5 is reserved for ISA devices in your BIOS.
 
 > -Nate
 
 -- 
 
 John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
 "Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

From: Stefan `Sec` Zehl <sec@42.org>
To: John Baldwin <jhb@FreeBSD.org>
Cc: Nate Lawson <nate@root.org>, freebsd-gnats-submit@freebsd.org,
	cg@freebsd.org
Subject: Re: i386/48283
Date: Wed, 13 Aug 2003 19:55:16 +0200

 Hi,
 
 sorry for the delay, but I have been on vacation lat week...
 
 On Fri, Aug 08, 2003 at 02:28:28PM -0400, John Baldwin wrote:
 > 
 > On 08-Aug-2003 Nate Lawson wrote:
 > > I see your sound card uses irq 5.  There were a lot of changes between 4.x
 > > and 5.x including interrupt routing changes.  I am ccing someone who knows
 > > irq allocation and someone who knows soundcards to see if they know
 > > anything to look for here.  I don't see anything out of line here.  I'd
 > > make sure irq 5 is set to "allocate to ISA" in your BIOS.
 > 
 > Since it is an ISA device, the PCI interrupt routing code shouldn't
 > affect it.  None of the PCI interrupts were routed to IRQ 5 at least.
 > You are definitely losing interrupts though.  I would make sure that
 > IRQ 5 is reserved for ISA devices in your BIOS.
 
 Great, that did it.  By BIOS was set to
 "Resources controlled by: Auto(ESCD)"
 
 When I set it to "Manual", and set IRQ 5 for "Legacy ISA", it worked.
 
 I now have working sound again.
 
 Thank you very much for helping me ;-)
 
 CU,
     Sec
 -- 
 The Feynman problem solving Algorithm
 			1) Write down the problem
 			2) Think real hard
 			3) Write down the answer
State-Changed-From-To: feedback->closed 
State-Changed-By: njl 
State-Changed-When: Wed Aug 13 13:37:42 PDT 2003 
State-Changed-Why:  
User allocated irq to ISA and this solved the problem. 

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