11 Commits

Author SHA1 Message Date
Jeya R
a51fdb69fd msm: ADSPRPC: Handle third party applications
Reject the session when third party applications
try to spawn signed PD and  channel configured as secure.

Change-Id: Ic450a8c7dad430dfcdc4ae7354e29e63d9fae4a3
Acked-by: Krishnaiah Tadakamalla <ktadakam@qti.qualcomm.com>
Signed-off-by: Jeya R <jeyr@codeaurora.org>
2022-08-29 02:59:00 -07:00
Jeya R
0864fe8d77 msm: adsprpc: API to get DSP capability
This API will be initiated from a user application. If the DSP information
is not on the kernel it will make a call to the DSP and retrieve the
information.
Then the information will be cached on the kernel and returned to the user
program. Subsequent API calls will retrieve the previously cached
information from the kernel.

Change-Id: Ic55f64e4df46e1dad4618f8190026d922ce0c5c8
Acked-by: Maitreyi Gupta <maitreyi@qti.qualcomm.com>
Signed-off-by: Jeya R <jeyr@codeaurora.org>
2021-08-19 12:44:06 +05:30
Jeya R
ec0aa6a6cb msm: adsprpc: vote for CPU to stay awake during RPC call
Vote with PM for CPU to stay awake while processing RPC call and
to relax when waiting for response from remote subsystem. Print
error if the maximum remote session concurrency is hit.

Change-Id: If39b7391fa4d20fb13f4de46c3c2d25b649e2b1f
Acked-by: Thyagarajan Venkatanarayanan <venkatan@qti.qualcomm.com>
Acked-by: Maitreyi Gupta <maitreyi@qti.qualcomm.com>
Signed-off-by: Jeya R <jeyr@codeaurora.org>
2021-05-02 14:58:13 +05:30
Tharun Kumar Merugu
f438544f8c Revert "msm: adsprpc: API to get DSP capability"
This reverts commit 3357850e90c51072f30a6e1d08baae1d45a77e3e.

Change-Id: I88e55d6e3f7032c70a6041b71c049ea95ea2e28c
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
2019-04-11 22:25:05 +05:30
Tharun Kumar Merugu
3357850e90 msm: adsprpc: API to get DSP capability
This API will be initiated from a user application. If the DSP information
is not on the kernel it will make a call to the DSP and retrieve the
information.
Then the information will be cached on the kernel and returned to the user
program. Subsequent API calls will retrieve the previously cached
information from the kernel.

Change-Id: Ib89ad25e857f02f1e1ca02180c0363e1543503b4
Acked-by: Edgar Flores <edgarf@qti.qualcomm.com>
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
2019-03-22 23:47:20 +05:30
Tharun Kumar Merugu
4df365b97c msm: adsprpc: donate memory to remote subsystem from kernel
Allocate the initial memory donated to remote subsystem in the
kernel instead of mapping memory allocated in userspace.

Change-Id: I79c1f40d426e271403afa67514714fe6af26cf4e
Acked-by: Thyagarajan Venkatanarayanan <venkatan@qti.qualcomm.com>
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
2018-07-11 22:21:37 +05:30
Tharun Kumar Merugu
94750ccad5 msm: ADSPRPC: Enable Sensors PDR support
Register for ADSP Sensors PDR notifications and handle Sensors PDR
by notifying all the Sensor static PD clients.

Change-Id: I17859f6b5c9ec8ae6a325172ddfab9860bf896f5
Acked-by: Himateja Reddy <hmreddy@qti.qualcomm.com>
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
2018-07-09 10:51:48 +05:30
Tharun Kumar Merugu
0b4f2c7f2f msm: adsprpc: DSP device node to provide restricted access to ADSP/SLPI
Support 2 sepearate device nodes with this change, one for ADSP/SLPI
and another for CDSP.

Change-Id: I2a09ebfdeccd9a092b1a3602c249b2727ec91c92
Acked-by: Amol Mahesh <amahesh@qti.qualcomm.com>
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
2018-07-03 23:55:36 +05:30
Tharun Kumar Merugu
fab4419c92 msm: ADSPRPC: handle 32 bit support
Handle 32 bit support without any truncation.
Add IOCTL calls for map and unmap for 64 bit separately.

Change-Id: I077a0b4345a6c21a88d7a500aa5c9faf7193f620
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
2018-06-05 07:21:22 -07:00
Tharun Kumar Merugu
58803f1cce msm: ADSPRPC: FastRPC buffer attribute for no map
Add new FastRPC buffer attribute for dmahandle support without
mapping.

Change-Id: I6317c972d0881968ab01ecd40acf6908b381d801
Acked-by: Viswanatham Paduchuri <vpaduchu@qti.qualcomm.com>
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
2018-05-24 07:02:39 +05:30
Tharun Kumar Merugu
1d4d3756d4 adsprpc: Enable fastrpc driver
Add fastrpc driver files, which provide a communication
mechanism that allows for clients to make remote method
invocations across processor boundary to applications
DSP processor.

Change-Id: Ifd82dfd390634a8b57201aa255d9753818452188
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
2018-02-13 12:23:08 +05:30