Skip to content

Commit a3d8728

Browse files
tq-schiffermgregkh
authored andcommitted
serial: imx: Raise TX trigger level to 8
At the default TX trigger level of 2 in non-DMA mode (meaning that an interrupt is generated when less than 2 characters are left in the FIFO), we have observed frequent buffer underruns at 115200 Baud on an i.MX8M Nano. This can cause communication issues if the receiving side expects a continuous transfer. Increasing the level to 8 makes the UART trigger an interrupt earlier, giving the kernel enough time to refill the FIFO, at the cost of triggering one interrupt per ~24 instead of ~30 bytes of transmitted data (as the i.MX UART has a 32 byte FIFO). Signed-off-by: Michael Krummsdorf <[email protected]> Signed-off-by: Matthias Schiffer <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent abe7015 commit a3d8728

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/tty/serial/imx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1305,7 +1305,7 @@ static void imx_uart_clear_rx_errors(struct imx_port *sport)
13051305

13061306
}
13071307

1308-
#define TXTL_DEFAULT 2 /* reset default */
1308+
#define TXTL_DEFAULT 8
13091309
#define RXTL_DEFAULT 8 /* 8 characters or aging timer */
13101310
#define TXTL_DMA 8 /* DMA burst setting */
13111311
#define RXTL_DMA 9 /* DMA burst setting */

0 commit comments

Comments
 (0)