OpenCloudOS-Kernel/drivers/tee/amdtee
Rijo Thomas 9f015b3765 tee: amdtee: unload TA only when its refcount becomes 0
Same Trusted Application (TA) can be loaded in multiple TEE contexts.

If it is a single instance TA, the TA should not get unloaded from AMD
Secure Processor, while it is still in use in another TEE context.

Therefore reference count TA and unload it when the count becomes zero.

Fixes: 757cc3e9ff ("tee: add AMD-TEE driver")
Reviewed-by: Devaraj Rangasamy <Devaraj.Rangasamy@amd.com>
Signed-off-by: Rijo Thomas <Rijo-john.Thomas@amd.com>
Acked-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
2021-05-05 13:00:11 +02:00
..
Kconfig tee: amdtee: amdtee depends on CRYPTO_DEV_CCP_DD 2020-02-13 16:55:04 +08:00
Makefile
amdtee_if.h
amdtee_private.h tee: amdtee: unload TA only when its refcount becomes 0 2021-05-05 13:00:11 +02:00
call.c tee: amdtee: unload TA only when its refcount becomes 0 2021-05-05 13:00:11 +02:00
core.c tee: amdtee: unload TA only when its refcount becomes 0 2021-05-05 13:00:11 +02:00
shm_pool.c