I/O Error in DMA TX While transferring data using spi protocol

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

I/O Error in DMA TX While transferring data using spi protocol

Jump to solution
1,606 Views
surajeet_roy
Contributor I

Hi Team, 

While transferring data using spi protocol to a controller, I am receiving  IMX8MN: . 

I see that I only receive this error when I am transferring more than 32 bytes of data.
I get the below error:

[ 160.677358] spi_imx 30840000.spi: I/O Error in DMA TX
[  160.682553] spidev spi2.0: SPI transfer failed: -110
[  160.687651] spi_master spi2: failed to transfer one message from queue
 
DISTRO = "fsl-imx-wayland"
DISTRO_VERSION = "5.4-zeus"
 

&ecspi3 {
#address-cells = <1>;
#size-cells = <0>;
fsl,spi-num-chipselects = <1>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ecspi3 &pinctrl_ecspi3_cs>;
cs-gpios = <&gpio5 25 GPIO_ACTIVE_LOW>;
status = "okay";


spidev0: spi@0 {
reg = <0>;
compatible = "rohm,dh2228fv";
spi-max-frequency = <500000>;
};
};

Any suggestion will be appreciated.
Thank you 

0 Kudos
1 Solution
1,595 Views
igorpadykov
NXP Employee
NXP Employee
0 Kudos
3 Replies
1,522 Views
surajeet_roy
Contributor I

Hi Team, Thank you for the solution . It is working !

0 Kudos
1,596 Views
igorpadykov
NXP Employee
NXP Employee
0 Kudos
1,541 Views
surajeet_roy
Contributor I

Hi Team,

After making the changes the DMA error is fixed and I am able to transfer data more then 32 byte.

However, I am not able to send data more then 128 byte
Currently I am getting this error.

*** stack smashing detected ***: <u[ 148.933976] audit: type=1701 audit(1617713810.284:4): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=526 comm="CCUServer" exe="/CCUServer" sig=6 res=1
nknown> terminated
 
Can this be fixed by making some other adjustments in sdma file?
Please suggest
 
Thank you!
0 Kudos