panic: mtx_lock() of spin mutex &dev_spec->swflag_mutex @ ../../../dev/e1000/e1000_ich8lan.c:651
The back trace places me at: e1000_acquire_swflag_ich8lan()+0x30
The device in question is in my lenovo x61s laptop and the pciconf
output is:
em0@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
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@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
_______________________________________________
freebsd...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-curre...@freebsd.org"
I can confirm that removing MTX_SPIN fixes the panic. This is invalid
code because MTX_DEF and MTX_SPIN are exclusive flags. Unfortunately,
MTX_DEF is 0x0 so there's no way to check for that error at runtime.
If a spin mutex were actually needed here then the _LOCK and _UNLOCK
macros need to be change and the unused _TRYLOCK macro needs to be
removed.
-- Brooks
FWIW, I see the same panic, and will be building a kernel without
MTX_SPIN in a few minutes.
My wife had serious surgery today so I have been at the hospital all day, I
will get this
fixed first thing after the weekend.
Jack
No worries. I have locally patched e1000 and I will be testing em(4)
without MTX_SPIN in a few. Please take your time, and my wishes for a
speedy & full recovery to your wife.