From owner-freebsd-current@FreeBSD.ORG Wed Sep 29 10:34:12 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 602471065672 for ; Wed, 29 Sep 2010 10:34:12 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirg.bris.ac.uk (dirg.bris.ac.uk [137.222.10.102]) by mx1.freebsd.org (Postfix) with ESMTP id 1B3498FC20 for ; Wed, 29 Sep 2010 10:34:11 +0000 (UTC) Received: from ncsd.bris.ac.uk ([137.222.10.59] helo=ncs.bris.ac.uk) by dirg.bris.ac.uk with esmtp (Exim 4.69) (envelope-from ) id 1P0tzG-0002XU-MQ; Wed, 29 Sep 2010 11:34:10 +0100 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by ncs.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1P0tzG-00075b-H0; Wed, 29 Sep 2010 11:34:10 +0100 Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.4/8.14.4) with ESMTP id o8TAYAsq068517; Wed, 29 Sep 2010 11:34:10 +0100 (BST) (envelope-from mexas@mech-cluster241.men.bris.ac.uk) Received: from localhost (mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.4/8.14.4/Submit) with ESMTP id o8TAY9xm068513; Wed, 29 Sep 2010 11:34:09 +0100 (BST) (envelope-from mexas@mech-cluster241.men.bris.ac.uk) Date: Wed, 29 Sep 2010 11:34:09 +0100 (BST) From: Anton Shterenlikht To: John Baldwin In-Reply-To: <201009271120.36337.jhb@freebsd.org> Message-ID: References: <20100925195334.GA58609@mech-cluster241.men.bris.ac.uk> <201009271120.36337.jhb@freebsd.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-current@freebsd.org, Anton Shterenlikht Subject: Re: amd64 panic: lock (sleep mutex) ral0 not locked @ /usr/src/sys/dev/ral/rt2560.c:2012 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Sep 2010 10:34:12 -0000 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? many thanks anton