With the offload implementation, there are a couple of issues
for non-offload usecases.
1. Set config and offload op parameters correctly for non-cipher
usecases.
2. Due to default wait value, there is a crypto operation irrespective
of previous errors, fix that.
Change-Id: Idba55b3603349b7ad831eccd6ee25c98b1df5de6
1. Currently, each request api sometimes returns 0 even
when an error has occured. This will result in unecessary
crypto requests when failures are expected.
2. The request callback handlers does not check handles to
be NULL before accessing. Fix to add NULL handling.
Change-Id: Ia44e353bdb75434dfbc0e3ec0582abc0208be6a7
1. There is no need to vote for high bandwidth for every
ioctl operation, Instead, vote only when a new device
node is opened (which translates to a new session from
a userspace point of view).
2. Fix the way BAM pipes are reset when there is a crypto
operation by initializing it correctly through the SPS
BAM framework.
3. Checking crypto status for every request is performance
heavy. Remove these checks and read status only on
error conditions.
Change-Id: Ibb3607ecb6919f563b00a9a8cd6f5440a8c3940a
Acquire lock before delete_cb_txn_locked.
This API expects the lock is aquired before calling it
release the lock afterwards.
Also rename the api with_locked to state that api
needs to be called on locked mutex.
Change-Id: I6384ff60004da90b46904823e399c62c55ea4273
Control DLKM using TARGET_ENABLE_DLKM.
During early bring when most of the modules are not ready
either due to missing header or other reasons. Its good idea
to keep it disabled until its fully ready.
Change-Id: I421f7329cd84d53b3233cea96b0e1920de9d39ea
Add support for loading securemsm module to be loaded during
recovery to avoid unknown symbols error for other dependent drivers.
Change-Id: I477b69cc649ed6b40d0f22a695a25a8d674328f2
When non-pattern tests are run after pattern tests, there is
stale data from previous tests that never get erased, which
depending on crypto behavior might cause decrypt discrepancies.
Make the change to correctly set the pattern info to the
command descriptors.
Also, convert all debug logs to pr_info to avoid flooding serial
when QCE_DEBUG is enabled.
Change-Id: Ib84f4025263c622d6e51a47fc147856049bd75d4
a validation added to check whether retrieved struct smcinvoke_file_data
inside the function get_server_id belongs to g_smcinvoke_fops or not.
Change-Id: I50bce93ab89759b4fdcb76e41f699d8199771fbd
Signed-off-by: Pavan Bobba <quic_pav@quicinc.com>
Disabling export error and commenting out ununsed variable
which will be resolved with correct export symbol in future.
Test: Compile tested for complete apps build.
Change-Id: I51c45b522de1437d341c7b3fce0aaa82fd233e55
Add MODULE_IMPORT_NS for smcinvoke driver to ignore consider it as as
filesystem and not a driver.
Change-Id: I839b972f68f45f184f6a46de6779ac6adace9d38
Add support in the qcedev driver to detect KEY_PAUSE
error conditions and report accordingly to userspace.
Change-Id: Id7bbde02ca4d08917bcf21d6f62e21f3c71abc7b
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
pull commits
smcinvoke: Release lock for non critical region
When entering into non critical region make sure to release the lock and
increase reference for memobj instead of holding the lock and causing
memobj not to be released when third party module using it.
smcinvoke: Add support for splitbin
Remove hard limit on the number of splitbins available.
Let the TZ decide if the reassembled binary is good for usage.
cherrypicked from I6d7b5c3154c8c362be0a6bad2da1c4687191536d
Change-Id: Ibb12bc906fb3e995928a0b51b742e8193d737ba3
Add the qrng driver which adds support for the kernel to utilize
QTI's PRNG hardware for RNG operations.
Change-Id: I9c9cb7f907470c88e182dc869f302e4ca83fb798