]> asedeno.scripts.mit.edu Git - linux.git/commit
imx-serial: Reduce RX DMA startup latency when opening for reading
authorPeter Senna Tschudin <peter.senna@collabora.com>
Fri, 7 Apr 2017 09:45:24 +0000 (11:45 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Apr 2017 19:36:43 +0000 (21:36 +0200)
commit18a4208826dd0a13eb06de724c86bba2c225f943
treee49c8cfaa331800383c72e5277d2f06d0016f7bc
parent77e6fe7fd2b7cba0bf2f2dc8cde51d7b9a35bf74
imx-serial: Reduce RX DMA startup latency when opening for reading

Reduce RX DMA start latency for the first reception when port is opened
for reading. Instead of waiting for an interrupt signaling data on RX
FIFO or data too old on RX FIFO, start RX DMA immediately when the
serial port is opened for reading.

Before this patch, the average RX DMA latency for the first reception
was 42489 microseconds with a standard deviation of 25721 microseconds
in 36 samples.

After the patch the average RX DMA latency for the first reception, when
the serial port is opened for reading, is 653 microseconds with a
standard deviation of 294 microseconds in 36 samples.

Signed-off-by: Peter Senna Tschudin <peter.senna@collabora.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c