Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Sep 2010 07:56:51 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        Anton Shterenlikht <mexas@bristol.ac.uk>
Cc:        freebsd-current@freebsd.org
Subject:   Re: amd64 panic: lock (sleep mutex) ral0 not locked @ /usr/src/sys/dev/ral/rt2560.c:2012
Message-ID:  <201009290756.51326.jhb@freebsd.org>
In-Reply-To: <alpine.BSF.2.00.1009291128290.66572@mech-cluster241.men.bris.ac.uk>
References:  <20100925195334.GA58609@mech-cluster241.men.bris.ac.uk> <201009271120.36337.jhb@freebsd.org> <alpine.BSF.2.00.1009291128290.66572@mech-cluster241.men.bris.ac.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday, September 29, 2010 6:34:09 am Anton Shterenlikht wrote:
> 
> On Mon, 27 Sep 2010, John Baldwin wrote:
> 
> > On Saturday, September 25, 2010 3:53:34 pm Anton Shterenlikht wrote:
> >> On amd64 r213168 I've a ral(4) CardBus
> >> wireless device of obscure origin.
> >> It is identified as
> >>
> >> db> bt
> >> Tracing pid 0 tid 100068 td 0xffffff0001b59440
> >> kbd_enter() at kbd_enter+0x3d
> >> panic() at panic+0x17b
> >> witness_unlock() at witness_unlock+0x297
> >> _mtx_unlock_flags() at _mtx_unlock_flags+0x7e
> >> 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=0xffffff80b2d41cf0, rbp = 0 ---
> >
> > This will likely fix your panic, but I think the card is likely to still not
> > work:
> >
> > Index: rt2560.c
> > ===================================================================
> > --- rt2560.c	(revision 212900)
> > +++ rt2560.c	(working copy)
> > @@ -2667,8 +2667,7 @@
> > 	RAL_WRITE(sc, RT2560_CSR1, RT2560_HOST_READY);
> >
> > 	if (rt2560_bbp_init(sc) != 0) {
> > -		rt2560_stop(sc);
> > -		RAL_UNLOCK(sc);
> > +		rt2560_stop_locked(sc);
> > 		return;
> > 	}
> >
> 
> John,
> 
> You are right, the panic has got away, but
> the card doesn't seem to work. After
> issuing "ifconfig wlan0 up scan" I just
> get lots of
> 
> ral0: could not read from BBP
> ral0: timeout waiting for BBP
> 
> messages on the console.
> 
> Shall I give up on this particular device?

Unfortunately I can't help with this part. :(  I suspect the card is broken
however.

-- 
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009290756.51326.jhb>