From owner-freebsd-mobile@FreeBSD.ORG Sat Sep 25 16:48:20 2004 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A7EB216A4CE for ; Sat, 25 Sep 2004 16:48:20 +0000 (GMT) Received: from vbook.fbsd.ru (i2-user253.hovrino.net [82.179.232.253]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB21743D31 for ; Sat, 25 Sep 2004 16:48:19 +0000 (GMT) (envelope-from vova@vbook.fbsd.ru) Received: from vova by vbook.fbsd.ru with local (Exim 4.42 (FreeBSD)) id 1CBFia-0001jd-JM; Sat, 25 Sep 2004 20:48:16 +0400 From: Vladimir Grebenschikov To: Jochen Gensch In-Reply-To: <41558E89.7080606@gmx.de> References: <41558E89.7080606@gmx.de> Content-Type: multipart/mixed; boundary="=-xXokwjBHYTItCd5MPXGl" Organization: SWsoft Date: Sat, 25 Sep 2004 20:48:15 +0400 Message-Id: <1096130895.960.8.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.0.0FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov cc: freebsd-mobile@freebsd.org Subject: Re: Kernel Panic when detaching USB Hub on Thinkpad A30p X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: vova@fbsd.ru List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Sep 2004 16:48:20 -0000 --=-xXokwjBHYTItCd5MPXGl Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable =F7 =D3=C2, 25/09/2004 =D7 17:28 +0200, Jochen Gensch =D0=C9=DB=C5=D4: Hi > when I plug out my Thinkpad A30p from its docking station I get a kernel=20 > panic. I have figured out, that it's an usb issue, since this also=20 > happens, when I only detach my usb hub from the docking station. >=20 > So I don't know where this kernel panic output is written down, thus I=20 > cannot poste it here...so if anyone could give me a hand :-) >=20 > System is a 5.3-BETA5 This problem was discussed in current@ mail-list. Proposed patch helps me. (see attached message from current@freebsd.org) > Jochen --=20 Vladimir B. Grebenchikov vova@fbsd.ru --=-xXokwjBHYTItCd5MPXGl Content-Disposition: inline Content-Description: =?koi8-r?Q?=F7=CC=CF=D6=C5=CE=CE=CF=C5?=crashes BETA4/BETA5 Content-Type: message/rfc822 Return-path: Envelope-to: vova@fbsd.ru Delivery-date: Wed, 22 Sep 2004 04:37:18 +0400 Received: from mx2.freebsd.org ([216.136.204.119]) by fbsd.ru with esmtp (Exim 3.36 #1) id 1C9v8H-0004r1-00 for vova@fbsd.ru; Wed, 22 Sep 2004 04:37:17 +0400 Received: from hub.freebsd.org (hub.freebsd.org [216.136.204.18]) by mx2.freebsd.org (Postfix) with ESMTP id C4F4D56FDA; Wed, 22 Sep 2004 00:37:02 +0000 (GMT) (envelope-from owner-freebsd-current@freebsd.org) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 9CB5A16A4F4; Wed, 22 Sep 2004 00:36:55 +0000 (GMT) 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 0416516A4CE for ; Wed, 22 Sep 2004 00:36:48 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 64AD043D45 for ; Wed, 22 Sep 2004 00:36:47 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (harmony.village.org [10.0.0.6]) by harmony.village.org (8.13.1/8.13.1) with ESMTP id i8M0Zmj4087971; Tue, 21 Sep 2004 18:35:49 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 21 Sep 2004 18:36:50 -0600 (MDT) Message-Id: <20040921.183650.28787484.imp@bsdimp.com> To: Alex.Kovalenko@verizon.net From: "M. Warner Losh" In-Reply-To: <1095812538.2535.36.camel@RabbitsDen> References: <20040920.225931.29867687.imp@bsdimp.com> <200409211309.25428.Lutz.Bichler@unibw-muenchen.de> <1095812538.2535.36.camel@RabbitsDen> 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: current@freebsd.org Subject: Re: Detaching USB stick crashes BETA4/BETA5 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: , Sender: owner-freebsd-current@freebsd.org Errors-To: owner-freebsd-current@freebsd.org X-Evolution-Source: mbox:/var/mail/vova In message: <1095812538.2535.36.camel@RabbitsDen> "Alexandre \"Sunny\" Kovalenko" writes: : On Tue, 2004-09-21 at 07:09, Lutz Bichler wrote: : > On Tuesday 21 September 2004 06:59, you wrote: : > > This may be my fault. Any chance you can give me a traceback? : > : > I would like to, but i cannot get a crash dump. Tried the kernel debugger : > (option DDB) an got the following trace: : > : > db> trace : > kobj_delete(c1e2ab80,c068c6a0,c1e28180,cc726c2c,c04862e2) at kobj_delete+0x14 : > device_delete_child(c1ef6c80, c1e2ab80,c16v4200,c16c4200,0) at : > device_delete_child+0xb1 : > usb_disconnect_port(c1f21870,c1ef6c80,cc726c50,c1614bc0,c1ef6c80) at : > usb_disconnect_port+0xd2 : > uhub_detach(c1ef6c80,c1578874,c067dfc4,c1ef6c80,0) at uhub_detach+0x7e : > device_detach(c1ef6c80,c1e2ab80,c1ef6b00,cc726ca8,c04862e2) at : > device_detach+0x6a : > device_delete_child(c15b4880,c1ef6c80,c15bda80,c15bda80,3) at : > device_delete_child+0x3f : > usb_disconnect_port(c15b4430,c15b4880,10,c04dca9c,c15ca210) at : > usb_disconnect_port+0xd2 : > uhub_explore(c15b8900,c15d3140,cc726d10,c0482e48,c15d3140) at : > uhub_explore+0x1be : > usb_discover(c15d3140,0,5c,c065d8d9,1770) at usb_discover+0x35 : > usb_event:_thread(c15d3140,cc726d48,0,0,0) at usb_event_thread+0x88 : > fork_exit(c0482dc0,c15d3140,cc726d48) at fork_exit+0x80 : > fork_trampoline() at for_trampoline+0x8 : > --- trap 0x1, eip = 0, esp = 0xcc726d7c, ebp = 0 --- : > db> : > : > Regards : > Lutz : > _______________________________________________ : > freebsd-current@freebsd.org mailing list : > http://lists.freebsd.org/mailman/listinfo/freebsd-current : > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" : I was able to get crash dump in the situation that looks similar to one : above and posted my explorations to this list (see "Re: usb hub : disconnect crashes 5.3-BETA4 hard"). If you think they are relevant or : useful, let me know and I can resend it to you privately. I am running : -current though. Ian Dowse also is having problems in this area. He suggested the following patch to me. I have some concerns about the patch, but they are theoretical (what does it mean when a parent is detached, but all its children are attached?), but given the current state of the newbus code it will fix the problem for you. Warner Index: usb_port.h =================================================================== RCS file: /dump/FreeBSD-CVS/src/sys/dev/usb/usb_port.h,v retrieving revision 1.67 diff -u -r1.67 usb_port.h --- usb_port.h 15 Aug 2004 23:39:18 -0000 1.67 +++ usb_port.h 21 Sep 2004 23:46:27 -0000 @@ -422,6 +422,7 @@ #define config_detach(dev, flag) \ do { \ free(device_get_ivars(dev), M_USB); \ + device_detach(dev); \ device_delete_child(device_get_parent(dev), dev); \ } while (0); _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" --=-xXokwjBHYTItCd5MPXGl--