Графік комітів

15 Коміти

Автор SHA1 Повідомлення Дата
Anmolpreet Kaur
2e42ca628b securemsm-kernel: Fix format-specifier errors
Moving to a new kernel version has led to
enablement of new compiler warnings. These
issues came during compilation enablement
of securemsm modules for sun.

Change-Id: Id807a642b9465dda79680c28d4a6eeef64a45eba
Signed-off-by: Anmolpreet Kaur <quic_anmolpre@quicinc.com>
2023-09-05 08:53:17 -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
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
Vikas Kumar Sharma
61a4a72db8 securemsm-kernel: smcinvoke: Fix KW Errors
Fix usage of un-initialized variables , dereferencing of pointer after NULL check

Change-Id: I36afeaefa7f7c524fd0165420140e80ee5580503
2023-04-06 08:40:23 -07:00
Pawan Rai
d0ede8a88c smcinvoke: ADCI methods call on rootEnv
Change adci methods call on rootEnv from clientEnv as per
QTEE implementation.

Change-Id: Ib1ca4312844f6f3dedbfb639e5b83f71d97ecc68
2023-02-22 10:49:11 +05:30
Pawan Rai
ca9f562c5a smcinvoke: adci interface adaptation as per QTEE
Adapted the latest IClientEnv adci and other
interface methods from QTEE.
Change-Id: I05730e56d656977fbc53a2d3dedb04426474be1c
2023-01-29 10:58:20 -08:00
Pawan Rai
ef2c3ba718 smcinvoke: ADCI changes for SMCInvoke Driver
Change consists creation of ADCI thread at SMCInvoke
driver initialization

 Change consists creation of ADCI thread at SMCInvoke driver initialization
 Following scenario have been tested for this change
  (1) ADCI thread creation and QTEE invocation during driver initialization
  (2) Backward Compatibility - IF ADCI feature is not supported (OBJECT_ERROR_INVALID)
        then exit the ADCI thread gracefully after cleaning up all the resources
  (3) Leak Test: All the resources held by ADCI thread should be released if ADCI feature
      is not supported by QTEE
      (i) adci task_struct state and exit state:
            state =  TASK_RUNNING , exit_state = 0 (While ADCI thread execution)
            state =  TASK_DEAD , exit_state = EXIT_DEAD (During ADCI thread termination)
     (ii) adci task_struct = NULL (fetched based on adci thread_id) which make sure
             task_struct has been deallocated
  (4) SMCInvoke related Test: All the internal(suuported),memobj and cbo testing has been performed.

Change-Id: I2916ce260fae293b88fbc8b9d24baccdee1ea89f
Signed-off-by: Pawan Rai <quic_pawarai@quicinc.com>
2023-01-09 00:50:26 -08:00
Anmolpreet Kaur
8456ddc256 securemsm-kernel: Add support for qseecom proxy module
A new module named qseecom_proxy has been defined in kernel
which acts as a forwarder for calls received from kernel clients
of qseecom and smcinvoke. This change adds the support for calling
that module from the vendor dlkm modules smcinvoke and qseecom.

Change-Id: I0d1aa93b9cea9e6a6e1fee17c33c78e14deb8ecf
Signed-off-by: Anmolpreet Kaur <quic_anmolpre@quicinc.com>
2022-12-09 03:56:15 +05:30
Smita Ghosh
5233220e29 smcinvoke: Fix compilation error
With Bazel some of the warnings are now error.

Change-Id: Ie195c8bc993dce27cf5f2353a8965605ac50ae72
2022-11-16 09:09:05 -08:00
Spencer Willett
50845e2d72 securemsm-kernel: smcinvoke: update error code for Invoke failed
Return OBJECT_ERROR_BUSY if the Object is busy.
Return OBJECT_ERROR_KMEM if Out of memory.
Return OBJECT_ERROR_UNAVAIL if the request could not be processed.

Change-Id: I17b9ecd7dd817b445d84cb7d01b019497248a2a3
2022-10-19 13:55:52 -07:00
Jayasri Bhattacharyya
91e3da89cb securemam-kernel: Change the scope of CONFIG_QSEECOM
Export get_client_env_object when CONFIG_QSEECOM is enabled

Change-Id: I1a52d6e86c8bc75436df55a91759b251caeaa051
2022-08-24 05:32:20 -07:00
Nicholas Pelham
a4a925db92 securemsm-kernel: Add IClientEnv_registerWithCredentials
Use new ClientEnv register method for kernel clients

Change-Id: I3ce32788c5c7658dcaf808c00d52c32df226fec6
2022-08-01 17:24:07 -07:00
Nicholas Pelham
e6550eb67e securemsm-kernel: Export get_client_env_object
Expose basic smcinvoke support for kernel clients.

Change-Id: I754ff56c8c20579d5c824170d0e1b61d0a22535c
2022-05-24 13:47:44 -07:00
Smita Ghosh
e190b86556 secuemsm-kernel : Enable DLKM's from vendor
SSG's kernel modules will be loaded through userspace
init instead of kernel.

Change-Id: Ibf88a6a56df65a933d451d39136060967595e5b7
2021-12-14 12:52:18 -08:00