Skip to content

Add support of AMD AE4DMA DMA Engine

Basavaraj Natikar dmaengine 8 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest6 patches 1 replyApplied
  2. v76 patches 0 repliesSuperseded
  3. v66 patches 8 repliesSuperseded
Earlier versions · 5
VersionPostedPatchesRepliesStatus
v57 patches6 repliesSuperseded
v47 patches3 repliesSuperseded
v37 patches2 repliesSuperseded
v27 patches9 repliesSuperseded
v17 patches6 repliesSuperseded

Changes in v8 from the cover letter

-Addressed warnings reported by the kernel test robot.

Patches in v8 Applied

#Subject and filesSizeRepliesApplied
1/6dmaengine: Move AMD PTDMA driver to amd directoryMAINTAINERS drivers/dma/Kconfig drivers/dma/Makefile +9 more+18 -210 replies
2/6dmaengine: ae4dma: Add AMD ae4dma controller driverMAINTAINERS drivers/dma/amd/Kconfig drivers/dma/amd/Makefile +5 more+485 -00 replies
3/6dmaengine: ptdma: Extend ptdma to support multi-channel and versiondrivers/dma/amd/ae4dma/ae4dma.h drivers/dma/amd/ptdma/ptdma-dmaengine.c drivers/dma/amd/ptdma/ptdma.h+89 -200 replies
4/6dmaengine: ae4dma: Register AE4DMA using pt_dmaengine_registerdrivers/dma/amd/ae4dma/ae4dma-dev.c drivers/dma/amd/ae4dma/ae4dma-pci.c drivers/dma/amd/ae4dma/ae4dma.h +1 more+74 -20 replies
5/6dmaengine: ptdma: Extend ptdma-debugfs to support multi-queuedrivers/dma/amd/ptdma/ptdma-debugfs.c+57 -210 replies
6/6dmaengine: ae4dma: Register debugfs using ptdma_debugfs_setupdrivers/dma/amd/ae4dma/ae4dma-dev.c drivers/dma/amd/ptdma/ptdma-debugfs.c+3 -00 replies

Reviews trailers per patch

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

PatchRaju RangojuPhilipp Stanner
1/6R-b
2/6R-b R-b
3/6R-b
4/6R-b R-b
5/6R-b
6/6R-b

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

Read the v8 thread

Cover letter [PATCH v8 0/6] Add support of AMD AE4DMA DMA Engine

AMD AE4DMA Controller is a multi-queue DMA controller. Its design differs significantly from PTDMA controller, although some functionalities overlap. All functionalities similar to PTDMA are extended and merged within PTDMA code to support both PTDMA and AE4DMA for code reuse. A new AE4DMA driver directory is created to house unique AE4DMA code, ensuring efficient handling of AE4DMA functionalities.

Changes in v8:
-Addressed warnings reported by the kernel test robot.

Changes in v7:
- Changed the subject line to reflect the driver name.
- Moved the code to reflect the changes in the first place.

Changes in v6:
- Moved the wake_up call just before the return statement.
- Changed hex values to lowercase.
- Removed the common directory and added header files directly into the C files.

Changes in v5:
- Initialized the buffer to zero before using snprintf.
- Changed the function name to avoid a duplicate symbol error, as pointed out in the link below.

Changes in v4:
- Removed blank lines and grouped the mutexes into a single block.
- Replaced all magic numbers with #define macros.
- Added short comment for error codes.
- Replaced the while loop with a for loop.

Changes in v3:
- Added COMPILE_TEST to the Kconfig.
- Considered using pci_alloc_irq_vectors and pci_free_irq_vectors.
- Removed mb() and atomic variables where applicable.

Changes in v2:
- Changed all variants of "mb" to "dma_mb.
- Changed cancel_delayed_work to cancel_delayed_work_sync.
- Removed 32bit dma_set_mask_and_coherent.
- Rearrange the order of the #include directives alphabetically

Basavaraj Natikar (6):
dmaengine: Move AMD PTDMA driver to amd directory
dmaengine: ae4dma: Add AMD ae4dma controller driver
dmaengine: ptdma: Extend ptdma to support multi-channel and version
dmaengine: ae4dma: Register AE4DMA using pt_dmaengine_register
dmaengine: ptdma: Extend ptdma-debugfs to support multi-queue
dmaengine: ae4dma: Register debugfs using ptdma_debugfs_setup

 MAINTAINERS                                   |  10 +-
 drivers/dma/Kconfig                           |   2 -
 drivers/dma/Makefile                          |   1 -
 drivers/dma/amd/Kconfig                       |  28 +++
 drivers/dma/amd/Makefile                      |   2 +
 drivers/dma/amd/ae4dma/Makefile               |  10 +
 drivers/dma/amd/ae4dma/ae4dma-dev.c           | 157 ++++++++++++
 drivers/dma/amd/ae4dma/ae4dma-pci.c           | 158 ++++++++++++
 drivers/dma/amd/ae4dma/ae4dma.h               | 100 ++++++++
 drivers/dma/{ => amd}/ptdma/Makefile          |   0
 drivers/dma/{ => amd}/ptdma/ptdma-debugfs.c   |  79 ++++--
 drivers/dma/{ => amd}/ptdma/ptdma-dev.c       |   0
 drivers/dma/{ => amd}/ptdma/ptdma-dmaengine.c | 226 ++++++++++++++++--
 drivers/dma/{ => amd}/ptdma/ptdma-pci.c       |   0
 drivers/dma/{ => amd}/ptdma/ptdma.h           |   4 +-
 drivers/dma/ptdma/Kconfig                     |  13 -
 16 files changed, 726 insertions(+), 64 deletions(-)
 create mode 100644 drivers/dma/amd/ae4dma/Makefile
 create mode 100644 drivers/dma/amd/ae4dma/ae4dma-dev.c
 create mode 100644 drivers/dma/amd/ae4dma/ae4dma-pci.c
 create mode 100644 drivers/dma/amd/ae4dma/ae4dma.h
 rename drivers/dma/{ => amd}/ptdma/Makefile (100%)
 rename drivers/dma/{ => amd}/ptdma/ptdma-debugfs.c (52%)
 rename drivers/dma/{ => amd}/ptdma/ptdma-dev.c (100%)
 rename drivers/dma/{ => amd}/ptdma/ptdma-dmaengine.c (59%)
 rename drivers/dma/{ => amd}/ptdma/ptdma-pci.c (100%)
 rename drivers/dma/{ => amd}/ptdma/ptdma.h (99%)
 delete mode 100644 drivers/dma/ptdma/Kconfig
Signature · 1 line
2.25.1