copy data fail when callback rpms function

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

copy data fail when callback rpms function

跳至解决方案
1,529 次查看
o_scherbinin
Contributor III

hello i use imx6sx to create simple rpmsg driver where pass data from rpmsg callback to a kernel thread.
The problem was that data is not copied, i.e. printk for the trhead works well, but coping to kthread buffer alwas fails.
That behavior is quite mysterious for me.
maybe you have any idea.
best wishes.

标记 (1)
0 项奖励
回复
1 解答
1,515 次查看
igorpadykov
NXP Employee
NXP Employee

>Problem exist in Linux driver when data copied to upper layer driver by reference.

 

what "linux" used in the case. One can try latest nxp official linux from source.codeaurora.org/external/imx/linux-imx repository
https://source.codeaurora.org/external/imx/linux-imx/tree/?h=lf-5.10.y

Documentation

https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applicat...

 

Best regards
igor

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,524 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Oleg

 

may be useful to look at examples provided in NXP FreeRTOS releases

 

Best regards
igor

0 项奖励
回复
1,521 次查看
o_scherbinin
Contributor III

Hello Igor.

I saw examples and i use it ( FreeRTOS task).

Problem exist in Linux driver when data copied to upper layer driver by reference.

Problem exist in Linux driver when data copied to upper layer driver by reference.
in case when data is generated inside the kthread, then passed properly.

0 项奖励
回复
1,516 次查看
igorpadykov
NXP Employee
NXP Employee

>Problem exist in Linux driver when data copied to upper layer driver by reference.

 

what "linux" used in the case. One can try latest nxp official linux from source.codeaurora.org/external/imx/linux-imx repository
https://source.codeaurora.org/external/imx/linux-imx/tree/?h=lf-5.10.y

Documentation

https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applicat...

 

Best regards
igor

0 项奖励
回复