lkml.org 
[lkml]   [2000]   [Mar]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: serial.c fifo overrun problem?
On Wed, 29 Mar 2000, Jonathan Larmour wrote:

> However info->xmit_fifo_size is set to 16 for a 16550A, and the FIFO
> threshold for speeds of 2400bps and above is 8. And it calls
> transmit_chars() when the threshold is reached. This would mean the FIFO
> would get overrun if it ever rose above the threshold and there were more
> than 8 more chars waiting to be sent.
>
> Is my analysis correct?

No. UART_LSR_THRE is set only when the fifo is empty. This is
independent of how the fifo threshold interrupt is set, which in any case
is only for the receive fifo as far as I can tell. Thus transmit_chars()
is only called when we know we can send a full fifo's worth of data.

--
Linuxcare. Support for the Revolution.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:57    [W:0.036 / U:0.240 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site