kernel_optimize_test/drivers/tee/amdtee
Rijo Thomas c39a190d83 tee: amdtee: unload TA only when its refcount becomes 0
[ Upstream commit 9f015b3765bf593b3ed5d3b588e409dc0ffa9f85 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-05-26 12:06:47 +02:00
..
amdtee_if.h
amdtee_private.h tee: amdtee: unload TA only when its refcount becomes 0 2021-05-26 12:06:47 +02:00
call.c tee: amdtee: unload TA only when its refcount becomes 0 2021-05-26 12:06:47 +02:00
core.c tee: amdtee: unload TA only when its refcount becomes 0 2021-05-26 12:06:47 +02:00
Kconfig tee: amdtee: amdtee depends on CRYPTO_DEV_CCP_DD 2020-02-13 16:55:04 +08:00
Makefile
shm_pool.c