copy data fail when callback rpms function

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

copy data fail when callback rpms function

Jump to solution
968 Views
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.

Tags (1)
0 Kudos
Reply
1 Solution
954 Views
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

View solution in original post

0 Kudos
Reply
3 Replies
963 Views
igorpadykov
NXP Employee
NXP Employee

Hi Oleg

 

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

 

Best regards
igor

0 Kudos
Reply
960 Views
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 Kudos
Reply
955 Views
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 Kudos
Reply