linux/drivers/tee/amdtee
Rijo Thomas 436eeae041 tee: amdtee: Add return_origin to 'struct tee_cmd_load_ta'
After TEE has completed processing of TEE_CMD_ID_LOAD_TA, set proper
value in 'return_origin' argument passed by open_session() call. To do
so, add 'return_origin' field to the structure tee_cmd_load_ta. The
Trusted OS shall update return_origin as part of TEE processing.

This change to 'struct tee_cmd_load_ta' interface requires a similar update
in AMD-TEE Trusted OS's TEE_CMD_ID_LOAD_TA interface.

This patch has been verified on Phoenix Birman setup. On older APUs,
return_origin value will be 0.

Cc: stable@vger.kernel.org
Fixes: 757cc3e9ff ("tee: add AMD-TEE driver")
Tested-by: Sourabh Das <sourabh.das@amd.com>
Signed-off-by: Rijo Thomas <Rijo-john.Thomas@amd.com>
Acked-by: Sumit Garg <sumit.garg@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
2023-05-15 08:29:52 +02:00
..
amdtee_if.h tee: amdtee: Add return_origin to 'struct tee_cmd_load_ta' 2023-05-15 08:29:52 +02:00
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: Add return_origin to 'struct tee_cmd_load_ta' 2023-05-15 08:29:52 +02:00
core.c tee: amdtee: fix race condition in amdtee_open_session 2023-02-28 18:39:19 +01:00
Kconfig tee: amdtee: amdtee depends on CRYPTO_DEV_CCP_DD 2020-02-13 16:55:04 +08:00
Makefile
shm_pool.c crypto: ccp - Add a header for multiple drivers to use __psp_pa 2023-03-17 11:16:43 +08:00