
dmatest: dma0chan0-copy0: summary 1000 tests, 0 failures 3024 iops 24486 KB/s (0)
dmatest: dma0chan0-copy2: summary 1000 tests, 0 failures 2881 iops 23588 KB/s (0)
QDMA for platform with DPAA1
Kernel Configure Options
Below are the configure options need to be set/unset while doing "make menuconfig" for kernel.
Kernel Configure Tree View Options
Description
Device Drivers --->
[*] DMA Engine support ---> --->
<*> NXP DPAA2 QDMA
NXP Data Path Acceleration
Architecture 2 QDMA driver, using the NXP MC bus driver.
Identifier
Below are the configure identifiers which are used in kernel source code and default configuration files.
Option
Values
Default Value
Description
CONFIG_FSL_DPAA2_QDM
A
y/m/n
n
qDMA driver
Source Files
The following source files are related the feature in Linux kernel.
Source File
Description
drivers/dma/dpaa2-qdma/*
The qDMA driver file
Verification in Linux
Create DPDMAI object using restool:
restool dpdmai create --priorities=2,5
restool dprc assign dprc.1 --object=dpdmai.0 --plugged=1
Configure parameters for dmatest and run it:
echo 8 > /sys/module/dmatest/parameters/test_flag
echo 100 > /sys/module/dmatest/parameters/sg_size
echo 10000 > /sys/module/dmatest/parameters/iterations
echo 1 > /sys/module/dmatest/parameters/threads_per_chan
echo 8 > /sys/module/dmatest/parameters/max_channels
echo 64 > /sys/module/dmatest/parameters/test_buf_size
echo 1 > /sys/module/dmatest/parameters/run
Example log:
root@ls2085ardb:~# echo 8 > /sys/module/dmatest/parameters/test_flag
root@ls2085ardb:~# echo 10 > /sys/module/dmatest/parameters/iterations
root@ls2085ardb:~# echo 2 > /sys/module/dmatest/parameters/threads_per_chan
root@ls2085ardb:~# echo 32384 > /sys/module/dmatest/parameters/test_buf_size
root@ls2085ardb:~# echo 4 > /sys/module/dmatest/parameters/max_channels
Linux kernel
Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019
60
NXP Semiconductors
Summary of Contents for Layerscape LS1028A BSP
Page 135: ......