Re: panic with em(4) in current

From: pluknet <pluknet_at_gmail.com>
Date: Fri, 11 Dec 2009 01:20:08 +0300
2009/12/11 Brooks Davis <brooks_at_one-eyed-alien.net>:
> Something with the latest e1000 update in current causes a panic during
> attach on my laptop.  Rolling sys/dev/e1000 back to the previous version
> fixes the problem.  Here's the hand transcribed panic:
>
> panic: mtx_lock() of spin mutex &dev_spec->swflag_mutex _at_ ../../../dev/e1000/e1000_ich8lan.c:651
>
> The back trace places me at: e1000_acquire_swflag_ich8lan()+0x30

Hi, I see bug there:
+#define E1000_MUTEX_INIT(mutex)         mtx_init((mutex), #mutex, \
+                                        MTX_NETWORK_LOCK, \
+                                        MTX_DEF | MTX_SPIN)

mtx_init() first looks for MTX_SPIN flag and assign
lock_class_mtx_spin class to mutex.
Then mtx_lock() on spin mutex called.

>
> The device in question is in my lenovo x61s laptop and the pciconf
> output is:
>
> em0_at_pci0:0:25:0:        class=0x020000 card=0x20de17aa chip=0x10498086 rev=0x03 hdr=0x00
>    vendor     = 'Intel Corporation'
>    device     = 'Gigabit Network Connection Interface Controller (82566MM NIC)'
>    class      = network
>    subclass   = ethernet
>
> Thanks,
> Brooks
>

-- 
wbr,
pluknet
Received on Thu Dec 10 2009 - 21:20:13 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:59 UTC