From owner-freebsd-usb@FreeBSD.ORG Mon Nov 23 16:23:49 2009 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 A5A5C106566B; Mon, 23 Nov 2009 16:23:49 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe10.swip.net [212.247.155.33]) by mx1.freebsd.org (Postfix) with ESMTP id CFDDF8FC0C; Mon, 23 Nov 2009 16:23:48 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=MwvWZ3YEoloA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=IzxjMftRdCktUPC0Np8A:9 a=-am4eWILiePMzuJSKrQA:7 a=qPdlMeudGqLF5TLjBP3kCEJ5ws4A:4 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe10.swip.net (CommuniGate Pro SMTP 5.2.16) with ESMTPA id 1151476395; Mon, 23 Nov 2009 17:23:46 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Mon, 23 Nov 2009 17:25:19 +0100 User-Agent: KMail/1.11.4 (FreeBSD/9.0-CURRENT; KDE/4.2.4; i386; ; ) References: <200911231545.nANFjs2W091289@www.freebsd.org> In-Reply-To: <200911231545.nANFjs2W091289@www.freebsd.org> X-Face: (%:6u[ldzJ`0qjD7sCkfdMmD*RxpOwEEQ+KWt[{J#x6ow~JO:,zwp.(t; @Aq :4:&nFCgDb8[3oIeTb^'",;u{5{}C9>"PuY\)!=#\u9SSM-nz8+SR~B\!qBv MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200911231725.20787.hselasky@c2i.net> Cc: Corey Smith , freebsd-gnats-submit@freebsd.org 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 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:23:49 -0000 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