From: "Fea.Wang" <fea.wang@sifive.com>
To: qemu-devel@nongnu.org, qemu-riscv@nongnu.org
Cc: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>,
Alistair Francis <alistair@alistair23.me>,
Peter Maydell <peter.maydell@linaro.org>,
Jason Wang <jasowang@redhat.com>,
qemu-arm@nongnu.org (open list:Xilinx Zynq),
"Fea.Wang" <fea.wang@sifive.com>
Subject: [PATCH v3 0/3] hw/dma: Add error handling for loading descriptions failing
Date: Thu, 13 Jun 2024 09:34:58 +0800 [thread overview]
Message-ID: <20240613013501.426905-1-fea.wang@sifive.com> (raw)
The original code assumes that memory transmission is always successful,
but in some cases, it gets bus-error.
Add error handling for DMA reading description failures. Do some
reasonable settings, and return the corrected transmission size.
Finally, return the error status.
* Fix the trace format for an unsigned variable
base-commit: d82f37faf5643897b2e61abb229499d64a51aa26
[v2]
* Add DMASR_DECERR case
* Squash the two commits to one
base-commit: 915758c537b5fe09575291f4acd87e2d377a93de
[v1]
base-commit: 1806da76cb81088ea026ca3441551782b850e393
Fea.Wang (3):
hw/dma: Enhance error handling in loading description
hw/dma: Add a trace log for a description loading failure
hw/net: Fix the transmission return size
Fea.Wang (3):
hw/dma: Enhance error handling in loading description
hw/dma: Add a trace log for a description loading failure
hw/net: Fix the transmission return size
hw/dma/trace-events | 3 +++
hw/dma/xilinx_axidma.c | 33 +++++++++++++++++++++++++++++----
hw/net/xilinx_axienet.c | 2 +-
3 files changed, 33 insertions(+), 5 deletions(-)
--
2.34.1
next reply other threads:[~2024-06-13 1:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-13 1:34 Fea.Wang [this message]
2024-06-13 1:34 ` [PATCH v3 1/3] hw/dma: Enhance error handling in loading description Fea.Wang
2024-06-13 1:35 ` [PATCH v3 2/3] hw/dma: Add a trace log for a description loading failure Fea.Wang
2024-06-18 10:54 ` Philippe Mathieu-Daudé
2024-06-13 1:35 ` [PATCH v3 3/3] hw/net: Fix the transmission return size Fea.Wang
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=20240613013501.426905-1-fea.wang@sifive.com \
--to=fea.wang@sifive.com \
--cc=alistair@alistair23.me \
--cc=edgar.iglesias@gmail.com \
--cc=jasowang@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-riscv@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).