Subject: amd64: -current kernel hangs
To: None <current-users@netbsd.org>
From: Kurt Schreiner <ks@ub.uni-mainz.de>
List: current-users
Date: 12/10/2007 17:07:45
Hi,

on my dual opteron system a kernel compiled from fresh -current
sources hangs during "build.sh ... -j8 ... distribution".
Breaking to "db>" yields:

Mon Dec 10 16:39:01 MET 2007

NetBSD/amd64 (isunopti) (console)

login: Stopped in pid 0.2 (system) at  netbsd:breakpoint+0x1:  ret
db{0}> bt
breakpoint() at netbsd:breakpoint+0x1
Xintr_ioapic_edge4() at netbsd:Xintr_ioapic_edge4+0xd8
--- interrupt ---
_kernel_lock() at netbsd:_kernel_lock+0xe3
intr_biglock_wrapper() at netbsd:intr_biglock_wrapper+0x18
Xintr_ioapic_level18() at netbsd:Xintr_ioapic_level18+0xe0
--- interrupt ---
_kernel_lock() at netbsd:_kernel_lock+0xe3
trap() at netbsd:trap+0x769

and than nothing, even db doesn't prompt again for input.
Only the power switch brings the system back to live...

Is this to expected?

Or perhaps related to the Warning/Exception in dmesg below?

NetBSD 4.99.42 (W2100Z) #40: Mon Dec 10 14:30:14 MET 2007
        ks@isunopti:/u/NetBSD/arch/amd64/obj/sys/arch/amd64/compile/W2100Z
total memory = 5374 MB
avail memory = 5180 MB
SMBIOS rev. 2.33 @ 0xefeb0 (37 entries)
Sun Microsystems   W1100z/W2100z (Metropolis -1A)
mainbus0 (root)
cpu0 at mainbus0 apid 0: (boot processor)
cpu0: AMD Opteron(tm) Processor 246, 1994.44 MHz
cpu0: AMD Power Management features: f<TTP,VID,FID,TS>
cpu0: WARNING: AMD errata present, BIOS upgrade may be
cpu0: WARNING: necessary to ensure reliable operation
cpu1 at mainbus0 apid 1: (application processor)
cpu1: AMD Opteron(tm) Processor 246, 1994.44 MHz
cpu1: AMD Power Management features: f<TTP,VID,FID,TS>
ioapic0 at mainbus0 apid 2
ioapic1 at mainbus0 apid 3
ioapic2 at mainbus0 apid 4
ioapic3 at mainbus0 apid 5
ioapic4 at mainbus0 apid 6
acpi0 at mainbus0: Advanced Configuration and Power Interface
ACPI-Safe 24-bit timer
CPU0 (ACPI Object Type 'Processor' [0x0c]) at acpi0 not configured
CPU1 (ACPI Object Type 'Processor' [0x0c]) at acpi0 not configured
CPU2 (ACPI Object Type 'Processor' [0x0c]) at acpi0 not configured
CPU3 (ACPI Object Type 'Processor' [0x0c]) at acpi0 not configured
ACPI Warning (evmisc-0652): Cannot release the ACPI Global Lock, it has not been acquired [20070320]
ACPI Exception (exutils-0427): AE_NOT_ACQUIRED, Could not release Global Lock [20070320]
ACPI Warning (evmisc-0652): Cannot release the ACPI Global Lock, it has not been acquired [20070320]
ACPI Exception (exutils-0427): AE_NOT_ACQUIRED, Could not release Global Lock [20070320]
ACPI Warning (evmisc-0652): Cannot release the ACPI Global Lock, it has not been acquired [20070320]
ACPI Exception (exutils-0427): AE_NOT_ACQUIRED, Could not release Global Lock [20070320]
ACPI Warning (evmisc-0652): Cannot release the ACPI Global Lock, it has not been acquired [20070320]
ACPI Exception (exutils-0427): AE_NOT_ACQUIRED, Could not release Global Lock [20070320]
acpibut0 at acpi0 (PWRB, PNP0C0C): ACPI Power Button
PCI0 (PNP0A03) [PCI/PCI-X Host Bridge] at acpi0 not configured
LNKA (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
LNKB (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
LNKC (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
LNKD (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
[....more stuff deleted....]

Kurt