Commit gráf

211 Commit-ok

Szerző SHA1 Üzenet Dátum
Udit Tiwari
f214d2e6b8 securemsm-kernel: remove qcedev_compat support
cleanup qcedev_compat driver support that is not
needed on latest Qualcomm Technologies, Inc. plateforms.

Change-Id: Id61e06a5a3cc1b3e9474c328f26761ffda9a55e0
Signed-off-by: Udit Tiwari <quic_utiwari@quicinc.com>
2023-08-17 21:29:26 -07:00
qctecmdr
f20c65ab0e Merge "smmu-proxy: Change location of UAPI directory" 2023-08-15 14:27:42 -07:00
Sheik Anwar Shabic Y
5b4eba2697 securemsm-kernel : Add validation check for shm handle release call
1.Invalid shm handle release causing in to invalid address access.
  so added check to release the handle only if it is valid.
2.Skip the error if hdcpsrm ta loading is failing with already
  loaded error becase hdcpsrm can be loaded from wfd stack
  also when external monior is connected with sink device.

Change-Id: Ic6c48eabfc383352e8de781bebbc2e6cd7e964e0
Signed-off-by: Sheik Anwar Shabic Y <quic_sheikanw@quicinc.com>
2023-08-02 15:36:35 +05:30
qctecmdr
ae47124ef5 Merge "securemsm-kernel: Add reboot notifier for resource cleanup at reboot" 2023-08-01 13:04:00 -07:00
qctecmdr
a81e34e070 Merge "securemsm-kernel: smcinvoke: Fix mapping requests log" 2023-08-01 10:48:01 -07:00
qctecmdr
a7f959ccdb Merge "qcedev: Remove excessive logging on failure" 2023-07-31 14:27:33 -07:00
Chris Goldsworthy
6c1aa1e334 smmu-proxy: Change location of UAPI directory
Change the location of our UAPI directory in order to satisfy
directory structure requirements.

Change-Id: I620f441833fc1cbe5cd871028f2babba47af5ef4
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
2023-07-31 12:53:37 -07:00
qctecmdr
4ab10179bf Merge "qcom: tz_log: Avoid creating proc node in case of init failures" 2023-07-31 12:12:40 -07:00
qctecmdr
b24614812d Merge "securemsm-kernel:Initialize Camera driver structure and fix compilation error" 2023-07-31 09:56:41 -07:00
Indranil Pradhan
b682fbfef0 securemsm-kernel: Add reboot notifier for resource cleanup at reboot
Added reboot notifier function to do resource clean up during reboot
as mutliple issues during reboot were noticed where release call was
not invoked by OS for qseecom driver. This lead listener req to wait for
for response which hold reboot for infinite time.
Test Cases:
1. Ran HDCP_denit at reboot to check reboot stuck.
2. Mutliple Reboots.

Change-Id: I7917cf9a89feca731e479538e7f4fa0671a29edd
Signed-off-by: Indranil Pradhan <quic_ipradhan@quicinc.com>
2023-07-30 23:41:32 -07:00
Kuldeep Singh
6455a9d5ca qcom: tz_log: Avoid creating proc node in case of init failures
As per the current flow, tme_log dir is created by default for all type
of targets.
Below are the cases where tme_log should not be created:
    - For non TME targets.
    - Target support TME, but tmecrashdump-address-offset value is not
      specified in DT.
    - If DT value is provided, but faced an error in ioremapping passed
      address value.

Alongwith tme_log, fix hyp/rm log node creation behavior as well by
extending this interface.

Change-Id: Ie26701d551aa48ff896642e04db2392860035e1e
Signed-off-by: Kuldeep Singh <quic_kuldsing@quicinc.com>
2023-07-28 02:57:04 -07:00
Ravi Kumar Bokka
d927db8e99 securemsm-kernel:Initialize Camera driver structure and fix compilation error
CameraDriver structure initialized explicitly to get version info
and remove INT32_C undefined macro definition to avoid compilation error.

Change-Id: If79a83383634fb379d860746ea3611e46295cd64
Signed-off-by: Ravi Kumar Bokka <quic_c_rbokka@quicinc.com>
2023-07-28 10:20:19 +05:30
Daniel Perez-Zoghbi
58d9594d22 qcedev: Remove excessive logging on failure
Previously on sps_transfer failure, a fail message and descriptor
information would be logged. Changed to only log a fail message.
Descriptor can still be logged with QCE_DEBUG defined.

