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 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. Link: https://lore.kernel.org/oe-kbuild-all/202406240021.ytiS3jV6-lkp@xxxxxxxxx/ 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 (7): dmaengine: Move AMD DMA driver to separate directory dmaengine: ae4dma: Add AMD ae4dma controller driver dmaengine: ptdma: Move common functions to common code 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 | 9 +- drivers/dma/Kconfig | 4 +- drivers/dma/Makefile | 2 +- drivers/dma/amd/Kconfig | 6 + drivers/dma/amd/Makefile | 7 + drivers/dma/amd/ae4dma/Kconfig | 14 + drivers/dma/amd/ae4dma/Makefile | 10 + drivers/dma/amd/ae4dma/ae4dma-dev.c | 260 ++++++++++++++++++ drivers/dma/amd/ae4dma/ae4dma-pci.c | 158 +++++++++++ drivers/dma/amd/ae4dma/ae4dma.h | 89 ++++++ drivers/dma/amd/common/amd_dma.c | 23 ++ drivers/dma/amd/common/amd_dma.h | 30 ++ drivers/dma/{ => amd}/ptdma/Kconfig | 0 drivers/dma/{ => amd}/ptdma/Makefile | 2 +- drivers/dma/{ => amd}/ptdma/ptdma-debugfs.c | 77 ++++-- drivers/dma/{ => amd}/ptdma/ptdma-dev.c | 14 +- drivers/dma/{ => amd}/ptdma/ptdma-dmaengine.c | 110 ++++++-- drivers/dma/{ => amd}/ptdma/ptdma-pci.c | 0 drivers/dma/{ => amd}/ptdma/ptdma.h | 6 +- 19 files changed, 756 insertions(+), 65 deletions(-) create mode 100644 drivers/dma/amd/Kconfig create mode 100644 drivers/dma/amd/Makefile create mode 100644 drivers/dma/amd/ae4dma/Kconfig 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 create mode 100644 drivers/dma/amd/common/amd_dma.c create mode 100644 drivers/dma/amd/common/amd_dma.h rename drivers/dma/{ => amd}/ptdma/Kconfig (100%) rename drivers/dma/{ => amd}/ptdma/Makefile (64%) rename drivers/dma/{ => amd}/ptdma/ptdma-debugfs.c (53%) rename drivers/dma/{ => amd}/ptdma/ptdma-dev.c (96%) rename drivers/dma/{ => amd}/ptdma/ptdma-dmaengine.c (78%) rename drivers/dma/{ => amd}/ptdma/ptdma-pci.c (100%) rename drivers/dma/{ => amd}/ptdma/ptdma.h (98%) -- 2.25.1