From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: qemu-devel@nongnu.org
Cc: "Paolo Bonzini" <pbonzini@redhat.com>,
qemu-arm@nongnu.org, "Alex Bennée" <alex.bennee@linaro.org>,
"Evgeny Iakovlev" <eiakovlev@linux.microsoft.com>,
"Marc-André Lureau" <marcandre.lureau@redhat.com>,
"Peter Maydell" <peter.maydell@linaro.org>,
"Philippe Mathieu-Daudé" <philmd@linaro.org>,
"Mikko Rapeli" <mikko.rapeli@linaro.org>
Subject: [PATCH 00/12] hw/char/pl011: Implement TX (async) FIFO to avoid blocking the main loop
Date: Mon, 22 May 2023 17:31:32 +0200 [thread overview]
Message-ID: <20230522153144.30610-1-philmd@linaro.org> (raw)
Hi,
This series add support for (async) FIFO on the transmit path
of the PL011 UART.
- First we add fifo8_peek_buf() to the fifo8 API (patches 1-3),
- Then we massage a bit the pl011 model to ease development
(patches 4-11),
- Finally we add the TX FIFO implementation using a chardev
front-end 'watch' callback.
The last patch is RFC mostly because I don't know what is the
best way to resolve adding a new migratable field without
breaking the migration stream.
Tested with qtest/avocado/TRS test suites:
trs-workspace$ make test
Startup finished in 6min 40.596s (kernel) + 38.786s (userspace) = 7min 19.382s.
RESULTS - date.DateTest.test_date: PASSED (46.90s)
RESULTS - df.DfTest.test_df: PASSED (2.29s)
RESULTS - parselogs.ParseLogsTest.test_parselogs: PASSED (23.45s)
RESULTS - ping.PingTest.test_ping: PASSED (0.05s)
RESULTS - python.PythonTest.test_python3: PASSED (2.72s)
RESULTS - rtc.RTCTest.test_rtc: PASSED (51.84s)
RESULTS - ssh.SSHTest.test_ssh: PASSED (4.56s)
RESULTS - systemd.SystemdBasicTests.test_systemd_basic: PASSED (2.33s)
RESULTS - systemd.SystemdBasicTests.test_systemd_failed: PASSED (4.41s)
RESULTS - systemd.SystemdBasicTests.test_systemd_list: PASSED (30.07s)
RESULTS - systemd.SystemdJournalTests.test_systemd_boot_time: PASSED (2.42s)
RESULTS - systemd.SystemdJournalTests.test_systemd_journal: PASSED (2.62s)
RESULTS - systemd.SystemdServiceTests.test_systemd_disable_enable: PASSED (40.34s)
RESULTS - systemd.SystemdServiceTests.test_systemd_status: PASSED (2.43s)
RESULTS - systemd.SystemdServiceTests.test_systemd_stop_start: PASSED (9.23s)
RESULTS - opteetest.OpteeTestSuite.test_opteetest_xtest: PASSED (329.89s)
RESULTS - soafeetestsuite.SoafeeTestSuite.test_soafee: PASSED (272.07s)
RESULTS - tpm.TpmTestSuite.test_tpm: PASSED (53.61s)
RESULTS - ptest.PtestRunnerTest.test_ptestrunner_expectfail: SKIPPED (0.00s)
RESULTS - ptest.PtestRunnerTest.test_ptestrunner_expectsuccess: SKIPPED (0.00s)
RESULTS - systemd.SystemdServiceTests.test_systemd_disable_enable_ro: SKIPPED (0.00s)
SUMMARY:
trs-image () - Ran 21 tests in 883.291s
trs-image - OK - All required tests passed (successes=18, skipped=3, failures=0, errors=0)
Philippe Mathieu-Daudé (12):
util/fifo8: Fix typo in fifo8_push_all() description
util/fifo8: Allow fifo8_pop_buf() to not populate popped length
util/fifo8: Introduce fifo8_peek_buf()
hw/char/pl011: Display register name in trace events
hw/char/pl011: Remove duplicated PL011_INT_[RT]X definitions
hw/char/pl011: Replace magic values by register field definitions
hw/char/pl011: Split RX/TX path of pl011_reset_fifo()
hw/char/pl011: Extract pl011_write_tx() from pl011_write()
hw/char/pl011: Check if transmitter is enabled
hw/char/pl011: Check if receiver is enabled
hw/char/pl011: Rename RX FIFO methods
hw/char/pl011: Implement TX FIFO
include/hw/char/pl011.h | 2 +
include/qemu/fifo8.h | 38 ++++++--
hw/char/pl011.c | 209 +++++++++++++++++++++++++++++++++-------
util/fifo8.c | 28 +++++-
hw/char/trace-events | 12 ++-
5 files changed, 239 insertions(+), 50 deletions(-)
--
2.38.1
next reply other threads:[~2023-05-22 15:33 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-22 15:31 Philippe Mathieu-Daudé [this message]
2023-05-22 15:31 ` [PATCH 01/12] util/fifo8: Fix typo in fifo8_push_all() description Philippe Mathieu-Daudé
2023-05-22 19:06 ` Francisco Iglesias
2023-05-23 13:22 ` Alex Bennée
2023-05-22 15:31 ` [PATCH 02/12] util/fifo8: Allow fifo8_pop_buf() to not populate popped length Philippe Mathieu-Daudé
2023-05-22 19:13 ` Francisco Iglesias
2023-05-23 13:25 ` Alex Bennée
2023-05-22 15:31 ` [PATCH 03/12] util/fifo8: Introduce fifo8_peek_buf() Philippe Mathieu-Daudé
2023-05-22 19:38 ` Francisco Iglesias
2023-05-23 13:25 ` Alex Bennée
2023-05-22 15:31 ` [PATCH 04/12] hw/char/pl011: Display register name in trace events Philippe Mathieu-Daudé
2023-05-23 13:31 ` Alex Bennée
2023-05-22 15:31 ` [PATCH 05/12] hw/char/pl011: Remove duplicated PL011_INT_[RT]X definitions Philippe Mathieu-Daudé
2023-05-23 13:32 ` Alex Bennée
2023-05-22 15:31 ` [PATCH 06/12] hw/char/pl011: Replace magic values by register field definitions Philippe Mathieu-Daudé
2023-05-23 13:34 ` Alex Bennée
2023-05-22 15:31 ` [PATCH 07/12] hw/char/pl011: Split RX/TX path of pl011_reset_fifo() Philippe Mathieu-Daudé
2023-05-23 13:35 ` Alex Bennée
2023-05-22 15:31 ` [PATCH 08/12] hw/char/pl011: Extract pl011_write_tx() from pl011_write() Philippe Mathieu-Daudé
2023-05-23 13:36 ` Alex Bennée
2023-05-22 15:31 ` [PATCH 09/12] hw/char/pl011: Check if transmitter is enabled Philippe Mathieu-Daudé
2023-05-23 13:36 ` Alex Bennée
2023-05-25 12:30 ` Peter Maydell
2023-05-25 12:51 ` Alex Bennée
2023-05-25 12:55 ` Peter Maydell
2023-05-25 13:17 ` Philippe Mathieu-Daudé
2023-05-22 15:31 ` [PATCH 10/12] hw/char/pl011: Check if receiver " Philippe Mathieu-Daudé
2023-05-23 13:38 ` Alex Bennée
2023-05-22 15:31 ` [PATCH 11/12] hw/char/pl011: Rename RX FIFO methods Philippe Mathieu-Daudé
2023-05-23 13:39 ` Alex Bennée
2023-05-22 15:31 ` [PATCH 12/12] hw/char/pl011: Implement TX FIFO Philippe Mathieu-Daudé
2023-05-23 13:47 ` Alex Bennée
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230522153144.30610-1-philmd@linaro.org \
--to=philmd@linaro.org \
--cc=alex.bennee@linaro.org \
--cc=eiakovlev@linux.microsoft.com \
--cc=marcandre.lureau@redhat.com \
--cc=mikko.rapeli@linaro.org \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).