Home
last modified time | relevance | path

Searched hist:"56 dc5074cbec02a6922c4bbce11de9827640bb4b" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/tty/serial/8250/
H A D8250_dma.cdiff 56dc5074cbec02a6922c4bbce11de9827640bb4b Mon Nov 07 04:21:26 CST 2022 Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> serial: 8250_dma: Rearm DMA Rx if more data is pending

When DMA Rx completes, the current behavior is to just exit the DMA
completion handler without future actions. If the transfer is still
on-going, UART will trigger an interrupt and that eventually rearms the
DMA Rx. The extra interrupt round-trip has an inherent latency cost
that increases the risk of FIFO overrun. In such situations, the
latency margin tends to already be less due to FIFO not being empty.

Add check into DMA Rx completion handler to detect if LSR has DR (Data
Ready) still set. DR indicates there will be more characters pending
and DMA Rx can be rearmed right away to handle them.

Cc: Gilles BULOZ <gilles.buloz@kontron.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20221107102126.56481-1-ilpo.jarvinen@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>