From owner-freebsd-usb@FreeBSD.ORG Sun Mar 30 01:17:14 2008 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 27C29106566B; Sun, 30 Mar 2008 01:17:14 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id E056E8FC15; Sun, 30 Mar 2008 01:17:13 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m2U1GPSL025199; Sat, 29 Mar 2008 19:16:25 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sat, 29 Mar 2008 19:17:10 -0600 (MDT) Message-Id: <20080329.191710.1169638035.imp@bsdimp.com> To: koitsu@freebsd.org From: "M. Warner Losh" In-Reply-To: <20080329222049.GA80263@eos.sc1.parodius.com> References: <47EEBE78.5050506@unsane.co.uk> <20080329222049.GA80263@eos.sc1.parodius.com> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: jhary@unsane.co.uk, freebsd-stable@freebsd.org, freebsd-usb@freebsd.org Subject: Re: Panic with usb serial 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: Sun, 30 Mar 2008 01:17:14 -0000 In message: <20080329222049.GA80263@eos.sc1.parodius.com> Jeremy Chadwick writes: : On Sat, Mar 29, 2008 at 10:11:04PM +0000, Vince wrote: : > Is it expected that removing a usb serial adapter while you have a : > connection (eg tip) using it will panic a -stable system? I know it is : > expected if you remove a mounted umass device so wanted to see if its known : > behavior for serial before I file a pr. (adapter is converter, class 0/0, rev 1.10/4.00, addr 3>) : > -stable version as of the 25th march, (may have existed before but the : > first time I forgot to close tip before removing the device was on this : > version.) : : I would expect that the problem is identical in the sense that with a : connection established, you have an open file descriptor which is : associated with a serial device that uses USB. : : So, yes, I would expect this behaviour based on the track record. : Should it happen? The answer is no. File a PR? : : Also, I'd like to know what USB serial adapter you're using (brand, : model, and a website of it if possible), for unrelated reasons. Thanks! That's odd, because I use an FTDI based serial device all the time for hacking on embedded systems. The problem that I have is 100% CPU usage on a tip process until I kill it. Warner From owner-freebsd-usb@FreeBSD.ORG Sun Mar 30 05:44:19 2008 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 ABD8F106564A for ; Sun, 30 Mar 2008 05:44:19 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from relay03.kiev.sovam.com (relay03.kiev.sovam.com [62.64.120.201]) by mx1.freebsd.org (Postfix) with ESMTP id 4CB2E8FC12 for ; Sun, 30 Mar 2008 05:44:19 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from [212.82.216.226] (helo=skuns.kiev.zoral.com.ua) by relay03.kiev.sovam.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1Jfpa0-000Pah-Es; Sun, 30 Mar 2008 07:55:40 +0300 Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by skuns.kiev.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m2U4tmvj020449 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 30 Mar 2008 07:55:48 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m2U4tbDi040304; Sun, 30 Mar 2008 07:55:37 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2/Submit) id m2U4tbkP040303; Sun, 30 Mar 2008 07:55:37 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Sun, 30 Mar 2008 07:55:37 +0300 From: Kostik Belousov To: Vince Message-ID: <20080330045537.GB21209@deviant.kiev.zoral.com.ua> References: <47EEBE78.5050506@unsane.co.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="FCuugMFkClbJLl1L" Content-Disposition: inline In-Reply-To: <47EEBE78.5050506@unsane.co.uk> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.4 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on skuns.kiev.zoral.com.ua X-Scanner-Signature: 7ffaa6bc246e67c9b1a22e0c753f4a43 X-DrWeb-checked: yes X-SpamTest-Envelope-From: kostikbel@gmail.com X-SpamTest-Group-ID: 00000000 X-SpamTest-Header: Not Detected X-SpamTest-Info: Profiles 2516 [Mar 28 2008] X-SpamTest-Info: helo_type=3 X-SpamTest-Info: {TO: local part of email appears in body} X-SpamTest-Method: none X-SpamTest-Rate: 5 X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0278], KAS30/Release Cc: freebsd-stable@freebsd.org, freebsd-usb@freebsd.org Subject: Re: Panic with usb serial 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: Sun, 30 Mar 2008 05:44:19 -0000 --FCuugMFkClbJLl1L Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Mar 29, 2008 at 10:11:04PM +0000, Vince wrote: > Hi all, > Is it expected that removing a usb serial adapter while you have a=20 > connection (eg tip) using it will panic a -stable system? I know it is=20 > expected if you remove a mounted umass device so wanted to see if its=20 > known behavior for serial before I file a pr. (adapter is serial converter, class 0/0, rev 1.10/4.00, addr 3>) > -stable version as of the 25th march, (may have existed before but the=20 > first time I forgot to close tip before removing the device was on this= =20 > version.) What is the exact version number of your system ? There are two supported stable branch now. --FCuugMFkClbJLl1L Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iEYEARECAAYFAkfvHUgACgkQC3+MBN1Mb4jOlwCg0LP4uuC+Q1H3qIyWsS+THUsw hFcAoI2ENdDfDQ24KKZG0lzmapDyTeYl =9Ki6 -----END PGP SIGNATURE----- --FCuugMFkClbJLl1L-- From owner-freebsd-usb@FreeBSD.ORG Sun Mar 30 17:35:53 2008 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 3752A1065670 for ; Sun, 30 Mar 2008 17:35:53 +0000 (UTC) (envelope-from gofdu-freebsd-usb@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id DE1148FC32 for ; Sun, 30 Mar 2008 17:35:52 +0000 (UTC) (envelope-from gofdu-freebsd-usb@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Jg1Ra-0001GR-JX for freebsd-usb@freebsd.org; Sun, 30 Mar 2008 17:35:46 +0000 Received: from 92.50.96.215 ([92.50.96.215]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 30 Mar 2008 17:35:46 +0000 Received: from saper by 92.50.96.215 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 30 Mar 2008 17:35:46 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-usb@freebsd.org From: Marcin Cieslak Date: Sun, 30 Mar 2008 19:35:35 +0200 Lines: 13 Message-ID: <47EFCF67.9040601@system.pl> References: <47EEBE78.5050506@unsane.co.uk> <20080329222049.GA80263@eos.sc1.parodius.com> <47EED34E.2080400@unsane.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 92.50.96.215 User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.8.1.12) Gecko/20080325 SeaMonkey/1.1.8 In-Reply-To: <47EED34E.2080400@unsane.co.uk> Sender: news Cc: freebsd-stable@freebsd.org Subject: Re: Panic with usb serial 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: Sun, 30 Mar 2008 17:35:53 -0000 Vince wrote: > Jeremy Chadwick wrote: > Regarding the USB serial adapter, I was supplied it though work a while > back. I believe from my rather fuzzy memory we got it though these guys > http://www.usbnow.co.uk/Cables-USB_to_RS232_Cables/c1_23/index.html > Although I wouldn't swear to it. I'll have an ask if anyone remembers on > monday. Can you post a fragment of dmesg output? I am interested whether you attach it to the ohci or uhci controller. --Marcin From owner-freebsd-usb@FreeBSD.ORG Mon Mar 31 08:49:01 2008 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 06937106564A; Mon, 31 Mar 2008 08:49:01 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from unsane.co.uk (unknown [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id 749D48FC1A; Mon, 31 Mar 2008 08:49:00 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from prawn.unsane.co.uk (150.117-84-212.staticip.namesco.net [212.84.117.150]) (authenticated bits=0) by unsane.co.uk (8.14.0/8.14.0) with ESMTP id m2V8mp0B060775 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 31 Mar 2008 09:48:52 +0100 (BST) (envelope-from jhary@unsane.co.uk) Message-ID: <47F0A577.90800@unsane.co.uk> Date: Mon, 31 Mar 2008 09:48:55 +0100 From: Vince Hoffman User-Agent: Thunderbird 2.0.0.12 (X11/20080327) MIME-Version: 1.0 To: Marcin Cieslak References: <47EEBE78.5050506@unsane.co.uk> <20080329222049.GA80263@eos.sc1.parodius.com> <47EED34E.2080400@unsane.co.uk> <47EFCF67.9040601@system.pl> In-Reply-To: <47EFCF67.9040601@system.pl> X-Enigmail-Version: 0.95.2 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org, freebsd-usb@freebsd.org Subject: Re: Panic with usb serial 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, 31 Mar 2008 08:49:01 -0000 Marcin Cieslak wrote: > Vince wrote: >> Jeremy Chadwick wrote: > >> Regarding the USB serial adapter, I was supplied it though work a while >> back. I believe from my rather fuzzy memory we got it though these guys >> http://www.usbnow.co.uk/Cables-USB_to_RS232_Cables/c1_23/index.html >> Although I wouldn't swear to it. I'll have an ask if anyone remembers on >> monday. > > Can you post a fragment of dmesg output? I am interested whether you > attach it to the ohci or uhci controller. > > --Marcin > Sure, Please not this is now a different usb adapter as I left mine at home :( but I just tested and it exhibits the same behavior, (only difference I can see is this says its FIDI while my one says its FTDI, possibly a typo?) {root@prawn}#dmesg | grep uhub uhub0: on usb0 uhub0: 2 ports with 2 removable, self powered uhub1: on usb1 uhub1: 2 ports with 2 removable, self powered uhub2: on usb2 uhub2: 2 ports with 2 removable, self powered uhub3: on usb3 uhub3: 2 ports with 2 removable, self powered uhub4: on usb4 uhub4: 8 ports with 8 removable, self powered umass0: on uhub4 ums0: on uhub2 ucom0: on uhub2 And for what its worth: {root@prawn}#more /var/crash/info.14 Dump header from device /dev/ad0s3b Architecture: i386 Architecture Version: 2 Dump Length: 154411008B (147 MB) Blocksize: 512 Dumptime: Mon Mar 31 09:25:54 2008 Hostname: prawn.unsane.co.uk Magic: FreeBSD Kernel Dump Version String: FreeBSD 7.0-STABLE #52: Tue Mar 25 13:45:50 GMT 2008 toor@prawn.unsane.co.uk:/usr/local/obj/usr/src/sys/PRAWN7ULE Panic String: page fault Dump Parity: 1302845723 Bounds: 14 Dump Status: good Happy to provide more information but I'm not a programmer so you'll probably have to ask me slowly and in words of one syllable ;) Vince > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" From owner-freebsd-usb@FreeBSD.ORG Mon Mar 31 09:20:48 2008 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 8C0141065670; Mon, 31 Mar 2008 09:20:48 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from relay01.kiev.sovam.com (relay01.kiev.sovam.com [62.64.120.200]) by mx1.freebsd.org (Postfix) with ESMTP id 305838FC13; Mon, 31 Mar 2008 09:20:48 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from [212.82.216.226] (helo=skuns.kiev.zoral.com.ua) by relay01.kiev.sovam.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1JgGC2-0007Pv-AO; Mon, 31 Mar 2008 12:20:46 +0300 Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by skuns.kiev.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m2V9KlQd070284 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 31 Mar 2008 12:20:47 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m2V9KaL3001888; Mon, 31 Mar 2008 12:20:36 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2/Submit) id m2V9Kaiw001887; Mon, 31 Mar 2008 12:20:36 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Mon, 31 Mar 2008 12:20:36 +0300 From: Kostik Belousov To: Vince Hoffman Message-ID: <20080331092035.GH21209@deviant.kiev.zoral.com.ua> References: <47EEBE78.5050506@unsane.co.uk> <20080329222049.GA80263@eos.sc1.parodius.com> <47EED34E.2080400@unsane.co.uk> <47EFCF67.9040601@system.pl> <47F0A577.90800@unsane.co.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="lQSB8Tqijvu1+4Ba" Content-Disposition: inline In-Reply-To: <47F0A577.90800@unsane.co.uk> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.4 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on skuns.kiev.zoral.com.ua X-Scanner-Signature: e860fde63604f368aea63056fc3ed89d X-DrWeb-checked: yes X-SpamTest-Envelope-From: kostikbel@gmail.com X-SpamTest-Group-ID: 00000000 X-SpamTest-Header: Not Detected X-SpamTest-Info: Profiles 2523 [Mar 31 2008] X-SpamTest-Info: helo_type=3 X-SpamTest-Method: none X-SpamTest-Rate: 0 X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0278], KAS30/Release Cc: Marcin Cieslak , freebsd-stable@freebsd.org, freebsd-usb@freebsd.org Subject: Re: Panic with usb serial 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, 31 Mar 2008 09:20:48 -0000 --lQSB8Tqijvu1+4Ba Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 31, 2008 at 09:48:55AM +0100, Vince Hoffman wrote: > Marcin Cieslak wrote: > > Vince wrote: > >> Jeremy Chadwick wrote: > >=20 > >> Regarding the USB serial adapter, I was supplied it though work a while > >> back. I believe from my rather fuzzy memory we got it though these guys > >> http://www.usbnow.co.uk/Cables-USB_to_RS232_Cables/c1_23/index.html > >> Although I wouldn't swear to it. I'll have an ask if anyone remembers = on > >> monday. > >=20 > > Can you post a fragment of dmesg output? I am interested whether you > > attach it to the ohci or uhci controller. > >=20 > > --Marcin > >=20 >=20 > Sure, > Please not this is now a different usb adapter as I left mine at home :( > but I just tested and it exhibits the same behavior, (only difference I > can see is this says its FIDI while my one says its FTDI, possibly a typo= ?) >=20 > {root@prawn}#dmesg | grep uhub > uhub0: on usb0 > uhub0: 2 ports with 2 removable, self powered > uhub1: on usb1 > uhub1: 2 ports with 2 removable, self powered > uhub2: on usb2 > uhub2: 2 ports with 2 removable, self powered > uhub3: on usb3 > uhub3: 2 ports with 2 removable, self powered > uhub4: on usb4 > uhub4: 8 ports with 8 removable, self powered > umass0: 2.00/0.01, addr 2> on uhub4 > ums0: > on uhub2 > ucom0: on > uhub2 >=20 > And for what its worth: > {root@prawn}#more /var/crash/info.14 > Dump header from device /dev/ad0s3b > Architecture: i386 > Architecture Version: 2 > Dump Length: 154411008B (147 MB) > Blocksize: 512 > Dumptime: Mon Mar 31 09:25:54 2008 > Hostname: prawn.unsane.co.uk > Magic: FreeBSD Kernel Dump > Version String: FreeBSD 7.0-STABLE #52: Tue Mar 25 13:45:50 GMT 2008 > toor@prawn.unsane.co.uk:/usr/local/obj/usr/src/sys/PRAWN7ULE > Panic String: page fault > Dump Parity: 1302845723 > Bounds: 14 > Dump Status: good >=20 > Happy to provide more information but I'm not a programmer so you'll > probably have to ask me slowly and in words of one syllable ;) I need two things: 1. The revision of the sys/kern/kern_conf.c file; in particular, I need to know whether you have rev. 1.208.2.1 or 1.208.2.2. 2. Regardless of the outcome of the question 1, please show the output of the "bt full" from the kgdb loaded with your kernel and crash dump. See http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kernel= debug.html for details on how to obtain useful information from the crash dump. --lQSB8Tqijvu1+4Ba Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iEYEARECAAYFAkfwrOMACgkQC3+MBN1Mb4htIgCgmiiQZd4TSKmbCqeTfrj/xU14 DYcAoMWDkCR7QEkcm6Ep7TWQx0T24xT3 =7gxu -----END PGP SIGNATURE----- --lQSB8Tqijvu1+4Ba-- From owner-freebsd-usb@FreeBSD.ORG Mon Mar 31 10:00:07 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 14DFE106566C for ; Mon, 31 Mar 2008 10:00:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 040D18FC20 for ; Mon, 31 Mar 2008 10:00:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m2VA06kQ029409 for ; Mon, 31 Mar 2008 10:00:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m2VA06A4029408; Mon, 31 Mar 2008 10:00:06 GMT (envelope-from gnats) Resent-Date: Mon, 31 Mar 2008 10:00:06 GMT Resent-Message-Id: <200803311000.m2VA06A4029408@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Vince Hoffman Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D2399106564A for ; Mon, 31 Mar 2008 10:00:00 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from unsane.co.uk (unknown [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id 6CE1C8FC23 for ; Mon, 31 Mar 2008 10:00:00 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from unsane.co.uk (localhost [127.0.0.1]) by unsane.co.uk (8.14.0/8.14.0) with ESMTP id m2V9xqNW061805 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 31 Mar 2008 10:59:52 +0100 (BST) (envelope-from jhary@unsane.co.uk) Received: (from jhary@localhost) by unsane.co.uk (8.14.0/8.14.0/Submit) id m2V9xqxu061804; Mon, 31 Mar 2008 10:59:52 +0100 (BST) (envelope-from jhary) Message-Id: <200803310959.m2V9xqxu061804@unsane.co.uk> Date: Mon, 31 Mar 2008 10:59:52 +0100 (BST) From: Vince Hoffman To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: usb/122287: Removal of usb serial Device with session (eg tip) attached panics system X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Vince Hoffman List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2008 10:00:07 -0000 >Number: 122287 >Category: usb >Synopsis: Removal of usb serial Device with session (eg tip) attached panics system >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Mar 31 10:00:06 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Vince Hoffman >Release: FreeBSD 7.0-STABLE #52 >Organization: none >Environment: System: FreeBSD prawn.unsane.co.uk 7.0-STABLE FreeBSD 7.0-STABLE #52: Tue Mar 25 13:45:50 GMT 2008 toor@prawn.unsane.co.uk:/usr/local/obj/usr/src/sys/PRAWN7ULE i386 >Description: removing a USB device that has an open session (for example tip) will panic the kernel, this is 100% reproducable for me. {root@prawn}#more info.14 Dump header from device /dev/ad0s3b Architecture: i386 Architecture Version: 2 Dump Length: 154411008B (147 MB) Blocksize: 512 Dumptime: Mon Mar 31 09:25:54 2008 Hostname: prawn.unsane.co.uk Magic: FreeBSD Kernel Dump Version String: FreeBSD 7.0-STABLE #52: Tue Mar 25 13:45:50 GMT 2008 toor@prawn.unsane.co.uk:/usr/local/obj/usr/src/sys/PRAWN7ULE Panic String: page fault Dump Parity: 1302845723 Bounds: 14 Dump Status: good I'm happy to build a kernel with debug symbols if needed but it should be easy to reproduce. I have only tried this with a UFTDI device. I have a uark device at home I can try it with if needed. >How-To-Repeat: With the following entry in /etc/remote usb0:dv=/dev/ttyU0:br#9600:pa=none: tip usb0 then unplug the usb serial adapter. >Fix: unknown as yet >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Mon Mar 31 11:07:12 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1A65710658AE for ; Mon, 31 Mar 2008 11:07:12 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 0AAC18FC2E for ; Mon, 31 Mar 2008 11:07:12 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m2VB7CbE039090 for ; Mon, 31 Mar 2008 11:07:12 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m2VB7Bfo039086 for freebsd-usb@FreeBSD.org; Mon, 31 Mar 2008 11:07:11 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 31 Mar 2008 11:07:11 GMT Message-Id: <200803311107.m2VB7Bfo039086@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-usb@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-usb@FreeBSD.org 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, 31 Mar 2008 11:07:12 -0000 Current FreeBSD problem reports Critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/84750 usb [hang] 6-BETA2 reboot/shutdown with root_fs on externa o usb/91629 usb usbd_abort_pipe() may result in infinite loop 2 problems total. Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o i386/46371 usb USB controller cannot be initialized on IBM Netfinity o bin/57255 usb usbd and multi-function devices o usb/63621 usb [umass] [panic] USB MemoryStick Reader stalls/crashes o usb/69006 usb [usbdevs] [patch] Apple Cinema Display hangs USB ports o usb/71155 usb [ulpt] misbehaving usb-printer hangs processes, causes o usb/73307 usb [panic] Kernel panics on USB disconnect o usb/74771 usb [umass] [hang] mounting write-protected umass device a o usb/75705 usb [umass] [panic] da0 attach / Optio S4 (with backtrace) o usb/75797 usb [pcm] 5.3-STABLE(2005 1/4) detect USB headset, But can o usb/76395 usb [uhci] USB printer does not work, usbdevs says "addr 0 o usb/77184 usb [umass] [panic] kernel panic on USB device disconnect, o usb/77294 usb [ulpcom] [panic] ucom + ulpcom panic o usb/79269 usb [ohci] USB ohci da0 plug/unplug causes crashes and loc o usb/79287 usb [uhci] [hang] UHCI hang after interrupt transfer o usb/79524 usb [ulpt] printing to Minolta PagePro 1[23]xxW via USB fa a usb/79656 usb [ehci] RHSC interrupts lost o usb/79722 usb [ehci] wrong alignments in ehci.h o usb/80040 usb [hang] Use of sound mixer causes system freeze with ua o usb/80361 usb [umass] [patch] mounting of Dell usb-stick fails o usb/80829 usb [modules] [panic] possible panic when loading USB-modu o usb/80862 usb [patch] USB locking issues: missing some Giant calls o usb/82350 usb [ucom] [panic] null pointer dereference in USB stack o usb/82520 usb [udbp] [reboot] Reboot when USL101 connected s usb/82569 usb [umass] [panic] USB mass storage plug/unplug causes sy o usb/82660 usb [echi] [panic] EHCI: I/O stuck in state 'physrd'/panic o usb/83563 usb [umass] [panic] Page Fault while detaching Mpman Usb d o usb/83677 usb [usb] [request] usb controller often not detected (Sun o usb/83756 usb [ums] [patch] Microsoft Intellimouse Explorer 4.0A doe o usb/83977 usb [ucom] [panic] ucom1: open bulk out error (addr 2): IN o usb/84326 usb [umass] Panic trying to connect SCSI tape drive via US s usb/84336 usb [usb] [reboot] instant system reboot when unmounting a o usb/86767 usb [umass] [patch] bogus "slice starts beyond end of the o usb/88743 usb [hang] USB makes kernel hang at boot (regression in 6. p usb/88966 usb [modules] kldunload ucom.ko returns "Device busy" erro s usb/89003 usb [request] LaCie Firewire drive not properly supported o usb/89954 usb [umass] [panic] USB Disk driver race condition? o usb/90700 usb [umass] [panic] Kernel panic on connect/mount/use umas o usb/91238 usb [umass] USB tape unit fails to write a second tape fil o usb/91283 usb [boot] booting very slow with usb devices connection ( o usb/91538 usb [ulpt] [patch] Unable to print to EPSON CX3500 o usb/91906 usb [ehci] [hang] FreeBSD hangs while booting with USB leg o usb/92052 usb [unlpt] usbd causes defunct process with busy file-han o usb/92083 usb [ural] [panic] panic using WPA on ural NIC in 6.0-RELE o usb/92142 usb [uhub] SET_ADDR_FAILED and SHORT_XFER errors from usb o usb/92171 usb [panic] panic unplugging Vodafone Mobile Connect (UMTS o usb/93155 usb [ulpt] /dev/ulpt0: device busy, USB printer does not w o usb/93408 usb [mouse] hw.acpi.cpu.cx_lowest=C3 on AMD Turion causes o usb/93640 usb [echi] [irq] device ehci causes interrupt storm on thi o usb/93828 usb [ochi] [panic] ohci causes panic on boot (HP Pavillion o usb/94166 usb [umass] [boot] btx halted with a flashcard plugged o usb/94384 usb [panic] kernel panic with usb2 hardware o usb/94717 usb [ulpt] Reading from /dev/ulpt can break work of a UHCI o usb/94813 usb [umass] mounting write-protected umass device freezes o usb/94897 usb [panic] Kernel Panic when cleanly unmounting USB disk s usb/95348 usb [kbd] USB keyboard unplug causes noise on screen o usb/95562 usb [umass] Write Stress in USB Mass drive causes "vinvalb s usb/95636 usb [umass] [boot] 5 minute delay at boot when using VT620 s usb/96120 usb [ums] [request] USB mouse not always detected o usb/96224 usb [usb] [msdosfs] mount_msdosfs cause page fault in sync o usb/96457 usb [umass] [panic] fatback on umass = reboot s usb/97286 usb [mouse] [request] MS Wireless Intellimouse Explorer 2. o usb/99431 usb [kbd] FreeBSD on MSI 6566E (Intel 845E motherboards) d o usb/101096 usb [if_ural] [panic] USB WLAN occasionally causes kernel- o usb/101448 usb [ohci] FBSD 6.1-STABLE/AMD64 crashes under heavy USB/O o usb/101752 usb [umass] [panic] 6.1-RELEASE kernel panic on usb device o usb/102066 usb [ukbd] usb keyboard and multimedia keys don't work f usb/102096 usb [patch] usbd(8) does not handle multiple devices in on o usb/103025 usb [uhub] [panic] wrong detection of USB device for FreeB o usb/104292 usb [umass] [hang] system lockup on forced umount of usb-s o usb/104830 usb [umass] system crashes when copying data to umass devi o usb/105186 usb [ehci] [panic] USB 2.0/ehci on FreeBSD 6.2-PRE/AMD64 c o usb/106615 usb [uftdi] uftdi module does not automatically load with o usb/106648 usb [umass] [hang] USB Floppy on D1950 10 min Hang on Inse s usb/106832 usb USB HP printer is not detected by kernel when ACPI ena o usb/107248 usb [umass] [patch] scsi_da.c quirk for Cowon iAUDIO X5 MP o usb/107446 usb [umass] umass problems (usb and fw disks) o usb/107827 usb [ohci] [panic] ohci_add_done addr not found o usb/107848 usb [umass] [request] cannot access Samsung flash disk o usb/107924 usb [patch] usbd(8) does not call detach o usb/108513 usb [umass] Creative MuVo TX FM fails in 6.2-RELEASE (regr o usb/109274 usb [usb] MCP55 USB Controller fails to attach in AMD64 Cu o usb/109397 usb [panic] on boot from USB flash o usb/110856 usb [ugen] [patch] interrupt in msgs are truncated when bu o usb/110988 usb [umass] [patch] Handling of quirk IGNORE_RESIDUE is um o usb/111753 usb [uhid] [panic] Replicable system panic involving UHID s usb/112568 usb [umass] [request] USB mode may wrong when mounting Pla o usb/112631 usb [panic] Problem with SONY DSC-S80 camera on umount o usb/112640 usb [usb] [hang] Kernel freezes when writing a file to an o usb/113478 usb [boot] [request] FreeBSD could not start on Core2Duo n s usb/113629 usb [ukbd] Dropped USB keyboard events on Dell Latitude D6 o usb/113672 usb [ehci] [panic] Kernel panic with AEWIN CB6971 o usb/113851 usb [boot] Unable to boot install cd from USB-CDROM s usb/113977 usb [request] Need a way to set mode of USB disk's write c o usb/114310 usb [libusb] [patch] [panic] USB hub attachment panics ker o usb/114682 usb [umass] generic USB media-card reader unusable o kern/114780 usb [uplcom] [panic] Panics while stress testing the uplco o usb/115298 usb [ulpt] [panic] Turning off USB printer panics kernel o usb/116561 usb [umodem] [panic] RELENG_6 umodem panic "trying to slee o usb/116699 usb [usbhid] USB HID devices do not initialize at system b o usb/116947 usb [ukbd] [patch] enable boot protocol on the USB keyboar o usb/117200 usb [ugen] ugen0 prints strange string on attach if detach o usb/117313 usb [umass] [panic] panic on usb camera insertion o usb/117613 usb [uhci] [irq] uhci interrupt storm & USB leaked memory o usb/117946 usb [panic] D-Link DUB-E100 rev. B1 crashes FreeBSD 7.0-BE o usb/117955 usb [umass] [panic] inserting minolta dimage a2 crashes OS o usb/118140 usb [ucom] [patch] quick hack for ucom to get it behave wi o usb/118141 usb [ucom] usb serial and nokia phones ucomreadcb ucomread o usb/118353 usb [panic] [ppp] repeatable kernel panic during ppp(4) se o usb/118391 usb [usbdevs] [patch] Add uscanner ID for Epson CX4800 o usb/118480 usb [umass] Timeout in USB mass storage freezes vfs layer o usb/119018 usb [usbd] HP ScanJet 4300C found as knowndev but not reco o usb/119201 usb [cam] [patch] Quirks for Olympus FE-210 camera, LG and o usb/119481 usb [hang] FreeBSD not responding after connecting USB-Mas o usb/119509 usb USB flaky on Dell Optiplex 755 o usb/119513 usb [irq] inserting dlink dwl-g630 wireless card results i o usb/119977 usb [ums] Mouse does not work in a Cherry-USB keyboard/mou o usb/120017 usb [ehci] [patch] CS5536 (AMD Geode) USB 2.0 quirk o usb/120034 usb [hang] 6.2 & 6.3 hangs on boot at usb0: OHCI with 1.5 o usb/120283 usb [panic] Automation reboot with wireless keyboard & mou o usb/120321 usb [hang] System hangs when transferring data to WD MyBoo o usb/120729 usb [panic] fault while in kernel mode with connecting USB o usb/120786 usb Kernelpanik when forced umount of a dettached USB Hard f usb/120873 usb [zyd] [panic] if_zyd and if_rum panic in usb_transfer_ o usb/121232 usb remove PCCARD rebooted system o usb/121275 usb [boot] FreeBSD fails to boot with usb legacy support e o usb/121474 usb [cam] [patch] QUIRK: SAMSUNG HM250JI in LaCie usb hard o usb/121708 usb [kbd] nforce 650i mobo w/ usb keyboard infinite key re o usb/121734 usb [ugen] ugen HP1022 printer device not working since up o usb/121755 usb [ohci] [patch] Fix panic after ohci/uhub cardbus devic o usb/121861 usb [kbd] Don't work Fn keys on USB Microsoft Natural Ergo o usb/122287 usb Removal of usb serial Device with session (eg tip) att 131 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o conf/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem o usb/40948 usb [umass] [request] USB HP CDW8200 does not work o usb/48342 usb [usbd] [patch] usbd dynamic device list. s usb/51958 usb [urio] [patch] update for urio driver s usb/52026 usb [usb] [request] umass driver support for InSystem ISD2 o usb/59698 usb [kbd] [patch] Rework of ukbd HID to AT code translatio s usb/62257 usb [umass] [request] card reader UCR-61S2B is only half-s o usb/66547 usb [ucom] Palm Tungsten T USB does not initialize correct o usb/68232 usb [ugen] [patch] ugen(4) isochronous handling correction o usb/70523 usb [umct] [patch] umct sending/receiving wrong characters o usb/71280 usb [aue] aue0 device (linksys usb100tx) doesn't work in 1 o usb/71416 usb [ugen] Cryptoflex e-gate USB token (ugen0) detach is n o usb/71417 usb [ugen] Cryptoflex e-gate USB token (ugen0) communicati o usb/71455 usb [umass] Slow USB umass performance of 5.3 s usb/72733 usb [ucom] [request] Kyocera 7135 Palm OS connection probl o usb/74211 usb [umass] USB flash drive causes CAM status 0x4 on 4.10R a usb/74453 usb [umass] [patch] Q-lity CD-RW USB ECW-043 (ScanLogic SL o usb/75764 usb [umass] [patch] "umass0: Phase Error" - no device for o usb/75800 usb [ucom] ucom1: init failed STALLED error in time of syn s usb/75928 usb [umass] [request] Cytronix SmartMedia card (SMC) reade o usb/76461 usb [umass] disklabel of umass(4)-CAM(4)-da(4) not used by o usb/76653 usb [umass] [patch] Problem with Asahi Optical usb device o usb/76732 usb Mouse problems with USB KVM Switch o usb/78984 usb [umass] [patch] Creative MUVO umass failure o usb/79723 usb [usb] [request] prepare for high speed isochronous tra o usb/80774 usb [patch] have "usbd_find_desc" in line with the other " s usb/80776 usb [udav] [request] UDAV device driver shouldn't use usb_ s usb/80777 usb [request] usb_rem_task() should wait for callback to c o usb/80854 usb [patch] [request] suggestion for new iface-no-probe me o usb/80935 usb [uvisor] [patch] uvisor.c is not work with CLIE TH55. f usb/81621 usb [ehci] [hang] external hd hangs under load on ehci o usb/83863 usb [ugen] Communication problem between opensc/openct via s usb/85067 usb [uscanner] Cannot attach ScanJet 4300C to usb device o usb/85257 usb [boot] BTX boot loader fails on USB CDROM (HP DL145 Op o usb/86298 usb [mouse] Known good USB mouse won't work with correct s o usb/87224 usb Cannot mount USB Zip750 o usb/87648 usb [mouse] Logitech USB-optical mouse problem. o usb/88408 usb [axe] axe0 read PHY failed o usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone does not work o usb/91811 usb [umass] Compact Flash in HP Photosmart 2610 return " o usb/91896 usb [camcontrol] Serial Number of USB Memory Sticks is not o usb/92852 usb [ums] [patch] Vertical scroll not working properly on o usb/93389 usb [umass] [patch] Digital Camera Pentax S60 don't work o usb/93872 usb [cam] [patch] SCSI quirk required for ELTA 8061 OL USB o usb/95037 usb [umass] USB disk not recognized on hot-plug. o usb/96381 usb [cam] [patch] add a quirk table entry for a flash ram o usb/97175 usb [umass] [hang] USB cardreader hangs system o usb/97472 usb [cam] [patch] add support for Olympus C150,D390 o usb/98343 usb [boot] BBB reset failed errors with Creative Muvo MP3 o usb/99538 usb [kbd] while using USB keyboard default params of atkbd o usb/100746 usb [kbd] system does not boot due to USB keyboard problem o usb/101761 usb [usb] [patch] [request] usb.h: increase maximal size o o usb/101775 usb [libusbhid] [patch] possible error in report descripto o usb/102678 usb [kbd] Dell PowerEdge DRAC5 USB Keyboard does not work o usb/102976 usb [panic] Casio Exilim Digital Camera causes panic on in o usb/103046 usb [ulpt] [patch] ulpt event driven I/O with select(2) an o usb/103289 usb [request] USB 2.0 problems on AMD LX-800 CPU and CS-55 o usb/103418 usb [usbhidctl] [patch] [request] usbhidctl: add ability t o usb/103917 usb [uhub] USB driver reports "Addr 0 should never happen" o usb/104290 usb [umass] [patch] quirk: TOSHIBA DVD-RAM drive (libretto o usb/104352 usb [ural] [patch] ural driver doesnt work o usb/104645 usb [umass] [request] Rave C-201 MP3 player does not commu o usb/105065 usb [sata] SATA - USB Bridge o usb/105361 usb [panic] Kernel panic during unmounting mass storage (C o usb/106041 usb [usb] [request] FreeBSD does not recognise Mustek Bear o usb/106621 usb [axe] [patch] DLINK DUB-E100 support broken o usb/106861 usb [usbdevs] [patch]: usbdevs update: Add product ACER Ze o usb/107243 usb [cam] [patch] Apacer USB Flash Drive quirk o usb/107388 usb [patch] [request] new driver: add utoppy device from N o usb/107496 usb [uhub] USB device problem on RELENG_6_2 (SHORT_XFER) ( o usb/107665 usb [usbdevs] [patch] uscanner support for epson stylus DX s usb/107701 usb [usbd] [request] usbd ignores "detach" o usb/107935 usb [uplcom] [panic] panic while accessing /dev/cuaU0 o usb/108056 usb [ohci] Mouse gets powered off during device probe when s usb/108344 usb [panic] kernel with atausb panics when unplugging USB o usb/108509 usb [hang] FreeBSD hang at startup after ehci0 detected (C o usb/110197 usb [umass] Sony PSP umass device does not detach from EHC s usb/110991 usb [usbdevs] [patch] QUIRK: Super Top IDE DEVICE (depends o usb/112461 usb [ehci] [request] ehci USB 2.0 doesn't work on nforce4 o usb/112463 usb [umass] problem with Samsung USB DVD writer, libscg an o usb/112944 usb [ulpt] [patch] Bi-directional access to HP LaserJet 10 o usb/113060 usb [usbdevs] [patch] Samsung printer not working in bidir o usb/113432 usb [ucom] WARNING: attempt to net_add_domain(netgraph) af o conf/114013 usb [patch] WITHOUT_USB allow to compil a lot of USB stuff o usb/114068 usb [umass] [patch] Problems with connection of the umass o usb/114916 usb [umass] [patch] USB Maxtor drive (L300RO) requires qui o usb/115080 usb [usbdevs] [patch] allow using a Hercules HWGUSB2-54-V2 o usb/115400 usb [ehci] Problem with EHCI on ASUS M2N4-SLI o usb/115933 usb [uftdi] [patch] RATOC REX-USB60F (usb serial converter o usb/115935 usb [usbdevs] [patch] kernel counterproductively attaches o usb/116282 usb [ulpt] Cannot print on USB HP LJ1018 or LJ1300 o usb/116574 usb [ehci] [patch] Add device ids for ICH8 USB chipsets f usb/116898 usb [panic] sleeping thread while using USB hard drive to o usb/117075 usb [scsi_da] [patch] quirk: USB Samsung YP-U3 MP3 o usb/117183 usb [panic] USB/fusefs -- panic while transferring large a o usb/117185 usb [umodem] [patch] Add support for UNION interface descr o usb/117205 usb [uscanner] [patch] uscanner support for HP ScanJet 447 o usb/117546 usb [usbdevs] [patch] Add MaxStream ZigBee product ID to u o usb/117598 usb [uaudio] [patch] Not possible to record with Plantroni o usb/117893 usb [umass] Lacie USB DVD writing failing o usb/117911 usb [ums] [request] Mouse Gembird MUSWC not work o usb/117938 usb [ums] [patch] Adding support for MS WL Natural and MS o usb/118098 usb [umass] 6th gen iPod causes problems when disconnectin o usb/118374 usb [usbdevs] [patch] support Option GlobeTrotter Max 3.6 o usb/118479 usb [ubsa] [patch] ubsa driver does not recognize AnyDATA o usb/118485 usb [usbdevs] [patch] Logitech Headset Workaround s usb/118571 usb [boot] [request] fix BTX issues when booting FreeBSD 7 o usb/118686 usb [usbdevs] [patch] teach usbdevs / ubsa(4) about Huawei o usb/118741 usb [umass] [patch] Support for Nikon D300 digital camera o usb/119150 usb [usbdevs] [patch] new usbdevs for CDMA 1xEVDO devices o usb/119227 usb [ubsa] [patch] ubsa buffer is too small; should be tun o usb/119389 usb [umass] Sony DSC-W1 CBI reset failed, STALLED (regress o usb/119633 usb [umass] umass0: BBB reset failed, IOERROR (regression) o usb/119653 usb [cam] [patch] iriver s7 player sync cache error patch o usb/119981 usb [usbdevs] [patch] add support for LOGITEC LAN-GTJ/U2 g o usb/120572 usb [umass] [patch] quirk to support ASUS P535 as umass (a f usb/120859 usb laserjet1000 PR#99460 how to install the patch? o usb/121045 usb [uftdi] [patch] Add support for PC-OP-RS1 and KURO-RS o usb/121052 usb [ums] Microsoft Notebook Optical Mouse 3000 (model 104 o usb/121169 usb Issues with usb mp3 player o usb/121184 usb [uipaq] [patch] add ids from linux ipaq driver (plus a o usb/121426 usb [patch] [uscanner] add HP ScanJet 3570C o usb/122025 usb [patch] uscanner does not attach to Epson RX620 printe o usb/122119 usb [umass] umass device causes creation of daX but not da 124 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon Mar 31 11:13:36 2008 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 E193A1065673; Mon, 31 Mar 2008 11:13:36 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from unsane.co.uk (unknown [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id 55B8E8FC15; Mon, 31 Mar 2008 11:13:36 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from prawn.unsane.co.uk (150.117-84-212.staticip.namesco.net [212.84.117.150]) (authenticated bits=0) by unsane.co.uk (8.14.0/8.14.0) with ESMTP id m2VBDRwd062724 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 31 Mar 2008 12:13:28 +0100 (BST) (envelope-from jhary@unsane.co.uk) Message-ID: <47F0C75B.9040000@unsane.co.uk> Date: Mon, 31 Mar 2008 12:13:31 +0100 From: Vince Hoffman User-Agent: Thunderbird 2.0.0.12 (X11/20080327) MIME-Version: 1.0 To: Kostik Belousov References: <47EEBE78.5050506@unsane.co.uk> <20080329222049.GA80263@eos.sc1.parodius.com> <47EED34E.2080400@unsane.co.uk> <47EFCF67.9040601@system.pl> <47F0A577.90800@unsane.co.uk> <20080331092035.GH21209@deviant.kiev.zoral.com.ua> In-Reply-To: <20080331092035.GH21209@deviant.kiev.zoral.com.ua> X-Enigmail-Version: 0.95.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Marcin Cieslak , freebsd-stable@freebsd.org, freebsd-usb@freebsd.org Subject: Re: Panic with usb serial 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, 31 Mar 2008 11:13:37 -0000 Kostik Belousov wrote: > On Mon, Mar 31, 2008 at 09:48:55AM +0100, Vince Hoffman wrote: >> Marcin Cieslak wrote: >>> Vince wrote: >>>> Jeremy Chadwick wrote: >>>> Regarding the USB serial adapter, I was supplied it though work a while >>>> back. I believe from my rather fuzzy memory we got it though these guys >>>> http://www.usbnow.co.uk/Cables-USB_to_RS232_Cables/c1_23/index.html >>>> Although I wouldn't swear to it. I'll have an ask if anyone remembers on >>>> monday. >>> Can you post a fragment of dmesg output? I am interested whether you >>> attach it to the ohci or uhci controller. >>> >>> --Marcin >>> >> Sure, >> Please not this is now a different usb adapter as I left mine at home :( >> but I just tested and it exhibits the same behavior, (only difference I >> can see is this says its FIDI while my one says its FTDI, possibly a typo?) >> >> {root@prawn}#dmesg | grep uhub >> uhub0: on usb0 >> uhub0: 2 ports with 2 removable, self powered >> uhub1: on usb1 >> uhub1: 2 ports with 2 removable, self powered >> uhub2: on usb2 >> uhub2: 2 ports with 2 removable, self powered >> uhub3: on usb3 >> uhub3: 2 ports with 2 removable, self powered >> uhub4: on usb4 >> uhub4: 8 ports with 8 removable, self powered >> umass0: > 2.00/0.01, addr 2> on uhub4 >> ums0: >> on uhub2 >> ucom0: on >> uhub2 >> >> And for what its worth: >> {root@prawn}#more /var/crash/info.14 >> Dump header from device /dev/ad0s3b >> Architecture: i386 >> Architecture Version: 2 >> Dump Length: 154411008B (147 MB) >> Blocksize: 512 >> Dumptime: Mon Mar 31 09:25:54 2008 >> Hostname: prawn.unsane.co.uk >> Magic: FreeBSD Kernel Dump >> Version String: FreeBSD 7.0-STABLE #52: Tue Mar 25 13:45:50 GMT 2008 >> toor@prawn.unsane.co.uk:/usr/local/obj/usr/src/sys/PRAWN7ULE >> Panic String: page fault >> Dump Parity: 1302845723 >> Bounds: 14 >> Dump Status: good >> >> Happy to provide more information but I'm not a programmer so you'll >> probably have to ask me slowly and in words of one syllable ;) > > I need two things: > 1. The revision of the sys/kern/kern_conf.c file; in particular, > I need to know whether you have rev. 1.208.2.1 or 1.208.2.2. > 2. Regardless of the outcome of the question 1, please show the output > of the "bt full" from the kgdb loaded with your kernel and crash > dump. See > http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kerneldebug.html > for details on how to obtain useful information from the crash dump. 1) {root@prawn}#grep kern_conf.c sys/kern/kern_conf.c __FBSDID("$FreeBSD: src/sys/kern/kern_conf.c,v 1.208.2.2 2008/03/24 13:09:55 kib Exp $"); 2) [/usr/obj/usr/src/sys/PRAWN7ULE](11:07:33) {root@prawn}#kgdb kernel.debug /var/crash/vmcore.14 [GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"] GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd". There is no member named pathname. (kgdb) bt full #0 doadump () at pcpu.h:195 No locals. #1 0xc05ae391 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:409 _giantcnt = Variable "_giantcnt" is not available. (kgdb) This isnt what I was expecting from the article referenced. Would it be helpful me to update to the latest stable then reproduce (assuming i still can.) Vince From owner-freebsd-usb@FreeBSD.ORG Mon Mar 31 11:17:25 2008 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 0129A106564A; Mon, 31 Mar 2008 11:17:25 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from relay03.kiev.sovam.com (relay03.kiev.sovam.com [62.64.120.201]) by mx1.freebsd.org (Postfix) with ESMTP id 7FF9B8FC2C; Mon, 31 Mar 2008 11:17:24 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from [212.82.216.226] (helo=skuns.kiev.zoral.com.ua) by relay03.kiev.sovam.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1JgI0s-0006t0-M0; Mon, 31 Mar 2008 14:17:23 +0300 Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by skuns.kiev.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m2VBHPQs074040 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 31 Mar 2008 14:17:25 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m2VBHEmB005704; Mon, 31 Mar 2008 14:17:14 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2/Submit) id m2VBHE0A005703; Mon, 31 Mar 2008 14:17:14 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Mon, 31 Mar 2008 14:17:14 +0300 From: Kostik Belousov To: Vince Hoffman Message-ID: <20080331111714.GI21209@deviant.kiev.zoral.com.ua> References: <47EEBE78.5050506@unsane.co.uk> <20080329222049.GA80263@eos.sc1.parodius.com> <47EED34E.2080400@unsane.co.uk> <47EFCF67.9040601@system.pl> <47F0A577.90800@unsane.co.uk> <20080331092035.GH21209@deviant.kiev.zoral.com.ua> <47F0C75B.9040000@unsane.co.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HuscSE0D68UGttcd" Content-Disposition: inline In-Reply-To: <47F0C75B.9040000@unsane.co.uk> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.4 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on skuns.kiev.zoral.com.ua X-Scanner-Signature: cd91eefa7e6da97c48661c56a607d3ec X-DrWeb-checked: yes X-SpamTest-Envelope-From: kostikbel@gmail.com X-SpamTest-Group-ID: 00000000 X-SpamTest-Info: Profiles 2523 [Mar 31 2008] X-SpamTest-Info: helo_type=3 X-SpamTest-Info: {received from trusted relay: not dialup} X-SpamTest-Method: none X-SpamTest-Method: Local Lists X-SpamTest-Rate: 0 X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0255], KAS30/Release Cc: Marcin Cieslak , freebsd-stable@freebsd.org, freebsd-usb@freebsd.org Subject: Re: Panic with usb serial 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, 31 Mar 2008 11:17:25 -0000 --HuscSE0D68UGttcd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 31, 2008 at 12:13:31PM +0100, Vince Hoffman wrote: > Kostik Belousov wrote: > > On Mon, Mar 31, 2008 at 09:48:55AM +0100, Vince Hoffman wrote: > >> Marcin Cieslak wrote: > >>> Vince wrote: > >>>> Jeremy Chadwick wrote: > >>>> Regarding the USB serial adapter, I was supplied it though work a wh= ile > >>>> back. I believe from my rather fuzzy memory we got it though these g= uys > >>>> http://www.usbnow.co.uk/Cables-USB_to_RS232_Cables/c1_23/index.html > >>>> Although I wouldn't swear to it. I'll have an ask if anyone remember= s on > >>>> monday. > >>> Can you post a fragment of dmesg output? I am interested whether you > >>> attach it to the ohci or uhci controller. > >>> > >>> --Marcin > >>> > >> Sure, > >> Please not this is now a different usb adapter as I left mine at home = :( > >> but I just tested and it exhibits the same behavior, (only difference I > >> can see is this says its FIDI while my one says its FTDI, possibly a t= ypo?) > >> > >> {root@prawn}#dmesg | grep uhub > >> uhub0: on usb0 > >> uhub0: 2 ports with 2 removable, self powered > >> uhub1: on usb1 > >> uhub1: 2 ports with 2 removable, self powered > >> uhub2: on usb2 > >> uhub2: 2 ports with 2 removable, self powered > >> uhub3: on usb3 > >> uhub3: 2 ports with 2 removable, self powered > >> uhub4: on usb4 > >> uhub4: 8 ports with 8 removable, self powered > >> umass0: >> 2.00/0.01, addr 2> on uhub4 > >> ums0: > >> on uhub2 > >> ucom0: on > >> uhub2 > >> > >> And for what its worth: > >> {root@prawn}#more /var/crash/info.14 > >> Dump header from device /dev/ad0s3b > >> Architecture: i386 > >> Architecture Version: 2 > >> Dump Length: 154411008B (147 MB) > >> Blocksize: 512 > >> Dumptime: Mon Mar 31 09:25:54 2008 > >> Hostname: prawn.unsane.co.uk > >> Magic: FreeBSD Kernel Dump > >> Version String: FreeBSD 7.0-STABLE #52: Tue Mar 25 13:45:50 GMT 2008 > >> toor@prawn.unsane.co.uk:/usr/local/obj/usr/src/sys/PRAWN7ULE > >> Panic String: page fault > >> Dump Parity: 1302845723 > >> Bounds: 14 > >> Dump Status: good > >> > >> Happy to provide more information but I'm not a programmer so you'll > >> probably have to ask me slowly and in words of one syllable ;) > >=20 > > I need two things: > > 1. The revision of the sys/kern/kern_conf.c file; in particular, > > I need to know whether you have rev. 1.208.2.1 or 1.208.2.2. > > 2. Regardless of the outcome of the question 1, please show the output > > of the "bt full" from the kgdb loaded with your kernel and crash > > dump. See > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/ke= rneldebug.html > > for details on how to obtain useful information from the crash dump. >=20 > 1) > {root@prawn}#grep kern_conf.c sys/kern/kern_conf.c > __FBSDID("$FreeBSD: src/sys/kern/kern_conf.c,v 1.208.2.2 2008/03/24 > 13:09:55 kib Exp $"); >=20 > 2) > [/usr/obj/usr/src/sys/PRAWN7ULE](11:07:33) > {root@prawn}#kgdb kernel.debug /var/crash/vmcore.14 > [GDB will not be able to debug user-mode threads: > /usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"] > GNU gdb 6.1.1 [FreeBSD] > Copyright 2004 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you = are > welcome to change it and/or distribute copies of it under certain > conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for detail= s. > This GDB was configured as "i386-marcel-freebsd". > There is no member named pathname. > (kgdb) bt full > #0 doadump () at pcpu.h:195 > No locals. > #1 0xc05ae391 in boot (howto=3D260) at /usr/src/sys/kern/kern_shutdown.c= :409 > _giantcnt =3D Variable "_giantcnt" is not available. > (kgdb) >=20 >=20 > This isnt what I was expecting from the article referenced. Would it be > helpful me to update to the latest stable then reproduce (assuming i > still can.) Compile the ddb into the kernel (instructions are provided at the same web page) and post the output of the console on the panic. --HuscSE0D68UGttcd Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iEYEARECAAYFAkfwyDoACgkQC3+MBN1Mb4h+fwCgvb/jQ53V4u8VbHjraS3aQ8kj OAwAoNRNpHDLT68tkCPn10nq/LsUCDqW =jOwG -----END PGP SIGNATURE----- --HuscSE0D68UGttcd-- From owner-freebsd-usb@FreeBSD.ORG Mon Mar 31 20:47:28 2008 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 51595106566C for ; Mon, 31 Mar 2008 20:47:28 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from falcon.cybervisiontech.com (falcon.cybervisiontech.com [217.20.163.9]) by mx1.freebsd.org (Postfix) with ESMTP id 06FF28FC15 for ; Mon, 31 Mar 2008 20:47:27 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from localhost (localhost [127.0.0.1]) by falcon.cybervisiontech.com (Postfix) with ESMTP id 188D6744004; Mon, 31 Mar 2008 23:47:26 +0300 (EEST) X-Virus-Scanned: Debian amavisd-new at falcon.cybervisiontech.com Received: from falcon.cybervisiontech.com ([127.0.0.1]) by localhost (falcon.cybervisiontech.com [127.0.0.1]) (amavisd-new, port 10027) with ESMTP id Ge6zVQBy19wy; Mon, 31 Mar 2008 23:47:25 +0300 (EEST) Received: from edge.pp.kiev.ua (edge.pp.kiev.ua [91.193.172.111]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by falcon.cybervisiontech.com (Postfix) with ESMTP id 79F35744003; Mon, 31 Mar 2008 23:47:25 +0300 (EEST) Message-ID: <47F14DD9.4040207@icyb.net.ua> Date: Mon, 31 Mar 2008 23:47:21 +0300 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.12 (X11/20080320) MIME-Version: 1.0 To: Marcin Cieslak , freebsd-usb@freebsd.org References: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Subject: Re: ucom: orphaned ttyUX ? 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, 31 Mar 2008 20:47:28 -0000 Marcin wrote: > Andriy Gapon wrote: >>> I believe that this is another example of a bad use of our device >>> cloning, but I can be very wrong here. > > What driver are you using to have ucom device there (uftdi, ubsa, etc.)? > Is this behavior easy to reproduce? This was palm/uppc-kmod module. I believe that uipaq is a replacement for that in recent versions of FreeBSD. I'll admit that I haven't tried too hard to reproduce this again. > Can you provide some more information about connected USB devices and > what exactly are you doing to reproduce the problem? I think that http://docs.FreeBSD.org/cgi/mid.cgi?47C7294B.6020306 has pretty complete description of it. I connected my WM5 device (in ActiveSync WinCE compatibility mode), then disconnected, the connected, then tried to run ppp over the serial link aka ttyU0. -- Andriy Gapon From owner-freebsd-usb@FreeBSD.ORG Tue Apr 1 05:27:10 2008 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 59B4C1065670 for ; Tue, 1 Apr 2008 05:27:10 +0000 (UTC) (envelope-from root@mmu.edu.my) Received: from staff.cyber.mmu.edu.my (staff.cyber.mmu.edu.my [203.106.62.12]) by mx1.freebsd.org (Postfix) with ESMTP id 721A98FC2B for ; Tue, 1 Apr 2008 05:27:08 +0000 (UTC) (envelope-from root@mmu.edu.my) Received: by staff.cyber.mmu.edu.my (Postfix, from userid 0) id BD0AF4D52B5; Tue, 1 Apr 2008 12:40:24 +0800 (MYT) Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by mmu.edu.my (Postfix) with ESMTP id C7FC055E493 for ; Thu, 27 Mar 2008 17:13:54 +0800 (MYT) Received: from hub.freebsd.org (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id A8CD115EDC6; Thu, 27 Mar 2008 09:12:48 +0000 (UTC) (envelope-from owner-freebsd-stable@freebsd.org) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id D0638106576A; Thu, 27 Mar 2008 09:12:47 +0000 (UTC) (envelope-from owner-freebsd-stable@freebsd.org) 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 1F22F106566B for ; Thu, 27 Mar 2008 09:12:38 +0000 (UTC) (envelope-from antik@bsd.ee) Received: from zzz.ee (kalah.zzz.ee [194.204.30.253]) by mx1.freebsd.org (Postfix) with ESMTP id 818E38FC17 for ; Thu, 27 Mar 2008 09:12:37 +0000 (UTC) (envelope-from antik@bsd.ee) Received: by zzz.ee (Postfix, from userid 3019) id 517CE27845F; Thu, 27 Mar 2008 10:54:14 +0200 (EET) X-Spam-Checker-Version: SpamAssassin on spamassassin.zzz.ee X-Spam-Level: X-Spam-Guessed-Language: en ca X-Spam-Status: No, score=-4.0 required=5.0 tests=ALL_TRUSTED,BAYES_50 X-Spam-Checker-URL: http://info.zzz.ee Received: from andrei.demo (adsl215.uninet.ee [194.204.62.215]) by zzz.ee (Postfix) with ESMTP id 5A2FB2783DE; Thu, 27 Mar 2008 10:54:04 +0200 (EET) From: Andrei Kolu To: freebsd-stable@freebsd.org Date: Thu, 27 Mar 2008 10:54:03 +0200 User-Agent: KMail/1.9.7 References: <200803251439.01506.antik@bsd.ee> In-Reply-To: <200803251439.01506.antik@bsd.ee> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200803271054.03647.antik@bsd.ee> X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Sender: owner-freebsd-stable@freebsd.org Errors-To: owner-freebsd-stable@freebsd.org Cc: freebsd-usb@freebsd.org Subject: Re: strange statistics about ohci with systat and top X-BeenThere: freebsd-usb@freebsd.org List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2008 05:27:10 -0000 On Tuesday 25 March 2008 14:39:01 Andrei Kolu wrote: > Anyone notice anything strange here? Why ohci (usb) got so huge number of > interrupts? Even if I have no usb devices connected to this box. > > 39.6%Sys =A037.9%Intr =A00.0%User =A00.0%Nice 22.5%Idle > > # systat -vm > > Interrupts > 101k total > 96514 ohci0 ohci > ata0 irq14 > 587 twa0 irq16 > em1 irq25 > 2000 cpu0: time > 2000 cpu1: time > > FreeBSD 7.0-STABLE-200803 #0: Mon Mar 10 18:53:59 UTC 2008 > > That irq problem was detected originally with ps/2 keyboard without any u= sb > device attached (dmesg info here is taken later). And I tried to use usb > flash drive but it was showing up like umass0 storage and was unable to > mount it normally (I can use it on 6.2, 6.3 and 7.0 versions just fine > though). Maybe something is wrong with freebsd kernel udev implementation- > I got twa device (that is 3ware sata raid controller) but my system > recognizes this raid as da0 disk.... > > How can I resolve this problem? By disabling USB in bios? > Board is Tyan S3870 > http://tyan.com/support_download_bios.aspx?model=3DB.GT20B3870 > Latest motherboard bios and and raid controller firmware applied. > > On same motherboard FreeBSD-s version 6.2, 6.3 and 7.0 (32 and 64 bit) ha= ng > during initial boot- only version that worked is latest stable 7. > > -------------------------------------------------------------------------= =2D- >--- # dmesg > Copyright (c) 1992-2008 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > =A0 =A0 =A0 =A0 The Regents of the University of California. All rights r= eserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 7.0-STABLE-200803 #0: Mon Mar 10 18:53:59 UTC 2008 > =A0 =A0 root@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC > Timecounter "i8254" frequency 1193182 Hz quality 0 > CPU: Dual Core AMD Opteron(tm) Processor 270 (1995.01-MHz K8-class CPU) > =A0 Origin =3D "AuthenticAMD" =A0Id =3D 0x20f12 =A0Stepping =3D 2 > =A0 > Features=3D0x178bfbffA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT> Features2=3D0x1 > =A0 AMD Features=3D0xe2500800 > =A0 AMD Features2=3D0x3 > =A0 Cores per package: 2 > usable memory =3D 2134601728 (2035 MB) > avail memory =A0=3D 2059890688 (1964 MB) > ACPI APIC Table: > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > =A0cpu0 (BSP): APIC ID: =A00 > =A0cpu1 (AP): APIC ID: =A01 > MADT: Forcing active-low polarity and level trigger for SCI > ioapic0 irqs 0-15 on motherboard > ioapic1 irqs 16-31 on motherboard > ioapic2 irqs 32-47 on motherboard > kbd1 at kbdmux0 > ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) > acpi0: on motherboard > acpi0: [ITHREAD] > acpi0: Power Button (fixed) > acpi0: Sleep Button (fixed) > acpi0: reservation of 0, a0000 (3) failed > acpi0: reservation of 100000, 7ff00000 (3) failed > Timecounter "ACPI-safe" frequency 3579545 Hz quality 850 > acpi_timer0: <32-bit timer at 3.579545MHz> port 0x508-0x50b on acpi0 > cpu0: on acpi0 > powernow0: on cpu0 > cpu1: on acpi0 > powernow1: on cpu1 > pcib0: port 0xcf8-0xcff on acpi0 > pci0: on pcib0 > pcib1: at device 1.0 on pci0 > pci1: on pcib1 > pcib2: at device 13.0 on pci1 > pci2: on pcib2 > 3ware device driver for 9000 series storage controllers, version: > 3.70.05.001 twa0: <3ware 9000 series Storage Controller> port 0xcc00-0xcc= 3f > mem 0xf4000000-0xf5ffffff,0xff3ff000-0xff3fffff irq 16 at device 3.0 on > pci2 twa0: [ITHREAD] > twa0: INFO: (0x15: 0x1300): Controller details:: Model 9550SX-4LP, 4 port= s, > Firmware FE9X 3.08.00.016, BIOS BE9X 3.08.00.004 > atapci0: port > 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf at device 2.1 on pci0 > ata0: on atapci0 > ata0: [ITHREAD] > ata1: on atapci0 > ata1: [ITHREAD] > isab0: at device 2.2 on pci0 > isa0: on isab0 > ohci0: port 0xe000-0xe0ff mem > 0xff6b8000-0xff6b8fff irq 10 at device 3.0 on pci0 > ohci0: [GIANT-LOCKED] > ohci0: [ITHREAD] > usb0: OHCI version 1.0, legacy support > usb0: SMM does not respond, resetting > usb0: on ohci0 > usb0: USB revision 1.0 > uhub0: <(0x1166) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb0 > uhub0: 2 ports with 2 removable, self powered > ohci1: port 0xe400-0xe4ff mem > 0xff6b9000-0xff6b9fff irq 10 at device 3.1 on pci0 > ohci1: [GIANT-LOCKED] > ohci1: [ITHREAD] > usb1: OHCI version 1.0, legacy support > usb1: SMM does not respond, resetting > usb1: on ohci1 > usb1: USB revision 1.0 > uhub1: <(0x1166) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb1 > uhub1: 2 ports with 2 removable, self powered > ehci0: port 0xe800-0xe8ff mem > 0xff6ba000-0xff6bafff irq 10 at device 3.2 on pci0 > ehci0: [GIANT-LOCKED] > ehci0: [ITHREAD] > usb2: EHCI version 1.0 > usb2: companion controllers, 2 ports each: usb0 usb1 > usb2: on ehci0 > usb2: USB revision 2.0 > uhub2: <(0x1166) EHCI root hub, class 9/0, rev 2.00/1.00, addr 1> on usb2 > uhub2: 4 ports with 4 removable, self powered > em0: port > 0xdc00-0xdc3f mem 0xff680000-0xff69ffff,0xff660000-0xff67ffff irq 24 at > device 4.0 on pci0 em0: Ethernet address: 00:e0:81:41:3e:5c > em0: [FILTER] > em1: port > 0xd880-0xd8bf mem 0xff620000-0xff63ffff,0xff600000-0xff61ffff irq 25 at > device 5.0 on pci0 em1: Ethernet address: 00:e0:81:41:3e:5d > em1: [FILTER] > vgapci0: port 0xec00-0xec7f mem > 0xf8000000-0xfbffffff,0xff6c0000-0xff6fffff at device 6.0 on pci0 > acpi_button0: on acpi0 > sio0: configured irq 4 not in bitmap of probed irqs 0 > sio0: port may not be enabled > sio0: configured irq 4 not in bitmap of probed irqs 0 > sio0: port may not be enabled > sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on > acpi0 sio0: type 16550A > sio0: [FILTER] > sio1: configured irq 3 not in bitmap of probed irqs 0 > sio1: port may not be enabled > sio1: configured irq 3 not in bitmap of probed irqs 0 > sio1: port may not be enabled > sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0 > sio1: type 16550A > sio1: [FILTER] > fdc0: port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 = on > acpi0 > fdc0: [FILTER] > orm0: at iomem 0xc0000-0xc7fff,0xc8000-0xc9fff on isa0 > atkbdc0: at port 0x60,0x64 on isa0 > atkbd0: irq 1 on atkbdc0 > kbd0 at atkbd0 > atkbd0: [GIANT-LOCKED] > atkbd0: [ITHREAD] > ppc0: cannot reserve I/O port range > sc0: at flags 0x100 on isa0 > sc0: VGA <16 virtual consoles, flags=3D0x300> > vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 > uhub3: on > uhub0 > uhub3: 4 ports with 4 removable, self powered > ukbd0: on uhub3 > kbd2 at ukbd0 > ums0: on uhub3 > ums0: 5 buttons and Z dir. > Timecounters tick every 1.000 msec > acd0: CDROM at ata0-slave UDMA33 > SMP: AP CPU #1 Launched! > da0 at twa0 bus 0 target 0 lun 0 > da0: Fixed Direct Access SCSI-5 device > da0: 100.000MB/s transfers > da0: 572184MB (1171832832 512 byte sectors: 255H 63S/T 72943C) > Trying to mount root from ufs:/dev/da0s1a > -------------------------------------------------------------------------= =2D- OK, I managed to fix this issue by commenting out OHCI from kernel. #device ohci # OHCI PCI->USB interface "systat -vm" shows now "31 ehci0 10" instead of "96514 ohci0 ohci". Affected systems are: Tyan S3870 and B3870 motherboards. _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" From owner-freebsd-usb@FreeBSD.ORG Tue Apr 1 06:13:04 2008 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 F3732106566B; Tue, 1 Apr 2008 06:13:03 +0000 (UTC) (envelope-from root@mmu.edu.my) Received: from staff.cyber.mmu.edu.my (staff.cyber.mmu.edu.my [203.106.62.12]) by mx1.freebsd.org (Postfix) with ESMTP id B5E2F8FC27; Tue, 1 Apr 2008 06:13:02 +0000 (UTC) (envelope-from root@mmu.edu.my) Received: by staff.cyber.mmu.edu.my (Postfix, from userid 0) id C76204D4B28; Tue, 1 Apr 2008 14:11:53 +0800 (MYT) Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by mmu.edu.my (Postfix) with ESMTP id 2C4B155E491 for ; Sun, 30 Mar 2008 06:21:43 +0800 (MYT) Received: from hub.freebsd.org (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 8C36B163A21; Sat, 29 Mar 2008 22:21:01 +0000 (UTC) (envelope-from owner-freebsd-stable@freebsd.org) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 0C8C6106568A; Sat, 29 Mar 2008 22:20:59 +0000 (UTC) (envelope-from owner-freebsd-stable@freebsd.org) 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 A75E3106567B for ; Sat, 29 Mar 2008 22:20:49 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id 9820C8FC17 for ; Sat, 29 Mar 2008 22:20:49 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id 856731CC060; Sat, 29 Mar 2008 15:20:49 -0700 (PDT) Date: Sat, 29 Mar 2008 15:20:49 -0700 From: Jeremy Chadwick To: Vince Message-ID: <20080329222049.GA80263@eos.sc1.parodius.com> References: <47EEBE78.5050506@unsane.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47EEBE78.5050506@unsane.co.uk> User-Agent: Mutt/1.5.17 (2007-11-01) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Sender: owner-freebsd-stable@freebsd.org Errors-To: owner-freebsd-stable@freebsd.org Cc: freebsd-stable@freebsd.org, freebsd-usb@freebsd.org Subject: Re: Panic with usb serial X-BeenThere: freebsd-usb@freebsd.org List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2008 06:13:04 -0000 On Sat, Mar 29, 2008 at 10:11:04PM +0000, Vince wrote: > Is it expected that removing a usb serial adapter while you have a > connection (eg tip) using it will panic a -stable system? I know it is > expected if you remove a mounted umass device so wanted to see if its known > behavior for serial before I file a pr. (adapter is converter, class 0/0, rev 1.10/4.00, addr 3>) > -stable version as of the 25th march, (may have existed before but the > first time I forgot to close tip before removing the device was on this > version.) I would expect that the problem is identical in the sense that with a connection established, you have an open file descriptor which is associated with a serial device that uses USB. So, yes, I would expect this behaviour based on the track record. Should it happen? The answer is no. File a PR? Also, I'd like to know what USB serial adapter you're using (brand, model, and a website of it if possible), for unrelated reasons. Thanks! -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" From owner-freebsd-usb@FreeBSD.ORG Tue Apr 1 06:13:24 2008 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 8B9C51065677; Tue, 1 Apr 2008 06:13:24 +0000 (UTC) (envelope-from root@mmu.edu.my) Received: from staff.cyber.mmu.edu.my (staff.cyber.mmu.edu.my [203.106.62.12]) by mx1.freebsd.org (Postfix) with ESMTP id 1AC098FC25; Tue, 1 Apr 2008 06:13:24 +0000 (UTC) (envelope-from root@mmu.edu.my) Received: by staff.cyber.mmu.edu.my (Postfix, from userid 0) id 3A3604D4B66; Tue, 1 Apr 2008 14:12:23 +0800 (MYT) Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by mmu.edu.my (Postfix) with ESMTP id 364AA55E4B2 for ; Sun, 30 Mar 2008 06:18:30 +0800 (MYT) Received: from hub.freebsd.org (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 53647157663; Sat, 29 Mar 2008 22:16:54 +0000 (UTC) (envelope-from owner-freebsd-stable@freebsd.org) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 32C1F10656DD; Sat, 29 Mar 2008 22:16:54 +0000 (UTC) (envelope-from owner-freebsd-stable@freebsd.org) 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 881B4106566B for ; Sat, 29 Mar 2008 22:16:43 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from unsane.co.uk (www.unsane.co.uk [85.233.185.162]) by mx1.freebsd.org (Postfix) with ESMTP id ECB208FC1B for ; Sat, 29 Mar 2008 22:16:42 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from crab.unsane.co.uk (crab.unsane.co.uk [10.0.0.111]) (authenticated bits=0) by unsane.co.uk (8.14.0/8.14.0) with ESMTP id m2TMFNNM029614 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 29 Mar 2008 22:15:23 GMT (envelope-from jhary@unsane.co.uk) Message-ID: <47EEBE78.5050506@unsane.co.uk> Date: Sat, 29 Mar 2008 22:11:04 +0000 From: Vince User-Agent: Thunderbird 2.0.0.12 (X11/20080313) MIME-Version: 1.0 To: freebsd-stable@freebsd.org, freebsd-usb@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Sender: owner-freebsd-stable@freebsd.org Errors-To: owner-freebsd-stable@freebsd.org Cc: Subject: Panic with usb serial X-BeenThere: freebsd-usb@freebsd.org List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2008 06:13:24 -0000 Hi all, Is it expected that removing a usb serial adapter while you have a connection (eg tip) using it will panic a -stable system? I know it is expected if you remove a mounted umass device so wanted to see if its known behavior for serial before I file a pr. (adapter is ) -stable version as of the 25th march, (may have existed before but the first time I forgot to close tip before removing the device was on this version.) cheer, Vince _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" From owner-freebsd-usb@FreeBSD.ORG Tue Apr 1 06:16:27 2008 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 E5CD7106564A; Tue, 1 Apr 2008 06:16:26 +0000 (UTC) (envelope-from root@mmu.edu.my) Received: from staff.cyber.mmu.edu.my (staff.cyber.mmu.edu.my [203.106.62.12]) by mx1.freebsd.org (Postfix) with ESMTP id 3DEA58FC14; Tue, 1 Apr 2008 06:16:26 +0000 (UTC) (envelope-from root@mmu.edu.my) Received: by staff.cyber.mmu.edu.my (Postfix, from userid 0) id AF9274D4EC6; Tue, 1 Apr 2008 14:15:30 +0800 (MYT) Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by mmu.edu.my (Postfix) with ESMTP id 622A955E491 for ; Sun, 30 Mar 2008 09:18:05 +0800 (MYT) Received: from hub.freebsd.org (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 5190D160926; Sun, 30 Mar 2008 01:17:27 +0000 (UTC) (envelope-from owner-freebsd-stable@freebsd.org) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 73B281065768; Sun, 30 Mar 2008 01:17:24 +0000 (UTC) (envelope-from owner-freebsd-stable@freebsd.org) 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 27C29106566B; Sun, 30 Mar 2008 01:17:14 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id E056E8FC15; Sun, 30 Mar 2008 01:17:13 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m2U1GPSL025199; Sat, 29 Mar 2008 19:16:25 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sat, 29 Mar 2008 19:17:10 -0600 (MDT) Message-Id: <20080329.191710.1169638035.imp@bsdimp.com> To: koitsu@freebsd.org From: "M. Warner Losh" In-Reply-To: <20080329222049.GA80263@eos.sc1.parodius.com> References: <47EEBE78.5050506@unsane.co.uk> <20080329222049.GA80263@eos.sc1.parodius.com> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Sender: owner-freebsd-stable@freebsd.org Errors-To: owner-freebsd-stable@freebsd.org Cc: jhary@unsane.co.uk, freebsd-stable@freebsd.org, freebsd-usb@freebsd.org Subject: Re: Panic with usb serial X-BeenThere: freebsd-usb@freebsd.org List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2008 06:16:27 -0000 In message: <20080329222049.GA80263@eos.sc1.parodius.com> Jeremy Chadwick writes: : On Sat, Mar 29, 2008 at 10:11:04PM +0000, Vince wrote: : > Is it expected that removing a usb serial adapter while you have a : > connection (eg tip) using it will panic a -stable system? I know it is : > expected if you remove a mounted umass device so wanted to see if its known : > behavior for serial before I file a pr. (adapter is converter, class 0/0, rev 1.10/4.00, addr 3>) : > -stable version as of the 25th march, (may have existed before but the : > first time I forgot to close tip before removing the device was on this : > version.) : : I would expect that the problem is identical in the sense that with a : connection established, you have an open file descriptor which is : associated with a serial device that uses USB. : : So, yes, I would expect this behaviour based on the track record. : Should it happen? The answer is no. File a PR? : : Also, I'd like to know what USB serial adapter you're using (brand, : model, and a website of it if possible), for unrelated reasons. Thanks! That's odd, because I use an FTDI based serial device all the time for hacking on embedded systems. The problem that I have is 100% CPU usage on a tip process until I kill it. Warner _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" From owner-freebsd-usb@FreeBSD.ORG Tue Apr 1 06:19:54 2008 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 856951065678; Tue, 1 Apr 2008 06:19:54 +0000 (UTC) (envelope-from root@mmu.edu.my) Received: from staff.cyber.mmu.edu.my (staff.cyber.mmu.edu.my [203.106.62.12]) by mx1.freebsd.org (Postfix) with ESMTP id C8DA68FC36; Tue, 1 Apr 2008 06:19:53 +0000 (UTC) (envelope-from root@mmu.edu.my) Received: by staff.cyber.mmu.edu.my (Postfix, from userid 0) id 59C824D4C97; Tue, 1 Apr 2008 14:18:48 +0800 (MYT) Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by mmu.edu.my (Postfix) with ESMTP id BC9E155E4B2 for ; Sun, 30 Mar 2008 07:45:16 +0800 (MYT) Received: from hub.freebsd.org (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 42AB1160FBA; Sat, 29 Mar 2008 23:44:34 +0000 (UTC) (envelope-from owner-freebsd-stable@freebsd.org) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 4904B106569A; Sat, 29 Mar 2008 23:44:34 +0000 (UTC) (envelope-from owner-freebsd-stable@freebsd.org) 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 337DE106564A; Sat, 29 Mar 2008 23:44:24 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from unsane.co.uk (unknown [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id 040518FC15; Sat, 29 Mar 2008 23:44:22 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from crab.unsane.co.uk (crab.unsane.co.uk [10.0.0.111]) (authenticated bits=0) by unsane.co.uk (8.14.0/8.14.0) with ESMTP id m2TNiHe9030897 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 29 Mar 2008 23:44:17 GMT (envelope-from jhary@unsane.co.uk) Message-ID: <47EED34E.2080400@unsane.co.uk> Date: Sat, 29 Mar 2008 23:39:58 +0000 From: Vince User-Agent: Thunderbird 2.0.0.12 (X11/20080313) MIME-Version: 1.0 To: Jeremy Chadwick References: <47EEBE78.5050506@unsane.co.uk> <20080329222049.GA80263@eos.sc1.parodius.com> In-Reply-To: <20080329222049.GA80263@eos.sc1.parodius.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Sender: owner-freebsd-stable@freebsd.org Errors-To: owner-freebsd-stable@freebsd.org Cc: freebsd-stable@freebsd.org, freebsd-usb@freebsd.org Subject: Re: Panic with usb serial X-BeenThere: freebsd-usb@freebsd.org List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2008 06:19:54 -0000 Jeremy Chadwick wrote: > On Sat, Mar 29, 2008 at 10:11:04PM +0000, Vince wrote: >> Is it expected that removing a usb serial adapter while you have a >> connection (eg tip) using it will panic a -stable system? I know it is >> expected if you remove a mounted umass device so wanted to see if its known >> behavior for serial before I file a pr. (adapter is > converter, class 0/0, rev 1.10/4.00, addr 3>) >> -stable version as of the 25th march, (may have existed before but the >> first time I forgot to close tip before removing the device was on this >> version.) > > I would expect that the problem is identical in the sense that with a > connection established, you have an open file descriptor which is > associated with a serial device that uses USB. > > So, yes, I would expect this behaviour based on the track record. > Should it happen? The answer is no. File a PR? > > Also, I'd like to know what USB serial adapter you're using (brand, > model, and a website of it if possible), for unrelated reasons. Thanks! > About what I was expecting but just thought I'd check. Will file a PR tomorrow when my wife isnt browsing facebook on that laptop :) Regarding the USB serial adapter, I was supplied it though work a while back. I believe from my rather fuzzy memory we got it though these guys http://www.usbnow.co.uk/Cables-USB_to_RS232_Cables/c1_23/index.html Although I wouldn't swear to it. I'll have an ask if anyone remembers on monday. Vince _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" From owner-freebsd-usb@FreeBSD.ORG Tue Apr 1 06:19:56 2008 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 8ECB0106564A; Tue, 1 Apr 2008 06:19:56 +0000 (UTC) (envelope-from root@mmu.edu.my) Received: from staff.cyber.mmu.edu.my (staff.cyber.mmu.edu.my [203.106.62.12]) by mx1.freebsd.org (Postfix) with ESMTP id E7FCC8FC27; Tue, 1 Apr 2008 06:19:54 +0000 (UTC) (envelope-from root@mmu.edu.my) Received: by staff.cyber.mmu.edu.my (Postfix, from userid 0) id 64A5A4D4C9C; Tue, 1 Apr 2008 14:18:50 +0800 (MYT) Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by mmu.edu.my (Postfix) with ESMTP id BDB4155E4B2 for ; Sun, 30 Mar 2008 12:57:47 +0800 (MYT) Received: from hub.freebsd.org (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id CDCE1156218; Sun, 30 Mar 2008 04:55:55 +0000 (UTC) (envelope-from owner-freebsd-stable@freebsd.org) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 5A48110656F1; Sun, 30 Mar 2008 04:55:55 +0000 (UTC) (envelope-from owner-freebsd-stable@freebsd.org) 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 52B6B106564A for ; Sun, 30 Mar 2008 04:55:43 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from relay03.kiev.sovam.com (relay03.kiev.sovam.com [62.64.120.201]) by mx1.freebsd.org (Postfix) with ESMTP id E6F9C8FC1B for ; Sun, 30 Mar 2008 04:55:42 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from [212.82.216.226] (helo=skuns.kiev.zoral.com.ua) by relay03.kiev.sovam.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1Jfpa0-000Pah-Es; Sun, 30 Mar 2008 07:55:40 +0300 Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by skuns.kiev.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m2U4tmvj020449 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 30 Mar 2008 07:55:48 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m2U4tbDi040304; Sun, 30 Mar 2008 07:55:37 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2/Submit) id m2U4tbkP040303; Sun, 30 Mar 2008 07:55:37 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Sun, 30 Mar 2008 07:55:37 +0300 From: Kostik Belousov To: Vince Message-ID: <20080330045537.GB21209@deviant.kiev.zoral.com.ua> References: <47EEBE78.5050506@unsane.co.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="FCuugMFkClbJLl1L" Content-Disposition: inline In-Reply-To: <47EEBE78.5050506@unsane.co.uk> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.4 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on skuns.kiev.zoral.com.ua X-Scanner-Signature: 7ffaa6bc246e67c9b1a22e0c753f4a43 X-DrWeb-checked: yes X-SpamTest-Envelope-From: kostikbel@gmail.com X-SpamTest-Group-ID: 00000000 X-SpamTest-Header: Not Detected X-SpamTest-Info: Profiles 2516 [Mar 28 2008] X-SpamTest-Info: helo_type=3 X-SpamTest-Info: {TO: local part of email appears in body} X-SpamTest-Method: none X-SpamTest-Rate: 5 X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0278], KAS30/Release X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Sender: owner-freebsd-stable@freebsd.org Errors-To: owner-freebsd-stable@freebsd.org Cc: freebsd-stable@freebsd.org, freebsd-usb@freebsd.org Subject: Re: Panic with usb serial X-BeenThere: freebsd-usb@freebsd.org List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2008 06:19:56 -0000 --FCuugMFkClbJLl1L Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Mar 29, 2008 at 10:11:04PM +0000, Vince wrote: > Hi all, > Is it expected that removing a usb serial adapter while you have a=20 > connection (eg tip) using it will panic a -stable system? I know it is=20 > expected if you remove a mounted umass device so wanted to see if its=20 > known behavior for serial before I file a pr. (adapter is serial converter, class 0/0, rev 1.10/4.00, addr 3>) > -stable version as of the 25th march, (may have existed before but the=20 > first time I forgot to close tip before removing the device was on this= =20 > version.) What is the exact version number of your system ? There are two supported stable branch now. --FCuugMFkClbJLl1L Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iEYEARECAAYFAkfvHUgACgkQC3+MBN1Mb4jOlwCg0LP4uuC+Q1H3qIyWsS+THUsw hFcAoI2ENdDfDQ24KKZG0lzmapDyTeYl =9Ki6 -----END PGP SIGNATURE----- --FCuugMFkClbJLl1L-- From owner-freebsd-usb@FreeBSD.ORG Tue Apr 1 08:55:23 2008 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 EBB8E106564A; Tue, 1 Apr 2008 08:55:22 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from unsane.co.uk (unknown [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id 5D4798FC13; Tue, 1 Apr 2008 08:55:22 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from prawn.unsane.co.uk (150.117-84-212.staticip.namesco.net [212.84.117.150]) (authenticated bits=0) by unsane.co.uk (8.14.0/8.14.0) with ESMTP id m318tB1b085776 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 1 Apr 2008 09:55:12 +0100 (BST) (envelope-from jhary@unsane.co.uk) Message-ID: <47F1F877.4010008@unsane.co.uk> Date: Tue, 01 Apr 2008 09:55:19 +0100 From: Vince Hoffman User-Agent: Thunderbird 2.0.0.12 (X11/20080327) MIME-Version: 1.0 To: Kostik Belousov References: <47EEBE78.5050506@unsane.co.uk> <20080329222049.GA80263@eos.sc1.parodius.com> <47EED34E.2080400@unsane.co.uk> <47EFCF67.9040601@system.pl> <47F0A577.90800@unsane.co.uk> <20080331092035.GH21209@deviant.kiev.zoral.com.ua> <47F0C75B.9040000@unsane.co.uk> <20080331111714.GI21209@deviant.kiev.zoral.com.ua> In-Reply-To: <20080331111714.GI21209@deviant.kiev.zoral.com.ua> X-Enigmail-Version: 0.95.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Marcin Cieslak , freebsd-stable@freebsd.org, freebsd-usb@freebsd.org Subject: Re: Panic with usb serial 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: Tue, 01 Apr 2008 08:55:23 -0000 Kostik Belousov wrote: > On Mon, Mar 31, 2008 at 12:13:31PM +0100, Vince Hoffman wrote: >> Kostik Belousov wrote: > Compile the ddb into the kernel (instructions are provided at the same > web page) and post the output of the console on the panic I tried this but other than the fact I can drop into ddb and step though stuff I'm not sure what I can do with it. Since I cant (obviously) get a serial console on my laptop I have done it the other way and taken a picture of the console on panic. When I have more time I'll carry on reading up on ddb but I think I have a steep learning curve since my previous looks at programing stopped at 'hello world':) Panic console at: http://unsane.co.uk/~jhary/freebsd/IMAGE_119.jpg Vince From owner-freebsd-usb@FreeBSD.ORG Tue Apr 1 09:40:03 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 03267106566C for ; Tue, 1 Apr 2008 09:40:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id CF27A8FC35 for ; Tue, 1 Apr 2008 09:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m319e2OE015441 for ; Tue, 1 Apr 2008 09:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m319e2cF015437; Tue, 1 Apr 2008 09:40:02 GMT (envelope-from gnats) Date: Tue, 1 Apr 2008 09:40:02 GMT Message-Id: <200804010940.m319e2cF015437@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Vince Hoffman Cc: Subject: Re: usb/122287: Removal of usb serial Device with session (eg tip) attached panics system X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Vince Hoffman List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2008 09:40:03 -0000 The following reply was made to PR usb/122287; it has been noted by GNATS. From: Vince Hoffman To: bug-followup@FreeBSD.org, jhary@unsane.co.uk Cc: Subject: Re: usb/122287: Removal of usb serial Device with session (eg tip) attached panics system Date: Tue, 01 Apr 2008 10:30:56 +0100 I have put an image of the console panic at http://unsane.co.uk/~jhary/freebsd/IMAGE_119.jpg From owner-freebsd-usb@FreeBSD.ORG Tue Apr 1 09:49:46 2008 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 46D471065673; Tue, 1 Apr 2008 09:49:46 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from relay01.kiev.sovam.com (relay01.kiev.sovam.com [62.64.120.200]) by mx1.freebsd.org (Postfix) with ESMTP id C81888FC2F; Tue, 1 Apr 2008 09:49:45 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from [212.82.216.226] (helo=skuns.kiev.zoral.com.ua) by relay01.kiev.sovam.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1Jgd7d-0008w0-RY; Tue, 01 Apr 2008 12:49:44 +0300 Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by skuns.kiev.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m319nkLN019909 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 1 Apr 2008 12:49:46 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m319nZIU007598; Tue, 1 Apr 2008 12:49:35 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2/Submit) id m319nZW8007581; Tue, 1 Apr 2008 12:49:35 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 1 Apr 2008 12:49:35 +0300 From: Kostik Belousov To: Vince Hoffman Message-ID: <20080401094935.GQ21209@deviant.kiev.zoral.com.ua> References: <47EEBE78.5050506@unsane.co.uk> <20080329222049.GA80263@eos.sc1.parodius.com> <47EED34E.2080400@unsane.co.uk> <47EFCF67.9040601@system.pl> <47F0A577.90800@unsane.co.uk> <20080331092035.GH21209@deviant.kiev.zoral.com.ua> <47F0C75B.9040000@unsane.co.uk> <20080331111714.GI21209@deviant.kiev.zoral.com.ua> <47F1F877.4010008@unsane.co.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="1BKOZKwX7DAU5odC" Content-Disposition: inline In-Reply-To: <47F1F877.4010008@unsane.co.uk> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.4 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on skuns.kiev.zoral.com.ua X-Scanner-Signature: cb456512e35bc39d01a349a068426185 X-DrWeb-checked: yes X-SpamTest-Envelope-From: kostikbel@gmail.com X-SpamTest-Group-ID: 00000000 X-SpamTest-Info: Profiles 2534 [Apr 01 2008] X-SpamTest-Info: helo_type=3 X-SpamTest-Info: {received from trusted relay: not dialup} X-SpamTest-Method: none X-SpamTest-Method: Local Lists X-SpamTest-Rate: 0 X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0255], KAS30/Release Cc: Marcin Cieslak , freebsd-stable@freebsd.org, freebsd-usb@freebsd.org Subject: Re: Panic with usb serial 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: Tue, 01 Apr 2008 09:49:46 -0000 --1BKOZKwX7DAU5odC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 01, 2008 at 09:55:19AM +0100, Vince Hoffman wrote: > Kostik Belousov wrote: > > On Mon, Mar 31, 2008 at 12:13:31PM +0100, Vince Hoffman wrote: > >> Kostik Belousov wrote: >=20 > > Compile the ddb into the kernel (instructions are provided at the same > > web page) and post the output of the console on the panic >=20 > I tried this but other than the fact I can drop into ddb and step though > stuff I'm not sure what I can do with it. Since I cant (obviously) get a > serial console on my laptop I have done it the other way and taken a > picture of the console on panic. When I have more time I'll carry on > reading up on ddb but I think I have a steep learning curve since my > previous looks at programing stopped at 'hello world':) > Panic console at: > http://unsane.co.uk/~jhary/freebsd/IMAGE_119.jpg Thanks, this is enough. Two chunks were missed from the rev. 1.210. Please, try the patch below. diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c index 843498e..7e6e048 100644 --- a/sys/kern/kern_conf.c +++ b/sys/kern/kern_conf.c @@ -402,8 +402,7 @@ giant_ioctl(struct cdev *dev, u_long cmd, caddr_t data,= int fflag, struct thread if (dsw =3D=3D NULL) return (ENXIO); mtx_lock(&Giant); - retval =3D dev->si_devsw->d_gianttrick-> - d_ioctl(dev, cmd, data, fflag, td); + retval =3D dsw->d_gianttrick->d_ioctl(dev, cmd, data, fflag, td); mtx_unlock(&Giant); dev_relthread(dev); return (retval); @@ -419,8 +418,7 @@ giant_read(struct cdev *dev, struct uio *uio, int iofla= g) if (dsw =3D=3D NULL) return (ENXIO); mtx_lock(&Giant); - retval =3D dev->si_devsw->d_gianttrick-> - d_read(dev, uio, ioflag); + retval =3D dsw->d_gianttrick->d_read(dev, uio, ioflag); mtx_unlock(&Giant); dev_relthread(dev); return (retval); --1BKOZKwX7DAU5odC Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iEYEARECAAYFAkfyBS4ACgkQC3+MBN1Mb4hePQCeLZGSsY8UBovIU2XVKtvbs4qR NesAniEOYKEIsuqZtV9qTBJrMvqZEbW2 =ONFL -----END PGP SIGNATURE----- --1BKOZKwX7DAU5odC-- From owner-freebsd-usb@FreeBSD.ORG Tue Apr 1 17:59:08 2008 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 0B08A106567A; Tue, 1 Apr 2008 17:59:08 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id BD2278FC22; Tue, 1 Apr 2008 17:59:07 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m31Huo2r090534; Tue, 1 Apr 2008 11:56:50 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 01 Apr 2008 11:57:37 -0600 (MDT) Message-Id: <20080401.115737.-1350498397.imp@bsdimp.com> To: koitsu@freebsd.org From: "M. Warner Losh" In-Reply-To: <20080329.191710.1169638035.imp@bsdimp.com> References: <47EEBE78.5050506@unsane.co.uk> <20080329222049.GA80263@eos.sc1.parodius.com> <20080329.191710.1169638035.imp@bsdimp.com> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: jhary@unsane.co.uk, freebsd-stable@freebsd.org, freebsd-usb@freebsd.org Subject: Re: Panic with usb serial 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: Tue, 01 Apr 2008 17:59:08 -0000 In message: <20080329.191710.1169638035.imp@bsdimp.com> "M. Warner Losh" writes: : In message: <20080329222049.GA80263@eos.sc1.parodius.com> : Jeremy Chadwick writes: : : On Sat, Mar 29, 2008 at 10:11:04PM +0000, Vince wrote: : : > Is it expected that removing a usb serial adapter while you have a : : > connection (eg tip) using it will panic a -stable system? I know it is : : > expected if you remove a mounted umass device so wanted to see if its known : : > behavior for serial before I file a pr. (adapter is converter, class 0/0, rev 1.10/4.00, addr 3>) : : > -stable version as of the 25th march, (may have existed before but the : : > first time I forgot to close tip before removing the device was on this : : > version.) : : : : I would expect that the problem is identical in the sense that with a : : connection established, you have an open file descriptor which is : : associated with a serial device that uses USB. : : : : So, yes, I would expect this behaviour based on the track record. : : Should it happen? The answer is no. File a PR? : : : : Also, I'd like to know what USB serial adapter you're using (brand, : : model, and a website of it if possible), for unrelated reasons. Thanks! : : That's odd, because I use an FTDI based serial device all the time for : hacking on embedded systems. The problem that I have is 100% CPU : usage on a tip process until I kill it. Actually, the reason for this is that I fixed a bug that gave me panics... During the review process, it was pointed out that others had better changes. These have been included in -current, but I don't think have been merged back to RELENG_7 yet. They aren't in 7.0. warner From owner-freebsd-usb@FreeBSD.ORG Tue Apr 1 23:49:33 2008 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 5FB00106566B for ; Tue, 1 Apr 2008 23:49:33 +0000 (UTC) (envelope-from bahamasfranks@gmail.com) Received: from hs-out-0708.google.com (hs-out-0708.google.com [64.233.178.245]) by mx1.freebsd.org (Postfix) with ESMTP id 1D1A98FC13 for ; Tue, 1 Apr 2008 23:49:32 +0000 (UTC) (envelope-from bahamasfranks@gmail.com) Received: by hs-out-0708.google.com with SMTP id m63so2016586hsc.11 for ; Tue, 01 Apr 2008 16:49:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; bh=j6s6fe0XIUQIIz39uDuAEONOOu1OFV9W/qdtecbwmd4=; b=fbqInR9gMOVt7ffUicLjhl33y4HQynvxmNto58PV16KjgaRIZE50N1dovMDqLKq5b/+/pIddYesRtGtwaIk3H2E9Yafhrso3qtT4/5cRD/2wt8THSlh0lD9KOn8i8fG6tPubYi/Dnr2mtkDiAuvsj2W50Fv1vmHa8bZP9zA0hh8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:reply-to:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=YtFf/61Dja3ODijAcNs9dn/oAts7iYp/vEVB9pCH381NV1/YW8CRTD6Y4PN3XOvK7SePO9TZquFwULgQUizrCoPbtc/bEaKunRcLXTlUPBxppF/PBs5OSLM+eSrl+F0bvbAT1qJBamyvs4bxKqXQ+oqz1S0OFfK8xxIiXHlBRvI= Received: by 10.100.93.12 with SMTP id q12mr20755047anb.34.1207092103440; Tue, 01 Apr 2008 16:21:43 -0700 (PDT) Received: by 10.100.253.13 with HTTP; Tue, 1 Apr 2008 16:21:43 -0700 (PDT) Message-ID: <539c60b90804011621u10b040fifb1fa51093e1393f@mail.gmail.com> Date: Tue, 1 Apr 2008 16:21:43 -0700 From: "Steve Franks" Sender: bahamasfranks@gmail.com To: freebsd-usb@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: 359d4c0de6c47689 Subject: help porting linux fxload app (#include ) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: stevefranks@ieee.org List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2008 23:49:33 -0000 Hi, I have a need for fxload. I think I've narrowed the issues down to the following (namely USBDEVFS_CONTROL) , so if someone could give me a leg up on that, I'd be grateful. FreeBSD includes a predecessor "EZload", but I don't think it works with recent devices as the hardware technology has been sold to another company (cypress)... Thanks, Steve # include static inline int ctrl_msg ( int device, unsigned char requestType, unsigned char request, unsigned short value, unsigned short index, unsigned char *data, size_t length ) { struct usbdevfs_ctrltransfer ctrl; if (length > USHRT_MAX) { fputs ("length too big", stderr); return -EINVAL; } /* 8 bytes SETUP */ ctrl.bRequestType = requestType; ctrl.bRequest = request; ctrl.wValue = value; ctrl.wLength = (unsigned short) length; ctrl.wIndex = index; /* "length" bytes DATA */ ctrl.data = data; ctrl.timeout = 10000; return ioctl (device, USBDEVFS_CONTROL, &ctrl); } From owner-freebsd-usb@FreeBSD.ORG Wed Apr 2 09:50:02 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CEB40106567B for ; Wed, 2 Apr 2008 09:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id BCEE78FC41 for ; Wed, 2 Apr 2008 09:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m329o2bp037009 for ; Wed, 2 Apr 2008 09:50:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m329o200037008; Wed, 2 Apr 2008 09:50:02 GMT (envelope-from gnats) Date: Wed, 2 Apr 2008 09:50:02 GMT Message-Id: <200804020950.m329o200037008@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Vince Hoffman Cc: Subject: Re: usb/122287: Removal of usb serial Device with session (eg tip) attached panics system X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Vince Hoffman List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Apr 2008 09:50:02 -0000 The following reply was made to PR usb/122287; it has been noted by GNATS. From: Vince Hoffman To: bug-followup@FreeBSD.org, jhary@unsane.co.uk Cc: Subject: Re: usb/122287: Removal of usb serial Device with session (eg tip) attached panics system Date: Wed, 02 Apr 2008 10:49:49 +0100 A Patch that fixes this was supplied by Kostik Belousov diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c index 843498e..7e6e048 100644 --- a/sys/kern/kern_conf.c +++ b/sys/kern/kern_conf.c @@ -402,8 +402,7 @@ giant_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int fflag, struct thread if (dsw == NULL) return (ENXIO); mtx_lock(&Giant); - retval = dev->si_devsw->d_gianttrick-> - d_ioctl(dev, cmd, data, fflag, td); + retval = dsw->d_gianttrick->d_ioctl(dev, cmd, data, fflag, td); mtx_unlock(&Giant); dev_relthread(dev); return (retval); @@ -419,8 +418,7 @@ giant_read(struct cdev *dev, struct uio *uio, int ioflag) if (dsw == NULL) return (ENXIO); mtx_lock(&Giant); - retval = dev->si_devsw->d_gianttrick-> - d_read(dev, uio, ioflag); + retval = dsw->d_gianttrick->d_read(dev, uio, ioflag); mtx_unlock(&Giant); dev_relthread(dev); return (retval); Its a little spammy on the console but stops the panic Apr 2 10:36:30 prawn kernel: ucom0: on uhub2 Apr 2 10:36:33 prawn login: ROOT LOGIN (toor) ON ttyv0 Apr 2 10:36:56 prawn kernel: ucom0: ucomreadcb: IOERROR Apr 2 10:36:56 prawn kernel: ucom0: at uhub2 port 1 (addr 3) disconnected Apr 2 10:36:57 prawn kernel: Still 4294967295 threads in ttyU0 Apr 2 10:37:16 prawn last message repeated 188 times Apr 2 10:37:16 prawn login: ROOT LOGIN (toor) ON ttyv1 Apr 2 10:37:16 prawn kernel: Still 4294967295 threads in ttyU0 Apr 2 10:37:47 prawn last message repeated 303 times Apr 2 10:37:55 prawn last message repeated 85 times From owner-freebsd-usb@FreeBSD.ORG Wed Apr 2 09:50:44 2008 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 8BA9B1065672; Wed, 2 Apr 2008 09:50:44 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from unsane.co.uk (unknown [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id F06998FC21; Wed, 2 Apr 2008 09:50:43 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from prawn.unsane.co.uk (150.117-84-212.staticip.namesco.net [212.84.117.150]) (authenticated bits=0) by unsane.co.uk (8.14.0/8.14.0) with ESMTP id m329oVCx006611 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 2 Apr 2008 10:50:32 +0100 (BST) (envelope-from jhary@unsane.co.uk) Message-ID: <47F356EF.8040607@unsane.co.uk> Date: Wed, 02 Apr 2008 10:50:39 +0100 From: Vince Hoffman User-Agent: Thunderbird 2.0.0.12 (X11/20080327) MIME-Version: 1.0 To: Kostik Belousov References: <47EEBE78.5050506@unsane.co.uk> <20080329222049.GA80263@eos.sc1.parodius.com> <47EED34E.2080400@unsane.co.uk> <47EFCF67.9040601@system.pl> <47F0A577.90800@unsane.co.uk> <20080331092035.GH21209@deviant.kiev.zoral.com.ua> <47F0C75B.9040000@unsane.co.uk> <20080331111714.GI21209@deviant.kiev.zoral.com.ua> <47F1F877.4010008@unsane.co.uk> <20080401094935.GQ21209@deviant.kiev.zoral.com.ua> In-Reply-To: <20080401094935.GQ21209@deviant.kiev.zoral.com.ua> X-Enigmail-Version: 0.95.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Marcin Cieslak , freebsd-stable@freebsd.org, freebsd-usb@freebsd.org Subject: Re: Panic with usb serial 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: Wed, 02 Apr 2008 09:50:44 -0000 Kostik Belousov wrote: > On Tue, Apr 01, 2008 at 09:55:19AM +0100, Vince Hoffman wrote: >> Kostik Belousov wrote: >>> On Mon, Mar 31, 2008 at 12:13:31PM +0100, Vince Hoffman wrote: >>>> Kostik Belousov wrote: >>> Compile the ddb into the kernel (instructions are provided at the same >>> web page) and post the output of the console on the panic >> I tried this but other than the fact I can drop into ddb and step though >> stuff I'm not sure what I can do with it. Since I cant (obviously) get a >> serial console on my laptop I have done it the other way and taken a >> picture of the console on panic. When I have more time I'll carry on >> reading up on ddb but I think I have a steep learning curve since my >> previous looks at programing stopped at 'hello world':) >> Panic console at: >> http://unsane.co.uk/~jhary/freebsd/IMAGE_119.jpg > > Thanks, this is enough. Two chunks were missed from the rev. 1.210. > Please, try the patch below. > > diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c > index 843498e..7e6e048 100644 > --- a/sys/kern/kern_conf.c > +++ b/sys/kern/kern_conf.c > @@ -402,8 +402,7 @@ giant_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int fflag, struct thread > if (dsw == NULL) > return (ENXIO); > mtx_lock(&Giant); > - retval = dev->si_devsw->d_gianttrick-> > - d_ioctl(dev, cmd, data, fflag, td); > + retval = dsw->d_gianttrick->d_ioctl(dev, cmd, data, fflag, td); > mtx_unlock(&Giant); > dev_relthread(dev); > return (retval); > @@ -419,8 +418,7 @@ giant_read(struct cdev *dev, struct uio *uio, int ioflag) > if (dsw == NULL) > return (ENXIO); > mtx_lock(&Giant); > - retval = dev->si_devsw->d_gianttrick-> > - d_read(dev, uio, ioflag); > + retval = dsw->d_gianttrick->d_read(dev, uio, ioflag); > mtx_unlock(&Giant); > dev_relthread(dev); > return (retval); Hi Kostik, Yes this stops the panic. I do still get the console spammed with informational messages Apr 2 10:36:30 prawn kernel: ucom0: on uhub2 Apr 2 10:36:33 prawn login: ROOT LOGIN (toor) ON ttyv0 Apr 2 10:36:56 prawn kernel: ucom0: ucomreadcb: IOERROR Apr 2 10:36:56 prawn kernel: ucom0: at uhub2 port 1 (addr 3) disconnected Apr 2 10:36:57 prawn kernel: Still 4294967295 threads in ttyU0 Apr 2 10:37:16 prawn last message repeated 188 times Apr 2 10:37:16 prawn login: ROOT LOGIN (toor) ON ttyv1 Apr 2 10:37:16 prawn kernel: Still 4294967295 threads in ttyU0 Apr 2 10:37:47 prawn last message repeated 303 times Apr 2 10:37:55 prawn last message repeated 85 times but I can live with that. I had opened PR usb/122287 for this, and I have updated this with the relevent information from this thread. Thanks, Vince From owner-freebsd-usb@FreeBSD.ORG Wed Apr 2 10:02:29 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4BD79106564A; Wed, 2 Apr 2008 10:02:29 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 21F8F8FC30; Wed, 2 Apr 2008 10:02:29 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from freefall.freebsd.org (kib@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m32A2TYP037429; Wed, 2 Apr 2008 10:02:29 GMT (envelope-from kib@freefall.freebsd.org) Received: (from kib@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m32A2Sm7037425; Wed, 2 Apr 2008 10:02:29 GMT (envelope-from kib) Date: Wed, 2 Apr 2008 10:02:29 GMT Message-Id: <200804021002.m32A2Sm7037425@freefall.freebsd.org> To: kib@FreeBSD.org, freebsd-usb@FreeBSD.org, kib@FreeBSD.org From: kib@FreeBSD.org Cc: Subject: Re: usb/122287: Removal of usb serial Device with session (eg tip) attached panics system 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: Wed, 02 Apr 2008 10:02:29 -0000 Synopsis: Removal of usb serial Device with session (eg tip) attached panics system Responsible-Changed-From-To: freebsd-usb->kib Responsible-Changed-By: kib Responsible-Changed-When: Wed Apr 2 10:00:04 UTC 2008 Responsible-Changed-Why: Take. http://www.freebsd.org/cgi/query-pr.cgi?pr=122287 From owner-freebsd-usb@FreeBSD.ORG Wed Apr 2 11:16:53 2008 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 8A4FC106566B; Wed, 2 Apr 2008 11:16:53 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from relay03.kiev.sovam.com (relay03.kiev.sovam.com [62.64.120.201]) by mx1.freebsd.org (Postfix) with ESMTP id 16E798FC23; Wed, 2 Apr 2008 11:16:52 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from [212.82.216.226] (helo=skuns.kiev.zoral.com.ua) by relay03.kiev.sovam.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1Jh0xW-000AVv-4F; Wed, 02 Apr 2008 14:16:50 +0300 Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by skuns.kiev.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m32BGtvd073263 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 2 Apr 2008 14:16:56 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m32BGjJd022951; Wed, 2 Apr 2008 14:16:45 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2/Submit) id m32BGj2b022950; Wed, 2 Apr 2008 14:16:45 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 2 Apr 2008 14:16:44 +0300 From: Kostik Belousov To: Vince Hoffman Message-ID: <20080402111644.GX21209@deviant.kiev.zoral.com.ua> References: <20080329222049.GA80263@eos.sc1.parodius.com> <47EED34E.2080400@unsane.co.uk> <47EFCF67.9040601@system.pl> <47F0A577.90800@unsane.co.uk> <20080331092035.GH21209@deviant.kiev.zoral.com.ua> <47F0C75B.9040000@unsane.co.uk> <20080331111714.GI21209@deviant.kiev.zoral.com.ua> <47F1F877.4010008@unsane.co.uk> <20080401094935.GQ21209@deviant.kiev.zoral.com.ua> <47F356EF.8040607@unsane.co.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="c7rykKtsZvepKFKR" Content-Disposition: inline In-Reply-To: <47F356EF.8040607@unsane.co.uk> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.4 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on skuns.kiev.zoral.com.ua X-Scanner-Signature: 9301293e34c22c108b5fa79baa05d543 X-DrWeb-checked: yes X-SpamTest-Envelope-From: kostikbel@gmail.com X-SpamTest-Group-ID: 00000000 X-SpamTest-Header: Not Detected X-SpamTest-Info: Profiles 2547 [Apr 02 2008] X-SpamTest-Info: helo_type=3 X-SpamTest-Method: none X-SpamTest-Rate: 0 X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0278], KAS30/Release Cc: Marcin Cieslak , freebsd-stable@freebsd.org, freebsd-usb@freebsd.org Subject: Re: Panic with usb serial 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: Wed, 02 Apr 2008 11:16:53 -0000 --c7rykKtsZvepKFKR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 02, 2008 at 10:50:39AM +0100, Vince Hoffman wrote: > Kostik Belousov wrote: > > On Tue, Apr 01, 2008 at 09:55:19AM +0100, Vince Hoffman wrote: > >> Kostik Belousov wrote: > >>> On Mon, Mar 31, 2008 at 12:13:31PM +0100, Vince Hoffman wrote: > >>>> Kostik Belousov wrote: > >>> Compile the ddb into the kernel (instructions are provided at the same > >>> web page) and post the output of the console on the panic > >> I tried this but other than the fact I can drop into ddb and step thou= gh > >> stuff I'm not sure what I can do with it. Since I cant (obviously) get= a > >> serial console on my laptop I have done it the other way and taken a > >> picture of the console on panic. When I have more time I'll carry on > >> reading up on ddb but I think I have a steep learning curve since my > >> previous looks at programing stopped at 'hello world':) > >> Panic console at: > >> http://unsane.co.uk/~jhary/freebsd/IMAGE_119.jpg > >=20 > > Thanks, this is enough. Two chunks were missed from the rev. 1.210. > > Please, try the patch below. > >=20 > > diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c > > index 843498e..7e6e048 100644 > > --- a/sys/kern/kern_conf.c > > +++ b/sys/kern/kern_conf.c > > @@ -402,8 +402,7 @@ giant_ioctl(struct cdev *dev, u_long cmd, caddr_t d= ata, int fflag, struct thread > > if (dsw =3D=3D NULL) > > return (ENXIO); > > mtx_lock(&Giant); > > - retval =3D dev->si_devsw->d_gianttrick-> > > - d_ioctl(dev, cmd, data, fflag, td); > > + retval =3D dsw->d_gianttrick->d_ioctl(dev, cmd, data, fflag, td); > > mtx_unlock(&Giant); > > dev_relthread(dev); > > return (retval); > > @@ -419,8 +418,7 @@ giant_read(struct cdev *dev, struct uio *uio, int i= oflag) > > if (dsw =3D=3D NULL) > > return (ENXIO); > > mtx_lock(&Giant); > > - retval =3D dev->si_devsw->d_gianttrick-> > > - d_read(dev, uio, ioflag); > > + retval =3D dsw->d_gianttrick->d_read(dev, uio, ioflag); > > mtx_unlock(&Giant); > > dev_relthread(dev); > > return (retval); >=20 > Hi Kostik, > Yes this stops the panic. I do still get the console spammed with > informational messages >=20 > Apr 2 10:36:30 prawn kernel: ucom0: 0/0, rev 1.10/4.00, addr 3> on uhub2 > Apr 2 10:36:33 prawn login: ROOT LOGIN (toor) ON ttyv0 > Apr 2 10:36:56 prawn kernel: ucom0: ucomreadcb: IOERROR > Apr 2 10:36:56 prawn kernel: ucom0: at uhub2 port 1 (addr 3) disconnected > Apr 2 10:36:57 prawn kernel: Still 4294967295 threads in ttyU0 > Apr 2 10:37:16 prawn last message repeated 188 times > Apr 2 10:37:16 prawn login: ROOT LOGIN (toor) ON ttyv1 > Apr 2 10:37:16 prawn kernel: Still 4294967295 threads in ttyU0 > Apr 2 10:37:47 prawn last message repeated 303 times > Apr 2 10:37:55 prawn last message repeated 85 times >=20 >=20 > but I can live with that. >=20 > I had opened PR usb/122287 for this, and I have updated this with the > relevent information from this thread. I committed the fix to the HEAD. I tested the patch with the uark(4) cable, and simply running the tip over the ttyU0 did not produced the "Still -1 threads in ttyU0" message. Are you running tip, or something else over the port ? --c7rykKtsZvepKFKR Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iEYEARECAAYFAkfzaxwACgkQC3+MBN1Mb4hi7wCfevuibsMCrgWt8C+e4Xmd7SIb v1wAoPbaEIc4Ts34yHrnac/vbIaknIgb =Mhhg -----END PGP SIGNATURE----- --c7rykKtsZvepKFKR-- From owner-freebsd-usb@FreeBSD.ORG Wed Apr 2 11:34:59 2008 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 EA0021065670; Wed, 2 Apr 2008 11:34:58 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from unsane.co.uk (unknown [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id 56EA08FC22; Wed, 2 Apr 2008 11:34:58 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from prawn.unsane.co.uk (150.117-84-212.staticip.namesco.net [212.84.117.150]) (authenticated bits=0) by unsane.co.uk (8.14.0/8.14.0) with ESMTP id m32BYjf5007935 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 2 Apr 2008 12:34:46 +0100 (BST) (envelope-from jhary@unsane.co.uk) Message-ID: <47F36F5F.90301@unsane.co.uk> Date: Wed, 02 Apr 2008 12:34:55 +0100 From: Vince Hoffman User-Agent: Thunderbird 2.0.0.12 (X11/20080327) MIME-Version: 1.0 To: Kostik Belousov References: <20080329222049.GA80263@eos.sc1.parodius.com> <47EED34E.2080400@unsane.co.uk> <47EFCF67.9040601@system.pl> <47F0A577.90800@unsane.co.uk> <20080331092035.GH21209@deviant.kiev.zoral.com.ua> <47F0C75B.9040000@unsane.co.uk> <20080331111714.GI21209@deviant.kiev.zoral.com.ua> <47F1F877.4010008@unsane.co.uk> <20080401094935.GQ21209@deviant.kiev.zoral.com.ua> <47F356EF.8040607@unsane.co.uk> <20080402111644.GX21209@deviant.kiev.zoral.com.ua> In-Reply-To: <20080402111644.GX21209@deviant.kiev.zoral.com.ua> X-Enigmail-Version: 0.95.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Marcin Cieslak , freebsd-stable@freebsd.org, freebsd-usb@freebsd.org Subject: Re: Panic with usb serial 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: Wed, 02 Apr 2008 11:34:59 -0000 Kostik Belousov wrote: > On Wed, Apr 02, 2008 at 10:50:39AM +0100, Vince Hoffman wrote: >> Kostik Belousov wrote: >>> On Tue, Apr 01, 2008 at 09:55:19AM +0100, Vince Hoffman wrote: >>>> Kostik Belousov wrote: >>>>> On Mon, Mar 31, 2008 at 12:13:31PM +0100, Vince Hoffman wrote: >>>>>> Kostik Belousov wrote: >>>>> Compile the ddb into the kernel (instructions are provided at the same >>>>> web page) and post the output of the console on the panic >>>> I tried this but other than the fact I can drop into ddb and step though >>>> stuff I'm not sure what I can do with it. Since I cant (obviously) get a >>>> serial console on my laptop I have done it the other way and taken a >>>> picture of the console on panic. When I have more time I'll carry on >>>> reading up on ddb but I think I have a steep learning curve since my >>>> previous looks at programing stopped at 'hello world':) >>>> Panic console at: >>>> http://unsane.co.uk/~jhary/freebsd/IMAGE_119.jpg >>> Thanks, this is enough. Two chunks were missed from the rev. 1.210. >>> Please, try the patch below. >>> >>> diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c >>> index 843498e..7e6e048 100644 >>> --- a/sys/kern/kern_conf.c >>> +++ b/sys/kern/kern_conf.c >>> @@ -402,8 +402,7 @@ giant_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int fflag, struct thread >>> if (dsw == NULL) >>> return (ENXIO); >>> mtx_lock(&Giant); >>> - retval = dev->si_devsw->d_gianttrick-> >>> - d_ioctl(dev, cmd, data, fflag, td); >>> + retval = dsw->d_gianttrick->d_ioctl(dev, cmd, data, fflag, td); >>> mtx_unlock(&Giant); >>> dev_relthread(dev); >>> return (retval); >>> @@ -419,8 +418,7 @@ giant_read(struct cdev *dev, struct uio *uio, int ioflag) >>> if (dsw == NULL) >>> return (ENXIO); >>> mtx_lock(&Giant); >>> - retval = dev->si_devsw->d_gianttrick-> >>> - d_read(dev, uio, ioflag); >>> + retval = dsw->d_gianttrick->d_read(dev, uio, ioflag); >>> mtx_unlock(&Giant); >>> dev_relthread(dev); >>> return (retval); >> Hi Kostik, >> Yes this stops the panic. I do still get the console spammed with >> informational messages >> >> Apr 2 10:36:30 prawn kernel: ucom0: > 0/0, rev 1.10/4.00, addr 3> on uhub2 >> Apr 2 10:36:33 prawn login: ROOT LOGIN (toor) ON ttyv0 >> Apr 2 10:36:56 prawn kernel: ucom0: ucomreadcb: IOERROR >> Apr 2 10:36:56 prawn kernel: ucom0: at uhub2 port 1 (addr 3) disconnected >> Apr 2 10:36:57 prawn kernel: Still 4294967295 threads in ttyU0 >> Apr 2 10:37:16 prawn last message repeated 188 times >> Apr 2 10:37:16 prawn login: ROOT LOGIN (toor) ON ttyv1 >> Apr 2 10:37:16 prawn kernel: Still 4294967295 threads in ttyU0 >> Apr 2 10:37:47 prawn last message repeated 303 times >> Apr 2 10:37:55 prawn last message repeated 85 times >> >> >> but I can live with that. >> >> I had opened PR usb/122287 for this, and I have updated this with the >> relevent information from this thread. > > I committed the fix to the HEAD. I tested the patch with the uark(4) > cable, and simply running the tip over the ttyU0 did not produced the > "Still -1 threads in ttyU0" message. Are you running tip, or something > else over the port ? > Just tip. [~](12:30:32) {root@prawn}#grep usb0 /etc/remote usb0:dv=/dev/ttyU0:br#9600:pa=none: then [~](12:31:20) {root@prawn}#tip usb0 connected Router> then unplugged the usb adapter Vince From owner-freebsd-usb@FreeBSD.ORG Wed Apr 2 18:34:34 2008 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 E9763106566B for ; Wed, 2 Apr 2008 18:34:34 +0000 (UTC) (envelope-from gofdu-freebsd-usb@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 6D6C78FC1A for ; Wed, 2 Apr 2008 18:34:34 +0000 (UTC) (envelope-from gofdu-freebsd-usb@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Jh7n5-0002ju-Mp for freebsd-usb@freebsd.org; Wed, 02 Apr 2008 18:34:31 +0000 Received: from 92.50.96.215 ([92.50.96.215]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 02 Apr 2008 18:34:31 +0000 Received: from saper by 92.50.96.215 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 02 Apr 2008 18:34:31 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-usb@freebsd.org From: Marcin Cieslak Date: Wed, 02 Apr 2008 20:34:16 +0200 Lines: 17 Message-ID: References: <539c60b90804011621u10b040fifb1fa51093e1393f@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 92.50.96.215 User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.8.1.12) Gecko/20080325 SeaMonkey/1.1.8 In-Reply-To: <539c60b90804011621u10b040fifb1fa51093e1393f@mail.gmail.com> Sender: news Subject: Re: help porting linux fxload app (#include ) 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: Wed, 02 Apr 2008 18:34:35 -0000 Steve Franks wrote: > Hi, > > I have a need for fxload. I think I've narrowed the issues down to > the following (namely USBDEVFS_CONTROL) , so if someone could give me > a leg up on that, I'd be grateful. FreeBSD includes a predecessor > "EZload", but I don't think it works with recent devices as the > hardware technology has been sold to another company (cypress)... I think it's USB_DO_REQUEST. Look at ezload code, it's very clean. Actually, what does fxload do more then ezload? Ezload looks very clean and maybe it should be just updated for your needs? --Marcin From owner-freebsd-usb@FreeBSD.ORG Thu Apr 3 15:30:54 2008 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 1958E1065675 for ; Thu, 3 Apr 2008 15:30:54 +0000 (UTC) (envelope-from cxu-83x-mcy@tele2.it) Received: from swip.net (mailfe09.tele2.it [212.247.155.13]) by mx1.freebsd.org (Postfix) with ESMTP id A1A9B8FC22 for ; Thu, 3 Apr 2008 15:30:53 +0000 (UTC) (envelope-from cxu-83x-mcy@tele2.it) X-Cloudmark-Score: 0.000000 [] Received: from [193.143.249.16] (account cxu-83x-mcy@tele2.it) by mailbe01.swip.net (CommuniGate Pro WEBUSER 5.1.13) with HTTP id 106038576 for freebsd-usb@freebsd.org; Thu, 03 Apr 2008 16:30:50 +0200 From: "Fabio Pennati" To: freebsd-usb@freebsd.org X-Mailer: CommuniGate Pro WebUser v5.1.13 Date: Thu, 03 Apr 2008 16:30:50 +0200 Message-ID: X-Priority: 3 Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: USB wired mouse not working 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: Thu, 03 Apr 2008 15:30:54 -0000 I installed FreeBSD Release 7.0 stable from ftp. I found the following problems: 1) I can boot only in "rescue mode"; all other options result in an hang. This could not be a problem if there is not influence on problem no.2 below. 2) The USB mouse do not work at all, also if it is recognized during boot (it is configured as standard in /etc/devd.conf) and a proper "moused" process is started. The mouse is seen as usb generic device, sysmouse protocol on port /dev/ums0. I checked also with "usbdevs" command ant it appears normally on the usb hub. I tryed the following solution but without any results: - another usb mouse - using a GENERIC kernel configuration - customizing the kernel configuration without the ehci and acpi drivers, as suggested by someone in mailing-list - killing moused process and with Xorg.conf pointing directly to /dev/ums0 port - wit h the rc.conf compiled from sysinstall - inserting the usbd daemon start in /etc/rc.conf Take into account that the usb mouses work normally in Linux and WXP and also in FreeBSD too with a PS/2 hw adapter (also if without the wheel function). Has someone any further idea for investigation the mouse problem, otherwise I have to abandon FreeBSD because I cannot use the PC without the mouse ? Thanks to all, fabio From owner-freebsd-usb@FreeBSD.ORG Thu Apr 3 18:03:56 2008 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 C2BAE1065674 for ; Thu, 3 Apr 2008 18:03:56 +0000 (UTC) (envelope-from gofdu-freebsd-usb@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 3B78F8FC15 for ; Thu, 3 Apr 2008 18:03:55 +0000 (UTC) (envelope-from gofdu-freebsd-usb@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JhTmv-0001lK-UD for freebsd-usb@freebsd.org; Thu, 03 Apr 2008 18:03:50 +0000 Received: from 92.50.96.215 ([92.50.96.215]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 03 Apr 2008 18:03:49 +0000 Received: from saper by 92.50.96.215 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 03 Apr 2008 18:03:49 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-usb@freebsd.org From: Marcin Cieslak Date: Thu, 03 Apr 2008 20:03:36 +0200 Lines: 97 Message-ID: <47F51BF8.8050705@system.pl> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-ripemd160; protocol="application/pgp-signature"; boundary="------------enig3F77674A24E88E3059428A14" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 92.50.96.215 User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.8.1.12) Gecko/20080403 SeaMonkey/1.1.8 In-Reply-To: X-Enigmail-Version: 0.95.6 Sender: news Subject: Re: USB wired mouse not working 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: Thu, 03 Apr 2008 18:04:01 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig3F77674A24E88E3059428A14 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: quoted-printable Fabio Pennati wrote: > I installed FreeBSD Release 7.0 stable from ftp. > I found the following problems: > 1) I can boot only in "rescue mode"; all other options result in an > hang. This could not be a problem if there is not influence on probl= em > no.2 below. I am afraid the second problem may be related to your kernel hang in the first place. Can you post the output of your "dmesg" command? What kind of machine is this. Is it fresh install or update/overwrite of something else? > 2) The USB mouse do not work at all, also if it is recognized during= > boot (it is configured as standard in /etc/devd.conf) and a proper > "moused" process is started. The mouse is seen as usb generic device= , > sysmouse protocol on port /dev/ums0. I checked also with "usbdevs" > command ant it appears normally on the usb hub. Can you post the kernel logs when the mouse is attached? I have (I think) similar setup - a laptop with external mouse. I have two processes running: % ps ax |grep moused 583 ?? Is 0:51,41 /usr/sbin/moused -p /dev/ums0 -t auto -I=20 /var/run/moused.ums0.pid 1270 ?? Rs 0:31,96 /usr/sbin/moused -3 -p /dev/psm0 -t auto So should you also have. Can you recompile the kernel with USB_DEBUG set and set the following=20 variables at boot: hw.usb.uhci.debug=3D6 hw.usb.ohci.debug=3D6 hw.usb.ums.debug=3D10 You may want to remove all usb-devices from the kernel and load them as=20 modules in /boot/loader.conf: usb_load=3D"YES" ugen_load=3D"YES" uhid_load=3D"YES" ukbd_load=3D"YES" ulpt_load=3D"YES" ums_load=3D"YES" cdce_load=3D"YES" ubsa_load=3D"YES" uplcom_load=3D"YES" ng_ubt_load=3D"YES" umass_load=3D"YES" uscanner_load=3D"YES" This is will make applying patches easier (you can set USB_DEBUG then in = /etc/make.conf or in the appropriate /sys/modules//Makefile with:= DEBUG_FLAGS=3D-g -DUSB_DEBUG --Marcin --------------enig3F77674A24E88E3059428A14 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQCVAwUBR/Ub+z2W2v2wY27ZAQPXSAP/VJZygZVvddpq4xKyaiyDijPrOB7SfZjX k5yWWEo/4ZzIe03TX3q1YAOSU+6nxCd7nGkuC0cZwWjRfidQ+0k1R6dmuD0z8XaX EyyVNH/fjXX1G9qFMIQksGYRuoXprUg0fuiyR9aDnsY298BtJpbeoTa1ThZGcRYm qpl0661DcbE= =wY2j -----END PGP SIGNATURE----- --------------enig3F77674A24E88E3059428A14-- From owner-freebsd-usb@FreeBSD.ORG Sat Apr 5 03:10:05 2008 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 563F3106568F for ; Sat, 5 Apr 2008 03:10:05 +0000 (UTC) (envelope-from zhouzhouyi@gmail.com) Received: from ercist.iscas.ac.cn (ercist.iscas.ac.cn [124.16.138.3]) by mx1.freebsd.org (Postfix) with SMTP id 816F48FC32 for ; Sat, 5 Apr 2008 03:10:04 +0000 (UTC) (envelope-from zhouzhouyi@gmail.com) Received: (qmail 21451 invoked by uid 98); 5 Apr 2008 02:40:47 -0000 Received: from 124.16.138.62 by ercist.iscas.ac.cn (envelope-from , uid 89) with qmail-scanner-1.25 (spamassassin: 3.1.0. Clear:RC:1(124.16.138.62):SA:0(-2.4/8.0):. Processed in 2.525598 secs); 05 Apr 2008 02:40:47 -0000 X-Spam-Status: No, hits=-2.4 required=8.0 X-Qmail-Scanner-Mail-From: zhouzhouyi@gmail.com via ercist.iscas.ac.cn X-Qmail-Scanner: 1.25 (Clear:RC:1(124.16.138.62):SA:0(-2.4/8.0):. Processed in 2.525598 secs) Received: from unknown (HELO zzy.H.qngy.gscas) (zhouzhouyi@ercist.iscas.ac.cn@124.16.138.62) by 0 with SMTP; 5 Apr 2008 02:40:45 -0000 Date: Sat, 5 Apr 2008 10:40:10 +0800 From: Zhouyi Zhou To: freebsd-usb@freebsd.org Message-Id: <20080405104010.8146f29f.zhouzhouyi@gmail.com> In-Reply-To: <20080404120025.54FFE1065752@hub.freebsd.org> References: <20080404120025.54FFE1065752@hub.freebsd.org> Organization: IOS X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.8; i386-portbld-freebsd6.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: umass0: BBB reset failed, TIMEOUT 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: Sat, 05 Apr 2008 03:10:05 -0000 hi, by google, I learn this problem has been exist for a long time. but when I am doing /mnt/ufs/usr#tar zcf src.tgz src on a USB storage disk The system issues: umass0: BBB reset failed, TIMEOUT umass0: BBB bulk-in clear stall failed, TIMEOUT umass0: BBB bulk-out clear stall failed, TIMEOUT ... #uname -a FreeBSD zzy 8.0-CURRENT FreeBSD Thanks alot Zhouyi From owner-freebsd-usb@FreeBSD.ORG Sat Apr 5 19:36:52 2008 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 9FD87106566B for ; Sat, 5 Apr 2008 19:36:52 +0000 (UTC) (envelope-from antik@bsd.ee) Received: from smtp-gw1.starman.ee (smtp-out3.starman.ee [85.253.0.5]) by mx1.freebsd.org (Postfix) with ESMTP id 49CB08FC16 for ; Sat, 5 Apr 2008 19:36:52 +0000 (UTC) (envelope-from antik@bsd.ee) Received: from mx1.starman.ee (mx1.starman.ee [62.65.192.16]) by smtp-gw1.starman.ee (Postfix) with ESMTP id E77AF3D881F; Sat, 5 Apr 2008 22:36:49 +0300 (EEST) X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Received: from [192.168.2.101] (pc197.host50.starman.ee [62.65.242.197]) by mx1.starman.ee (Postfix) with ESMTP id D2B5C3F4081; Sat, 5 Apr 2008 22:36:48 +0300 (EEST) From: Andrei Kolu To: freebsd-usb@freebsd.org, freebsd-stable@freebsd.org Date: Sat, 5 Apr 2008 22:36:49 +0300 User-Agent: KMail/1.9.7 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200804052236.49472.antik@bsd.ee> Cc: Subject: USB to RS232 converter problem (prolific chip) 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: Sat, 05 Apr 2008 19:36:52 -0000 Hello. I have problems using USB to RS232 converter under FreeBSD 6.3-STABLE when connecting to any Cisco gear over serial link. I connect my adapter to notebook and dmesg output looks like this one: ucom0: Prolific Technology Inc. USB-Serial Controller D, rev 1.10/4.00, addr 2 I have also following modules loaded: 8 1 0xc0c17000 3540 umodem.ko# cu -l /dev/ttyU0 Connected 9 4 0xc0c1b000 3208 ucom.ko 10 1 0xc0c1f000 2f54 uplcom.ko 13 1 0xc0c2f000 3384 ubsa.ko Now I try to connect to Cisco box: # cu -l /dev/ttyU0 Connected And terminal stalls- nothing happens- it ignores keyboard completely- sometimes it works but then suddenly lost keyboard interactivity. I tried from KDE Konsole, from plain tcsh command line, sometimes I am able to gain Cisco command line but 90% of times it just hangs. I got two usb2serial adapters: Trendnet TU-S9 and Manhattan 205146. Same converters works just fine under Windows and Linux (drivers cd even got RedHat 7, 8 and 9 versions source code drivers- http://www.manhattan-products.com/driver-usb-rs232.shtml). From owner-freebsd-usb@FreeBSD.ORG Sat Apr 5 21:24:40 2008 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 F061A1065671; Sat, 5 Apr 2008 21:24:40 +0000 (UTC) (envelope-from antik@bsd.ee) Received: from smtp-gw1.starman.ee (smtp-out3.starman.ee [85.253.0.5]) by mx1.freebsd.org (Postfix) with ESMTP id 9EA868FC1E; Sat, 5 Apr 2008 21:24:40 +0000 (UTC) (envelope-from antik@bsd.ee) Received: from mx2.starman.ee (mx2.starman.ee [62.65.192.17]) by smtp-gw1.starman.ee (Postfix) with ESMTP id DE68C3D87CD; Sun, 6 Apr 2008 00:24:38 +0300 (EEST) X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Received: from [192.168.2.101] (pc197.host50.starman.ee [62.65.242.197]) by mx2.starman.ee (Postfix) with ESMTP id E04FC3F4059; Sun, 6 Apr 2008 00:24:38 +0300 (EEST) From: Andrei Kolu To: freebsd-usb@freebsd.org, freebsd-stable@freebsd.org Date: Sun, 6 Apr 2008 00:24:38 +0300 User-Agent: KMail/1.9.7 References: <200804052236.49472.antik@bsd.ee> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200804060024.39019.antik@bsd.ee> Cc: Subject: Re: USB to RS232 converter problem (prolific chip) 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: Sat, 05 Apr 2008 21:24:41 -0000 On Saturday 05 April 2008 23:48:59 you wrote: > On Sat, 5 Apr 2008, Andrei Kolu wrote: > > I have problems using USB to RS232 converter under FreeBSD 6.3-STABLE > > when connecting to any Cisco gear over serial link. I connect my adapter > > to notebook and dmesg output looks like this one: > > > > ucom0: Prolific Technology Inc. USB-Serial Controller D, rev 1.10/4.00, > > addr 2 > > > > I have also following modules loaded: > > > > 8 1 0xc0c17000 3540 umodem.ko# cu -l /dev/ttyU0 > > Connected > > > > 9 4 0xc0c1b000 3208 ucom.ko > > 10 1 0xc0c1f000 2f54 uplcom.ko > > 13 1 0xc0c2f000 3384 ubsa.ko > > > > Now I try to connect to Cisco box: > > > > # cu -l /dev/ttyU0 > > Connected > > Use /dev/cuaU0 instead. > > -Warren Block * Rapid City, South Dakota USA There is no difference if I connect through /dev/ttyU0 or /dev/cuaU0 and even through ttyU1 or cuaU1 (when second serial converter is connected)- same problem. I tried on other computer with FreeBSD 6.1 and 7.0-STABLE snapshot from march- same results. Something is broken on FreeBSD side- strange thing is that when I turn power down on cisco box and turn in on again then I see scrolling text from cisco gear but there is no feedback to keyboard activity. How to debug this issue? Andrei From owner-freebsd-usb@FreeBSD.ORG Sat Apr 5 21:27:32 2008 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 D5C0D106566B; Sat, 5 Apr 2008 21:27:32 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 7F0FC8FC1A; Sat, 5 Apr 2008 21:27:32 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.2/8.14.2) with ESMTP id m35KmxTn017046; Sat, 5 Apr 2008 14:48:59 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.2/8.14.2/Submit) with ESMTP id m35Kmx98017043; Sat, 5 Apr 2008 14:48:59 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Sat, 5 Apr 2008 14:48:59 -0600 (MDT) From: Warren Block To: Andrei Kolu In-Reply-To: <200804052236.49472.antik@bsd.ee> Message-ID: References: <200804052236.49472.antik@bsd.ee> User-Agent: Alpine 1.10 (BSF 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (wonkity.com [127.0.0.1]); Sat, 05 Apr 2008 14:48:59 -0600 (MDT) Cc: freebsd-stable@freebsd.org, freebsd-usb@freebsd.org Subject: Re: USB to RS232 converter problem (prolific chip) 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: Sat, 05 Apr 2008 21:27:33 -0000 On Sat, 5 Apr 2008, Andrei Kolu wrote: > I have problems using USB to RS232 converter under FreeBSD 6.3-STABLE when > connecting to any Cisco gear over serial link. I connect my adapter to > notebook and dmesg output looks like this one: > > ucom0: Prolific Technology Inc. USB-Serial Controller D, rev 1.10/4.00, addr 2 > > I have also following modules loaded: > > 8 1 0xc0c17000 3540 umodem.ko# cu -l /dev/ttyU0 > Connected > > 9 4 0xc0c1b000 3208 ucom.ko > 10 1 0xc0c1f000 2f54 uplcom.ko > 13 1 0xc0c2f000 3384 ubsa.ko > > Now I try to connect to Cisco box: > > # cu -l /dev/ttyU0 > Connected Use /dev/cuaU0 instead. -Warren Block * Rapid City, South Dakota USA From owner-freebsd-usb@FreeBSD.ORG Sat Apr 5 21:33:52 2008 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 4F064106566C; Sat, 5 Apr 2008 21:33:52 +0000 (UTC) (envelope-from antik@bsd.ee) Received: from smtp-gw1.starman.ee (smtp-out3.starman.ee [85.253.0.5]) by mx1.freebsd.org (Postfix) with ESMTP id C32C68FC23; Sat, 5 Apr 2008 21:33:51 +0000 (UTC) (envelope-from antik@bsd.ee) Received: from mx2.starman.ee (mx2.starman.ee [62.65.192.17]) by smtp-gw1.starman.ee (Postfix) with ESMTP id 268E73D88D3; Sun, 6 Apr 2008 00:33:50 +0300 (EEST) X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Received: from [192.168.2.101] (pc197.host50.starman.ee [62.65.242.197]) by mx2.starman.ee (Postfix) with ESMTP id 0EBFF3F4068; Sun, 6 Apr 2008 00:33:50 +0300 (EEST) From: Andrei Kolu To: freebsd-usb@freebsd.org Date: Sun, 6 Apr 2008 00:33:50 +0300 User-Agent: KMail/1.9.7 References: <200804052236.49472.antik@bsd.ee> <200804060024.39019.antik@bsd.ee> In-Reply-To: <200804060024.39019.antik@bsd.ee> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200804060033.50609.antik@bsd.ee> Cc: freebsd-stable@freebsd.org Subject: Re: USB to RS232 converter problem (prolific chip) 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: Sat, 05 Apr 2008 21:33:52 -0000 On Sunday 06 April 2008 00:24:38 Andrei Kolu wrote: > On Saturday 05 April 2008 23:48:59 you wrote: > > On Sat, 5 Apr 2008, Andrei Kolu wrote: > > > I have problems using USB to RS232 converter under FreeBSD 6.3-STABLE > > > when connecting to any Cisco gear over serial link. I connect my > > > adapter to notebook and dmesg output looks like this one: > > > > > > ucom0: Prolific Technology Inc. USB-Serial Controller D, rev 1.10/4.00, > > > addr 2 > > > > > > I have also following modules loaded: > > > > > > 8 1 0xc0c17000 3540 umodem.ko# cu -l /dev/ttyU0 > > > Connected > > > > > > 9 4 0xc0c1b000 3208 ucom.ko > > > 10 1 0xc0c1f000 2f54 uplcom.ko > > > 13 1 0xc0c2f000 3384 ubsa.ko > > > > > > Now I try to connect to Cisco box: > > > > > > # cu -l /dev/ttyU0 > > > Connected > > > > Use /dev/cuaU0 instead. > > > > -Warren Block * Rapid City, South Dakota USA > > There is no difference if I connect through /dev/ttyU0 or /dev/cuaU0 and > even through ttyU1 or cuaU1 (when second serial converter is connected)- > same problem. I tried on other computer with FreeBSD 6.1 and 7.0-STABLE > snapshot from march- same results. > > Something is broken on FreeBSD side- strange thing is that when I turn > power down on cisco box and turn in on again then I see scrolling text from > cisco gear but there is no feedback to keyboard activity. How to debug this > issue? > Some progress on debugging! Just kiddin... I removed converter from USB and FreeBSD 7.0 kernel dumped following information: ucom0: ucomreadcb: IOERROR ucom0: at uhub1 port 1 (addr 2) disconnected ucom0: uplcom_set_line_status: STALLED Fatal trap 12: page fault while in kernel mode cpuid = 1; apic id = 01 fault virtual address = 0xb0 fault code = supervisor read data, page not present instruction pointer = 0x8:0xffffffff80446f72 stack pointer = 0x10:0xffffffffae796a00 frame pointer = 0x10:0xffffff000172b400 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 876 (cu) trap number = 12 panic: page fault cpuid: 1 Uptime: 8m41s Physical memory: 2802 MB Dumping 126 MB: 111 95 79 63 47 31 15 Dump complete From owner-freebsd-usb@FreeBSD.ORG Sat Apr 5 21:53:02 2008 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 11C27106567B for ; Sat, 5 Apr 2008 21:53:02 +0000 (UTC) (envelope-from dorian.buettner@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 150ED8FC0A for ; Sat, 5 Apr 2008 21:52:59 +0000 (UTC) (envelope-from dorian.buettner@gmx.de) Received: (qmail invoked by alias); 05 Apr 2008 21:52:58 -0000 Received: from port-92-192-85-196.dynamic.qsc.de (EHLO [192.168.168.2]) [92.192.85.196] by mail.gmx.net (mp048) with SMTP; 05 Apr 2008 23:52:58 +0200 X-Authenticated: #1682771 X-Provags-ID: V01U2FsdGVkX1/e7w0wYcfeH+KeXO03n6+xHL3B7HvTXq58RXGDY+ I6qCrxST5LmmAO Message-ID: <47F7F4BC.6020209@gmx.de> Date: Sat, 05 Apr 2008 23:53:00 +0200 From: =?ISO-8859-1?Q?Dorian_B=FCttner?= User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: Andrei Kolu References: <200804052236.49472.antik@bsd.ee> <200804060024.39019.antik@bsd.ee> <200804060033.50609.antik@bsd.ee> In-Reply-To: <200804060033.50609.antik@bsd.ee> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Cc: freebsd-stable@freebsd.org, freebsd-usb@freebsd.org Subject: Re: USB to RS232 converter problem (prolific chip) 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: Sat, 05 Apr 2008 21:53:02 -0000 >>>> # cu -l /dev/ttyU0 >>>> >> propably you need to adjust the line speed, i.e. cu -l -s 19200, also some devices like if you hit enter to get a login prompt. > Some progress on debugging! Just kiddin... > > I removed converter from USB and FreeBSD 7.0 kernel dumped following > information: > > That's actually been discussed here: http://www.freebsd.org/cgi/query-pr.cgi?pr=122287 While we're at it: can everybody tell me the magic keystroke to end a cu session? man says ~^Z or something, i think this is a combination of keys to pressed? Kind regards, Dorian From owner-freebsd-usb@FreeBSD.ORG Sat Apr 5 21:58:38 2008 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 8D277106566B; Sat, 5 Apr 2008 21:58:38 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id 6CBB18FC1A; Sat, 5 Apr 2008 21:58:38 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id 604271CC038; Sat, 5 Apr 2008 14:58:38 -0700 (PDT) Date: Sat, 5 Apr 2008 14:58:38 -0700 From: Jeremy Chadwick To: Andrei Kolu Message-ID: <20080405215838.GA27195@eos.sc1.parodius.com> References: <200804052236.49472.antik@bsd.ee> <200804060024.39019.antik@bsd.ee> <200804060033.50609.antik@bsd.ee> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200804060033.50609.antik@bsd.ee> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-stable@freebsd.org, freebsd-usb@freebsd.org Subject: Re: USB to RS232 converter problem (prolific chip) 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: Sat, 05 Apr 2008 21:58:38 -0000 On Sun, Apr 06, 2008 at 12:33:50AM +0300, Andrei Kolu wrote: > On Sunday 06 April 2008 00:24:38 Andrei Kolu wrote: > > On Saturday 05 April 2008 23:48:59 you wrote: > > > On Sat, 5 Apr 2008, Andrei Kolu wrote: > > > > I have problems using USB to RS232 converter under FreeBSD 6.3-STABLE > > > > when connecting to any Cisco gear over serial link. I connect my > > > > adapter to notebook and dmesg output looks like this one: > > > > > > > > ucom0: Prolific Technology Inc. USB-Serial Controller D, rev 1.10/4.00, > > > > addr 2 > > > > > > > > I have also following modules loaded: > > > > > > > > 8 1 0xc0c17000 3540 umodem.ko# cu -l /dev/ttyU0 > > > > Connected > > > > > > > > 9 4 0xc0c1b000 3208 ucom.ko > > > > 10 1 0xc0c1f000 2f54 uplcom.ko > > > > 13 1 0xc0c2f000 3384 ubsa.ko > > > > > > > > Now I try to connect to Cisco box: > > > > > > > > # cu -l /dev/ttyU0 > > > > Connected > > > > > > Use /dev/cuaU0 instead. > > > > > > -Warren Block * Rapid City, South Dakota USA > > > > There is no difference if I connect through /dev/ttyU0 or /dev/cuaU0 and > > even through ttyU1 or cuaU1 (when second serial converter is connected)- > > same problem. I tried on other computer with FreeBSD 6.1 and 7.0-STABLE > > snapshot from march- same results. > > > > Something is broken on FreeBSD side- strange thing is that when I turn > > power down on cisco box and turn in on again then I see scrolling text from > > cisco gear but there is no feedback to keyboard activity. How to debug this > > issue? > > > Some progress on debugging! Just kiddin... > > I removed converter from USB and FreeBSD 7.0 kernel dumped following > information: > > ucom0: ucomreadcb: IOERROR > ucom0: at uhub1 port 1 (addr 2) disconnected > ucom0: uplcom_set_line_status: STALLED > > > Fatal trap 12: page fault while in kernel mode > cpuid = 1; apic id = 01 > fault virtual address = 0xb0 > fault code = supervisor read data, page not present > instruction pointer = 0x8:0xffffffff80446f72 > stack pointer = 0x10:0xffffffffae796a00 > frame pointer = 0x10:0xffffff000172b400 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, long 1, def32 0, gran 1 > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 876 (cu) > trap number = 12 > panic: page fault > cpuid: 1 > Uptime: 8m41s > Physical memory: 2802 MB > Dumping 126 MB: 111 95 79 63 47 31 15 > Dump complete This is a known problem, and even more so if you still had tip or cu connected to the tty. Others have reported similar, with other USB drivers. Bottom line: the current FreeBSD USB stack is very fragile and unreliable. You may want to try the usb4bsd kernel patches (I think that's what it's called), some have had better luck with those. Search the web. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From owner-freebsd-usb@FreeBSD.ORG Sat Apr 5 21:59:00 2008 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 1305010656C9 for ; Sat, 5 Apr 2008 21:59:00 +0000 (UTC) (envelope-from alec-keyword-freebsd.befd64@SetFilePointer.com) Received: from hamlet.setfilepointer.com (hamlet.SetFilePointer.com [63.224.10.2]) by mx1.freebsd.org (Postfix) with SMTP id 9B6308FC28 for ; Sat, 5 Apr 2008 21:58:59 +0000 (UTC) (envelope-from alec-keyword-freebsd.befd64@SetFilePointer.com) Received: (qmail 94105 invoked by uid 4250); 5 Apr 2008 16:32:17 -0500 Received: by hamlet.SetFilePointer.com (tmda-sendmail, from uid 4250); Sat, 05 Apr 2008 16:32:17 -0500 Date: Sat, 5 Apr 2008 16:32:17 -0500 To: Andrei Kolu Message-ID: <20080405213217.GD2207@hamlet.SetFilePointer.com> References: <200804052236.49472.antik@bsd.ee> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="idY8LE8SD6/8DnRI" Content-Disposition: inline In-Reply-To: <200804052236.49472.antik@bsd.ee> User-Agent: Mutt/1.4.2.3i X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alec Kloss X-Primary-Address: alec@SetFilePointer.com X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-stable@freebsd.org, freebsd-usb@freebsd.org Subject: Re: USB to RS232 converter problem (prolific chip) 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: Sat, 05 Apr 2008 21:59:00 -0000 --idY8LE8SD6/8DnRI Content-Type: multipart/mixed; boundary="TybLhxa8M7aNoW+V" Content-Disposition: inline --TybLhxa8M7aNoW+V Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable The the attached patch, also available at http://setfilepointer.com/pub/src:sys:dev:usb:uplcom.c.patch might help. I've needed it to make uplcom stuff work. --=20 Alec Kloss alec@SetFilePointer.com IM: angryspamhater@yahoo.com PGP key at http://pgp.mit.edu:11371/pks/lookup?op=3Dget&search=3D0xA241980E "No Bunny!" -- Simon, from Frisky Dingo --TybLhxa8M7aNoW+V-- --idY8LE8SD6/8DnRI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFH9+/h2s33paJBmA4RApppAJwP6jkiQY7sUIsneNX7Vx2G75uqCQCfajNY D/KDIKcE4L6JZ77IhlGJSp8= =VGh+ -----END PGP SIGNATURE----- --idY8LE8SD6/8DnRI-- From owner-freebsd-usb@FreeBSD.ORG Sat Apr 5 22:11:28 2008 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 618FF1065675; Sat, 5 Apr 2008 22:11:28 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 157D08FC13; Sat, 5 Apr 2008 22:11:28 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m35M9KLx090205; Sat, 5 Apr 2008 16:09:20 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sat, 05 Apr 2008 16:10:10 -0600 (MDT) Message-Id: <20080405.161010.1169637862.imp@bsdimp.com> To: koitsu@freebsd.org From: "M. Warner Losh" In-Reply-To: <20080405215838.GA27195@eos.sc1.parodius.com> References: <200804060024.39019.antik@bsd.ee> <200804060033.50609.antik@bsd.ee> <20080405215838.GA27195@eos.sc1.parodius.com> X-Mailer: Mew version 5.2 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-stable@freebsd.org, freebsd-usb@freebsd.org Subject: Re: USB to RS232 converter problem (prolific chip) 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: Sat, 05 Apr 2008 22:11:28 -0000 In message: <20080405215838.GA27195@eos.sc1.parodius.com> Jeremy Chadwick writes: : Bottom line: the current FreeBSD USB stack is very fragile and : unreliable. You may want to try the usb4bsd kernel patches (I think : that's what it's called), some have had better luck with those. Search : the web. This crash has nothing to do with the usb stack. The root cause is the device deletion code nulls out a pointer. There's a routine that is sleeping which is woken up and the null pointer gets dereferenced leading to the crash. The current usb stack isn't as fragile as it was in the 5.x days. While there are problems, this one isn't due to that. The same thing happens when you eject a PC Card 16550 COM device, due to the same bug. Warner From owner-freebsd-usb@FreeBSD.ORG Sat Apr 5 22:12:55 2008 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 D8554106566C; Sat, 5 Apr 2008 22:12:55 +0000 (UTC) (envelope-from antik@bsd.ee) Received: from smtp-gw1.starman.ee (smtp-out3.starman.ee [85.253.0.5]) by mx1.freebsd.org (Postfix) with ESMTP id 882A48FC1F; Sat, 5 Apr 2008 22:12:55 +0000 (UTC) (envelope-from antik@bsd.ee) Received: from mx2.starman.ee (mx2.starman.ee [62.65.192.17]) by smtp-gw1.starman.ee (Postfix) with ESMTP id 65E6E3D88E5; Sun, 6 Apr 2008 01:12:54 +0300 (EEST) X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Received: from [192.168.2.101] (pc197.host50.starman.ee [62.65.242.197]) by mx2.starman.ee (Postfix) with ESMTP id 219F53F4068; Sun, 6 Apr 2008 01:12:54 +0300 (EEST) From: Andrei Kolu Date: Sun, 6 Apr 2008 01:12:53 +0300 User-Agent: KMail/1.9.7 References: <200804052236.49472.antik@bsd.ee> <20080405213217.GD2207@hamlet.SetFilePointer.com> In-Reply-To: <20080405213217.GD2207@hamlet.SetFilePointer.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline To: Undisclosed.Recipients: ; Message-Id: <200804060112.53866.antik@bsd.ee> Cc: freebsd-stable@freebsd.org, freebsd-usb@freebsd.org Subject: Re: USB to RS232 converter problem (prolific chip) 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: Sat, 05 Apr 2008 22:12:55 -0000 On Sunday 06 April 2008 00:32:17 Alec Kloss wrote: > The the attached patch, also available at > > http://setfilepointer.com/pub/src:sys:dev:usb:uplcom.c.patch > > might help. I've needed it to make uplcom stuff work. This patch works just fine (tested on 6.3). Thank you! Why it is not submitted into base tree for more than a year? Andrei From owner-freebsd-usb@FreeBSD.ORG Sat Apr 5 22:21:58 2008 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 196DB1065671; Sat, 5 Apr 2008 22:21:58 +0000 (UTC) (envelope-from antik@bsd.ee) Received: from smtp-gw1.starman.ee (smtp-out3.starman.ee [85.253.0.5]) by mx1.freebsd.org (Postfix) with ESMTP id BD98F8FC17; Sat, 5 Apr 2008 22:21:57 +0000 (UTC) (envelope-from antik@bsd.ee) Received: from mx1.starman.ee (mx1.starman.ee [62.65.192.16]) by smtp-gw1.starman.ee (Postfix) with ESMTP id C7F2E3D8724; Sun, 6 Apr 2008 01:21:56 +0300 (EEST) X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Received: from [192.168.2.101] (pc197.host50.starman.ee [62.65.242.197]) by mx1.starman.ee (Postfix) with ESMTP id 7CF463F405D; Sun, 6 Apr 2008 01:21:56 +0300 (EEST) From: Andrei Kolu To: freebsd-stable@freebsd.org Date: Sun, 6 Apr 2008 01:21:54 +0300 User-Agent: KMail/1.9.7 References: <200804052236.49472.antik@bsd.ee> <20080405213217.GD2207@hamlet.SetFilePointer.com> <200804060112.53866.antik@bsd.ee> In-Reply-To: <200804060112.53866.antik@bsd.ee> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200804060121.56127.antik@bsd.ee> Cc: freebsd-usb@freebsd.org Subject: Re: USB to RS232 converter problem (prolific chip) 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: Sat, 05 Apr 2008 22:21:58 -0000 On Sunday 06 April 2008 01:12:53 Andrei Kolu wrote: > On Sunday 06 April 2008 00:32:17 Alec Kloss wrote: > > The the attached patch, also available at > > > > http://setfilepointer.com/pub/src:sys:dev:usb:uplcom.c.patch > > > > might help. I've needed it to make uplcom stuff work. > > This patch works just fine (tested on 6.3). Thank you! > Why it is not submitted into base tree for more than a year? > > Another interesting patch: http://leaf.dragonflybsd.org/mailarchive/submit/2007-07/msg00021.html From owner-freebsd-usb@FreeBSD.ORG Sat Apr 5 22:41:53 2008 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 083EF1065671; Sat, 5 Apr 2008 22:41:53 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id B0B238FC1A; Sat, 5 Apr 2008 22:41:52 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m35MbxIk090588; Sat, 5 Apr 2008 16:37:59 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sat, 05 Apr 2008 16:38:49 -0600 (MDT) Message-Id: <20080405.163849.-1625878944.imp@bsdimp.com> To: antik@bsd.ee From: "M. Warner Losh" In-Reply-To: <200804060121.56127.antik@bsd.ee> References: <20080405213217.GD2207@hamlet.SetFilePointer.com> <200804060112.53866.antik@bsd.ee> <200804060121.56127.antik@bsd.ee> X-Mailer: Mew version 5.2 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-stable@freebsd.org, freebsd-usb@freebsd.org Subject: Re: USB to RS232 converter problem (prolific chip) 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: Sat, 05 Apr 2008 22:41:53 -0000 In message: <200804060121.56127.antik@bsd.ee> Andrei Kolu writes: : On Sunday 06 April 2008 01:12:53 Andrei Kolu wrote: : > On Sunday 06 April 2008 00:32:17 Alec Kloss wrote: : > > The the attached patch, also available at : > > : > > http://setfilepointer.com/pub/src:sys:dev:usb:uplcom.c.patch : > > : > > might help. I've needed it to make uplcom stuff work. : > : > This patch works just fine (tested on 6.3). Thank you! : > Why it is not submitted into base tree for more than a year? Maybe because it wasn't in the PR database when I did my massive cleanup last summer? Would you like to volunteer to help move patches posted to random places into FreeBSD or the PR database? There's plenty of opportunity for advancement into the project for people willing to do these sorts of things. : Another interesting patch: : http://leaf.dragonflybsd.org/mailarchive/submit/2007-07/msg00021.html This is indeed an interesting patch. Thank you. Warner From owner-freebsd-usb@FreeBSD.ORG Sat Apr 5 23:14:19 2008 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 845E31065673; Sat, 5 Apr 2008 23:14:19 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from relay03.kiev.sovam.com (relay03.kiev.sovam.com [62.64.120.201]) by mx1.freebsd.org (Postfix) with ESMTP id 0E27C8FC14; Sat, 5 Apr 2008 23:14:18 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from [212.82.216.226] (helo=skuns.kiev.zoral.com.ua) by relay03.kiev.sovam.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1JiHaQ-000DSP-41; Sun, 06 Apr 2008 02:14:17 +0300 Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by skuns.kiev.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m35NDaQ7030248 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 6 Apr 2008 02:13:36 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m35NDRYp037406; Sun, 6 Apr 2008 02:13:27 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2/Submit) id m35NDQp6037405; Sun, 6 Apr 2008 02:13:26 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Sun, 6 Apr 2008 02:13:26 +0300 From: Kostik Belousov To: "M. Warner Losh" Message-ID: <20080405231326.GA21209@deviant.kiev.zoral.com.ua> References: <200804060024.39019.antik@bsd.ee> <200804060033.50609.antik@bsd.ee> <20080405215838.GA27195@eos.sc1.parodius.com> <20080405.161010.1169637862.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="E0GpUEom8qu4+vDz" Content-Disposition: inline In-Reply-To: <20080405.161010.1169637862.imp@bsdimp.com> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.4 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on skuns.kiev.zoral.com.ua X-Scanner-Signature: 4fe2b897d4d72954524b6b73d18f8617 X-DrWeb-checked: yes X-SpamTest-Envelope-From: kostikbel@gmail.com X-SpamTest-Group-ID: 00000000 X-SpamTest-Info: Profiles 2569 [Apr 04 2008] X-SpamTest-Info: helo_type=3 X-SpamTest-Info: {TO: local part of email appears in body} X-SpamTest-Info: {received from trusted relay: not dialup} X-SpamTest-Method: none X-SpamTest-Method: Local Lists X-SpamTest-Rate: 5 X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0255], KAS30/Release Cc: koitsu@freebsd.org, freebsd-stable@freebsd.org, freebsd-usb@freebsd.org Subject: Re: USB to RS232 converter problem (prolific chip) 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: Sat, 05 Apr 2008 23:14:19 -0000 --E0GpUEom8qu4+vDz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Apr 05, 2008 at 04:10:10PM -0600, M. Warner Losh wrote: > In message: <20080405215838.GA27195@eos.sc1.parodius.com> > Jeremy Chadwick writes: > : Bottom line: the current FreeBSD USB stack is very fragile and > : unreliable. You may want to try the usb4bsd kernel patches (I think > : that's what it's called), some have had better luck with those. Search > : the web. >=20 > This crash has nothing to do with the usb stack. The root cause is > the device deletion code nulls out a pointer. There's a routine that > is sleeping which is woken up and the null pointer gets dereferenced > leading to the crash. I believe that I fixed this in the HEAD and RELENG_7. MFC to the RELENG_6 is possible, but I have no facilities to test. >=20 > The current usb stack isn't as fragile as it was in the 5.x days. > While there are problems, this one isn't due to that. The same thing > happens when you eject a PC Card 16550 COM device, due to the same > bug. >=20 > Warner > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" --E0GpUEom8qu4+vDz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iEYEARECAAYFAkf4B5QACgkQC3+MBN1Mb4iWUgCfeUEE6g4lETGkkSiZKU6I/AXn raYAoMOJfyQtKjoCUS9UoNwa0myahFbZ =uSSW -----END PGP SIGNATURE----- --E0GpUEom8qu4+vDz--