Part Number: PROCESSOR-SDK-J721E
Hello TI Team,
Is there a Linux client driver to access to HW mailbox ?
Best.
KAMEL.
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.
Part Number: PROCESSOR-SDK-J721E
Hello TI Team,
Is there a Linux client driver to access to HW mailbox ?
Best.
KAMEL.
Hi Kamel,
I am not sure what you are looking for or trying to do.
The above OMAP Mailbox driver is the TI Platform Mailbox Controller driver, that plugs into the Mailbox subsystem. The client users will use the generic Mailbox API.
The only client user for Mailboxes in Linux kernel are the corresponding TI remoteproc drivers and used to provide the virtio-rpmsg IPC transport.
regards
Suman
Hello,
We prepare to a training session for a TI customer and he needs to know if its possible to use hwspinlock and hwMailbox directly from Linux.
We found a spinlock client driver example:
https://github.com/sumananna/omap-hwspinlock-test/blob/master/omap_hwspinlock_test.c
And now w're looking for an example for HWmailbox.
KAMEL.
Hi Kamel,
Both the HwSpinlock and Mailbox IPs typically require you to run a firmware on a different processor, to really test the MultiCore Locks, or the IPC between Linux and another processor using Mailboxes.
The above referenced HwSpinLock test is a Unit-Test on the Linux side that performs API testing of acquiring and releasing locks from the Linux-side.
The standard Linux has a generic Mailbox test driver/code in drivers/mailbox/mailbox-test.c that requests two mailbox channels one for Rx and Tx, and presents a character device interface to userspace. You can try to adapt this to work with the OMAP Mailboxes.
I also managed to find a really old Linux-only loop-back test code during my Mailbox upstreaming days on a very old kernel. You can leverage that as well.
Please see the driver test code and dts node usage references in the following branch,
https://github.com/sumananna/mailbox/commits/mbox/test/5.3-rc1-k3
Here's the direct test driver code reference,
https://github.com/sumananna/mailbox/commit/d40f008bbbd5a999762971b5792049689da19cf7
regards
Suman