Skip to content

dmaengine: dw-axi-dmac: Fix burst encoding, LLI dump and priority

Jia Wang dmaengine lkml 3 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected] change-id 20260827-dma-fix-c2b27795ce12

Versions newest first

  1. v3 Latest4 patches 2 repliesApplied
  2. v24 patches 4 repliesSuperseded
  3. v12 patches 6 repliesSuperseded

Changes in v3 from the cover letter

- Initialize cfg_lo separately in each channel configuration branch.
- Remove redundant parentheses from register assignments.
- Link to v2: https://patch.msgid.link/[email protected]

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/4dmaengine: dw-axi-dmac: Fix AXI burst length encodingdrivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c+2 -20 replies
2/4dmaengine: dw-axi-dmac: Fix LLI dump out-of-bounds accessdrivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c+1 -40 replies
3/4dmaengine: dw-axi-dmac: Fix CH_CFG2 channel priority positiondrivers/dma/dw-axi-dmac/dw-axi-dmac.h+1 -10 replies
4/4dmaengine: dw-axi-dmac: Use bitfield helpers for registersdrivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c drivers/dma/dw-axi-dmac/dw-axi-dmac.h+61 -581 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchFrank Li
1/4R-b
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/4] dmaengine: dw-axi-dmac: Fix burst encoding, LLI dump and priority

This series fixes AXI burst length encoding, an out-of-bounds access in the error-path LLI dump, and the CH_CFG2 channel priority field position.

It also converts register field definitions and programming to GENMASK() and FIELD_PREP().

The series was tested with dmatest on all eight channels using snps,axi-max-burst-len = <256>. All channels completed without errors. It was also build-tested on RISC-V with CONFIG_DW_AXI_DMAC as both a module and built-in.

---
Changes in v3:
- Initialize cfg_lo separately in each channel configuration branch.
- Remove redundant parentheses from register assignments.
- Link to v2: https://patch.msgid.link/[email protected]

Changes in v2:
- Use a loop-local unsigned iterator in the LLI dump helper.
- Add a patch to fix the CH_CFG2 channel priority field position.
- Add a cleanup patch to use GENMASK() and FIELD_PREP() for register fields.
- Link to v1: https://patch.msgid.link/[email protected]

To: Eugeniy Paltsev <[email protected]>
To: Vinod Koul <[email protected]>
To: Frank Li <[email protected]>
To: Pandith N <[email protected]>
To: Sia Jee Heng <[email protected]>
To: Andy Shevchenko <[email protected]>
Cc: [email protected]
Cc: [email protected]

---
Jia Wang (4):
dmaengine: dw-axi-dmac: Fix AXI burst length encoding
dmaengine: dw-axi-dmac: Fix LLI dump out-of-bounds access
dmaengine: dw-axi-dmac: Fix CH_CFG2 channel priority position
dmaengine: dw-axi-dmac: Use bitfield helpers for registers

 drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 84 +++++++++++++-------------
 drivers/dma/dw-axi-dmac/dw-axi-dmac.h          | 44 +++++++-------
 2 files changed, 64 insertions(+), 64 deletions(-)

---
base-commit: 89a312991dc6e638a36adc43ccb91dbc25504c04
change-id: 20260827-dma-fix-c2b27795ce12

Best regards,

Signature · 1 line
Jia Wang <[email protected]>