Skip to content

tty: drop low-latency workarounds

Johan Hovold linux-serial lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest26 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/26tty: mxser: drop low-latency workarounddrivers/tty/mxser.c+0 -71 reply
2/26serial: altera_jtaguart: drop low-latency workarounddrivers/tty/serial/altera_jtaguart.c+0 -21 reply
3/26serial: altera_uart: drop low-latency workarounddrivers/tty/serial/altera_uart.c+0 -21 reply
4/26serial: amba-pl010: drop low-latency workarounddrivers/tty/serial/amba-pl010.c+0 -20 replies
5/26serial: amba-pl011: drop low-latency workarounddrivers/tty/serial/amba-pl011.c+0 -21 reply
6/26serial: apbuart: drop low-latency workarounddrivers/tty/serial/apbuart.c+0 -20 replies
7/26serial: ar933x: drop low-latency workarounddrivers/tty/serial/ar933x_uart.c+0 -20 replies
8/26serial: arc_uart: drop low-latency workarounddrivers/tty/serial/arc_uart.c+0 -20 replies
9/26serial: atmel_serial: drop low-latency workarounddrivers/tty/serial/atmel_serial.c+0 -180 replies
10/26serial: bcm63xx: drop low-latency workarounddrivers/tty/serial/bcm63xx_uart.c+0 -20 replies
11/26serial: icom: drop low-latency workarounddrivers/tty/serial/icom.c+0 -20 replies
12/26serial: lpc32xx_hs: drop low-latency workarounddrivers/tty/serial/lpc32xx_hs.c+0 -20 replies
13/26serial: mcf: drop low-latency workarounddrivers/tty/serial/mcf.c+0 -20 replies
14/26serial: meson: drop low-latency workarounddrivers/tty/serial/meson_uart.c+0 -20 replies
15/26serial: mpc52xx_uart: drop low-latency workarounddrivers/tty/serial/mpc52xx_uart.c+0 -20 replies
16/26serial: msm_serial: drop low-latency workarounddrivers/tty/serial/msm_serial.c+0 -41 reply
17/26serial: owl: drop low-latency workarounddrivers/tty/serial/owl-uart.c+0 -20 replies
18/26serial: rda: drop low-latency workarounddrivers/tty/serial/rda-uart.c+0 -20 replies
19/26serial: rp2: drop low-latency workarounddrivers/tty/serial/rp2.c+0 -20 replies
20/26serial: sa1100: drop low-latency workarounddrivers/tty/serial/sa1100.c+0 -20 replies
21/26serial: txx9: drop low-latency workarounddrivers/tty/serial/serial_txx9.c+2 -20 replies
22/26serial: sifive: drop low-latency workarounddrivers/tty/serial/sifive.c+0 -20 replies
23/26serial: sunsu: drop low-latency workarounddrivers/tty/serial/sunsu.c+0 -41 reply
24/26serial: timbuart: drop low-latency workarounddrivers/tty/serial/timbuart.c+0 -20 replies
25/26serial: vt8500: drop low-latency workarounddrivers/tty/serial/vt8500_serial.c+0 -20 replies
26/26serial: xilinx_uartps: drop low-latency workarounddrivers/tty/serial/xilinx_uartps.c+1 -20 replies

Reviews trailers per patch

6 of 26 patches have a Reviewed-by or Acked-by.

PatchTobias KlauserDavid S. MillerBjorn AnderssonLinus WalleijJiri Slaby
1/26R-b
2/26A-b
3/26A-b
4/26
5/26R-b
6/26
7/26
8/26
9/26
10/26
11/26
12/26
13/26
14/26
15/26
16/26A-b
17/26
18/26
19/26
20/26
21/26
22/26
23/26A-b
24/26
25/26
26/26

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v1 thread

Cover letter [PATCH 00/26] tty: drop low-latency workarounds

The infamous low_latency behaviour of tty_flip_buffer_push(), which meant that data could be pushed to the line discipline immediately instead of being deferred to a work queue, was finally removed in 2014.

Since then there's no need for drivers to keep hacks to temporarily drop the port lock during receive processing but this pattern has been reproduced in later added drivers nonetheless.

Note that several of these workarounds were added by a series posted in 2013, which ended up being merged despite having completely nonsensical commit messages. As it turned out, it was just the RT patch set which effectively enabled the low_latency flag for serial drivers that did not handle it.

There's of course nothing wrong releasing the port lock before calling tty_flip_buffer_push(), and some drivers still do after this series, but let's get rid of the completely unnecessary unlock-and-reacquire pattern.

Johan

Johan Hovold (26):
tty: mxser: drop low-latency workaround
serial: altera_jtaguart: drop low-latency workaround
serial: altera_uart: drop low-latency workaround
serial: amba-pl010: drop low-latency workaround
serial: amba-pl011: drop low-latency workaround
serial: apbuart: drop low-latency workaround
serial: ar933x: drop low-latency workaround
serial: arc_uart: drop low-latency workaround
serial: atmel_serial: drop low-latency workaround
serial: bcm63xx: drop low-latency workaround
serial: icom: drop low-latency workaround
serial: lpc32xx_hs: drop low-latency workaround
serial: mcf: drop low-latency workaround
serial: meson: drop low-latency workaround
serial: mpc52xx_uart: drop low-latency workaround
serial: msm_serial: drop low-latency workaround
serial: owl: drop low-latency workaround
serial: rda: drop low-latency workaround
serial: rp2: drop low-latency workaround
serial: sa1100: drop low-latency workaround
serial: txx9: drop low-latency workaround
serial: sifive: drop low-latency workaround
serial: sunsu: drop low-latency workaround
serial: timbuart: drop low-latency workaround
serial: vt8500: drop low-latency workaround
serial: xilinx_uartps: drop low-latency workaround

 drivers/tty/mxser.c                  |  7 -------
 drivers/tty/serial/altera_jtaguart.c |  2 --
 drivers/tty/serial/altera_uart.c     |  2 --
 drivers/tty/serial/amba-pl010.c      |  2 --
 drivers/tty/serial/amba-pl011.c      |  2 --
 drivers/tty/serial/apbuart.c         |  2 --
 drivers/tty/serial/ar933x_uart.c     |  2 --
 drivers/tty/serial/arc_uart.c        |  2 --
 drivers/tty/serial/atmel_serial.c    | 18 ------------------
 drivers/tty/serial/bcm63xx_uart.c    |  2 --
 drivers/tty/serial/icom.c            |  2 --
 drivers/tty/serial/lpc32xx_hs.c      |  2 --
 drivers/tty/serial/mcf.c             |  2 --
 drivers/tty/serial/meson_uart.c      |  2 --
 drivers/tty/serial/mpc52xx_uart.c    |  2 --
 drivers/tty/serial/msm_serial.c      |  4 ----
 drivers/tty/serial/owl-uart.c        |  2 --
 drivers/tty/serial/rda-uart.c        |  2 --
 drivers/tty/serial/rp2.c             |  2 --
 drivers/tty/serial/sa1100.c          |  2 --
 drivers/tty/serial/serial_txx9.c     |  4 ++--
 drivers/tty/serial/sifive.c          |  2 --
 drivers/tty/serial/sunsu.c           |  4 ----
 drivers/tty/serial/timbuart.c        |  2 --
 drivers/tty/serial/vt8500_serial.c   |  2 --
 drivers/tty/serial/xilinx_uartps.c   |  3 +--
 26 files changed, 3 insertions(+), 77 deletions(-)
Signature · 1 line
2.26.3