From owner-freebsd-usb@FreeBSD.ORG Mon Sep 21 19:55:57 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 2795B1065670 for ; Mon, 21 Sep 2009 19:55:57 +0000 (UTC) (envelope-from pldrouin@pldrouin.net) Received: from smtp.cyberfingers.net (smtp.cyberfingers.net [198.177.254.227]) by mx1.freebsd.org (Postfix) with ESMTP id 040EA8FC2D for ; Mon, 21 Sep 2009 19:55:55 +0000 (UTC) Received: from mdaemon.pldrouin.net (pldrouinlap2-pc.physics.carleton.ca [134.117.23.34]) by smtp.cyberfingers.net (Postfix) with ESMTP id D0AF9AB6C0F; Mon, 21 Sep 2009 15:53:04 -0400 (EDT) Message-ID: <4AB7DA4B.8050105@pldrouin.net> Date: Mon, 21 Sep 2009 15:55:55 -0400 From: Pierre-Luc Drouin User-Agent: Thunderbird 2.0.0.23 (X11/20090824) MIME-Version: 1.0 To: Ed Schouten References: <4AB6DA79.7050209@pldrouin.net> <200909211827.53014.hselasky@c2i.net> <20090921194933.GB95398@hoeg.nl> In-Reply-To: <20090921194933.GB95398@hoeg.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: usb/138659: uftdi driver broken in RELENG_8/CURRENT 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, 21 Sep 2009 19:55:57 -0000 Ed Schouten wrote: > Hi Pierre-Luc, Hans, > > * Hans Petter Selasky wrote: > >> You need to set raw mode for the TTY device I think. Maybe Ed can give you the >> function name you need to call to do that? >> > > Yes. You need cfmakeraw() to do that (or do everything yourself). See > src/lib/libc/gen/termios.c to see what it does. > > So what I'm interested in, is the following: > > "even that device is answering requests slower and slower until > it stalls completely within 1 hour" > > Could you run `pstat -t' to see what's going on when it stalls? This > nifty tool just gives some random statistics on TTYs. Very useful to see > what's going on. Where data is stuck, etc. etc. > > Here is what I get from pstat when I run my executable: while ( 1 ) while? pstat -t ttyU0 | grep ttyU0 while? sleep 1 while? end LINE INQ CAN LIN LOW OUTQ USE LOW COL SESS PGID STATE ttyU0 0 0 0 0 0 0 0 4 0 0 ICl ttyU0 0 0 0 0 0 0 0 4 0 0 ICl ttyU0 0 0 0 0 0 0 0 4 0 0 ICl ttyU0 0 0 0 0 0 0 0 4 0 0 ICl ttyU0 0 0 0 0 0 0 0 4 0 0 ICl ttyU0 0 0 0 0 0 0 0 4 0 0 ICl ttyU0 0 0 0 0 0 0 0 4 0 0 ICl ttyU0 0 0 0 0 0 0 0 4 0 0 ICl ttyU0 1920 0 0 192 1984 0 199 4 0 0 ICOil ttyU0 1920 0 0 192 1984 0 199 4 0 0 ICOil ttyU0 1920 0 0 192 1984 0 199 4 0 0 ICOil ttyU0 1920 0 0 192 1984 0 199 6 0 0 ICOil ttyU0 1920 0 0 192 1984 0 199 6 0 0 ICOil ttyU0 1920 0 0 192 1984 0 199 6 0 0 ICOil ttyU0 1920 0 0 192 1984 0 199 6 0 0 ICOil ttyU0 1920 0 0 192 1984 0 199 6 0 0 ICOil ttyU0 1920 0 0 192 1984 0 199 6 0 0 ICOil ttyU0 1920 0 0 192 1984 0 199 6 0 0 ICOil ttyU0 1920 0 0 192 1984 0 199 6 0 0 ICOil ttyU0 1920 0 0 192 1984 0 199 6 0 0 ICOil ttyU0 1920 0 0 192 1984 0 199 6 0 0 ICOil ttyU0 1920 0 0 192 1984 0 199 6 0 0 ICOil ttyU0 1920 0 0 192 1984 0 199 6 0 0 ICOil