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