Tool/software: Linux
I am working on a Linux driver that will read from a shared memory address (a CMEM block of memory shared with the DSPs) upon reception of a mailbox event. This is an alternative to using IPC MessageQ due to performance issues (see https://e2e.ti.com/support/arm/sitara_arm/f/791/t/604259#pi316653=2
I'm looking for any examples or pointers to the best way to do this. I'm looking at the linux/drivers/remoteproc/omap_remoteproc.c example in how it interacts with a mailbox. I'm looking for the most surgical way to have a generic custom shared memory read/write driver utilize as much existing code as possible to accomplish my need. Essentially I just need interrupt-like behavior from the mailbox - it will indicate to the driver that data is available from the DSP in this shared memory buffer.
Thanks