[PATCH 0/2] dmaengine: dw-axi-dmac: Fix burst length encoding and LLI dump
From: Jia Wang
Date: Thu Aug 27 2026 - 20:48:52 EST
The first patch converts the configured AXI burst length from a beat count
to the ARLEN/AWLEN encoding when constructing hardware descriptors. Without
this conversion, a 256-beat burst overflows the 8-bit hardware fields and
may cause DMA transfer errors.
The second patch bounds the error-path LLI dump by the number of
descriptors in the current transaction. This prevents an original DMA error
from being followed by an out-of-bounds access and kernel panic while
dumping LLIs.
The series was tested with dmatest on all eight channels using
snps,axi-max-burst-len = <256>. All channels completed without errors.
Signed-off-by: Jia Wang <wangjia@xxxxxxxxxxxxx>
---
Jia Wang (2):
dmaengine: dw-axi-dmac: Fix AXI burst length encoding
dmaengine: dw-axi-dmac: Fix LLI dump out-of-bounds access
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
---
base-commit: 1b78070aaef63512688aebfbc82365ef9d6660f1
change-id: 20260827-dma-fix-c2b27795ce12
Best regards,
--
Jia Wang <wangjia@xxxxxxxxxxxxx>