Subject: Re: kern/33741: azalia
To: None <kent@NetBSD.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,>
From: Roland Illig <rillig@NetBSD.org>
List: netbsd-bugs
Date: 06/28/2006 11:20:01
The following reply was made to PR kern/33741; it has been noted by GNATS.
From: Roland Illig <rillig@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: kern/33741: azalia
Date: Wed, 28 Jun 2006 13:15:19 +0200
This is a multi-part message in MIME format.
--------------050409060906050407080704
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
TAMURA Kent wrote:
> The following reply was made to PR kern/33741; it has been noted by GNATS.
>
> From: TAMURA Kent <kent@NetBSD.org>
> To: gnats-bugs@NetBSD.org, rillig@NetBSD.org
> Cc:
> Subject: Re: kern/33741: azalia
> Date: Wed, 28 Jun 2006 08:06:43 +0900 (JST)
>
> > I don't get any such message. All I get is uvm_fault (0x0e), and when I
> > type "bt", I get "ddb crashed".
>
> Ok.
> Don't you have "azalia0: RIRB time out" message for now?
> Please check what code causes the crash by inserting printf()s
> in azalia_attach_intr() and so on.
I've done that, and here is the result: The kernel boots with revision
1.36, but there is no audio0. :(
By the way, you didn't stick to the Kernel Normal Form, for functions
that don't contain local variables. :)
Thanks for fixing it so far.
Roland
--------------050409060906050407080704
Content-Type: text/plain;
name="dmesg"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="dmesg"
at ums0 mux 0
wd0 at atabus0 drive 0: <WDC WD1600JB-00GVA0>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 149 GB, 310101 cyl, 16 head, 63 sec, 512 bytes/sect x 312581808 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(viaide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA)
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
syncing disks... done
unmounting file systems...Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
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 3.99.21 (ROLAND) #3: Wed Jun 28 13:02:09 CEST 2006
build@baccf5ee.roland-illig.de:/home/build/2006-06/i386/work/sys/arch/i386/compile/ROLAND
total memory = 1022 MB
avail memory = 995 MB
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
timecounter: selected timecounter "i8254" frequency 1193182 Hz quality 100
BIOS32 rev. 0 found at 0xf22f0
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: AMD Unknown K7 (Athlon) (686-class), 1808.40 MHz, id 0x40ff2
cpu0: features 78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features 78bfbff<PGE,MCA,CMOV,PAT,PSE36,MPC,MMX>
cpu0: features 78bfbff<FXSR,SSE,SSE2>
cpu0: features2 2001<SSE3>
cpu0: "AMD Athlon(tm) 64 Processor 3000+"
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:278
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:282
NVIDIA product 0x0369 (RAM memory, revision 0xa1) at pci0 dev 0 function 0 not configured
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:278
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:282
pcib0 at pci0 dev 1 function 0
pcib0: NVIDIA product 0x0360 (rev. 0xa2)
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:278
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:282
NVIDIA MCP55 SMBus (SMBus serial bus, revision 0xa2) at pci0 dev 1 function 1 not configured
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:278
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:282
NVIDIA product 0x036a (RAM memory, revision 0xa2) at pci0 dev 1 function 2 not configured
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:278
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:282
ohci0 at pci0 dev 2 function 0: NVIDIA product 0x036c (rev. 0xa1)
ohci0: interrupting at irq 5
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: NVIDIA OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 10 ports with 10 removable, self powered
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:278
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:282
ehci0 at pci0 dev 2 function 1: NVIDIA product 0x036d (rev. 0xa2)
ehci0: interrupting at irq 10
ehci0: BIOS has given up ownership
ehci0: EHCI version 1.0
ehci0: companion controller, 10 ports each: ohci0
usb1 at ehci0: USB revision 2.0
uhub1 at usb1
uhub1: NVIDIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub1: 10 ports with 10 removable, self powered
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:278
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:282
viaide0 at pci0 dev 4 function 0
viaide0: NVIDIA MCP55 IDE Controller (rev. 0xa1)
viaide0: bus-master DMA support present
viaide0: primary channel configured to compatibility mode
viaide0: primary channel interrupting at irq 14
atabus0 at viaide0 channel 0
viaide0: secondary channel configured to compatibility mode
viaide0: secondary channel ignored (disabled)
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:278
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:282
viaide1 at pci0 dev 5 function 0
viaide1: NVIDIA MCP55 Serial ATA Controller (rev. 0xa2)
viaide1: bus-master DMA support present
viaide1: primary channel wired to native-PCI mode
viaide1: using irq 11 for native-PCI interrupt
atabus1 at viaide1 channel 0
viaide1: secondary channel wired to native-PCI mode
atabus2 at viaide1 channel 1
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:278
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:282
viaide2 at pci0 dev 5 function 1
viaide2: NVIDIA MCP55 Serial ATA Controller (rev. 0xa2)
viaide2: bus-master DMA support present
viaide2: primary channel wired to native-PCI mode
viaide2: using irq 5 for native-PCI interrupt
atabus3 at viaide2 channel 0
viaide2: secondary channel wired to native-PCI mode
atabus4 at viaide2 channel 1
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:278
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:282
viaide3 at pci0 dev 5 function 2
viaide3: NVIDIA MCP55 Serial ATA Controller (rev. 0xa2)
viaide3: bus-master DMA support present
viaide3: primary channel wired to native-PCI mode
viaide3: using irq 10 for native-PCI interrupt
atabus5 at viaide3 channel 0
viaide3: secondary channel wired to native-PCI mode
atabus6 at viaide3 channel 1
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:278
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:282
ppb0 at pci0 dev 6 function 0: NVIDIA product 0x0370 (rev. 0xa2)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:278
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:282
ex0 at pci1 dev 6 function 0: 3Com 3c905C-TX 10/100 Ethernet with mngmt (rev. 0x74)
ex0: interrupting at irq 10
ex0: MAC address 00:01:02:f6:1e:c2
bmtphy0 at ex0 phy 24: Broadcom 3c905C internal PHY, rev. 6
bmtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:278
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:282
fwohci0 at pci1 dev 11 function 0: Texas Instruments TSB43AA22/A IEEE 1394 Host Controller (rev. 0x00)
fwohci0: interrupting at irq 11
fwohci0: OHCI version 1.10 (ROM=1)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 00:11:d8:00:00:b2:95:9d
fwohci0: Phy 1394a available S400, 2 ports.
fwohci0: Link S400, max_rec 2048 bytes.
ieee1394if0 at fwohci0: IEEE1394 bus
fwip0 at ieee1394if0: IP over IEEE1394
fwohci0: Initiate bus reset
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:278
azalia0 at pci0 dev 6 function 1/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_attach:296
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_attach:299
: Generic High Definition Audio Controller
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_attach:302
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_attach:311
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_attach:316
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_attach:320
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_attach:323
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_attach:330
azalia0: interrupting at irq 11
azalia0: host: NVIDIA MCP55 High Definition Audio Controller (rev. 162)
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_attach:456
azalia0: host: High Definition Audio rev. 1.0
azalia0: host: 4 output, 4 input, and 0 bidi streams
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_attach:466
azalia_attach: resetting
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_attach:475
azalia_attach: reset counter = 5000
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_attach:488
azalia_attach: reset counter = 4995
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_attach:499
azalia0: found a codec at #0
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_attach:508
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_attach:350
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:278
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:282
nfe0 at pci0 dev 8 function 0: irq 10, address 00:17:31:ad:4d:4b
ukphy0 at nfe0 phy 1: Generic IEEE 802.3u media interface
ukphy0: OUI 0x000ac2, model 0x0021, rev. 1
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:278
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:282
nfe1 at pci0 dev 9 function 0: irq 10, address 00:17:31:af:0a:ac
ukphy1 at nfe1 phy 1: Generic IEEE 802.3u media interface
ukphy1: OUI 0x000ac2, model 0x0021, rev. 1
ukphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:278
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:282
ppb1 at pci0 dev 10 function 0: NVIDIA product 0x0376 (rev. 0xa2)
pci2 at ppb1 bus 2
pci2: no spaces enabled!
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:278
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:282
ppb2 at pci0 dev 11 function 0: NVIDIA product 0x0374 (rev. 0xa2)
pci3 at ppb2 bus 3
pci3: no spaces enabled!
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:278
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:282
ppb3 at pci0 dev 12 function 0: NVIDIA product 0x0374 (rev. 0xa2)
pci4 at ppb3 bus 4
pci4: no spaces enabled!
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:278
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:282
ppb4 at pci0 dev 13 function 0: NVIDIA product 0x0378 (rev. 0xa2)
pci5 at ppb4 bus 5
pci5: no spaces enabled!
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:278
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:282
ppb5 at pci0 dev 14 function 0: NVIDIA product 0x0375 (rev. 0xa2)
pci6 at ppb5 bus 6
pci6: i/o space, memory space enabled, rd/line, wr/inv ok
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:278
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:282
pciide0 at pci6 dev 0 function 0
pciide0: unknown vendor 0x197b product 0x2363 (rev. 0x02)
pciide0: bus-master DMA support present, but unused (no driver support)
pciide0: primary channel wired to native-PCI mode
pciide0: using irq 11 for native-PCI interrupt
atabus7 at pciide0 channel 0
pciide0: secondary channel wired to native-PCI mode
atabus8 at pciide0 channel 1
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:278
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:282
ppb6 at pci0 dev 15 function 0: NVIDIA product 0x0377 (rev. 0xa2)
pci7 at ppb6 bus 7
pci7: i/o space, memory space enabled, rd/line, wr/inv ok
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:278
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:282
vga1 at pci7 dev 0 function 0: NVIDIA product 0x0140 (rev. 0xa2)
vga1: WARNING: ignoring 64-bit BAR @ 0x14
vga1: WARNING: ignoring 64-bit BAR @ 0x1c
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:278
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:282
pchb0 at pci0 dev 24 function 0
pchb0: Advanced Micro Devices AMD64 HyperTransport configuration (rev. 0x00)
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:278
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:282
pchb1 at pci0 dev 24 function 1
pchb1: Advanced Micro Devices AMD64 Address Map configuration (rev. 0x00)
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:278
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:282
pchb2 at pci0 dev 24 function 2
pchb2: Advanced Micro Devices AMD64 DRAM configuration (rev. 0x00)
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:278
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_match:282
pchb3 at pci0 dev 24 function 3
pchb3: Advanced Micro Devices AMD64 Miscellaneous configuration (rev. 0x00)
isa0 at pcib0
lpt0 at isa0 port 0x378-0x37b irq 7
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pmsprobe: reset error 5
attimer0 at isa0 port 0x40-0x43: AT Timer
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff
npx0: using exception 16
pcppi0: attached to attimer0
isapnp0: no ISA Plug 'n Play devices found
apm0 at mainbus0: Advanced Power Management BIOS
apm0: Power Management spec V1.2 (slowidle)
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_intr:419
fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode
ieee1394if0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
ieee1394if0: bus manager 0 (me)
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_intr:419
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_intr:419
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_attach_intr:522
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_attach_intr:531
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_init_corb:574
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_init_corb:590
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_init_corb:607
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_alloc_dmamem:921
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_alloc_dmamem:945
azalia_init_corb: CORB allocation succeeded.
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_init_corb:621
azalia0: CORBRP reset failure
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_attach_intr:562
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_detach:378
azalia_pci_detach
azalia_pci_detach: delete streams
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_stream_delete:1736
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_stream_delete:1736
azalia_pci_detach: delete codecs
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_codec_delete:1144
azalia_pci_detach: delete CORB and RIRB
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_delete_corb:663
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_free_dmamem:960
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_free_dmamem:967
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_delete_corb:675
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_delete_rirb:770
azalia_pci_detach: delete PCI resources
/home/roland/proj/NetBSD/src/sys/dev/pci/azalia.c:azalia_pci_detach:408
raidattach: Asked for 8 units
Kernelized RAIDframe activated
uhidev0 at uhub0 port 3 configuration 1 interface 0
uhidev0: Logitech USB-PS/2 Optical Mouse, rev 2.00/11.10, addr 2, iclass 3/1
ums0 at uhidev0: 3 buttons and Z dir.
wsmouse0 at ums0 mux 0
wd0 at atabus0 drive 0: <WDC WD1600JB-00GVA0>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 149 GB, 310101 cyl, 16 head, 63 sec, 512 bytes/sect x 312581808 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(viaide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA)
Searching for RAID components...
boot device: wd0
root on wd0a dumps on wd0b
mountroot: trying lfs...
mountroot: trying ffs...
root file system type: ffs
init: copying out path `/sbin/init' 11
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
--------------050409060906050407080704--