Subject: crashing kernel w/ AMD Power Management
To: None <current-users@netbsd.org>
From: Kurt Schreiner <ks@ub.uni-mainz.de>
List: current-users
Date: 08/07/2006 09:28:55
Hi,

booting a kernel from sources cvs update-d some minutes ago on my AMD-Opteron
machines (Sun W2100z and Ultra40) ends with (on both):

uvm_fault(0xffffffff805d8980, 0xffff80200bd01000, 1) -> e
kernel: page fault trap, code=0
Stopped in pid 0.1 (swapper) at netbsd:free+0x29:       movzwl  0(%rsi),%edi

bt shows identical output on both machines, so here's the back trace
on W2100z:

NetBSD 3.99.24 (W2100Z) #23: Mon Aug  7 09:13:48 MEST 2006
        ks@isunopti:/u/NetBSD/arch/amd64/obj/sys/arch/amd64/compile/W2100Z
total memory = 6142 MB
avail memory = 5913 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
mainbus0 (root)
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Opteron(tm) Processor 246, 1994.43 MHz
cpu0: features: e7dbfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features: e7dbfbff<PGE,MCA,CMOV,PAT,PSE36,MPC,NOX,MMXX,MMX>
cpu0: features: e7dbfbff<FXSR,SSE,SSE2,LONG,3DNOW2,3DNOW>
cpu0: AMD Power Management features: TS FID VID TTP
uvm_fault(0xffffffff805d8980, 0xffff80200bd01000, 1) -> e
kernel: page fault trap, code=0
Stopped in pid 0.1 (swapper) at netbsd:free+0x29:       movzwl  0(%rsi),%edi
db{0}> bt
free() at netbsd:free+0x29
k8_powernow_init() at netbsd:k8_powernow_init+0x432
identifycpu() at netbsd:identifycpu+0x173
cpu_attach() at netbsd:cpu_attach+0x39e
config_attach_loc() at netbsd:config_attach_loc+0x2be
mpacpi_config_cpu() at netbsd:mpacpi_config_cpu+0x71
acpi_madt_walk() at netbsd:acpi_madt_walk+0x45
mpacpi_scan_apics() at netbsd:mpacpi_scan_apics+0x90
mainbus_attach() at netbsd:mainbus_attach+0x123
config_attach_loc() at netbsd:config_attach_loc+0x2be
cpu_configure() at netbsd:cpu_configure+0x21
configure() at netbsd:configure+0x36
main() at netbsd:main+0xe8
db{0}> 

Hm, but maybe the cpu features are of relevance to get this working so here's
the output from ULTRA40, too:

NetBSD 3.99.24 (ULTRA40) #11: Mon Aug  7 09:13:47 MEST 2006
        ks@ibetty:/u/NetBSD/arch/amd64/obj/sys/arch/amd64/compile/ULTRA40
total memory = 8191 MB
avail memory = 7899 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
mainbus0 (root)
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Dual Core AMD Opteron(tm) Processor 280, 2411.18 MHz
cpu0: features: f7dbfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features: f7dbfbff<PGE,MCA,CMOV,PAT,PSE36,MPC,NOX,MMXX,MMX>
cpu0: features: f7dbfbff<FXSR,SSE,SSE2,HTT,LONG,3DNOW2,3DNOW>
cpu0: AMD Power Management features: TS FID VID TTP
uvm_fault(0xffffffff805a4980, 0xffff80200fbc0000, 1) -> e
kernel: page fault trap, code=0
Stopped in pid 0.1 (swapper) at netbsd:free+0x29:       movzwl  0(%rsi),%edi
db{0}>

Can I do something to help debugging this?

Kurt