From owner-freebsd-usb@FreeBSD.ORG Mon Nov 23 16:30:13 2009 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 28694106566C for ; Mon, 23 Nov 2009 16:30:13 +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 F22A88FC18 for ; Mon, 23 Nov 2009 16:30:12 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nANGUCi1091385 for ; Mon, 23 Nov 2009 16:30:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nANGUC9l091372; Mon, 23 Nov 2009 16:30:12 GMT (envelope-from gnats) Date: Mon, 23 Nov 2009 16:30:12 GMT Message-Id: <200911231630.nANGUC9l091372@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Hans Petter Selasky Cc: Subject: Re: usb/140810: 8.X+ uftdi copy and paste problem / tty overflow X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Hans Petter Selasky List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Nov 2009 16:30:13 -0000 The following reply was made to PR usb/140810; it has been noted by GNATS. From: Hans Petter Selasky To: freebsd-usb@freebsd.org Cc: Corey Smith , freebsd-gnats-submit@freebsd.org Subject: Re: usb/140810: 8.X+ uftdi copy and paste problem / tty overflow Date: Mon, 23 Nov 2009 17:25:19 +0100 On Monday 23 November 2009 16:45:54 Corey Smith wrote: > >Number: 140810 > >Category: usb > >Synopsis: 8.X+ uftdi copy and paste problem / tty overflow > >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 Nov 23 15:50:01 UTC 2009 > >Closed-Date: > >Last-Modified: > >Originator: Corey Smith > >Release: 8.0-RC3 > >Organization: > > BondDesk Group > > >Environment: > > FreeBSD 8.0-RC3 FreeBSD 8.0-RC3 #2: Fri Nov 20 18:28:57 EST 2009 > root@:/usr/src/sys/amd64/compile/GENERIC amd64 > > >Description: > > We are using a VSCOM USB-16COM-RM which is a UFTDI based 16 port serial > terminal. > > It is detected as 8 FT2232C dual port serial connections: > > product FTDI SERIAL_2232C 0x6010 FT2232C Dual port Serial > > ugen3.3: at usbus3, cfg=0 md=HOST spd=FULL > (12Mbps) pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0200 > bDeviceClass = 0x0000 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0008 > idVendor = 0x0403 > idProduct = 0x6010 > bcdDevice = 0x0500 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0003 > bNumConfigurations = 0x0001 > > If you 'tip ucom1' and paste a long sequence of text into the terminal then > the terminal will start to constantly spew what appears to be random memory > contents to the host connected on ucom1. This same configuration is known > good in 7.1-RELEASE. > > The problem definitely occurs on 8.0-BETA3 and 8.0-RC3. The serial ports > work fine if you never copy and paste but as soon as you start to copy and > paste more than 60 odd characters at a time you see this random garbage on > the tty. AFAIK the garbage will continuously send to the attached host > until you reboot the box. > > I don't know if this problem is reproducible using other uftdi based > devices as I don't have any other hardware to test with. > > >How-To-Repeat: > > Paste long sequences of text into a tip session connected through a uftdi > device under 8.0-RC3. Notice constant garbage being transmitted to the > host until you reboot the console server. > > >Fix: > > No fix but a workaround is to not copy and paste into terminals connected > through uftdi devices. > Hi, I can you enable ucom debugging while doing the test? sysctl hw.usb.ucom.debug=15 --HPS