2.6. MESSAGE PASSING
When data must be shared among multiple processing elements in a system, a protocol must be put in place to maintain ownership. In many embedded systems this protocol is managed through software mechanisms. If the memory space is accessible to multiple parties, then locks or semaphores are used to grant access to devices in proper order. In other cases, processing elements may only have access to locally owned memory space. In these 'shared nothing' systems, a mechanism is needed to pass data from the memory of one processing element to another. This can be done by using message passing mailboxes.
RapidIO provides a useful message passing facility. The RapidIO message passing protocol describes transactions that enable mailbox and doorbell communications. Details on RapidIO message passing are contained in Chapter 5. A RapidIO mailbox is a port through which one device may send a message to another device. The receiving device determines what to do with the message after it arrives. A RapidIO message can range in length from zero to 4096 bytes. A receiver can have 1 to 4 addressable message queues to capture inbound messages.
The RapidIO doorbell is a lightweight port-based transaction, which can be used for in-band interrupts. A doorbell message has a 16-bit software definable field, which can be used for a variety of messaging purposes between two devices.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access