[PATCH 0/6] hw/dma,net: Fix Xilinx AXI DMA and Ethernet

Jay Chang posted 6 patches 1 month, 1 week ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20261015033733.35116-1-jay.chang@sifive.com
Maintainers: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>, Alistair Francis <alistair@alistair23.me>, Peter Maydell <peter.maydell@linaro.org>, Jason Wang <jasowangio@gmail.com>
hw/dma/xilinx_axidma.c  | 249 +++++++++++++++++++++++++++++-----------
hw/net/xilinx_axienet.c |  12 ++
2 files changed, 193 insertions(+), 68 deletions(-)
[PATCH 0/6] hw/dma,net: Fix Xilinx AXI DMA and Ethernet
Posted by Jay Chang 1 month, 1 week ago
The Xilinx AXI DMA controller supports 64-bit descriptor addresses,
but the QEMU model only handled the low 32 bits during stream
processing.  This causes descriptor accesses to use incorrect
addresses when descriptors are located above 4 GiB.

This series updates the descriptor and MMIO handling and fixes related
AXI DMA and AXI Ethernet behavior.

The series:

- Add 64-bit descriptor address handling to stream processing.
- Add separate 32-bit and 64-bit MMIO access helpers.
- Fix DMASR W1C and DMACR start processing behavior.
- Reset both DMA channels when DMACR_RESET is written.
- Do not start a transfer when TAILDESC is written while the channel
  is halted.
- Fix AXI Ethernet RX packet double-buffering.

Testing:
- Tested Xilinx AXI Ethernet networking with U-Boot.
- Tested DHCP and ping.

Jay Chang (6):
  hw/dma/xilinx_axidma: Support 64-bit descriptor addressing in stream
    processing
  hw/dma/xilinx_axidma: Add 64-bit MMIO access support
  hw/dma/xilinx_axidma: Fix DMASR register handling
  hw/dma/xilinx_axidma: Reset both channels on DMACR_RESET
  hw/dma/xilinx_axidma: Don't start transfer on TAILDESC write when
    halted
  hw/net/xilinx_axienet: Fix packet double-buffering issue

 hw/dma/xilinx_axidma.c  | 249 +++++++++++++++++++++++++++++-----------
 hw/net/xilinx_axienet.c |  12 ++
 2 files changed, 193 insertions(+), 68 deletions(-)

-- 
2.48.1
Re: [PATCH 0/6] hw/dma,net: Fix Xilinx AXI DMA and Ethernet
Posted by Alistair 1 week, 5 days ago
On Thu, 2026-10-15 at 11:37 +0800, Jay Chang wrote:
> The Xilinx AXI DMA controller supports 64-bit descriptor addresses,
> but the QEMU model only handled the low 32 bits during stream
> processing.  This causes descriptor accesses to use incorrect
> addresses when descriptors are located above 4 GiB.
> 
> This series updates the descriptor and MMIO handling and fixes
> related
> AXI DMA and AXI Ethernet behavior.
> 
> The series:
> 
> - Add 64-bit descriptor address handling to stream processing.
> - Add separate 32-bit and 64-bit MMIO access helpers.
> - Fix DMASR W1C and DMACR start processing behavior.
> - Reset both DMA channels when DMACR_RESET is written.
> - Do not start a transfer when TAILDESC is written while the channel
>   is halted.
> - Fix AXI Ethernet RX packet double-buffering.
> 
> Testing:
> - Tested Xilinx AXI Ethernet networking with U-Boot.
> - Tested DHCP and ping.

Thanks!

Applied to riscv-to-apply.next

Alistair

> 
> Jay Chang (6):
>   hw/dma/xilinx_axidma: Support 64-bit descriptor addressing in
> stream
>     processing
>   hw/dma/xilinx_axidma: Add 64-bit MMIO access support
>   hw/dma/xilinx_axidma: Fix DMASR register handling
>   hw/dma/xilinx_axidma: Reset both channels on DMACR_RESET
>   hw/dma/xilinx_axidma: Don't start transfer on TAILDESC write when
>     halted
>   hw/net/xilinx_axienet: Fix packet double-buffering issue
> 
>  hw/dma/xilinx_axidma.c  | 249 +++++++++++++++++++++++++++++---------
> --
>  hw/net/xilinx_axienet.c |  12 ++
>  2 files changed, 193 insertions(+), 68 deletions(-)