[lkml]   [2018]   [Nov]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[RFC PATCH 0/6] char: Add support to Qualcomm FastRPC driver
This patchset adds support to Qualcomm FastRPC driver which implements
an IPC (Inter-Processor Communication) mechanism that allows for clients
to transparently make remote method invocations across processor boundaries.

The below diagram depicts invocation of a single method where the client
and objects reside on different processors. An object could expose
multiple methods which can be grouped together and referred to as an

: ,--------, ,------, ,-----------, ,------, ,--------,
: | | method | | | | | | method | |
: | Client |------->| Stub |->| Transport |->| Skel |------->| Object |
: | | | | | | | | | |
: `--------` `------` `-----------` `------` `--------`

Client: Linux user mode process that initiates the remote invocation
Stub: Auto generated code linked in with the user mode process that
takes care of marshaling parameters

Transport: Involved in carrying an invocation from a client to an
object. This involves two portions: 1) FastRPC Linux
kernel driver that receives the remote invocation, queues
them up and then waits for the response after signaling the
remote side. 2) Service running on the remote side that
dequeues the messages from the queue and dispatches them for
Skel: Auto generated code that takes care of un-marshaling
Object: Method implementation

Most of the work is derived from various downstream Qualcomm kernels.
Credits to various Qualcomm authors who have contributed to this code.
Specially Tharun Kumar Merugu <>

Keeping the first version simple, below are few things are TODO:
- Support INIT_STATIC process
- Support remote mmap/unmap methods.
- Handling secure compute context banks.
- Add secure buffer support

This patchset has been tested on DB410c(msm8916), DB820c (msm8996), SDM845
Qualcomm SoCs with sample apps like matrix multiply, calculator
from Hexagon SDK.


Srinivas Kandagatla (5):
char: dt-bindings: Add Qualcomm Fastrpc bindings
char: fastrpc: Add Qualcomm fastrpc basic driver model
char: fastrpc: Add support for context Invoke method
char: fastrpc: Add support for create remote init process
char: fastrpc: Add support for dmabuf exporter

Thierry Escande (1):
char: fastrpc: Add support for compat ioctls

.../devicetree/bindings/char/qcom,fastrpc.txt | 73 +
drivers/char/Kconfig | 10 +
drivers/char/Makefile | 1 +
drivers/char/fastrpc.c | 1749 +++++++++++++++++
include/uapi/linux/fastrpc.h | 82 +
5 files changed, 1915 insertions(+)
create mode 100644 Documentation/devicetree/bindings/char/qcom,fastrpc.txt
create mode 100644 drivers/char/fastrpc.c
create mode 100644 include/uapi/linux/fastrpc.h


 \ /
  Last update: 2018-11-30 11:49    [W:0.148 / U:0.564 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site