From owner-freebsd-stable@FreeBSD.ORG Tue May 12 16:10:27 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AB1941065676; Tue, 12 May 2009 16:10:27 +0000 (UTC) (envelope-from riccardo.torrini@esaote.com) Received: from gw-fi.esaote.com (gw-fi.esaote.com [85.18.189.242]) by mx1.freebsd.org (Postfix) with ESMTP id 2C0D48FC12; Tue, 12 May 2009 16:10:26 +0000 (UTC) (envelope-from riccardo.torrini@esaote.com) Received: from tiger.fi.esaote.it (tiger.fi.esaote.it [192.168.6.66]) by gw-fi.esaote.com (8.14.3/8.14.3) with ESMTP id n4CGAP71014070; Tue, 12 May 2009 18:10:25 +0200 (CEST) (envelope-from riccardo.torrini@esaote.com) Received: from tiger.fi.esaote.it (localhost [127.0.0.1]) by tiger.fi.esaote.it (Postfix) with ESMTP id 822CC1CC9A; Tue, 12 May 2009 18:10:25 +0200 (CEST) Received: by tiger.fi.esaote.it (Postfix, from userid 201) id 65D3D1CC99; Tue, 12 May 2009 18:10:25 +0200 (CEST) Date: Tue, 12 May 2009 18:10:25 +0200 From: Riccardo Torrini To: John Baldwin Message-ID: <20090512161025.GO21112@tiger.fi.esaote.it> References: <20090507155012.GW21112@tiger.fi.esaote.it> <200905111407.20195.jhb@freebsd.org> <20090512152014.GN21112@tiger.fi.esaote.it> <200905121144.21406.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200905121144.21406.jhb@freebsd.org> User-Agent: Mutt/1.5.19 (2009-01-05) X-AV-Checked: ClamAV using ClamSMTP Cc: scottl@freebsd.org, siedar@nplay.pl, freebsd-stable@freebsd.org, Riccardo Torrini Subject: Re: kern/130330: [mpt] [panic] Panic and reboot machine MPT ... X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 May 2009 16:10:28 -0000 On Tue, May 12, 2009 at 11:44:20AM -0400, John Baldwin wrote: > If you can get a stack trace, that would be most helpful. > My guess is that the recovery thread is holding the mpt lock > and calling some CAM routine which attempts to relock it via > cam_periph_lock(). A stack trace would be most telling in > that case. Rebooted, inserted 2nd disk (copied by hand, sorry for delay) mpt0: External Bus Reset Detected mpt0:vol0(mpt:0:0:0): Phisycal Disk Status Changed mpt0:vol0(mpt:0:0:0): Phisycal Disk Status Changed (yes, two times) Kernel page fault with the following non-sleepable lock held: exclusive sleep mutex mpt r = 0 (0xc4001004) locked @ \ /usr/src/sys/cam/cam_xpt.c:7153 KBD: enter: witness_warn [ thread pid 19 tid 100018 ] Stopped at kdb_enter_why+0x3a: movl $0,kbd_why db> bt Tracing pid 19 tid 100018 td 0xc3fb8880 [...] --- trap 0xc, eip = 0xc0438f4e, esp = 0xc43b2b98, ebp = 0xc43b2bb0 --- xpt_done(c404f400,c0719000,5,5,0,...) at xpt_done+0x1b xpt_scan_bus(c3f39a80,c4045400,c06cfa7a,c072f824,c4011914,...) \ at xpt_scan_bus+0x39f camisr_runqueue(c4001004,0,c06cfa7a,1bf1,0,...) \ at camisr_runqueue+0x38a camisr(0,0,c06e99fb,4b6,c3f39a68,...) at camisr+0x10d ithread_loop() fork_exit() fork_trampoline() Still at db> prompt =) -- Riccardo.