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>
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>
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>
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>
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>
iommu/dma header was made to be private, need to remove it.
Change-Id: I16472ecb8af26699e1fe5a5316c44c4df9069dab
Signed-off-by: Maria Yu <quic_aiquny@quicinc.com>
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>
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>
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>
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>
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>
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>
Adding rules for compiling frpc_adsprpc ko and cdsploader
ko.
Change-Id: Ie0d13018fea971ffa20f0183c17a299ca47f29c7
Signed-off-by: Anirudh Raghavendra <quic_araghave@quicinc.com>