Subject: panic on suspend?
To: None <port-i386@NetBSD.org>
From: Takahiro Kambe <taca@back-street.net>
List: port-i386
Date: 09/06/2007 14:30:43
Hi.

(I filled a PR for this problem but it dosen't appear yet.)

Recent current kernel panics when suspend.  Is there anyone see such a panic?
(This isn't jmcneill-pm branch.)

panic: kernel diagnostic assertion "ci->ci_ilevel < IPL_IPI" failed: file "/usr/src/sys/arch/i386/i386/pmap.c", line 1924

root@reef[14]# gdb netbsd.gdb 
GNU gdb 6.5
...
This GDB was configured as "i386--netbsdelf"...
(gdb) target kvm /var/crash/netbsd.56.core
#0  cpu_reboot (howto=256, bootstr=0x0)
    at /usr/src/sys/arch/i386/i386/machdep.c:856
856             doshutdownhooks();
(gdb) where
#0  cpu_reboot (howto=256, bootstr=0x0)
    at /usr/src/sys/arch/i386/i386/machdep.c:856
#1  0xc0499211 in panic (
    fmt=0xc07c4e88 "kernel %sassertion \"%s\" failed: file \"%s\", line %d")
    at /usr/src/sys/kern/subr_prf.c:243
#2  0xc06a50bf in __assert (t=0xc071a0a1 "diagnostic ", 
    f=0xc071a06c "/usr/src/sys/arch/i386/i386/pmap.c", l=1924, 
    e=0xc071a2b5 "ci->ci_ilevel < IPL_IPI")
    at /usr/src/sys/lib/libkern/__assert.c:50
#3  0xc055f748 in pmap_load () at /usr/src/sys/arch/i386/i386/pmap.c:1924
#4  0xc055da29 in pmap_map_ptes (pmap=0xcb811ea0, pmap2=0xcc3e2990)
    at /usr/src/sys/arch/i386/i386/pmap.c:563
#5  0xc05616a3 in pmap_enter (pmap=0xcb811ea0, va=8192, pa=8192, prot=3, 
    flags=19) at /usr/src/sys/arch/i386/i386/pmap.c:3161
#6  0xc066df49 in acpi_md_sleep (state=3)
    at /usr/src/sys/arch/i386/acpi/acpi_wakeup.c:355
#7  0xc0663a6f in acpi_enter_sleep_state (sc=0xc1f0d400, state=3)
    at /usr/src/sys/dev/acpi/acpi.c:1126
#8  0xc066416d in sysctl_hw_acpi_sleepstate (name=0xcc3e2bc8, namelen=0, 
    oldp=0xbfbfe790, oldlenp=0xcc3e2bbc, newp=0xbfbfe794, newlen=4, 
    oname=0xcc3e2bc0, l=0xcb818700, rnode=0xc1d0b5a0)
    at /usr/src/sys/dev/acpi/acpi.c:1310
#9  0xc047e574 in sysctl_dispatch (name=0xcc3e2bc0, namelen=2, 
    oldp=0xbfbfe790, oldlenp=0xcc3e2bbc, newp=0xbfbfe794, newlen=4, 
    oname=0xcc3e2bc0, l=0xcb818700, rnode=0xc1d0b5a0)
    at /usr/src/sys/kern/kern_sysctl.c:453
#10 0xc047e2ae in sys___sysctl (l=0xcb818700, v=0xcc3e2c40, retval=0xcc3e2c38)
    at /usr/src/sys/kern/kern_sysctl.c:314
#11 0xc0563599 in syscall_plain (frame=0xcc3e2c88)
    at /usr/src/sys/arch/i386/i386/syscall.c:145
#12 0xc010058c in syscall1 ()
(gdb) frame 3
#3  0xc055f748 in pmap_load () at /usr/src/sys/arch/i386/i386/pmap.c:1924
1924            KASSERT(ci->ci_ilevel < IPL_IPI); 
(gdb) p ci->ci_istate.ilevel
$1 = 7

-- 
Takahiro Kambe <taca@back-street.net>