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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
3,256 次查看
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 项奖励
回复
1 解答
3,245 次查看
igorpadykov
NXP Employee
NXP Employee
0 项奖励
回复
4 回复数
3,172 次查看
surajeet_roy
Contributor I

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

0 项奖励
回复
3,246 次查看
igorpadykov
NXP Employee
NXP Employee
0 项奖励
回复
1,635 次查看
jpsk
Contributor II

Hi,

Can you please provide the updated link for the solution below now that the source code is migrated to GitHub?

 

Thanks,

jk

0 项奖励
回复
3,191 次查看
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 项奖励
回复