misc: fastrpc: Add support for context Invoke method
This patch adds support to compute context invoke method on the
remote processor (DSP).
This involves setting up the functions input and output arguments,
input and output handles and mapping the dmabuf fd for the
argument/handle buffers.
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>
Co-developed-by:
Thierry Escande <thierry.escande@linaro.org>
Signed-off-by:
Thierry Escande <thierry.escande@linaro.org>
Signed-off-by:
Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Loading
-
mentioned in commit 81f09128
-
mentioned in commit 1f5d66f8
-
mentioned in commit 73b0c814
-
mentioned in commit 02d235dd
-
mentioned in commit 5ecfae2d
-
mentioned in commit 719314a5
-
mentioned in commit d468344c
-
mentioned in commit 14bbe076
-
mentioned in commit 3ba3edb3
-
mentioned in commit fecf22ae
-
mentioned in commit 41be9e6e
-
mentioned in commit 73072d41
-
mentioned in commit 7b0d53b2
-
mentioned in commit 9a0580b7
-
mentioned in commit 96b328d1
Please sign in to comment