Hi NXP support Team,
We have a LS1028A based custom board in which PCIe is connected to IGLOO2 FPGA as shown in attached block diagram.
We want to transfer block of data from Processor to FPGA using PCIe ,for this we are using driver/dma/dmatest.c default driver file.
We are following LSDK 21.08 document section 7.2.11 to test qdma driver and enable qDMA related things in .config files and changed dtsi files as shown below:
Device Drivers --->
[*] DMA Engine support ---> --->
<*> Freescale qDMA engine support
CONFIG_FSL_QDMA =y
-----------
Dtsi file change for qDMA:
qdma: qdma@8380000 {
compatible = "fsl,ls1028a-qdma";
reg = <0x0 0x8380000 0x0 0x1000>, /* Controller regs */
<0x0 0x8390000 0x0 0x10000>, /* Status regs */
<0x0 0x83a0000 0x0 0x40000>; /* Block regs */
interrupts = <0 153 0x4>,
<0 39 0x4>;
interrupt-names = "qdma-error", "qdma-queue";
channels = <8>;
queues = <2>;
status-sizes = <64>;
queue-sizes = <64 64>;
big-endian;
};
-----------------
QDMA for platform with DPAA2:
Device Drivers --->
[*] DMA Engine support ---> --->
<*> NXP DPAA2 QDMA
CONFIG_FSL_DPAA2_QDMA = y
-------------
In Linux prompt we are inserting dmatest.ko file using lsmod command and we are running below command according to LSDK 21.08 document section 7.2.11 :
echo 1024 > /sys/module/dmatest/parameters/test_buf_size;
echo 4 > /sys/module/dmatest/parameters/threads_per_chan;
echo 2 > /sys/module/dmatest/parameters/max_channels;
echo 100 > /sys/module/dmatest/parameters/iterations;
echo 1 > /sys/module/dmatest/parameters/run
1st 4 command is getting executed successfully but echo 1 > /sys/module/dmatest/parameters/run
is not getting exceuted successfully and getting below error:
dmatest: No channels configured, continue with any
I have attached diagram for PCIe and log file with this mail.
Please help us on this.
Regards,
Amit Keshri