From owner-freebsd-usb@FreeBSD.ORG Mon Apr 9 16:17:37 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B3492106564A for ; Mon, 9 Apr 2012 16:17:37 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe01.c2i.net [212.247.154.2]) by mx1.freebsd.org (Postfix) with ESMTP id 3B7288FC14 for ; Mon, 9 Apr 2012 16:17:37 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.212.201] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe01.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 262846873; Mon, 09 Apr 2012 18:12:29 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Mon, 9 Apr 2012 18:11:16 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.3-PRERELEASE; KDE/4.4.5; amd64; ; ) References: <975552A94CBC0F4DA60ED7B36C949CBA03DB0C8BA5@shandy.Beer.Town> <975552A94CBC0F4DA60ED7B36C949CBA03DB0C8BB2@shandy.Beer.Town> In-Reply-To: <975552A94CBC0F4DA60ED7B36C949CBA03DB0C8BB2@shandy.Beer.Town> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201204091811.16428.hselasky@c2i.net> Cc: Subject: Re: Impact of changes made to umass.c at r232358 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Apr 2012 16:17:37 -0000 On Friday 06 April 2012 18:19:10 Terence Telkamp wrote: > One thing I forgot to mention is that I have a machine in the kernel > debugger after the panic, so I can capture more information if any would > be helpful. > > -----Original Message----- > From: owner-freebsd-usb@freebsd.org [mailto:owner-freebsd-usb@freebsd.org] > On Behalf Of Terence Telkamp Sent: Friday, April 06, 2012 11:17 AM > To: freebsd-usb@freebsd.org > Subject: Impact of changes made to umass.c at r232358 > > I am seeing a kernel panic in FreeBSD 8.1, which is reproduced after > physically attaching and detaching a USB device several times. The kernel > debugger shows that the panic happens in camisr where the cam_sim and its > associated mutex are clearly destroyed. sim->refcount is 0, sim->softc is > 1 (UMASS_GONE), and the sim->mtx is destroyed (mtx_lock = 6). > > This looks very similar to FreeBSD PR kern/153514, which is unfortunately > unresolved. > > http://www.freebsd.org/cgi/query-pr.cgi?pr=153514 > > > Is it possible that the changes made to umass.c at r232358 might fix this > issue? > Hi, I need to see the backtrace. The revision you mention fixes a detach panic issue. Current issues are happening inside CAM layer, and that is outside of USB. If you search this list for usbconfig and umass, you will find some e-mails describing how you can stress test umass attach/detach. --HPS