From owner-freebsd-usb@FreeBSD.ORG Sun Aug 15 19:15:38 2010 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 26EA61065679; Sun, 15 Aug 2010 19:15:38 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe08.swip.net [212.247.154.225]) by mx1.freebsd.org (Postfix) with ESMTP id 4768F8FC16; Sun, 15 Aug 2010 19:15:36 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=p0DJaE8zavVXm5tqcSh7H4n2mR2d5Wi7j6pzZ51DRjI= c=1 sm=1 a=Rn8JuselT4EA:10 a=Q9fys5e9bTEA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=0QFnHyNPTXTjMwmHCNMA:9 a=t39PNl2PBzP8FLLodtMA:7 a=u6dOHVXBfkWEXian8rJrNZw4Ci0A:4 a=PUjeQqilurYA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe08.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 7013817; Sun, 15 Aug 2010 21:14:51 +0200 From: Hans Petter Selasky To: Paul Thornton Date: Sun, 15 Aug 2010 21:11:59 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <201008151947.04963.hselasky@c2i.net> <4C6838A8.6040907@prt.org> In-Reply-To: <4C6838A8.6040907@prt.org> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201008152111.59671.hselasky@c2i.net> Cc: freebsd-gnats-submit@freebsd.org, ed@freebsd.org, freebsd-usb@freebsd.org Subject: Re: usb/149675: uftdi doesn't react to break properly 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, 15 Aug 2010 19:15:38 -0000 On Sunday 15 August 2010 20:57:44 Paul Thornton wrote: > Hi, > > Hans Petter Selasky wrote: > > I believe the following patch will fix your problem. Please apply and > > rebuild kernel / ucom module. > > That has made a dramatic difference - things now look much better. > Thank you very much for that. > > I'm still seeing a slight problem though. In my test setup, I have a PC > (Windows but that shouldn't matter!) running an appplication which > transmits a break followed by the 513 data bytes - and this repeats > continually at near line-rate at 250kbaud. > > Pre-patching, FreeBSD was unable to keep data byte 1 in location 1 at > all - it appeared randomly wherever it happened to be due to the lack of > break clearing the input buffer, and as the data dump of the buffer > refreshed, the values moved around as the breaks were turning up as datab. > > After I've applied the patch, it starts off well - data byte 1 is in > location 1, but every 5-10 seconds there is a shift by a byte suggesting > that an extra byte has been received. Is there any way that a break > could still be creeping in to the data stream periodically? > > Under Linux, the code runs properly and there is no movement of the data > bytes, so I'm reasonably confident that it isn't a bug of mine. > > Paul. I guess you will have to turn on ucom and uftdi debugging knobs under hw.usb.xxx to figure that out. USB is just forwarding what it gets from the hardware. --HPS