From owner-freebsd-current@FreeBSD.ORG Mon Sep 27 15:49:47 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 222B810657F3 for ; Mon, 27 Sep 2010 15:49:47 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id E65C08FC16 for ; Mon, 27 Sep 2010 15:49:46 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 9034146B96; Mon, 27 Sep 2010 11:49:46 -0400 (EDT) Received: from jhbbsd.localnet (smtp.hudson-trading.com [209.249.190.9]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 0AEF48A04F; Mon, 27 Sep 2010 11:49:45 -0400 (EDT) From: John Baldwin To: freebsd-current@freebsd.org Date: Mon, 27 Sep 2010 11:20:36 -0400 User-Agent: KMail/1.13.5 (FreeBSD/7.3-CBSD-20100819; KDE/4.4.5; amd64; ; ) References: <20100925195334.GA58609@mech-cluster241.men.bris.ac.uk> In-Reply-To: <20100925195334.GA58609@mech-cluster241.men.bris.ac.uk> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201009271120.36337.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Mon, 27 Sep 2010 11:49:45 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.95.1 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=4.2 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: 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: Mon, 27 Sep 2010 15:49:47 -0000 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 Baldwin