This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM6442: Linux callback mode rpmsg communication on AM6442

Part Number: AM6442

Tool/software:

Hello,

I'm actually trying to use IPC on AM6442 SK, between a Linux and a R5F core. On the remote core side, I utilize a callback function to manage rpmsg. However, I am unable to locate any information regarding the registration of such a callback on the Linux side.

For now i use the rpmsg_char library to pool on the file descriptor with a read function. The way I'm doing it is pretty similar to the way I'm doing it in the rpmsg_char_simple example (https://git.ti.com/cgit/rpmsg/ti-rpmsg-char/tree/examples/rpmsg_char_simple.c).

I saw in /proc/interrupt the interrupt who correspond to the r5f mailbox using in the communication :

14:       2043          0     GICv3 112 Level     mbox-main-r5fss0-core0

Question 1 : Is it possible to use this interrupt and expose it to user space to register a callback, like in the r5f firmware ? If it's not possible, there is another way to handle rpmsg in a non-blocking way on Linux ? (I'm using the Linux kernel and sysroot provided by TI in the tisdk-default-image-am64xx-evm image)

Best regards,
Baptiste C