Skip to content

hw/char: Improve RX FIFO depth uses

Philippe Mathieu-Daudé qemu-arm qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 13 repliesIn review
  2. v19 patches 11 repliesSuperseded

Changes in v2 from the cover letter

- Fixed typos (Luc)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9hw/char/pl011: Warn when using disabled receiverhw/char/pl011.c+9 -01 reply
2/9hw/char/pl011: Simplify a bit pl011_can_receive()hw/char/pl011.c+3 -21 reply
3/9hw/char/pl011: Improve RX flow tracing eventshw/char/pl011.c hw/char/trace-events+10 -71 reply
4/9hw/char/pl011: Really use RX FIFO depthhw/char/pl011.c+5 -31 reply
5/9hw/char/bcm2835_aux: Really use RX FIFO depthhw/char/bcm2835_aux.c+4 -21 reply
6/9hw/char/imx_serial: Really use RX FIFO depthhw/char/imx_serial.c+6 -22 replies
7/9hw/char/mcf_uart: Use FIFO_DEPTH definition instead of magic valueshw/char/mcf_uart.c+7 -32 replies
8/9hw/char/mcf_uart: Really use RX FIFO depthhw/char/mcf_uart.c+4 -22 replies
9/9hw/char/sh_serial: Return correct number of empty RX FIFO elementshw/char/sh_serial.c+14 -161 reply

Reviews trailers per patch

All 9 patches have a Reviewed-by or Acked-by.

PatchRichard HendersonLuc MichelAlex BennéePeter MaydellThomas HuthBernhard Beschow
1/9R-b R-b
2/9R-b R-b
3/9R-b R-b R-b
4/9R-b R-b Inspired-by
5/9R-b R-b
6/9R-b R-b T-b
7/9R-b R-b R-b
8/9R-b R-b T-b R-b
9/9R-b R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/9] hw/char: Improve RX FIFO depth uses

Since v1:
- Fixed typos (Luc)

Some UART devices implement a RX FIFO but their code (via IOCanReadHandler) only return a size of 1 element, while we can receive more chars.

This series takes advantage of the full depth.

Inspired by pm215 chat comment on yesterday's community meeting on the PL011 Rust implementation description by Paolo :)

Philippe Mathieu-Daudé (9):
hw/char/pl011: Warn when using disabled receiver hw/char/pl011: Simplify a bit pl011_can_receive() hw/char/pl011: Improve RX flow tracing events hw/char/pl011: Really use RX FIFO depth hw/char/bcm2835_aux: Really use RX FIFO depth hw/char/imx_serial: Really use RX FIFO depth hw/char/mcf_uart: Use FIFO_DEPTH definition instead of magic values hw/char/mcf_uart: Really use RX FIFO depth hw/char/sh_serial: Return correct number of empty RX FIFO elements

 hw/char/bcm2835_aux.c |  6 ++++--
 hw/char/imx_serial.c  |  8 ++++++--
 hw/char/mcf_uart.c    | 16 +++++++++++-----
 hw/char/pl011.c       | 30 ++++++++++++++++++++++--------
 hw/char/sh_serial.c   | 30 ++++++++++++++----------------
 hw/char/trace-events  |  7 ++++---
 6 files changed, 61 insertions(+), 36 deletions(-)
Signature · 1 line
2.47.1