Change-Id: I3dfc2d0f58ea99302a62bf3aeeaa3d3e9f587b16
Signed-off-by: Daniel Perez-Zoghbi <quic_dperezzo@quicinc.com>
2023-07-27 14:16:31 -07:00
venkata sateesh
245961c243 securemsm-kernel: Add support for commonlib loaded from host
Add support for qcom,commonlib-loaded-by-hostvm
to use commonlib loaded by host VM.

Change-Id: I3a9f08bb53dde7545f518247ae885411ae8eef64
Signed-off-by: venkata sateesh <quic_vencher@quicinc.com>
Signed-off-by: Nishant Raj <quic_nishraj@quicinc.com>
2023-07-27 10:39:40 -07:00
Reut Zysman
41db658cfd securemsm-kernel: smcinvoke: Fix mapping requests log
Print the error log indicating that a mapping request
was received only in case the memory object async
support was enabled.

Change-Id: I1e02e4cb8501d539fdd6767152697a41033aa1d6
Signed-off-by: Reut Zysman <quic_rzysman@quicinc.com>
2023-07-26 22:02:32 -07:00
Smita Ghosh
6a927095d1 securemsm-kernel: Use a new QMAA flag for QTEE drivers
Guard enablement of QTEE drivers using a new QMAA flag
so that these driver can be enabled independently.

Change-Id: I8d78499a9ff66519afceb4e36f32737ed30584ed
Signed-off-by: Smita Ghosh <quic_smitag@quicinc.com>
2023-07-19 15:01:45 -07:00
Rajat Singh Deepak
e0ce498b3b securemsm-kernel:Expose header to configure FD port to camera kernel
Added a new API dynamicConfigureFDPort to allow secure/non-secure
FD port configuration from camera kernel.

Change-Id: I928d260249ef7bb10c43c125b5bc1c48379d89d4
Signed-off-by: Rajat Singh Deepak <quic_rajatsin@quicinc.com>
2023-07-17 14:26:01 +05:30
qctecmdr
9b5284a7ec Merge "tz_log: Add tme logs support via tmecom interface" 2023-07-15 14:40:50 -07:00
qctecmdr
89fdde54a1 Merge " securemsm-kernel:smcinvoke: Alt RoT signed TA fails to load." 2023-07-15 12:34:37 -07:00
qctecmdr
72cde93ea0 Merge "securemsm-kernel: Add DDK framework for strait" 2023-07-15 12:34:37 -07:00
qctecmdr
123efdf8f8 Merge "qseecom: changed entry type from unit32_t to int32_t" 2023-07-15 12:34:37 -07:00
qctecmdr
be0b2c330f Merge "compat_qcedev: remove kconfig reference in uapi header" 2023-07-14 04:26:26 -07:00
qctecmdr
63c2ea5d49 Merge "securemsm-kernel: include/linux: kw fixes" 2023-07-13 17:19:30 -07:00
qctecmdr
04da297e9b Merge "securemsm-noship: smcinvoke: Rename define" 2023-07-13 09:18:29 -07:00
Spencer Willett
4b2f646c79 securemsm-kernel: include/linux: kw fixes
initialize struct

CRS-Fixed: 3555122

Change-Id: I26ef84bc2bf6c4dbb5bfa754519de57c8d586375
2023-07-10 10:05:18 -07:00
Gaurav Kashyap
a5359c1450 compat_qcedev: remove kconfig reference in uapi header
Remove the CONFIG_COMPAT reference in the compat_qcedev.h
header to conform with uapi guidelines.

Change-Id: I3251c637a5ad76af655de87ffde21a12dbba1850
Signed-off-by: Gaurav Kashyap <quic_gaurkash@quicinc.com>
2023-07-07 11:01:11 -07:00
Nitin LNU
2df9a90c11 securemsm-kernel: Add DDK framework for strait
Add DDK framework for strait to compile with
build bazel framework.

Change-Id: I644cf9121b5fdf8f93c7fa28ab93713cbb9b2bd2
Signed-off-by: Nitin LNU <quic_nlakra@quicinc.com>
2023-07-05 04:02:30 -07:00
Disha Galve
561d0ff5e4 qseecom: changed entry type from unit32_t to int32_t
Return value of function is int32_t and storing return value in
uint32_t will lead to integer underflow issue. Change variable
from uint32_t to int32_t to handle negative integer values.

