From: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
To: robh+dt@kernel.org, gregkh@linuxfoundation.org, arnd@arndb.de
Cc: mark.rutland@arm.com, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, bjorn.andersson@linaro.org,
linux-arm-msm@vger.kernel.org, bkumar@qti.qualcomm.com,
thierry.escande@linaro.org,
Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Subject: [RFC PATCH 0/6] char: Add support to Qualcomm FastRPC driver
Date: Fri, 30 Nov 2018 10:46:51 +0000 [thread overview]
Message-ID: <20181130104657.14875-1-srinivas.kandagatla@linaro.org> (raw)
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
interface.
: ,--------, ,------, ,-----------, ,------, ,--------,
: | | 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
processing.
Skel: Auto generated code that takes care of un-marshaling
parameters
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 <mtharu@codeaurora.org>
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.
Thanks,
srini
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
--
2.19.2
next reply other threads:[~2018-11-30 10:46 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-30 10:46 Srinivas Kandagatla [this message]
2018-11-30 10:46 ` [RFC PATCH 1/6] char: dt-bindings: Add Qualcomm Fastrpc bindings Srinivas Kandagatla
2018-11-30 10:46 ` [RFC PATCH 2/6] char: fastrpc: Add Qualcomm fastrpc basic driver model Srinivas Kandagatla
2018-11-30 16:13 ` Greg KH
2018-11-30 16:19 ` Srinivas Kandagatla
2018-11-30 10:46 ` [RFC PATCH 3/6] char: fastrpc: Add support for context Invoke method Srinivas Kandagatla
2018-11-30 13:41 ` Arnd Bergmann
2018-11-30 15:01 ` Srinivas Kandagatla
2018-11-30 15:08 ` Arnd Bergmann
2018-11-30 16:03 ` Srinivas Kandagatla
2018-11-30 16:19 ` Arnd Bergmann
2018-11-30 16:40 ` Srinivas Kandagatla
2018-11-30 10:46 ` [RFC PATCH 4/6] char: fastrpc: Add support for create remote init process Srinivas Kandagatla
2018-11-30 13:26 ` Arnd Bergmann
2018-11-30 13:34 ` Srinivas Kandagatla
2018-11-30 10:46 ` [RFC PATCH 5/6] char: fastrpc: Add support for dmabuf exporter Srinivas Kandagatla
2018-11-30 10:46 ` [RFC PATCH 6/6] char: fastrpc: Add support for compat ioctls Srinivas Kandagatla
2018-11-30 12:58 ` Arnd Bergmann
2018-11-30 13:20 ` Thierry Escande
2018-11-30 13:46 ` Arnd Bergmann
2018-11-30 13:50 ` Thierry Escande
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181130104657.14875-1-srinivas.kandagatla@linaro.org \
--to=srinivas.kandagatla@linaro.org \
--cc=arnd@arndb.de \
--cc=bjorn.andersson@linaro.org \
--cc=bkumar@qti.qualcomm.com \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=robh+dt@kernel.org \
--cc=thierry.escande@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).