Commit-Graf

10 Incheckningar

Upphovsman SHA1 Meddelande Datum
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