panic: lock (sleep mutex) ral0 not locked _at_ /usr/src/sys/dev/ral/rt2560.c:2011

From: Anton Shterenlikht <mexas_at_bristol.ac.uk>
Date: Tue, 27 Jul 2010 16:38:11 +0100
On amd64 r... I tried to plug in
pcmcia wireless ral(4) card.

The card is detected as:

ral0: <Ralink Technology RT2560> mem 0xb7fb0000-0xb7fb1fff irq 20 at device(
ral0: MAC/BBP RT2560 (rev 0x00), RF RT2522
ral0: [ITHREAD]

Then I get this panic:

ral0: could not read from BBP
ral0: timeout waiting for BBP
panic: lock (sleep mutex) ral0 not locked _at_ /usr/src/sys/dev/ral/rt2560.c:2011
cpuid = 0
KDB: enter: panic
[ thread pid 0 tid 100065 ]
Stopped at	kdb_enter+0x3d: movq	$0,0x755100(%rip)
db> bt
Tracing pid 0 tid 100065 td 0xffffff00026d7440
kdb_enter() at kdb_enter+0x3d
panic() at panic+0x17b
witness_unlock() at witness_unlock+0x297
_mtx_unlock_flags() at _mtx_unlock_flags+0x87
rt2560_ioctl() at rt2560_ioctl+0xbf
taskqueue_run() at taskqueue_run+0x63
taskqueue_thread_loop() at taskqueue_thread_loop+0x54
fork_exit() at fork_exit+0x12a
fork_trampoline() at fork_trampoline+0xe
--- trap 0, rip = 0, rsp = 0xffffff803x1f5d30, rbp = 0 ---

many thanks
anton


-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
Received on Tue Jul 27 2010 - 13:38:17 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:05 UTC