Commit graph

6 commits

Author SHA1 Message Date
Dan Bar-On
d29f8a9ab3 soc: qcom: spss_utils: handle ssr after fota
After SPU's firmware was updated,
prevent SSR from happening until getting
a message from userspace that update is finished.
Need to Avoid SSR because PIL would load old images from /firmware_mnt.

Change-Id: I4b07e2e886e26a928faeae0c6f4f790dd01c645f
Signed-off-by: Dan Bar-On <dbaron@codeaurora.org>
2019-11-11 09:48:22 +02:00
Konstantin Dorfman
7b7539cb2d soc:qcom:spcom: multi clients support
This change enables for more than one client to communicate to SP server
simultaneously. The feature is configured by the userspace during channel
creation. Per channel mutex is used to implement the atomicity of single
client request/respose excgange.

Change-Id: I3670fcdad26cc8879f57ebe32c07a93d69560779
Signed-off-by: Konstantin Dorfman <kdorfman@codeaurora.org>
Signed-off-by: Li(Lily) Li <liil@codeaurora.org>
2019-06-06 07:29:07 -07:00
Konstantin Dorfman
471ad4e98e soc:qcom:spcom: add ioctl interface
This change introduces ioctl() interface for following operations:
1. SPCOM_SET_IONFD
2. SPCOM_GET_IONFD
Shared with SPU ion buffer is allocated by userspace daemon and the
buffer descriptor is locked in the driver. After userspace daemon is
crashed or restarted, the buffer is intact.
This change need to set/get from the driver the ion buffer file
descriptor.

3. SPCOM_POLL_STATE
Support requests for link up/down state and specific channel connection
state. The request can be blocking (wait for state change) or
non-blocking.

Also removed old poll() implementation for the same
functionality.

Change-Id: Ibeb3743640c0b51e4f15b60947e2dabca658eee5
Signed-off-by: Konstantin Dorfman <kdorfman@codeaurora.org>
2019-04-28 01:26:54 -07:00
Amir Samuelov
2f0b9d5ecd soc: qcom: add secure processor communication (spcom) driver
This driver supports communication with secure processor subsystem
(SPSS) over rpmsg and ungerlying glink transport layer. The
communication is based on using shared memory and interrupts.

Add snapshot for spcom driver from msm-4.14 commit cff38c326b98
("soc:qcom:spcom: free not consumed packet on rx timeout").

Change-Id: I28d704b18a3b0de9711ff3235c3f5551e7302557
Signed-off-by: Konstantin Dorfman <kdorfman@codeaurora.org>
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
2019-01-30 06:08:10 -08:00
Konstantin Dorfman
35de68045e soc: qcom: spcom: fix uapi for SPU kernel-pil
This change adds missing userspace type definition,
fixing dependence.

Change-Id: I5020c38948579a2a929175f535553f6ada009051
Signed-off-by: Konstantin Dorfman <kdorfman@codeaurora.org>
2019-01-16 00:23:29 -08:00
Amir Samuelov
f12ac9af55 soc: qcom: add secure processor communication (spcom) user API H file
add spcom user interface (uapi) API H file.

Change-Id: I97daca439bb892c509764cd7940693fff1566cb3
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
2019-01-12 17:36:00 +02:00