NetBSD Problem Report #42007

From www@NetBSD.org  Mon Sep  7 16:06:25 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 1555F63BCFB
	for <gnats-bugs@gnats.netbsd.org>; Mon,  7 Sep 2009 16:06:25 +0000 (UTC)
Message-Id: <20090907160624.A935563BC1D@www.NetBSD.org>
Date: Mon,  7 Sep 2009 16:06:24 +0000 (UTC)
From: scotte@warped.com
Reply-To: scotte@warped.com
To: gnats-bugs@NetBSD.org
Subject: hdaudio panics on P5W DH Deluxe (amd64)
X-Send-Pr-Version: www-1.0

>Number:         42007
>Category:       kern
>Synopsis:       hdaudio panics on P5W DH Deluxe (amd64)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    jmcneill
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 07 16:10:00 +0000 2009
>Closed-Date:    Wed Sep 09 02:01:00 +0000 2009
>Last-Modified:  Wed Sep 09 02:01:00 +0000 2009
>Originator:     Scott Ellis
>Release:        NetBSD 5.99.16 (-current from 09/07/09)
>Organization:
>Environment:
NetBSD intrepid 5.99.16 NetBSD 5.99.16 (INTREPID.P5W) #0: Sun Sep  6 08:16:31 PDT 2009  scotte@intrepid:/nbu/source/netbsd/src/obj.amd64/nbu/source/netbsd/src/sys/arch/amd64/compile/INTREPID.P5W amd64

>Description:
Replacing azalia with hdaudio and hdafg causes the following panic on boot:

hdaudio0 at pci0 dev 27 function 0: HD Audio Controller
hdaudio0: interrupting at ioapic0 pin 19
hdafg0 at hdaudio0 vendor 0x10EC product 0x0882 nid 0x01 (firmware configuration)
hdafg0: DAC0:02, Analog Speaker: Jack (Green, 14)
hdafg0: DAC0:03, Analog Speaker: Jack (Orange, 16)
hdafg0: DAC0:04, Analog Speaker: Jack (Black, 15)
hdafg0: DAC0:05, Analog Speaker: Jack (Grey, 17)
hdafg0: DAC1:25, Analog HP Out: Jack (Green, 1B)
hdafg0: DAC2:06, Digital SPDIF Out: Jack (Black, 1E)
hdafg0: ADC3:07, Analog Mic In: Jack (Pink, 18)
hdafg0: ADC3:07, Analog Line In: Jack (Blue, 1A)
hdafg0: ADC3:07, Analog CD: Fixed Function (Unknown, 1C)
hdafg0: ADC4:08, Analog Mic In: Jack (Pink, 19)
hdafg0: 8 playback channels, 2 capture channels
audio0 at hdafg0: full duplex, independent
uvm_fault(0xffffffff804ded20, 0x0, 1) -> e
fatal page fault in supervisor mode
trap type 6 code 0 rip ffffffff80126640 cs 8 rflags 10287 cr2  10 cpl 8 rsp ffffffff805b1f78
panic: trap

The operating system has halted.
Please press any key to reboot.
>How-To-Repeat:
Replace azalia with hdaudio and hdafg, and boot kernel on amd64.
>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: kern-bug-people->jmcneill
Responsible-Changed-By: jmcneill@NetBSD.org
Responsible-Changed-When: Mon, 07 Sep 2009 16:16:34 +0000
Responsible-Changed-Why:
take


From: "Jared D. McNeill" <jmcneill@invisible.ca>
To: <gnats-bugs@NetBSD.org>,
	<kern-bug-people@netbsd.org>,
	<netbsd-bugs@netbsd.org>,
	<gnats-admin@netbsd.org>,
	<scotte@warped.com>
Cc: 
Subject: RE: kern/42007 (hdaudio panics on P5W DH Deluxe (amd64))
Date: Mon, 7 Sep 2009 12:17:17 -0400

 Please re-test using a kernel with 'options DDB' and provide the output of
 'tr' at the db{0}> prompt.

 Thanks,
 Jared


From: "Jared D. McNeill" <jmcneill@invisible.ca>
To: "'Scott Ellis'" <scotte@warped.com>
Cc: <gnats-bugs@NetBSD.org>,
	<gnats-admin@netbsd.org>
