diff options
author | Ilpo Järvinen <[email protected]> | 2022-11-07 12:21:26 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2022-11-09 13:03:35 +0100 |
commit | 56dc5074cbec02a6922c4bbce11de9827640bb4b (patch) | |
tree | 4fe42ee61ff48dafaeb6b74b8bfbc92156061a07 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | c6d30576bd6ce33095d39fe66a51ea821e953ac6 (diff) |
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 <[email protected]>
Signed-off-by: Ilpo Järvinen <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions