]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
dmaengine: Move AMD PTDMA driver to amd directory
authorBasavaraj Natikar <Basavaraj.Natikar@amd.com>
Fri, 25 Oct 2024 09:59:26 +0000 (15:29 +0530)
committerVinod Koul <vkoul@kernel.org>
Mon, 2 Dec 2024 17:25:27 +0000 (22:55 +0530)
PTDMA driver is the AMD DMA driver, and newer AMD platforms support newer
DMA engines. Hence, move the current drivers to the AMD directory. This
would also mean that future driver submissions to the AMD DMA driver will
also land in the AMD-specific directory.

Reviewed-by: Raju Rangoju <Raju.Rangoju@amd.com>
Signed-off-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com>
Link: https://lore.kernel.org/r/20241025095931.726018-2-Basavaraj.Natikar@amd.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
12 files changed:
MAINTAINERS
drivers/dma/Kconfig
drivers/dma/Makefile
drivers/dma/amd/Kconfig
drivers/dma/amd/Makefile
drivers/dma/amd/ptdma/Makefile [moved from drivers/dma/ptdma/Makefile with 100% similarity]
drivers/dma/amd/ptdma/ptdma-debugfs.c [moved from drivers/dma/ptdma/ptdma-debugfs.c with 100% similarity]
drivers/dma/amd/ptdma/ptdma-dev.c [moved from drivers/dma/ptdma/ptdma-dev.c with 100% similarity]
drivers/dma/amd/ptdma/ptdma-dmaengine.c [moved from drivers/dma/ptdma/ptdma-dmaengine.c with 99% similarity]
drivers/dma/amd/ptdma/ptdma-pci.c [moved from drivers/dma/ptdma/ptdma-pci.c with 100% similarity]
drivers/dma/amd/ptdma/ptdma.h [moved from drivers/dma/ptdma/ptdma.h with 99% similarity]
drivers/dma/ptdma/Kconfig [deleted file]

index 1e930c7a58b13d8bbe6bf133ba7b36aa24c2b5e0..b01420aa576de6e6428d386ac6f127c0b0626544 100644 (file)
@@ -1164,8 +1164,8 @@ F:        tools/power/x86/amd_pstate_tracer/amd_pstate_trace.py
 AMD PTDMA DRIVER
 M:     Basavaraj Natikar <Basavaraj.Natikar@amd.com>
 L:     dmaengine@vger.kernel.org
-S:     Maintained
-F:     drivers/dma/ptdma/
+S:     Supported
+F:     drivers/dma/amd/ptdma/
 
 AMD QDMA DRIVER
 M:     Nishad Saraf <nishads@amd.com>
index e994d6e0779e02d7af20e7da83b5c2ca485f6d52..0cacfefaa2d982619a2cca5e6d30baabfdd7e033 100644 (file)
@@ -740,8 +740,6 @@ source "drivers/dma/bestcomm/Kconfig"
 
 source "drivers/dma/mediatek/Kconfig"
 
-source "drivers/dma/ptdma/Kconfig"
-
 source "drivers/dma/qcom/Kconfig"
 
 source "drivers/dma/dw/Kconfig"
index 5b2a52f4f2ee99bf36bcce8bd3b30b7d8bbcc871..19ba465011a6d5c0f207a5702204c49e7e64d71e 100644 (file)
@@ -16,7 +16,6 @@ obj-$(CONFIG_DMATEST) += dmatest.o
 obj-$(CONFIG_ALTERA_MSGDMA) += altera-msgdma.o
 obj-$(CONFIG_AMBA_PL08X) += amba-pl08x.o
 obj-$(CONFIG_AMCC_PPC440SPE_ADMA) += ppc4xx/
-obj-$(CONFIG_AMD_PTDMA) += ptdma/
 obj-$(CONFIG_APPLE_ADMAC) += apple-admac.o
 obj-$(CONFIG_AT_HDMAC) += at_hdmac.o
 obj-$(CONFIG_AT_XDMAC) += at_xdmac.o
index 7d1f51d69675058926ab1f577619dc87412665c3..a09517d51449001517efbd89e8d12e43c4ceaf00 100644 (file)
@@ -1,4 +1,17 @@
 # SPDX-License-Identifier: GPL-2.0-only
+#
+config AMD_PTDMA
+       tristate  "AMD PassThru DMA Engine"
+       depends on X86_64 && PCI
+       select DMA_ENGINE
+       select DMA_VIRTUAL_CHANNELS
+       help
+         Enable support for the AMD PTDMA controller. This controller
+         provides DMA capabilities to perform high bandwidth memory to
+         memory and IO copy operations. It performs DMA transfer through
+         queue-based descriptor management. This DMA controller is intended
+         to be used with AMD Non-Transparent Bridge devices and not for
+         general purpose peripheral DMA.
 
 config AMD_QDMA
        tristate "AMD Queue-based DMA"
index 37212be9364fbcacd9a885b018ab80c6e275d893..fb12f2f9e7b750fcecd2cf6eff0cc920fd28ae1d 100644 (file)
@@ -1,3 +1,4 @@
 # SPDX-License-Identifier: GPL-2.0
 
+obj-$(CONFIG_AMD_PTDMA) += ptdma/
 obj-$(CONFIG_AMD_QDMA) += qdma/
similarity index 99%
rename from drivers/dma/ptdma/ptdma-dmaengine.c
rename to drivers/dma/amd/ptdma/ptdma-dmaengine.c
index f792407348077dd9fe481cfdec6577a701493487..a2e7c2cec15efd6584d11e85c54add1b1e0273c8 100644 (file)
@@ -10,8 +10,7 @@
  */
 
 #include "ptdma.h"
-#include "../dmaengine.h"
-#include "../virt-dma.h"
+#include "../../dmaengine.h"
 
 static inline struct pt_dma_chan *to_pt_chan(struct dma_chan *dma_chan)
 {
similarity index 99%
rename from drivers/dma/ptdma/ptdma.h
rename to drivers/dma/amd/ptdma/ptdma.h
index 39bc3726823538639cdbed0d063d0db9658f4f0b..7a8ca8e239e006f4d3f8826a25a68d4f133cb367 100644 (file)
@@ -22,7 +22,7 @@
 #include <linux/wait.h>
 #include <linux/dmapool.h>
 
-#include "../virt-dma.h"
+#include "../../virt-dma.h"
 
 #define MAX_PT_NAME_LEN                        16
 #define MAX_DMAPOOL_NAME_LEN           32
diff --git a/drivers/dma/ptdma/Kconfig b/drivers/dma/ptdma/Kconfig
deleted file mode 100644 (file)
index b430edd..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0-only
-config AMD_PTDMA
-       tristate  "AMD PassThru DMA Engine"
-       depends on X86_64 && PCI
-       select DMA_ENGINE
-       select DMA_VIRTUAL_CHANNELS
-       help
-         Enable support for the AMD PTDMA controller. This controller
-         provides DMA capabilities to perform high bandwidth memory to
-         memory and IO copy operations. It performs DMA transfer through
-         queue-based descriptor management. This DMA controller is intended
-         to be used with AMD Non-Transparent Bridge devices and not for
-         general purpose peripheral DMA.