Commit Graph

26 Commits

Author SHA1 Message Date
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
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
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
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
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
Gaurav Kashyap
46f6032141 securemsm-kernel: qcedev & qrng bazel support
Support to build qcedev and qrng modules using
Bazel.

Change-Id: I4411d208f294cdc014280d4da1a211b72d862d53
Signed-off-by: Gaurav Kashyap <quic_gaurkash@quicinc.com>
2023-04-10 11:10:55 -07:00
Spencer Willett
9cd99dbb79 securemsm-kernel: exposing smcinvoke headers
We are exposing headers present in "include/linux" for the rest of the kernel DLKM's.
Aallow other kernel teams to access these headers.

Change-Id: I19c5591d885c7042ba3acd312ce9cb2bddc995c9
CRS-Fixed: 3338788
2022-12-16 19:07:58 -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
Spencer Willett
a785a207a2 Revert "securemsm-kernel: exposing smcinvoke headers"
This reverts commit 796ae71391.

This commit is being reverted due to build conflicts
with other teams

CRS-Fixed: 3354563

Change-Id: I915cc5bd0e718a1b82641ac02d2f0184f2fa1f37
2022-12-06 13:38:24 -08:00
Spencer Willett
796ae71391 securemsm-kernel: exposing smcinvoke headers
We are exposing headers present in "include/linux" for the rest of the kernel DLKM's.
These changes allow for other kernel teams to access these headers.

CRS-Fixed: 3338788

Change-Id: I5926ddeee8541398b32010db0b01af529b19fa3e
2022-11-23 09:49:37 -08:00
Spencer Willett
1633f747b3 securemsm-kernel: Move header files from securemsm-kernel/smcinvoke to securemsm-kernel/linux
Relocating three header files to the linux folder.
Updated SPDX-License-Identifier comment in each file.

CRS-Fixed: 3317072

Change-Id: I4fe6b46c9f97c0d32b573a1488c5ab48120d3b0b
2022-10-21 12:19:23 -07:00
Jayasri Bhattacharyya
ccc44aff77 Securemsm-kernel: Enable qseecom for khaje
1. Add qseecom_dlkm.ko based on Khaje and AUTO arch type
2. Restructure conf file into multiple conf files
   to enable feature based conf file.

Change-Id: I8bc0472667aebc35e8d1afa37eaca5c3353fd191
Signed-off-by: Jayasri Bhattacharyya <quic_jbhattac@quicinc.com>
2022-08-24 07:32:48 -07:00
Indranil Pradhan
ac5ae74540 securemsm-kernel: Enable qseecom module for auto platform
Add support for qseecom as DLKM with basic qseecom test cases
passed except listener services.

Change-Id: I09ad0433f757d00f0902df937714132c6dff5030
2022-05-05 23:56:58 +05:30
Gaurav Kashyap
64e85a3b4a qcedev: add gpce key pause error conditions
Add support in the qcedev driver to detect KEY_PAUSE
error conditions and report accordingly to userspace.

Change-Id: Id7bbde02ca4d08917bcf21d6f62e21f3c71abc7b
2022-04-14 22:19:06 -07:00
Gaurav Kashyap
31f097f988 crypto-qti: qcedev: add support for hlos offload path
Add support for HLOS offload data path in the qcedev driver
mainly to support DRM and HDCP usecases.

Changes extend the current driver to support the following.
- Register multiple pipes for different offload usecases.
- Report timer expiry errors back to userspace.
- Support different iv CTR sizes based on userspace input.
- Support new IOCTLS to support encryption, decryption and
  copy offload usecases for DRM and HDCP.

Change-Id: Ie9b74c173d0afd7b8c863ed57a68ec6e74baa9b4
2022-04-13 21:25:06 -07:00
Sheik Anwar Shabic Y
177899dde3 securemsm-kernel : Resolve external dependancy for hdcp module
Resolve external dependancy for hdcp symbols.

Change-Id: If4bad51a7aabdbb334f9e7efaa45f40f0988c857
2022-04-11 14:40:34 -07:00
qctecmdr
d9e5c36524 Merge "securemsm-kernel : Correction in LF Copyright" 2022-04-11 06:42:30 -07:00
Gaurav Kashyap
7398cbd4c4 securemsm-kernel : Correction in LF Copyright for qrng.
Change-Id: I1f0b5a2b39a1bd0207a9cedcb85f5ef53e843e86
2022-04-05 18:26:21 -07:00
Phalguni Bumhyavarapu
1496aefc9e securemsm-kernel : Correction in LF Copyright 2022-03-09 15:55:32 -08:00
Gaurav Kashyap
d4014194cc sec-kernel: qrng: add qrng driver support
Add the qrng driver which adds support for the kernel to utilize
QTI's PRNG hardware for RNG operations.

Change-Id: I9c9cb7f907470c88e182dc869f302e4ca83fb798
2022-02-25 14:20:50 -08:00
Gaurav Kashyap
4724978ce5 Revert "securemsm-kernel: Enable tmecom module compilation"
This reverts commit 72ec3a4a48.
2022-02-17 14:05:07 -08:00
Sheik Anwar Shabic Y
72ec3a4a48 securemsm-kernel: Enable tmecom module compilation
Enable compilation for tmecom-intf_dlkm.ko compilation.

Change-Id: I049c769abea1a53160d82f4c85ec49089f485f7e
2022-01-31 17:17:29 +05:30
Sheik Anwar Shabic Y
49142cbffe securemsm-kernel : Enable hdcp_qseecom module compilation
1. enable hdcp_qseecom.ko module compilation.
2. removed duplicated files in crypto-qti and smcInvoke folder.

Change-Id: I18c14000756484aa3d4723a58814ba8350d12927
2022-01-27 10:19:57 +05:30
Gaurav Kashyap
fb87f65cae Fix qcedev compilation
Change-Id: I263496352ab0de591beb8488197ede449eee740c
2022-01-09 09:30:14 -08: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