Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Sep 2009 15:55:55 -0400
From:      Pierre-Luc Drouin <pldrouin@pldrouin.net>
To:        Ed Schouten <ed@80386.nl>
Cc:        freebsd-usb@freebsd.org
Subject:   Re: usb/138659: uftdi driver broken in RELENG_8/CURRENT
Message-ID:  <4AB7DA4B.8050105@pldrouin.net>
In-Reply-To: <20090921194933.GB95398@hoeg.nl>
References:  <4AB6DA79.7050209@pldrouin.net> <200909211827.53014.hselasky@c2i.net> <20090921194933.GB95398@hoeg.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
Ed Schouten wrote:
> Hi Pierre-Luc, Hans,
>
> * Hans Petter Selasky <hselasky@c2i.net> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4AB7DA4B.8050105>