qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] hw/dma: Add error handling for loading descriptions failing
@ 2024-06-03  5:52 Fea.Wang
  2024-06-03  5:52 ` [PATCH 1/4] hw/dma: Enhance error handling in loading description Fea.Wang
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Fea.Wang @ 2024-06-03  5:52 UTC (permalink / raw)
  To: qemu-devel, qemu-riscv
  Cc: Edgar E. Iglesias, Alistair Francis, Peter Maydell, Jason Wang,
	open list:Xilinx Zynq, Fea.Wang

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.

base-commit: 1806da76cb81088ea026ca3441551782b850e393

Fea.Wang (4):
  hw/dma: Enhance error handling in loading description
  hw/dma: Break the loop when loading descriptions fails
  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  | 27 +++++++++++++++++++++++----
 hw/net/xilinx_axienet.c |  2 +-
 3 files changed, 27 insertions(+), 5 deletions(-)

-- 
2.34.1



^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2024-06-04  7:02 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-03  5:52 [PATCH 0/4] hw/dma: Add error handling for loading descriptions failing Fea.Wang
2024-06-03  5:52 ` [PATCH 1/4] hw/dma: Enhance error handling in loading description Fea.Wang
2024-06-03 10:18   ` Edgar E. Iglesias
2024-06-04  6:41     ` Fea Wang
2024-06-04  7:00   ` Frank Chang
2024-06-03  5:52 ` [PATCH 2/4] hw/dma: Break the loop when loading descriptions fails Fea.Wang
2024-06-03 10:21   ` Edgar E. Iglesias
2024-06-04  6:52     ` Fea Wang
2024-06-04  7:00   ` Frank Chang
2024-06-03  5:52 ` [PATCH 3/4] hw/dma: Add a trace log for a description loading failure Fea.Wang
2024-06-03 10:22   ` Edgar E. Iglesias
2024-06-04  7:01   ` Frank Chang
2024-06-03  5:52 ` [PATCH 4/4] hw/net: Fix the transmission return size Fea.Wang
2024-06-03 10:31   ` Edgar E. Iglesias
2024-06-04  6:57     ` Fea Wang
2024-06-04  7:01   ` Frank Chang

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).