]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rpmsg: add virtio-based remote processor messaging bus
authorOhad Ben-Cohen <ohad@wizery.com>
Thu, 20 Oct 2011 19:10:55 +0000 (21:10 +0200)
committerOhad Ben-Cohen <ohad@wizery.com>
Fri, 9 Dec 2011 14:29:20 +0000 (16:29 +0200)
commit061c8adb19b4b7a45454fcb3eb844616af26643c
treeaf1938f7bbd21cebd81b71bceaa9d6dad5fdc33f
parentef10b37c9416dc5bc8d71c9c1cfbc4c00af9a004
rpmsg: add virtio-based remote processor messaging bus

Add a virtio-based inter-processor communication bus, which enables
kernel drivers to communicate with entities, running on remote
processors, over shared memory using a simple messaging protocol.

Every pair of AMP processors share two vrings, which are used to send
and receive the messages over shared memory.

The header of every message sent on the rpmsg bus contains src and dst
addresses, which make it possible to multiplex several rpmsg channels on
the same vring.

Every rpmsg channel is a device on this bus. When a channel is added,
and an appropriate rpmsg driver is found and probed, it is also assigned
a local rpmsg address, which is then bound to the driver's callback.

When inbound messages carry the local address of a bound driver,
its callback is invoked by the bus.

This patch provides a kernel interface only; user space interfaces
will be later exposed by kernel users of this rpmsg bus.

Designed with Brian Swetland <swetland@google.com>.

Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Acked-by: Rusty Russell <rusty@rustcorp.com.au> (virtio_ids.h)
Cc: Brian Swetland <swetland@google.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Grant Likely <grant.likely@secretlab.ca>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Greg KH <greg@kroah.com>
Cc: Stephen Boyd <sboyd@codeaurora.org>
Documentation/ABI/testing/sysfs-bus-rpmsg [new file with mode: 0644]
Documentation/rpmsg.txt [new file with mode: 0644]
drivers/Kconfig
drivers/Makefile
drivers/rpmsg/Kconfig [new file with mode: 0644]
drivers/rpmsg/Makefile [new file with mode: 0644]
drivers/rpmsg/virtio_rpmsg_bus.c [new file with mode: 0644]
include/linux/mod_devicetable.h
include/linux/rpmsg.h [new file with mode: 0644]
include/linux/virtio_ids.h