10 rpmsg channels with rpmsg_char write&read will make linux waring #461
Replies: 5 comments 1 reply
-
I guess the reason is linux kernel driver mailbox moudule. linux has up the code ,but my kernel version is old. link 1:https://e2e.ti.com/support/processors-group/processors/f/processors-forum/538908/remoteproc2-mbox_send_message-failed--105 link2 is not the best way.the last version of linux driver has changed it. |
Beta Was this translation helpful? Give feedback.
-
@TanmayShah-xilinx : any advice? |
Beta Was this translation helpful? Give feedback.
-
@mingwei-learn what is the kernel version are you using? |
Beta Was this translation helpful? Give feedback.
-
Now I make a mutex lock to lock my write and read function(used as a rpc), there is no warning, which means all 10 thread should send or read in a queue. but It seems not graceful。 |
Beta Was this translation helpful? Give feedback.
-
Yes correct. I haven't tried this use case. Currently we have tested only with two end-points, with minimal data transfer. Based on above behavior somewhere race condition needs to be fixed. Either in general rpmsg/remoteproc/mailbox framework or in xilinx drivers (could be remoteproc, or mailbox) or RPU firmware side. |
Beta Was this translation helpful? Give feedback.
-
Hi, Im trying to run 10 rpmsg channels between A53&R5 on my Xilinx borad,
I make 1 threads for each channel to send and recive message(R5 will send back the message)
Send action is write(dev_rpmsg_char_fd,&mesage,sizeof(message)
Recive action is read(dev_rpmsg_char_fd,&mesage,sizeof(message)
It`s ok when i send 10 times for each channel.But ,the linux will push "cut here waring" when i send 100 or more times.It will make my app waste time on waring print。
the waring message like this:

Beta Was this translation helpful? Give feedback.
All reactions