Subject: RE: kern/42007 (hdaudio panics on P5W DH Deluxe (amd64))
Date: Mon, 7 Sep 2009 12:41:57 -0400

 I just checked in a fix for this, can you update and try again?

 -----Original Message-----
 From: scotte@intrepid.warped.com [mailto:scotte@intrepid.warped.com] On
 Behalf Of Scott Ellis
 Sent: September-07-09 12:27 PM
 To: Jared D. McNeill
 Cc: gnats-bugs@NetBSD.org; gnats-admin@netbsd.org
 Subject: Re: kern/42007 (hdaudio panics on P5W DH Deluxe (amd64))

 On 9/7/2009 9:17 AM, Jared D. McNeill wrote:
 > Please re-test using a kernel with 'options DDB' and provide the output of
 > 'tr' at the db{0}>  prompt.
 >
 > Thanks,
 > Jared
 >
 >

 Output is as follows:

 hdaudio0 at pci0 dev 27 function 0: HD Audio Controller
 hdaudio0: interrupting at ioapic0 pin 19
 hdafg0 at hdaudio0 vendor 0x10EC product 0x0882 nid 0x01 (firmware 
 configuration)
 hdafg0: DAC0:02, Analog Speaker: Jack (Green, 14)
 hdafg0: DAC0:03, Analog Speaker: Jack (Orange, 16)
 hdafg0: DAC0:04, Analog Speaker: Jack (Black, 15)
 hdafg0: DAC0:05, Analog Speaker: Jack (Grey, 17)
 hdafg0: DAC1:25, Analog HP Out: Jack (Green, 1B)
 hdafg0: DAC2:06, Digital SPDIF Out: Jack (Black, 1E)
 hdafg0: ADC3:07, Analog Mic In: Jack (Pink, 18)
 hdafg0: ADC3:07, Analog Line In: Jack (Blue, 1A)
 hdafg0: ADC3:07, Analog CD: Fixed Function (Unknown, 1C)
 hdafg0: ADC4:08, Analog Mic In: Jack (Pink, 19)
 hdafg0: 8 playback channels, 2 capture channels
 Mutex error: lockdebug_barrier: spin lock held

 lock address : 0xffff8000551c3478 type     :               spin
 initialized  : 0xffffffff8018674b
 shared holds :                  0 exclusive:                  1
 shares wanted:                  0 exclusive:                  0
 current cpu  :                  0 last held:                  0
 current lwp  : 0xffffffff80530200 last held: 0xffffffff80530200
 last locked  : 0xffffffff8018665c unlocked : 000000000000000000
 owner field  : 0x0000000000010600 wait/spin:                0/1

 panic: LOCKDEBUG
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 rip ffffffff80146f85 cs 8 rflags 246 cr2  0 cpl 8 rsp 
 ffffffff80652550
 Stopped in pid 0.1 (system) at  netbsd:breakpoint+0x5:  leave
 db{0}> tr
 breakpoint() at netbsd:breakpoint+0x5
 panic() at netbsd:panic+0x29a
 lockdebug_locked() at netbsd:lockdebug_locked
 mutex_enter() at netbsd:mutex_enter+0x329
 uvm_km_check_empty() at netbsd:uvm_km_check_empty+0x94
 uvm_map() at netbsd:uvm_map+0x120
 uvm_km_alloc() at netbsd:uvm_km_alloc+0xa7
 _bus_dmamem_map() at netbsd:_bus_dmamem_map+0x6d
 hdaudio_dma_alloc() at netbsd:hdaudio_dma_alloc+0x8e
 hdaudio_stream_establish() at netbsd:hdaudio_stream_establish+0x8b
 hdaudio_afg_attach() at netbsd:hdaudio_afg_attach+0x10d6
 config_attach_loc() at netbsd:config_attach_loc+0x16b
 hdaudio_attach_fg() at netbsd:hdaudio_attach_fg+0xce
 hdaudio_attach() at netbsd:hdaudio_attach+0x4cb
 hdaudio_pci_attach() at netbsd:hdaudio_pci_attach+0x16d
 config_attach_loc() at netbsd:config_attach_loc+0x16b
 pci_probe_device() at netbsd:pci_probe_device+0x2e7
 pci_enumerate_bus() at netbsd:pci_enumerate_bus+0x139
 pcirescan() at netbsd:pcirescan+0x48
 pciattach() at netbsd:pciattach+0x17b
 config_attach_loc() at netbsd:config_attach_loc+0x16b
 mainbus_attach() at netbsd:mainbus_attach+0x12c
 config_attach_loc() at netbsd:config_attach_loc+0x16b
 cpu_configure() at netbsd:cpu_configure+0x26
 main() at netbsd:main+0x1da
 db{0}>

 Dmesg from a working kernel is as follows:

 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
      2006, 2007, 2008, 2009
      The NetBSD Foundation, Inc.  All rights reserved.
 Copyright (c) 1982, 1986, 1989, 1991, 1993
      The Regents of the University of California.  All rights reserved.

 NetBSD 5.99.16 (INTREPID.P5W) #0: Sun Sep  6 08:16:31 PDT 2009

 scotte@intrepid:/nbu/source/netbsd/src/obj.amd64/nbu/source/netbsd/src/sys/a
 rch/amd64/compile/INTREPID.P5W
 total memory = 8191 MB
 avail memory = 7933 MB
 timecounter: Timecounters tick every 10.000 msec
 timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
 ASUSTEK COMPUTER INC P5W DH Deluxe (System Version)
 mainbus0 (root)
 cpu0 at mainbus0 apid 0: Intel 686-class, 2703MHz, id 0x6f6
 cpu1 at mainbus0 apid 1: Intel 686-class, 2703MHz, id 0x6f6
 ioapic0 at mainbus0 apid 2: pa 0xfec00000, version 20, 24 pins
 acpi0 at mainbus0: Intel ACPICA 20090730
 acpi0: X/RSDT: OemId <A_M_I_,OEMXSDT ,07000810>, AslId <MSFT,00000097>
 acpi0: SCI interrupting at int 9
 acpi0: fixed-feature power button present
 timecounter: Timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000
 ACPI-Fast 24-bit timer
 attimer0 at acpi0 (TMR, PNP0100): io 0x40-0x43 irq 0
 pcppi0 at acpi0 (SPKR, PNP0800): io 0x61
 sysbeep0 at pcppi0
 fdc0 at acpi0 (FDC, PNP0700): io 0x3f0-0x3f5,0x3f7 irq 6 drq 2
 ACPI Warning for \_SB_.PCI0.SBRG.FDC_._FDE: Return type mismatch - found 
 Package, expected Buffer (20090730/nspredef-1139)
 fdc0: expected BUFFER, got 4
 hpet0 at acpi0 (HPET, PNP0103): mem 0xfed00000-0xfed003ff
 timecounter: Timecounter "hpet0" frequency 14318179 Hz quality 2000
 aiboost0 at acpi0 (ASOC, ATK0110-16843024)
 aiboost0: ASUS AI Boost Hardware monitor
 com0 at acpi0 (UAR1, PNP0501-1): io 0x3f8-0x3ff irq 4
 com0: ns16550a, working fifo
 com0: console
 acpibut0 at acpi0 (PWRB, PNP0C0C-170): ACPI Power Button
 attimer0: attached to pcppi0
 pci0 at mainbus0 bus 0: configuration mode 1
 pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
 pchb0 at pci0 dev 0 function 0: vendor 0x8086 product 0x277c (rev. 0xc0)
 ppb0 at pci0 dev 1 function 0: vendor 0x8086 product 0x277d (rev. 0xc0)
 pci1 at ppb0 bus 5
 pci1: i/o space, memory space enabled, rd/line, wr/inv ok
 vendor 0x10de product 0x01d1 (VGA display, revision 0xa1) at pci1 dev 0 
 function 0 not configured
 azalia0 at pci0 dev 27 function 0: Generic High Definition Audio Controller
 azalia0: interrupting at ioapic0 pin 19
 azalia0: host: 0x8086/0x27d8 (rev. 1), HDA rev. 1.0
 ppb1 at pci0 dev 28 function 0: vendor 0x8086 product 0x27d0 (rev. 0x01)
 pci2 at ppb1 bus 4
 pci2: memory space enabled, rd/line, wr/inv ok
 ppb2 at pci0 dev 28 function 3: vendor 0x8086 product 0x27d6 (rev. 0x01)
 pci3 at ppb2 bus 3
 pci3: i/o space, memory space enabled, rd/line, wr/inv ok
 mskc0 at pci3 dev 0 function 0mskc0: interrupt moderation is 0 us
 , Yukon-2 EC rev. A3 (0x2): ioapic0 pin 19
 msk0 at mskc0 port A: Ethernet address 00:1b:fc:03:ee:42
 makphy0 at msk0 phy 0: Marvell 88E1111 Gigabit PHY, rev. 2
 makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 
 1000baseT-FDX, auto
 ppb3 at pci0 dev 28 function 4: vendor 0x8086 product 0x27e0 (rev. 0x01)
 pci4 at ppb3 bus 2
 pci4: i/o space, memory space enabled, rd/line, wr/inv ok
 mskc1 at pci4 dev 0 function 0mskc1: interrupt moderation is 0 us
 , Yukon-2 EC rev. A3 (0x2): ioapic0 pin 16
 msk1 at mskc1 port A: Ethernet address 00:1b:fc:03:e3:60
 makphy1 at msk1 phy 0: Marvell 88E1111 Gigabit PHY, rev. 2
 makphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 
 1000baseT-FDX, auto
 uhci0 at pci0 dev 29 function 0: vendor 0x8086 product 0x27c8 (rev. 0x01)
 uhci0: interrupting at ioapic0 pin 20
 usb0 at uhci0: USB revision 1.0
 uhci1 at pci0 dev 29 function 1: vendor 0x8086 product 0x27c9 (rev. 0x01)
 uhci1: interrupting at ioapic0 pin 17
 usb1 at uhci1: USB revision 1.0
 uhci2 at pci0 dev 29 function 2: vendor 0x8086 product 0x27ca (rev. 0x01)
 uhci2: interrupting at ioapic0 pin 18
 usb2 at uhci2: USB revision 1.0
 uhci3 at pci0 dev 29 function 3: vendor 0x8086 product 0x27cb (rev. 0x01)
 uhci3: interrupting at ioapic0 pin 19
 usb3 at uhci3: USB revision 1.0
 ehci0 at pci0 dev 29 function 7: vendor 0x8086 product 0x27cc (rev. 0x01)
 ehci0: interrupting at ioapic0 pin 20
 ehci0: EHCI version 1.0
 ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2 uhci3
 usb4 at ehci0: USB revision 2.0
 ppb4 at pci0 dev 30 function 0: vendor 0x8086 product 0x244e (rev. 0xe1)
 pci5 at ppb4 bus 1
 pci5: i/o space, memory space enabled
 ex0 at pci5 dev 1 function 0: 3Com 3c905B-TX 10/100 Ethernet (rev. 0x30)
 ex0: interrupting at ioapic0 pin 22
 ex0: MAC address 00:50:04:78:77:9c
 exphy0 at ex0 phy 24: 3Com internal media interface
 exphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 ichlpcib0 at pci0 dev 31 function 0: vendor 0x8086 product 0x27b8 (rev. 
 0x01)
 timecounter: Timecounter "ichlpcib0" frequency 3579545 Hz quality 1000
 ichlpcib0: 24-bit timer
 ichlpcib0: TCO (watchdog) timer configured.
 piixide0 at pci0 dev 31 function 1: Intel 82801GB/GR IDE Controller 
 (ICH7) (rev. 0x01)
 piixide0: bus-master DMA support present
 piixide0: primary channel configured to compatibility mode
 piixide0: primary channel interrupting at ioapic0 pin 14
 atabus0 at piixide0 channel 0
 piixide0: secondary channel configured to compatibility mode
 piixide0: secondary channel interrupting at ioapic0 pin 15
 atabus1 at piixide0 channel 1
 ahcisata0 at pci0 dev 31 function 2: vendor 0x8086 product 0x27c1
 ahcisata0: interrupting at ioapic0 pin 23
 ahcisata0: AHCI revision 1.1, 4 ports, 32 command slots, features 0xc720e000
 atabus2 at ahcisata0 channel 0
 atabus3 at ahcisata0 channel 1
 atabus4 at ahcisata0 channel 2
 atabus5 at ahcisata0 channel 3
 ichsmb0 at pci0 dev 31 function 3: vendor 0x8086 product 0x27da (rev. 0x01)
 ichsmb0: interrupting at ioapic0 pin 23
 iic0 at ichsmb0: I2C bus
 spdmem0 at iic0 addr 0x50
 spdmem0: DDR2 SDRAM, no parity or ECC, 2GB, 800MHz (PC2-6400)
 spdmem0: 14 rows, 10 cols, 2 ranks, 8 banks/chip, 2.50ns cycle time
 spdmem0: tAA-tRCD-tRP-tRAS: 5-5-5-15
 spdmem0: voltage SSTL 1.8V, refresh time 7.8us (self-refreshing)
 spdmem1 at iic0 addr 0x51
 spdmem1: DDR2 SDRAM, no parity or ECC, 2GB, 800MHz (PC2-6400)
 spdmem1: 14 rows, 10 cols, 2 ranks, 8 banks/chip, 2.50ns cycle time
 spdmem1: tAA-tRCD-tRP-tRAS: 5-5-5-18
 spdmem1: voltage SSTL 1.8V, refresh time 7.8us (self-refreshing)
 spdmem2 at iic0 addr 0x52
 spdmem2: DDR2 SDRAM, no parity or ECC, 2GB, 800MHz (PC2-6400)
 spdmem2: 14 rows, 10 cols, 2 ranks, 8 banks/chip, 2.50ns cycle time
 spdmem2: tAA-tRCD-tRP-tRAS: 5-5-5-15
 spdmem2: voltage SSTL 1.8V, refresh time 7.8us (self-refreshing)
 spdmem3 at iic0 addr 0x53
 spdmem3: DDR2 SDRAM, no parity or ECC, 2GB, 800MHz (PC2-6400)
 spdmem3: 14 rows, 10 cols, 2 ranks, 8 banks/chip, 2.50ns cycle time
 spdmem3: tAA-tRCD-tRP-tRAS: 5-5-5-18
 spdmem3: voltage SSTL 1.8V, refresh time 7.8us (self-refreshing)
 isa0 at ichlpcib0
 timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
 timecounter: Timecounter "TSC" frequency 2703538440 Hz quality 3000
 fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
 fd1 at fdc0 drive 1: density unknown
 azalia0: codec[0]: Realtek ALC882 (rev. 1.1), HDA rev. 1.0
 audio0 at azalia0: full duplex, independent
 uhub0 at usb0: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub0: 2 ports with 2 removable, self powered
 uhub1 at usb1: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub1: 2 ports with 2 removable, self powered
 uhub2 at usb2: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub2: 2 ports with 2 removable, self powered
 uhub3 at usb3: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub3: 2 ports with 2 removable, self powered
 uhub4 at usb4: vendor 0x8086 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
 uhub4: 8 ports with 8 removable, self powered
 ahcisata0 port 0: device present, speed: 3.0Gb/s
 ahcisata0 port 3: device present, speed: 3.0Gb/s
 wd0 at atabus2 drive 0: <SAMSUNG HD103UJ>
 wd0: drive supports 16-sector PIO transfers, LBA48 addressing
 wd0: 931 GB, 1938021 cyl, 16 head, 63 sec, 512 bytes/sect x 1953525168 
 sectors
 wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 7
 wd0(ahcisata0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 
 (Ultra/133) (using DMA)
 ahcisata0 port 1: PHY offline
 wd1 at atabus5 drive 0: <SAMSUNG HD103UJ>
 wd1: drive supports 16-sector PIO transfers, LBA48 addressing
 wd1: 931 GB, 1938021 cyl, 16 head, 63 sec, 512 bytes/sect x 1953525168 
 sectors
 wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 7
 wd1(ahcisata0:3:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 
 (Ultra/133) (using DMA)
 uplcom0 at uhub2 port 1
 uplcom0: vendor 0x067b product 0x2303, rev 1.10/2.02, addr 2
 ucom0 at uplcom0
 uhub5 at uhub4 port 7: vendor 0x05e3 USB2.0 Hub, class 9/0, rev 
 2.00/7.02, addr 2
 uhub5: single transaction translator
 uhub5: 4 ports with 4 removable, self powered
 uplcom1 at uhub2 port 2
 uplcom1: vendor 0x067b product 0x2303, rev 1.10/2.02, addr 3
 ucom1 at uplcom1
 ugen0 at uhub5 port 3
 ugen0: vendor 0x0bda RTL8187_Wireless, rev 2.00/1.00, addr 3
 Kernelized RAIDframe activated

From: Scott Ellis <scotte@warped.com>
To: "Jared D. McNeill" <jmcneill@invisible.ca>
Cc: gnats-bugs@NetBSD.org, gnats-admin@netbsd.org
Subject: Re: kern/42007 (hdaudio panics on P5W DH Deluxe (amd64))
Date: Mon, 07 Sep 2009 09:26:43 -0700

 On 9/7/2009 9:17 AM, Jared D. McNeill wrote:
 > Please re-test using a kernel with 'options DDB' and provide the output of
 > 'tr' at the db{0}>  prompt.
 >
 > Thanks,
 > Jared
 >
 >

 Output is as follows:

 hdaudio0 at pci0 dev 27 function 0: HD Audio Controller
 hdaudio0: interrupting at ioapic0 pin 19
 hdafg0 at hdaudio0 vendor 0x10EC product 0x0882 nid 0x01 (firmware 
 configuration)
 hdafg0: DAC0:02, Analog Speaker: Jack (Green, 14)
 hdafg0: DAC0:03, Analog Speaker: Jack (Orange, 16)
 hdafg0: DAC0:04, Analog Speaker: Jack (Black, 15)
 hdafg0: DAC0:05, Analog Speaker: Jack (Grey, 17)
 hdafg0: DAC1:25, Analog HP Out: Jack (Green, 1B)
 hdafg0: DAC2:06, Digital SPDIF Out: Jack (Black, 1E)
 hdafg0: ADC3:07, Analog Mic In: Jack (Pink, 18)
 hdafg0: ADC3:07, Analog Line In: Jack (Blue, 1A)
 hdafg0: ADC3:07, Analog CD: Fixed Function (Unknown, 1C)
 hdafg0: ADC4:08, Analog Mic In: Jack (Pink, 19)
 hdafg0: 8 playback channels, 2 capture channels
 Mutex error: lockdebug_barrier: spin lock held

 lock address : 0xffff8000551c3478 type     :               spin
 initialized  : 0xffffffff8018674b
 shared holds :                  0 exclusive:                  1
 shares wanted:                  0 exclusive:                  0
 current cpu  :                  0 last held:                  0
 current lwp  : 0xffffffff80530200 last held: 0xffffffff80530200
 last locked  : 0xffffffff8018665c unlocked : 000000000000000000
 owner field  : 0x0000000000010600 wait/spin:                0/1

 panic: LOCKDEBUG
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 rip ffffffff80146f85 cs 8 rflags 246 cr2  0 cpl 8 rsp 
 ffffffff80652550
 Stopped in pid 0.1 (system) at  netbsd:breakpoint+0x5:  leave
 db{0}> tr
 breakpoint() at netbsd:breakpoint+0x5
 panic() at netbsd:panic+0x29a
 lockdebug_locked() at netbsd:lockdebug_locked
 mutex_enter() at netbsd:mutex_enter+0x329
 uvm_km_check_empty() at netbsd:uvm_km_check_empty+0x94
 uvm_map() at netbsd:uvm_map+0x120
 uvm_km_alloc() at netbsd:uvm_km_alloc+0xa7
 _bus_dmamem_map() at netbsd:_bus_dmamem_map+0x6d
 hdaudio_dma_alloc() at netbsd:hdaudio_dma_alloc+0x8e
 hdaudio_stream_establish() at netbsd:hdaudio_stream_establish+0x8b
 hdaudio_afg_attach() at netbsd:hdaudio_afg_attach+0x10d6
 config_attach_loc() at netbsd:config_attach_loc+0x16b
 hdaudio_attach_fg() at netbsd:hdaudio_attach_fg+0xce
 hdaudio_attach() at netbsd:hdaudio_attach+0x4cb
 hdaudio_pci_attach() at netbsd:hdaudio_pci_attach+0x16d
 config_attach_loc() at netbsd:config_attach_loc+0x16b
 pci_probe_device() at netbsd:pci_probe_device+0x2e7
 pci_enumerate_bus() at netbsd:pci_enumerate_bus+0x139
 pcirescan() at netbsd:pcirescan+0x48
 pciattach() at netbsd:pciattach+0x17b
 config_attach_loc() at netbsd:config_attach_loc+0x16b
 mainbus_attach() at netbsd:mainbus_attach+0x12c
 config_attach_loc() at netbsd:config_attach_loc+0x16b
 cpu_configure() at netbsd:cpu_configure+0x26
 main() at netbsd:main+0x1da
 db{0}>

 Dmesg from a working kernel is as follows:

 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
      2006, 2007, 2008, 2009
      The NetBSD Foundation, Inc.  All rights reserved.
 Copyright (c) 1982, 1986, 1989, 1991, 1993
      The Regents of the University of California.  All rights reserved.

 NetBSD 5.99.16 (INTREPID.P5W) #0: Sun Sep  6 08:16:31 PDT 2009
 	scotte@intrepid:/nbu/source/netbsd/src/obj.amd64/nbu/source/netbsd/src/sys/arch/amd64/compile/INTREPID.P5W
 total memory = 8191 MB
 avail memory = 7933 MB
 timecounter: Timecounters tick every 10.000 msec
 timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
 ASUSTEK COMPUTER INC P5W DH Deluxe (System Version)
 mainbus0 (root)
 cpu0 at mainbus0 apid 0: Intel 686-class, 2703MHz, id 0x6f6
 cpu1 at mainbus0 apid 1: Intel 686-class, 2703MHz, id 0x6f6
 ioapic0 at mainbus0 apid 2: pa 0xfec00000, version 20, 24 pins
 acpi0 at mainbus0: Intel ACPICA 20090730
 acpi0: X/RSDT: OemId <A_M_I_,OEMXSDT ,07000810>, AslId <MSFT,00000097>
 acpi0: SCI interrupting at int 9
 acpi0: fixed-feature power button present
 timecounter: Timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000
 ACPI-Fast 24-bit timer
 attimer0 at acpi0 (TMR, PNP0100): io 0x40-0x43 irq 0
 pcppi0 at acpi0 (SPKR, PNP0800): io 0x61
 sysbeep0 at pcppi0
 fdc0 at acpi0 (FDC, PNP0700): io 0x3f0-0x3f5,0x3f7 irq 6 drq 2
 ACPI Warning for \_SB_.PCI0.SBRG.FDC_._FDE: Return type mismatch - found 
 Package, expected Buffer (20090730/nspredef-1139)
 fdc0: expected BUFFER, got 4
 hpet0 at acpi0 (HPET, PNP0103): mem 0xfed00000-0xfed003ff
 timecounter: Timecounter "hpet0" frequency 14318179 Hz quality 2000
 aiboost0 at acpi0 (ASOC, ATK0110-16843024)
 aiboost0: ASUS AI Boost Hardware monitor
 com0 at acpi0 (UAR1, PNP0501-1): io 0x3f8-0x3ff irq 4
 com0: ns16550a, working fifo
 com0: console
 acpibut0 at acpi0 (PWRB, PNP0C0C-170): ACPI Power Button
 attimer0: attached to pcppi0
 pci0 at mainbus0 bus 0: configuration mode 1
 pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
 pchb0 at pci0 dev 0 function 0: vendor 0x8086 product 0x277c (rev. 0xc0)
 ppb0 at pci0 dev 1 function 0: vendor 0x8086 product 0x277d (rev. 0xc0)
 pci1 at ppb0 bus 5
 pci1: i/o space, memory space enabled, rd/line, wr/inv ok
 vendor 0x10de product 0x01d1 (VGA display, revision 0xa1) at pci1 dev 0 
 function 0 not configured
 azalia0 at pci0 dev 27 function 0: Generic High Definition Audio Controller
 azalia0: interrupting at ioapic0 pin 19
 azalia0: host: 0x8086/0x27d8 (rev. 1), HDA rev. 1.0
 ppb1 at pci0 dev 28 function 0: vendor 0x8086 product 0x27d0 (rev. 0x01)
 pci2 at ppb1 bus 4
 pci2: memory space enabled, rd/line, wr/inv ok
 ppb2 at pci0 dev 28 function 3: vendor 0x8086 product 0x27d6 (rev. 0x01)
 pci3 at ppb2 bus 3
 pci3: i/o space, memory space enabled, rd/line, wr/inv ok
 mskc0 at pci3 dev 0 function 0mskc0: interrupt moderation is 0 us
 , Yukon-2 EC rev. A3 (0x2): ioapic0 pin 19
 msk0 at mskc0 port A: Ethernet address 00:1b:fc:03:ee:42
 makphy0 at msk0 phy 0: Marvell 88E1111 Gigabit PHY, rev. 2
 makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 
 1000baseT-FDX, auto
 ppb3 at pci0 dev 28 function 4: vendor 0x8086 product 0x27e0 (rev. 0x01)
 pci4 at ppb3 bus 2
 pci4: i/o space, memory space enabled, rd/line, wr/inv ok
 mskc1 at pci4 dev 0 function 0mskc1: interrupt moderation is 0 us
 , Yukon-2 EC rev. A3 (0x2): ioapic0 pin 16
 msk1 at mskc1 port A: Ethernet address 00:1b:fc:03:e3:60
 makphy1 at msk1 phy 0: Marvell 88E1111 Gigabit PHY, rev. 2
 makphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 
 1000baseT-FDX, auto
 uhci0 at pci0 dev 29 function 0: vendor 0x8086 product 0x27c8 (rev. 0x01)
 uhci0: interrupting at ioapic0 pin 20
 usb0 at uhci0: USB revision 1.0
 uhci1 at pci0 dev 29 function 1: vendor 0x8086 product 0x27c9 (rev. 0x01)
 uhci1: interrupting at ioapic0 pin 17
 usb1 at uhci1: USB revision 1.0
 uhci2 at pci0 dev 29 function 2: vendor 0x8086 product 0x27ca (rev. 0x01)
 uhci2: interrupting at ioapic0 pin 18
 usb2 at uhci2: USB revision 1.0
 uhci3 at pci0 dev 29 function 3: vendor 0x8086 product 0x27cb (rev. 0x01)
 uhci3: interrupting at ioapic0 pin 19
 usb3 at uhci3: USB revision 1.0
 ehci0 at pci0 dev 29 function 7: vendor 0x8086 product 0x27cc (rev. 0x01)
 ehci0: interrupting at ioapic0 pin 20
 ehci0: EHCI version 1.0
 ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2 uhci3
 usb4 at ehci0: USB revision 2.0
 ppb4 at pci0 dev 30 function 0: vendor 0x8086 product 0x244e (rev. 0xe1)
 pci5 at ppb4 bus 1
 pci5: i/o space, memory space enabled
 ex0 at pci5 dev 1 function 0: 3Com 3c905B-TX 10/100 Ethernet (rev. 0x30)
 ex0: interrupting at ioapic0 pin 22
 ex0: MAC address 00:50:04:78:77:9c
 exphy0 at ex0 phy 24: 3Com internal media interface
 exphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 ichlpcib0 at pci0 dev 31 function 0: vendor 0x8086 product 0x27b8 (rev. 
 0x01)
 timecounter: Timecounter "ichlpcib0" frequency 3579545 Hz quality 1000
 ichlpcib0: 24-bit timer
 ichlpcib0: TCO (watchdog) timer configured.
 piixide0 at pci0 dev 31 function 1: Intel 82801GB/GR IDE Controller 
 (ICH7) (rev. 0x01)
 piixide0: bus-master DMA support present
 piixide0: primary channel configured to compatibility mode
 piixide0: primary channel interrupting at ioapic0 pin 14
 atabus0 at piixide0 channel 0
 piixide0: secondary channel configured to compatibility mode
 piixide0: secondary channel interrupting at ioapic0 pin 15
 atabus1 at piixide0 channel 1
 ahcisata0 at pci0 dev 31 function 2: vendor 0x8086 product 0x27c1
 ahcisata0: interrupting at ioapic0 pin 23
 ahcisata0: AHCI revision 1.1, 4 ports, 32 command slots, features 0xc720e000
 atabus2 at ahcisata0 channel 0
 atabus3 at ahcisata0 channel 1
 atabus4 at ahcisata0 channel 2
 atabus5 at ahcisata0 channel 3
 ichsmb0 at pci0 dev 31 function 3: vendor 0x8086 product 0x27da (rev. 0x01)
 ichsmb0: interrupting at ioapic0 pin 23
 iic0 at ichsmb0: I2C bus
 spdmem0 at iic0 addr 0x50
 spdmem0: DDR2 SDRAM, no parity or ECC, 2GB, 800MHz (PC2-6400)
 spdmem0: 14 rows, 10 cols, 2 ranks, 8 banks/chip, 2.50ns cycle time
 spdmem0: tAA-tRCD-tRP-tRAS: 5-5-5-15
 spdmem0: voltage SSTL 1.8V, refresh time 7.8us (self-refreshing)
 spdmem1 at iic0 addr 0x51
 spdmem1: DDR2 SDRAM, no parity or ECC, 2GB, 800MHz (PC2-6400)
 spdmem1: 14 rows, 10 cols, 2 ranks, 8 banks/chip, 2.50ns cycle time
 spdmem1: tAA-tRCD-tRP-tRAS: 5-5-5-18
 spdmem1: voltage SSTL 1.8V, refresh time 7.8us (self-refreshing)
 spdmem2 at iic0 addr 0x52
 spdmem2: DDR2 SDRAM, no parity or ECC, 2GB, 800MHz (PC2-6400)
 spdmem2: 14 rows, 10 cols, 2 ranks, 8 banks/chip, 2.50ns cycle time
 spdmem2: tAA-tRCD-tRP-tRAS: 5-5-5-15
 spdmem2: voltage SSTL 1.8V, refresh time 7.8us (self-refreshing)
 spdmem3 at iic0 addr 0x53
 spdmem3: DDR2 SDRAM, no parity or ECC, 2GB, 800MHz (PC2-6400)
 spdmem3: 14 rows, 10 cols, 2 ranks, 8 banks/chip, 2.50ns cycle time
 spdmem3: tAA-tRCD-tRP-tRAS: 5-5-5-18
 spdmem3: voltage SSTL 1.8V, refresh time 7.8us (self-refreshing)
 isa0 at ichlpcib0
 timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
 timecounter: Timecounter "TSC" frequency 2703538440 Hz quality 3000
 fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
 fd1 at fdc0 drive 1: density unknown
 azalia0: codec[0]: Realtek ALC882 (rev. 1.1), HDA rev. 1.0
 audio0 at azalia0: full duplex, independent
 uhub0 at usb0: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub0: 2 ports with 2 removable, self powered
 uhub1 at usb1: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub1: 2 ports with 2 removable, self powered
 uhub2 at usb2: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub2: 2 ports with 2 removable, self powered
 uhub3 at usb3: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub3: 2 ports with 2 removable, self powered
 uhub4 at usb4: vendor 0x8086 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
 uhub4: 8 ports with 8 removable, self powered
 ahcisata0 port 0: device present, speed: 3.0Gb/s
 ahcisata0 port 3: device present, speed: 3.0Gb/s
 wd0 at atabus2 drive 0: <SAMSUNG HD103UJ>
 wd0: drive supports 16-sector PIO transfers, LBA48 addressing
 wd0: 931 GB, 1938021 cyl, 16 head, 63 sec, 512 bytes/sect x 1953525168 
 sectors
 wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 7
 wd0(ahcisata0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 
 (Ultra/133) (using DMA)
 ahcisata0 port 1: PHY offline
 wd1 at atabus5 drive 0: <SAMSUNG HD103UJ>
 wd1: drive supports 16-sector PIO transfers, LBA48 addressing
 wd1: 931 GB, 1938021 cyl, 16 head, 63 sec, 512 bytes/sect x 1953525168 
 sectors
 wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 7
 wd1(ahcisata0:3:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 
 (Ultra/133) (using DMA)
 uplcom0 at uhub2 port 1
 uplcom0: vendor 0x067b product 0x2303, rev 1.10/2.02, addr 2
 ucom0 at uplcom0
 uhub5 at uhub4 port 7: vendor 0x05e3 USB2.0 Hub, class 9/0, rev 
 2.00/7.02, addr 2
 uhub5: single transaction translator
 uhub5: 4 ports with 4 removable, self powered
 uplcom1 at uhub2 port 2
 uplcom1: vendor 0x067b product 0x2303, rev 1.10/2.02, addr 3
 ucom1 at uplcom1
 ugen0 at uhub5 port 3
 ugen0: vendor 0x0bda RTL8187_Wireless, rev 2.00/1.00, addr 3
 Kernelized RAIDframe activated

From: Scott Ellis <scotte@warped.com>
To: "Jared D. McNeill" <jmcneill@invisible.ca>
Cc: gnats-bugs@NetBSD.org
Subject: Re: kern/42007 (hdaudio panics on P5W DH Deluxe (amd64))
Date: Mon, 07 Sep 2009 15:58:45 -0700

 On 9/7/2009 9:41 AM, Jared D. McNeill wrote:
 > I just checked in a fix for this, can you update and try again?

 You fixed the original crash, but now I get caught up on a different 
 (more interesting) one:

 booting hd0a:netbsd-09070902.debug
 3299568+66688+627392 [306960+207227]=0x54d510
 WARNING: couldn't open /stand/amd64/5.99.16/modules/ffs/ffs.kmod
 WARNING: couldn't open ffs
 kernel text is mapped with 2 large pages and 294 normal pages
 Loaded initial symtab at 0xffffffff805cf740, strtab at 
 0xffffffff8061ab90, # entries 12773
 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
      2006, 2007, 2008, 2009
      The NetBSD Foundation, Inc.  All rights reserved.
 Copyright (c) 1982, 1986, 1989, 1991, 1993
      The Regents of the University of California.  All rights reserved.

 NetBSD 5.99.16 (INTREPID.P5W.DEBUG) #3: Mon Sep  7 15:44:29 PDT 2009

 scotte@intrepid:/nbu/source/netbsd/src/obj.amd64/nbu/source/netbsd/src/sys/arch/amd64/compile/INTREPID.P5W.DEBUG
 total memory = 8191 MB
 avail memory = 7933 MB
 mainbus0 (root)
 cpu0 at mainbus0 apid 0: Intel 686-class, 2703MHz, id 0x6f6
 cpu1 at mainbus0 apid 1: Intel 686-class, 2703MHz, id 0x6f6
 ioapic0 at mainbus0 apid 2
 acpi0 at mainbus0: Intel ACPICA 20090730
 attimer0 at acpi0 (TMR, PNP0100): io 0x40-0x43 irq 0
 pcppi0 at acpi0 (SPKR, PNP0800): io 0x61
 sysbeep0 at pcppi0
 fdc0 at acpi0 (FDC, PNP0700): io 0x3f0-0x3f5,0x3f7 irq 6 drq 2
 ACPI Warning for \_SB_.PCI0.SBRG.FDC_._FDE: Return type mismatch - found 
 Package, expected Buffer (20090730/nspredef-1139)
 fdc0: expected BUFFER, got 4
 hpet0 at acpi0 (HPET, PNP0103): mem 0xfed00000-0xfed003ff
 aiboost0 at acpi0 (ASOC, ATK0110-16843024)
 aiboost0: ASUS AI Boost Hardware monitor
 com0 at acpi0 (UAR1, PNP0501-1): io 0x3f8-0x3ff irq 4
 com: ns16550a, working fifo
 com0: console
 acpibut0 at acpi0 (PWRB, PNP0C0C-170): ACPI Power Button
 attimer0: attached to pcppi0
 pci0 at mainbus0 bus 0: configuration mode 1
 pchb0 at pci0 dev 0 function 0: vendor 0x8086 product 0x277c (rev. 0xc0)
 ppb0 at pci0 dev 1 function 0: vendor 0x8086 product 0x277d (rev. 0xc0)
 pci1 at ppb0 bus 5
 vendor 0x10de product 0x01d1 (VGA display, revision 0xa1) at pci1 dev 0 
 function 0 not configured
 hdaudio0 at pci0 dev 27 function 0: HD Audio Controller
 hdaudio0: interrupting at ioapic0 pin 19
 hdafg0 at hdaudio0 vendor 0x10EC product 0x0882 nid 0x01 (firmware 
 configuration)
 hdafg0: DAC0:02, Analog Speaker: Jack (Green, 14)
 hdafg0: DAC0:03, Analog Speaker: Jack (Orange, 16)
 hdafg0: DAC0:04, Analog Speaker: Jack (Black, 15)
 hdafg0: DAC0:05, Analog Speaker: Jack (Grey, 17)
 hdafg0: DAC1:25, Analog HP Out: Jack (Green, 1B)
 hdafg0: DAC2:06, Digital SPDIF Out: Jack (Black, 1E)
 hdafg0: ADC3:07, Analog Mic In: Jack (Pink, 18)
 hdafg0: ADC3:07, Analog Line In: Jack (Blue, 1A)
 hdafg0: ADC3:07, Analog CD: Fixed Function (Unknown, 1C)
 hdafg0: ADC4:08, Analog Mic In: Jack (Pink, 19)
 hdafg0: 8ch/2ch 44100Hz-192000Hz 16/16 20/32 24/32
 audio0 at hdafg0: full duplex, independent
 uvm_fault(0xffffffff8056ef20, 0x0, 1) -> e
 fatal page fault in supervisor mode
 trap type 6 code 0 rip ffffffff801279c9 cs 8 rflags 10287 cr2  10 cpl 8 
 rsp ffffffff80651ef0
 kernel: page fault trap, code=0
 Stopped in pid 0.1 (system) at  netbsd:audio_calcwater+0xb:     movq 
 0x10(%ra
 x),%rdx
 db{0}> tr
 audio_calcwater() at netbsd:audio_calcwater+0xb
 audiosetinfo() at netbsd:audiosetinfo+0x4d1
 audio_set_defaults() at netbsd:audio_set_defaults+0xdd
 audioattach() at netbsd:audioattach+0x226
 config_attach_loc() at netbsd:config_attach_loc+0x16b
 audio_attach_mi() at netbsd:audio_attach_mi+0x32
 hdaudio_afg_attach() at netbsd:hdaudio_afg_attach+0xe17
 config_attach_loc() at netbsd:config_attach_loc+0x16b
 hdaudio_attach_fg() at netbsd:hdaudio_attach_fg+0xce
 hdaudio_attach() at netbsd:hdaudio_attach+0x4c9
 hdaudio_pci_attach() at netbsd:hdaudio_pci_attach+0x16d
 config_attach_loc() at netbsd:config_attach_loc+0x16b
 pci_probe_device() at netbsd:pci_probe_device+0x2e7
 pci_enumerate_bus() at netbsd:pci_enumerate_bus+0x139
 pcirescan() at netbsd:pcirescan+0x48
 pciattach() at netbsd:pciattach+0x17b
 config_attach_loc() at netbsd:config_attach_loc+0x16b
 mainbus_attach() at netbsd:mainbus_attach+0x12c
 config_attach_loc() at netbsd:config_attach_loc+0x16b
 cpu_configure() at netbsd:cpu_configure+0x26
 main() at netbsd:main+0x1da
 db{0}>

State-Changed-From-To: open->feedback
State-Changed-By: jmcneill@NetBSD.org
State-Changed-When: Tue, 08 Sep 2009 09:51:49 +0000
State-Changed-Why:
This should now be resolved in -current, can you confirm?


From: "Jared D. McNeill" <jmcneill@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/42007 CVS commit: src/sys/dev/pci/hdaudio
Date: Tue, 8 Sep 2009 09:50:56 +0000

 Module Name:	src
 Committed By:	jmcneill
 Date:		Tue Sep  8 09:50:56 UTC 2009

 Modified Files:
 	src/sys/dev/pci/hdaudio: files.hdaudio

 Log Message:
 PR# kern/42007: hdaudio panics on P5W DH Deluxe (amd64)

 Make sure hdafg pulls in auconv mulaw support.


 To generate a diff of this commit:
 cvs rdiff -u -r1.1 -r1.2 src/sys/dev/pci/hdaudio/files.hdaudio

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: feedback->closed
State-Changed-By: jmcneill@NetBSD.org
State-Changed-When: Wed, 09 Sep 2009 02:01:00 +0000
State-Changed-Why:
Fixed, thanks for the report!


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.