LS1021A eDMA engine did not work correctly

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LS1021A eDMA engine did not work correctly

755 Views
lion3875
Contributor II
We are trying to use fsl-edma engine, but it did not work correctly, it has been in processing state until the tx task to be killed.
And then, we are trying to use dmatest.ko module, attempt to prove the fsl-edma works well, but get same result.
We are reference linux\documentation\dmaengine\dmatest.txt & client.txt in the debugging process.
According to the debugging info within the fsl-edma.c, we found that the dma src-addr & dst-addr have been set correctly, and the dma-request has been enabled.
Does anyone could make some suggestion, or provide a proven method, thanks for your attention.
Labels (1)
Tags (1)
0 Kudos
1 Reply

536 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello li ang,

Please refer to the attached eDMA test result through Audio interface.

In LS1021 dts file, you could find sai is defined as the following.

            sai1: sai@2b50000 {
                        #sound-dai-cells = <0>;
                        compatible = "fsl,vf610-sai";
                        reg = <0x0 0x2b50000 0x0 0x10000>;
                        interrupts = <GIC_SPI 132 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&platform_clk 1>, <&platform_clk 1>,
                                 <&platform_clk 1>, <&platform_clk 1>;
                        clock-names = "bus", "mclk1", "mclk2", "mclk3";
                        dma-names = "tx", "rx";
                        dmas = <&edma0 1 47>,
                               <&edma0 1 46>;
                        status = "disabled";
                };


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos