Skip to content

Commit 7fdf9b0

Browse files
Peng Mavinodkoul
authored andcommitted
dmaengine: fsl-dpaa2-qdma: Add NXP dpaa2 qDMA controller driver for Layerscape SoCs
DPPA2(Data Path Acceleration Architecture 2) qDMA supports virtualized channel by allowing DMA jobs to be enqueued into different work queues. Core can initiate a DMA transaction by preparing a frame descriptor(FD) for each DMA job and enqueuing this job through a hardware portal. DPAA2 components can also prepare a FD and enqueue a DMA job through a hardware portal. The qDMA prefetches DMA jobs through DPAA2 hardware portal. It then schedules and dispatches to internal DMA hardware engines, which generate read and write requests. Both qDMA source data and destination data can be either contiguous or non-contiguous using one or more scatter/gather tables. The qDMA supports global bandwidth flow control where all DMA transactions are stalled if the bandwidth threshold has been reached. Also supported are transaction based read throttling. Add NXP dppa2 qDMA to support some of Layerscape SoCs. such as: LS1088A, LS208xA, LX2, etc. Signed-off-by: Peng Ma <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent f2835ad commit 7fdf9b0

File tree

6 files changed

+993
-0
lines changed

6 files changed

+993
-0
lines changed

drivers/dma/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,8 @@ source "drivers/dma/sh/Kconfig"
669669

670670
source "drivers/dma/ti/Kconfig"
671671

672+
source "drivers/dma/fsl-dpaa2-qdma/Kconfig"
673+
672674
# clients
673675
comment "DMA Clients"
674676
depends on DMA_ENGINE

drivers/dma/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ obj-$(CONFIG_UNIPHIER_MDMAC) += uniphier-mdmac.o
7575
obj-$(CONFIG_XGENE_DMA) += xgene-dma.o
7676
obj-$(CONFIG_ZX_DMA) += zx_dma.o
7777
obj-$(CONFIG_ST_FDMA) += st_fdma.o
78+
obj-$(CONFIG_FSL_DPAA2_QDMA) += fsl-dpaa2-qdma/
7879

7980
obj-y += mediatek/
8081
obj-y += qcom/

drivers/dma/fsl-dpaa2-qdma/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
menuconfig FSL_DPAA2_QDMA
2+
tristate "NXP DPAA2 QDMA"
3+
depends on ARM64
4+
depends on FSL_MC_BUS && FSL_MC_DPIO
5+
select DMA_ENGINE
6+
select DMA_VIRTUAL_CHANNELS
7+
help
8+
NXP Data Path Acceleration Architecture 2 QDMA driver,
9+
using the NXP MC bus driver.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
# Makefile for the NXP DPAA2 qDMA controllers
3+
obj-$(CONFIG_FSL_DPAA2_QDMA) += dpaa2-qdma.o dpdmai.o

0 commit comments

Comments
 (0)