RPMsg (Remote Processor Messaging) is aprotocol enabling inter-processor communication insidemulti-core processors.
ModernSoCs usually employ heterogeneous processors inAsymmetric multiprocessing (AMP) configurations, each of which may be running a different instance of anOperating system. Typically,SoCs have a central multi-core processor running a high-levelOS, such asLinux, in aSymmetric multiprocessing (SMP) configuration, and additional remote processors running various flavors of aReal-time operating system. These remote processors are often used to offloadCPU-intensive tasks from the main application processor, or to access hardware blocks otherwise inaccessible by the central processor. RPMsg facilitates communication between the various processors in the system, by providing means of sending inter-processor messages back and forth.
RPMsg is present in theLinux kernel,[1][2] has been demonstrated inZephyr (operating system),[3][4]FreeRTOS,[5] Cadence XOS,[6]ThreadX,[7]QNX[8] and is also available as a stand-alone component formicrocontroller-based systems.[9][10] Most of the RPMsg implementations are developed asopen-source.[2][9][10][11]
RPMsg was developed for the Linux kernel by Ohad Ben-Cohen ofWizery[12][13][14][15][16] and was merged to Linux 3.4 on 20 May 2012.[17] It was first used byGoogle, inAndroid Ice Cream Sandwich, on theGalaxy Nexus phone, to enable offloading of cpu-intensive multimedia tasks on theOMAP4: from the ARM Cortex-A9 cores, running the Linux Kernel, to the ARM Cortex-M3 cores, running theTI-RTOS OS. Several semiconductor companies have since added support for RPMsg, includingTexas Instruments,[18]STMicroelectronics,[19]Xilinx,[11][20]NXP Semiconductors,[10]Renesas Electronics[21] andNordic Semiconductor.[22]
RPMsg provides a basic framework for sending framed messages between heterogenous processors, but a higher level driver is required to expose RPMsg functionality to user space in a useful way. Some of these drivers are mainlined in the Linux kernel, others are provided in a SoC vendor's kernel fork, and yet others are available out of tree.
| Driver Name | Description | Kernel Fork | Official website |
|---|---|---|---|
| imx_rpmsg_tty | Exposes an RPMsg endpoint as a virtual TTY at/dev/ttyRPMSGx. Can be used wherever a serial-like connection is desirable. | linux-imx | [1] |
| rpmsg_char | Exposes an RPMsg endpoint as a character device at/dev/rpmsgX, allowing a userspace applications to send and receive raw RPMsg packets via standard file I/O operations. | mainline | N/A |
| rpmsg_ctrl | Exposes a control interface at/dev/rpmsg_ctrlX that allows RPMsg endpoints to be created by user-space applications. | mainline | N/A |
| rpmsg-net | Exposes an RPMsg endpoint as a virtual Ethernet network interface namedrpmsgX. Can be used to connect the two CPUs using at layer 2 and above. | out of tree | [2] |
| rpmsg-sysfs | Exposes rpmsg bus control primitives to userspace via sysfs. | out of tree | [3] |
Thiscomputer-programming-related article is astub. You can help Wikipedia byadding missing information. |