提交图

19 次代码提交

作者 SHA1 备注 提交日期
Vamsi Krishna Gattupalli
0821b24a81 msm:ADSPRPC: adding spin_unlock when bailing.
spin_lock should be released before bailing.

Change-Id: I3ac6043221272fa1dda2f36f4add810df41a17f3
Acked-by: ANANDU E <anane@qti.qualcomm.com>
Signed-off-by: Vamsi Krishna Gattupalli <quic_vgattupa@quicinc.com>
2023-02-08 00:01:47 -08:00
Himateja Reddy
6554e75e39 msm: ADSPRPC: Prevent mapping refcount for persistent mapping from going bad
Mapping refcount goes to negative value when internal invoke fails. This
prevents in hyp assigning the memory back to dsp.

Change-Id: I3b0f4a80e8fd1cde43e5b6fe94030258eb01ead1
Acked-by: Abhinav Parihar <parihar@qti.qualcomm.com>
Signed-off-by: Vamsi Krishna Gattupalli <quic_vgattupa@quicinc.com>
Signed-off-by: Himateja Reddy <quic_hmreddy@quicinc.com>
2023-02-06 10:57:50 -08:00
Vamsi Krishna Gattupalli
bfd12fbf25 msm: adsprpc: To avoid null pointer dereference
To log error for fastrpc_mmap_remove_ssr and
compat_fastrpc_get_dsp_info for avoiding null pointer
dereferences leading to kw issues.

Change-Id: I0f759ce5d9c3100a5cff3e61ad1499f6eb1b55dd
Signed-off-by: Ansa Ahmed <ansaahme@qti.qualcomm.com>
2023-01-31 23:44:36 -08:00
Anirudh Raghavendra
9f5f25be96 Add support for LE compilation
Add .am files for LE build compilation. These files will replace
Makefile and Kbuild files only on LE builds.

Change-Id: Ib8dfa89523adf802acce57be0d2064f790bac6d2
Signed-off-by: Anirudh Raghavendra <quic_araghave@quicinc.com>
2023-01-26 23:23:19 -08:00
Himateja Reddy
6b8c6087fe msm: adsprpc: Add IOMMU_CACHE flag for iommy_map_sg
Currently memory shared to QRTR is not mapped with IOMMU_CACHE
flag. When using iommu_map_sg, IOMMU_CACHE flag makes the memory
coherent. Add IOMMU_CACHE flag to iommu_mag_sg to make memory
shared to QRTR coherent on APPS. Also remove DMA_ATTR_NO_KERNEL_MAPPING
attribute while allocating memory as it doesn't have significance when
the memory is coherent.

Signed-off-by: Himateja Reddy <quic_hmreddy@quicinc.com>
2023-01-24 08:59:06 -08:00
Vamsi Krishna Gattupalli
e1f8f88b4b msm: ADSPRPC: Use PD type enums instead of magic numbers
Currently PD type is getting updated with some magic numbers. Add
enum with different PD type information and use these types instead
of magic numbers for better code readability.

Change-Id: I20eb03726cabfcc88589be215c3c967b608a9cdb
Acked-by: Ekansh Gupta <ekangupt@qti.qualcomm.com>
Signed-off-by: Vamsi Krishna Gattupalli <quic_vgattupa@quicinc.com>
2023-01-23 10:42:43 +05:30
jianzhou
45d0db4477 dsp: remove private iommu/dma header
iommu/dma header was made to be private, need to remove it.

Change-Id: I16472ecb8af26699e1fe5a5316c44c4df9069dab
Signed-off-by: Maria Yu <quic_aiquny@quicinc.com>
2022-12-14 21:57:21 -08:00
Vamsi Krishna Gattupalli
b98c08f019 msm:ADSPRPC: configure signed userpd initial memory length
Currently the init memeory size allocated for user PD is fixed.
This may not be sufficent for some usecases. This change will
allow configuring initial memory size allocated for signed user PD.

Change-Id: I2b12cf98c96b1e11daaad7e1bbf1d3777f43c1b6
Acked-by: ANANDU E <anane@qti.qualcomm.com>
Signed-off-by: Vamsi Krishna Gattupalli <quic_vgattupa@quicinc.com>
2022-12-06 21:55:03 -08:00
Himateja Reddy
38ca55b8e5 msm: adsprpc: Share CP secure context banks
Currently CPZ secure context banks are not shared on CDSP. Share
CP secure context banks among applications that use secure memory,
so that many CPZ applications can be spawned and offloaded to DSP.

