copy data fail when callback rpms function

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

copy data fail when callback rpms function

ソリューションへジャンプ
1,576件の閲覧回数
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,562件の閲覧回数
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,571件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Oleg

 

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

 

Best regards
igor

0 件の賞賛
返信
1,568件の閲覧回数
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,563件の閲覧回数
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 件の賞賛
返信