Change-Id: I6d8525e9ee4a138c96933674f5f828e19794258b
Signed-off-by: Disha Galve <quic_dgalve@quicinc.com>
2023-07-04 23:39:14 -07:00
Vikas Kumar Sharma
5d325c58e1 securemsm-kernel:smcinvoke: Alt RoT signed TA fails to load.
Fix: The size of TA application name increaed, once it is alternate signed TA.

Change-Id: Ie66b870f04cdc4a8ed14fe5bc134f9ecaffa7fda
Signed-off-by: Vikas Kumar Sharma <quic_vksharma@quicinc.com>
2023-07-04 17:09:41 +05:30
Reut Zysman
aa1d1edbde securemsm-noship: smcinvoke: Rename define
Rename define to avoid definition duplications.

Change-Id: I3b3e87c41a3d2aef2310a1511c54013b3b6bf413
Signed-off-by: Reut Zysman <quic_rzysman@quicinc.com>
2023-06-30 11:18:14 -07:00
Kuldeep Singh
7d9670d1fd tz_log: Add tme logs support via tmecom interface
Extend tz_log driver usage to display TME logs from userspace with the
help of tmelog interface.

Output tme log data is in raw format and need to run an explicit parser
to get meaningful information.

Change-Id: Icd230494d014c9be0d79e5c6c1378dffefe54e0f
Signed-off-by: Kuldeep Singh <quic_kuldsing@quicinc.com>
2023-06-29 10:42:50 -07:00
Raghavendra Prasad N
a2b51c8907 securemsm-kernel: Enable qseecom for Auto SA6155 Platform
Add qseecom support for Auto SA6155 Platform

Change-Id: Ice9d848c300956f65ccdd5c08bd1c6ec91c4bd5c
Signed-off-by: Raghavendra Prasad N <quic_raghnaga@quicinc.com>
2023-06-27 23:15:47 -07:00
Reut Zysman
ce2b7baa79 securemsm-kernel: smcinvoke: limit excessive logging
Use pr_err_ratelimited to limit logs that are
printed frequently.

Change-Id: If16646d244e963300be4cabc4250e9139014b3d6
Signed-off-by: Reut Zysman <quic_rzysman@quicinc.com>
2023-06-27 13:32:27 -07:00
qctecmdr
a0a23eafa8 Merge "securemsm-kernel : handle hdcp timeout when sink response is delay" 2023-06-24 12:04:21 -07:00
Sheik Anwar Shabic Y
9b4165db8b securemsm-kernel : handle hdcp timeout when sink response is delay
handle hdcp timeout cmd in driver when timout is received from dp
driver for delay in sink response.

Change-Id: Iea60eb56395b9b045bb2d67c6ef9e06318dc23ae
Signed-off-by: Sheik Anwar Shabic Y <quic_sheikanw@quicinc.com>
2023-06-24 09:26:32 +05:30
Gaurav Kashyap
163e732b20 qcedev: remove linux/qcedev.h
Remove the qcedev header as it present in
the uapi path.

Change-Id: I01f8b923a11e810cf10b21c3b03d22f34f77ea96
Signed-off-by: Gaurav Kashyap <quic_gaurkash@quicinc.com>
2023-06-22 11:21:14 -07:00
Sheik Anwar Shabic Y
1f515ba432 securemsm-kernel : Unload hdcp1 when all instances are closed
Unload hdcp1 TA when all client instances are closed.

Change-Id: I079021b1efadfdec3c0248f7c8ed79c686d6d1c5
Signed-off-by: Sheik Anwar Shabic Y <quic_sheikanw@quicinc.com>
2023-06-18 22:21:23 -07:00
qctecmdr
c9102b2761 Merge "securemsm-kernel: enabling qseecom_dlkm for blair" 2023-06-17 06:40:23 -07:00
Akhil Budampati
9cfda59332 securemsm-kernel: enabling qseecom_dlkm for blair
Added CONFIG_ARCH_BLAIR for enabling qseecom_dlkm for blair

