Skip to content

serial: implement flow control for ASPEED VUART driver

Jeremy Kerr linux-aspeed openbmc 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5serial: Introduce UPSTAT_SYNC_FIFO for synchronised FIFOsdrivers/tty/serial/serial_core.c include/linux/serial_core.h+3 -22 replies
1/5serial: Introduce UPSTAT_SYNC_FIFO for synchronised FIFOs+0 -00 replies
2/5serial: expose buf_overrun count through proc interfacedrivers/tty/serial/serial_core.c+2 -02 replies
2/5serial: expose buf_overrun count through proc interface+0 -00 replies
3/5serial/8250: export serial8250_read_chardrivers/tty/serial/8250/8250_port.c include/linux/serial_8250.h+3 -11 reply
4/5serial/aspeed-vuart: Implement rx throttlingdrivers/tty/serial/8250/8250_aspeed_vuart.c+27 -01 reply
5/5serial/aspeed-vuart: Implement quick throttle mechanismdrivers/tty/serial/8250/8250_aspeed_vuart.c+99 -43 replies
5/5serial/aspeed-vuart: Implement quick throttle mechanism+0 -00 replies
5/5serial/aspeed-vuart: Implement quick throttle mechanism+0 -00 replies

Reviews trailers per patch

None of the 9 patches has a Reviewed-by or Acked-by.

PatchEddie JamesJoel Stanley
SeriesT-b T-b T-b T-b T-b
1/5T-b
1/5T-b
2/5T-b
2/5T-b
3/5T-b
4/5T-b
5/5T-b
5/5T-b
5/5T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] serial: implement flow control for ASPEED VUART driver

This series implements flow control for the ASPEED VUART driver. This hardware is slightly unusual in that the RX data rate can quickly overwhelm the flip buffer code, so the ldisc-driven throttle/unthrottle mechanisms don't entirely solve the problem.

To do this, we have a couple of minor changes to the tty core, as well as an update to the tty proc interface to display buffer overrun metrics (entirely optional, but does allow us to see the problem).

Then, we implement the standard throttle mechanism, and augment it with a fast-path to throttle if we overrun the flip buffers before the ldisc has had a chance to run.

Questions and comments most welcome; I'm fairly new to the tty layer.

Cheers,

Jeremy

---

Jeremy Kerr (5):
serial: Introduce UPSTAT_SYNC_FIFO for synchronised FIFOs
serial: expose buf_overrun count through proc interface serial/8250: export serial8250_read_char serial/aspeed-vuart: Implement rx throttling serial/aspeed-vuart: Implement quick throttle mechanism

 drivers/tty/serial/8250/8250_aspeed_vuart.c | 122 ++++++++++++++++++++++++++++
 drivers/tty/serial/8250/8250_port.c         |   3 +-
 drivers/tty/serial/serial_core.c            |   6 +-
 include/linux/serial_8250.h                 |   1 +
 include/linux/serial_core.h                 |   1 +
 5 files changed, 130 insertions(+), 3 deletions(-)
Signature · 1 line
2.14.1