Subject: kern/35916: azalia(4) crashes during boot-up if configured with XEN3_DOM0
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <fukumoto@imasy.or.jp>
List: netbsd-bugs
Date: 03/04/2007 18:15:00
>Number:         35916
>Category:       kern
>Synopsis:       azalia(4) crashes during boot-up if configured with XEN3_DOM0
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 04 18:15:00 +0000 2007
>Originator:     fukumoto@imasy.or.jp
>Release:        NetBSD 4.0_BETA2
>Organization:
>Environment:
System: NetBSD kestrel 4.0_BETA2 NetBSD 4.0_BETA2 (GENERIC.MPACPI) #0: Sun Mar 4 01:51:06 JST 2007 fukumoto@kestrel:/usr/src.netbsd4/sys/arch/i386/compile/GENERIC.MPACPI i386
Architecture: i386
Machine: i386
>Description:
azalia(4) driver drops into ddb during kernel boot-up if it is configured
with XEN3_DOM0 (NetBSD 4.0 Beta2, updated to cvs netbsd4 branch as of
Mar 4, 2006).
Hardware is AMD Athlon 64 X2 on an ASUS M2NPV-VM motherboard.
Since my system is not set up for kernel debugging, I had to scribe part of
backtrace on paper.  Hope this helps.

uvm_fault (0xc09abac0, 0xbff2a000, 2) -> 0xe
kernel: supervisor trap page fault, code=0
Stopped in pid 0.1 (swapper) at netbsd:_bus_dmamem_map+0x14d:	movl %edx, 0xbfc00000(%eax)

Backtrace is:
_bus_dmamem_map
azalia_alloc_dmamem
azalia_attach_intr
config_process_deffered
configure
main

>How-To-Repeat:
cd /usr/src/sys/arch/i386/conf
echo 'azalia* at pci? dev ? function ?' > GENERIC.local
config XEN3_DOM0
cd ../compile/XEN3_DOM0
make depend && make
shutdown -r now
>Fix: