Skip to content

hw/char/pl011: Implement TX (async) FIFO to avoid blocking the main loop

Philippe Mathieu-Daudé qemu-arm qemu-devel 8 versions – Applied

Status from this message: I've applied it to target-arm.next.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest7 patches 4 repliesApplied
  2. v67 patches 14 repliesApplied
  3. v516 patches 12 repliesSuperseded
Earlier versions · 5
VersionPostedPatchesRepliesStatus
v410 patches18 repliesSuperseded
v39 of 10 patches5 repliesSuperseded
v2 posting 2/211 patches14 repliesSuperseded
v2 posting 1/23 patches0 repliesSuperseded
v112 patches19 repliesSuperseded

Changes in v7 from the cover letter

- Incorporated Peter's fixes in corresponding patches

Patches in v7 Applied

#Subject and filesSizeRepliesApplied
1/7hw/char/pl011: Add transmit FIFO to PL011Statehw/char/pl011.c include/hw/char/pl011.h+37 -20 replies
2/7hw/char/pl011: Introduce pl011_xmit()hw/char/pl011.c hw/char/trace-events+39 -70 replies
3/7hw/char/pl011: Factor pl011_xmit_cb() out as GSourcehw/char/pl011.c+14 -10 replies
4/7hw/char/pl011: Trace FIFO enablementhw/char/pl011.c hw/char/trace-events+3 -10 replies
5/7hw/char/pl011: Consider TX FIFO overrun errorhw/char/pl011.c hw/char/trace-events+24 -00 replies
6/7hw/char/pl011: Drain TX FIFO when no backend connectedhw/char/pl011.c hw/char/trace-events+14 -00 replies
7/7hw/char/pl011: Implement TX FIFOhw/char/pl011.c hw/char/trace-events+28 -80 replies

Reviews trailers per patch

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

PatchAlex BennéePeter Maydell
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7R-b
7/7R-b

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

Read the v7 thread

Cover letter [PATCH v7 0/7] hw/char/pl011: Implement TX (async) FIFO to avoid blocking the main loop

Hi,

This series add support for (async) FIFO on the transmit path of the PL011 UART.

Since v6:
- Incorporated Peter's fixes in corresponding patches

Since v5:
- Rebased (few patches already merged)
- Do not forbid disabled UART/receiver (Peter)
- Use fifo8_peek API for wrapped buffer (Mark)

Since v4:
- Rebased (loopback)
- Addressed Richard & Juan migration comments
- Split in smaller patches

Since v3:
- Document migration bits (Alex, Richard)
- Just check FIFO is not empty in pl011_xmit_fifo_state_needed (rth)
- In pl011_xmit check TX enabled first, and ignore < 8-bit TX (rth)

Since v2:
- Added R-b tags
- Addressed Richard comments on migration

Since v1:
- Restrict pl011_ops[] impl access_size,
- Do not check transmitter is enabled (Peter),
- Addressed Alex's review comments,
- Simplified migration trying to care about backward compat, but still unsure...

Philippe Mathieu-Daudé (7):
hw/char/pl011: Add transmit FIFO to PL011State hw/char/pl011: Introduce pl011_xmit() hw/char/pl011: Factor pl011_xmit_cb() out as GSource hw/char/pl011: Trace FIFO enablement hw/char/pl011: Consider TX FIFO overrun error hw/char/pl011: Drain TX FIFO when no backend connected hw/char/pl011: Implement TX FIFO

 include/hw/char/pl011.h |   2 +
 hw/char/pl011.c         | 150 +++++++++++++++++++++++++++++++++++++---
 hw/char/trace-events    |   8 +++
 3 files changed, 150 insertions(+), 10 deletions(-)
Signature · 1 line
2.47.1