Change-Id: Ib9bd681014908f29ebc41dd7aa2b65fde1d10598
Signed-off-by: Akhil Budampati <quic_abudampa@quicinc.com>
2023-06-17 05:29:26 -07:00
qctecmdr
fd5bd0cbdd Merge "qcedev: check correct status for no error" 2023-06-17 04:37:33 -07:00
Divisha Bisht
986fef5bf8 securemsm-kernel: Enable CONFIG_QSEECOM_COMPAT for pineapple
Bzl files changes to enable CONFIG_QSEECOM_COMPAT for pineapple.
Now that ddk flag is enabled, the config can no longer be enabled
with Kbuild, instead we have to use bzl based changes to enable
it.

Change-Id: I2f1bb9bb4b78413289b7fa988a49fc7b10e7836e
Signed-off-by: Divisha Bisht <quic_divibish@quicinc.com>
2023-06-16 23:51:28 +05:30
Gaurav Kashyap
8f0e7799d8 qcedev: check correct status for no error
No error status is reflected in multiple ways in
the status register. Check both values or else, there
might be timing issues.

Change-Id: I82ecdb77d8127b076e12495fea104cb0fffe65bc
Signed-off-by: Gaurav Kashyap <quic_gaurkash@quicinc.com>
2023-06-16 10:26:40 -07:00
qctecmdr
f611793ab5 Merge "securemsm-kernel: smmu-proxy: Remove TVM messaing log" 2023-06-16 02:35:54 -07:00
Reut Zysman
780711b60c securemsm-kernel: smcinvoke: expand API
Expand SMCInvoke API to support possible
future requirements.

Change-Id: I9f6031751489c43a27afc2860a1cb9f87c7ebb87
Signed-off-by: Reut Zysman <quic_rzysman@quicinc.com>
2023-06-15 07:26:07 -07:00
Nitin LNU
cdef6720fe securemsm-kernel: Enable Qseecom driver by default
Enable qseecom driver by default to compile on all chipset
in parallel with Qseecom-compat enable.

Change-Id: I3dd3aa2864c41196197f0770020225fa36f088c1
Signed-off-by: Nitin LNU <quic_nlakra@quicinc.com>
2023-06-15 00:31:14 -07:00
Divisha Bisht
3983090d0e securemsm-kernel: Moving qseecom headers to securemsm-kernel
Move qseecom headers to securemsm-kernel. Also, cleanup and split
of qseecom header done based on usage.
These qseecom headers are now exposed to userspace as
qseecom_kernel_headers.
All the other changes are to take care of compilation dependencies
from the above.

Tests: Tested in device with local build with qseecom sampleclient
cmds.

Change-Id: I55442ce7380636a2630c2e372099735fec0756a8
Signed-off-by: Divisha Bisht <quic_divibish@quicinc.com>
2023-06-13 17:34:45 +05:30
Chris Goldsworthy
53116dd965 securemsm-kernel: smmu-proxy: Remove TVM messaing log
Remove a log on the TVM when we receive a message in the proxy driver.

Change-Id: Ib7197eee830d0cf86b62893949cb6356c4a7b951
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
2023-06-08 15:47:53 -07:00
Gaurav Kashyap
de989fe1a3 qcedev: support for additional offload pipes
Add support for two additional offload pipes.
1 new HLOS_HLOS pipes.
1 new HLOS_CPB pipe.

Change-Id: Ia9acf3cbdf9c1f148dbddc9426d51ade0d26ff75
Signed-off-by: Gaurav Kashyap <quic_gaurkash@quicinc.com>
2023-06-08 11:34:25 -07:00
Gaurav Kashyap
e0e07de5fd qcedev: check crypto status before unlocking
Whenever there is a crypto error, the pipe is reset which
in turn resets the crypto core. When the pipe is reset wait
for it to complete by monitoring the crypto status.

Change-Id: Id79838e517df491b8062ec379baff2407fea500c
Signed-off-by: Gaurav Kashyap <quic_gaurkash@quicinc.com>
2023-06-06 10:17:16 -07:00
Gaurav Kashyap
ed0eab9c68 sec-kernel: move uapi securemsm headers to uapi path
Move the securemsm-kernel uapi headers to a uapi include path,
to conform with the uapi requirements.

NOTE: Duplicating qcedev.h & smcinvoke.h temporarily until
clients that manually include the path use the exported headers.

Change-Id: I33d390954ff0e6c721a5fa8256b431020e4f8912
Signed-off-by: Gaurav Kashyap <quic_gaurkash@quicinc.com>
2023-06-05 09:47:37 -07:00