From owner-freebsd-current@FreeBSD.ORG Mon Jul 19 22:35:47 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E0CE16A4CE; Mon, 19 Jul 2004 22:35:47 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 45C5E43D45; Mon, 19 Jul 2004 22:35:46 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.11/8.12.11) with ESMTP id i6JMXpLx034796; Mon, 19 Jul 2004 16:33:52 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Mon, 19 Jul 2004 16:33:55 -0600 (MDT) Message-Id: <20040719.163355.111547661.imp@bsdimp.com> To: pjd@FreeBSD.ORG From: "M. Warner Losh" In-Reply-To: <20040719145745.GH57678@darkness.comp.waw.pl> References: <20040719145745.GH57678@darkness.comp.waw.pl> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-current@FreeBSD.ORG Subject: Re: Unloading USB driver while device is attached. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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, 19 Jul 2004 22:35:47 -0000 In message: <20040719145745.GH57678@darkness.comp.waw.pl> Pawel Jakub Dawidek writes: : Hello. : : Could someone investigate what's going on for the situation from the : subject? This panic is trivial to reproduce: : : # kldload umass.ko : : # kldunload umass : # kldload umass : : : It is not umass related! I think this problem is in our USB implementation. : : One more note with could be helpful. : When device is already inserted and I load USB driver, _match : isn't called, but when driver was unloaded while device was in and it is : loaded again (as in my example) _match is called and we have : a problem, because there are some stale data, I think (not everything : is cleaned up on kldunload?). : Ok, one more note. : You can also set 'break _match' in DDB and try to compare : backtraces when device is removed while driver is loaded and when you : unload USB driver. I do know that loading the driver won't attach umass unless you remove and insert it again. Warner