Subject: iwi firmware load related panic
To: None <current-users@netbsd.org>
From: Sverre Froyen <sverre@viewmark.com>
List: current-users
Date: 01/22/2007 13:54:16
Hi,

Ever since the updates to the new iwi firmware: sysutils/iwi-firmware3, I 
have had intermittent crashes.  I finally got around to compiling a kernel 
with DIAGNOSTIC (and -g) and now I consitently get the following panic when 
using ifconfig to configure iwi0 (which auto-loads the firmware):

panic: free: unaligned addr 0xc1fba010, size 262144, type devfirm, mask 4095

This is i386 current from 18 Jan 2007, basically GENERIC_LAPTOP.

Ideas anyone (besides submitting a PR)?

Thanks,

Sverre

gdb of the core dump produces:

(gdb) bt
...
#11 0xc03d6a75 in panic (
    fmt=0xc07668ec "free: unaligned addr %p, size %ld, type %s, mask %ld")
    at /usr/src/sys/kern/subr_prf.c:243
#12 0xc03b2a4b in free (addr=0xc1fba010, ksp=0xc079e780)
    at /usr/src/sys/kern/kern_malloc.c:569
#13 0xc05080f3 in iwi_free_firmware (sc=0xc1b84000)
    at /usr/src/sys/dev/pci/if_iwi.c:2347
#14 0xc05084a7 in iwi_cache_firmware (sc=0x1)
    at /usr/src/sys/dev/pci/if_iwi.c:2262
#15 0xc050c1e5 in iwi_ioctl (ifp=0xc1b8403c, cmd=3223349557,
    data=0xcbf1bb88 "iwi0") at /usr/src/sys/dev/pci/if_iwi.c:1963
#16 0xc041c3b2 in ifioctl (so=0xc196ae58, cmd=3223349557,
    data=0xcbf1bb88 "iwi0", l=0xcb4ec378) at /usr/src/sys/net/if.c:1556
#17 0xc03db1a4 in sys_ioctl (l=0xcb4ec378, v=0xcbf1bc48, retval=0xcbf1bc68)
    at /usr/src/sys/kern/sys_generic.c:641
#18 0xc046e553 in syscall_plain (frame=0xcbf1bc88)
    at /usr/src/sys/arch/i386/i386/syscall.c:144
#19 0xc010069d in syscall1 ()