u-boot/drivers/tee/optee
Etienne Carriere 51774b3b03 tee: optee: don't enumerate services if there ain't any
Change optee driver service enumeration to not enumerate (and
allocate a zero sized shared memory buffer) when OP-TEE
reports that there is no service to enumerate.

This change fixes an existing issue that occurs when the such zero
sized shared memory buffer allocated from malloc() has a physical
address of offset 0 of a physical 4kB page. In such case, OP-TEE
secure world refuses to register the zero-sized shared memory
area and makes U-Boot optee service enumeration to fail.

Fixes: 94ccfb78a4 ("drivers: tee: optee: discover OP-TEE services")
Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
2023-12-19 10:07:48 -05:00
..
core.c tee: optee: don't enumerate services if there ain't any 2023-12-19 10:07:48 -05:00
i2c.c drivers: tee: i2c trampoline driver 2021-02-16 11:48:20 -05:00
Kconfig drivers: tee: optee: discover OP-TEE services 2022-09-14 15:23:03 -04:00
Makefile drivers: tee: i2c trampoline driver 2021-02-16 11:48:20 -05:00
optee_msg.h tee: optee: remove unused duplicated login Id macros 2021-11-23 13:53:03 -05:00
optee_msg_supplicant.h drivers: tee: i2c trampoline driver 2021-02-16 11:48:20 -05:00
optee_private.h drivers: tee: i2c trampoline driver 2021-02-16 11:48:20 -05:00
optee_smc.h tee: add OP-TEE driver 2018-10-07 10:47:38 -04:00
rpmb.c blk: Switch over to using uclass IDs 2022-09-16 11:05:16 -04:00
supplicant.c drivers: tee: i2c trampoline driver 2021-02-16 11:48:20 -05:00