Change-Id: I77d95bab86ef527e41c9fe79058742615f4adb0e
Signed-off-by: Himateja Reddy <quic_hmreddy@quicinc.com>
2022-11-18 13:51:26 -08:00
Anirudh Raghavendra
4dc57d62a5 Added comment to daemon wait mechanism
Added comment to fastrpc_check_pd_status for daemons to wait before
audio or sensors PD is up.

Change-Id: I2d908cbf4b642386aec97ef1afe38b6af572d9a5
Signed-off-by: Anirudh Raghavendra <quic_araghave@quicinc.com>
2022-11-16 09:41:01 -08:00
Thyagarajan Venkatanarayanan
b53b19bf75 msm: adsprpc: launch trusted process as system unsigned PD
If a trusted process is requesting for unsigned PD, set process
attribute to launch it as a system unsigned PD on remote subsystem to
get additional privileges.

Change-Id: Ie29f02ba16f2c4e68bf4cd1c75731915d40a9241
Signed-off-by: Thyagarajan Venkatanarayanan <quic_venkatan@quicinc.com>
2022-11-14 14:26:36 -08:00
Anirudh Raghavendra
f8b3c01858 Add snapshot from Kailua
Added snapshot of fastrpc code on Kailua to Lanai component.

Change-Id: I50bd699ef1c502116368c383ed9dc28f675d393c
Signed-off-by: Anirudh Raghavendra <quic_araghave@quicinc.com>
2022-11-08 13:48:12 -08:00
Anirudh Raghavendra
3a10a6b261 Resolve compilation errors in adsprpc
Number of parameters in print statement was less than number of
format specifiers. This was causing an error with the new kernel
compiler.

Change-Id: Iad4ed0ad373559ecd64e8d9bfb1da37532f443c9
Signed-off-by: Anirudh Raghavendra <quic_araghave@quicinc.com>
2022-11-02 14:59:50 -07:00
Bruce Levy
12862dfca9 adsprpc: Fix compilation error
Change-Id: I12af79e309f8f0f0d50bad2d88a437f62ecd1d46
2022-11-01 16:16:03 -07:00
Anirudh Raghavendra
8ac83763ce Enable wait for PD only when PDR mechanism is up
When the PDR mechanism is down, the value of ispdup is always 0.
This makes the sensors or audio daemon wait indefinitely in the
kernel.
Disabling wait in kernel when PDR mechanism is not working.

Change-Id: I556dc0aa3908bc97b433cbd6060b88a710923b58
Signed-off-by: Anirudh Raghavendra <quic_araghave@quicinc.com>
2022-09-23 14:56:32 -07:00
Anirudh Raghavendra
c64cff5b57 adsprpc: msm: Add rules for compilation
Adding rules for compiling frpc_adsprpc ko and cdsploader
ko.

Change-Id: Ie0d13018fea971ffa20f0183c17a299ca47f29c7
Signed-off-by: Anirudh Raghavendra <quic_araghave@quicinc.com>
2022-09-23 10:05:54 -07:00
Anirudh Raghavendra
cabe8eabfb Add trace header file to kernel component
Moved trace header file from kernel branch to fastrpc kernel
component

Change-Id: I3c1dafe9daec89f1164e64606748cb47483e1670
Signed-off-by: Anirudh Raghavendra <quic_araghave@quicinc.com>
2022-09-22 15:07:51 -07:00
Anirudh Raghavendra
7e0eff3f2b adsprpc: Modify code to pass compilation
Add missing module import to macro for DMA_BUF and add fallthrough
statements

Change-Id: Ied625ee1000afca9f269989ff2635ea04a8fe196
Signed-off-by: Anirudh Raghavendra <quic_araghave@quicinc.com>
2022-08-16 10:33:07 -07:00
Anirudh Raghavendra
b0ee7bc076 adsprpc: Add initial src files to new target
Add fastrpc driver files to vendor branch

Change-Id: I852eee93cf6c0b2bc0833f9635f73b890de930da
Signed-off-by: Anirudh Raghavendra <quic_araghave@quicinc.com>
2022-08-12 17:41:38 -07:00