dmaengine: xilinx_dma: MCDMA descriptor and metadata handling improvements
Status from this message: Applied, thanks!
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v6 Latest4 patches 8 repliesApplied
- v54 patches 1 replySuperseded
- v44 patches 2 repliesSuperseded
Earlier versions · 3
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v3 | 4 patches | 7 replies | Superseded | |
| v2 | 5 patches | 6 replies | Superseded | |
| v1 | 7 patches | 2 replies | Superseded |
Changes in v6 from the cover letter
- Patch4: Added Reviewed-by: Radhey Shyam Pandey
Patches in v6 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | dmaengine: xilinx_dma: Fix MCDMA descriptor fields based on DMA directiondrivers/ | +19 | 2 replies | |
| 2/4 | dmaengine: xilinx_dma: Move descriptors to done list based on completion bitdrivers/ | +11 | 2 replies | |
| 3/4 | net: xilinx: axienet: Derive RX frame length from residue in dmaengine pathdrivers/ | +5 | 2 replies | |
| 4/4 | dmaengine: xilinx_dma: Extend metadata handling for AXI DMA and MCDMAdrivers/ | +43 | 1 reply |
Reviews trailers per patch
All 4 patches have a Reviewed-by or Acked-by.
| Patch | Radhey Shyam Pandey | Frank Li |
|---|---|---|
| 1/4 | R-b | R-b |
| 2/4 | R-b | R-b |
| 3/4 | R-b | |
| 4/4 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH V6 0/4] dmaengine: xilinx_dma: MCDMA descriptor and metadata handling improvements
This series improves the Xilinx AXI DMA and MCDMA driver's descriptor handling and metadata reporting. It fixes direction-specific descriptor field usage, ensures completion is based on the hardware completion bit (important with interrupt coalescing), and extends metadata handling to expose status and sideband fields alongside APP fields.
The axienet driver is updated to derive RX frame length from the standard dmaengine residue mechanism rather than descriptor APP fields, making it work on designs where the AXI4-Stream status/control interface is not present.
Changes in V6:
- Patch4: Added Reviewed-by: Radhey Shyam Pandey
Changes in V5:
- Patch 4: Take the metadata pointer from the SOP descriptor for TX and the EOF descriptor for RX, matching where the hardware reads and writes the fields (TX previously used the EOF descriptor). AXI DMA now exposes only the APP words (20 bytes) in both directions. AXI MCDMA exposes the control sideband, status and APP fields (28 bytes), with the sideband position differing between MM2S and S2MM. Reworked the kernel-doc index table and commit message accordingly.
- Patches 1-3: No functional change.
Changes in V4:
- Patch 1: Added Reviewed-by: Radhey Shyam Pandey.
- Patch 2: Reworded commit message to reference the AXIDMA fix it mirrors; added Reviewed-by: Radhey Shyam Pandey.
- Patch 3: Renamed subject to "...from residue in dmaengine path"; condensed commit message; dropped Fixes tag.
- Patch 4: Restructured get_metadata_ptr() so AXIDMA is the fall-through path (no WARN_ON_ONCE); rewrote the kernel-doc as an index table covering AXI DMA, MCDMA S2MM and MCDMA MM2S; condensed commit message.
Changes in V3:
- Patch 1: Renamed subject, added static_assert for descriptor size, refactored residue calculation for clarity.
- Patch 2: Added Fixes tag, expanded commit message explaining interrupt coalescing scenario, simplified completion check logic.
- Patch 3: New patch - axienet now uses result->residue for RX length instead of APP metadata, removing dependency on status/control stream.
- Patch 4: Complete rewrite - metadata pointer now starts at status field (index 0) exposing status/sideband to clients; uses EOF descriptor; removed 'chan' field from descriptor struct.
- Dropped V2 patches 4/5 (dt-bindings) and 5/5 (xferred_bytes) as the approach changed to use standard residue mechanism.
Changes in V2:
- Rebased on the AXI DMA binding YAML conversion.
- Added xlnx,include-stscntrl-strm in the YAML binding.
- Clarified cover letter to reflect metadata behavior with and without APP fields.
https://lore.kernel.org/all/[email protected]/
Srinivas Neeli (3):
dmaengine: xilinx_dma: Fix MCDMA descriptor fields based on DMA
direction
dmaengine: xilinx_dma: Move descriptors to done list based on
completion bit
net: xilinx: axienet: Derive RX frame length from residue in dmaengine
path
Suraj Gupta (1):
dmaengine: xilinx_dma: Extend metadata handling for AXI DMA and MCDMA
drivers/dma/xilinx/xilinx_dma.c | 85 ++++++++++++++++--- .../net/ethernet/xilinx/xilinx_axienet_main.c | 14 ++- 2 files changed, 78 insertions(+), 21 deletions(-)
Signature · 1 line
2.43.0