u-boot/drivers/tee
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
..
broadcom drivers: tee: broadcom: add optee based bnxt fw load driver 2020-07-29 10:37:11 -04:00
optee tee: optee: don't enumerate services if there ain't any 2023-12-19 10:07:48 -05:00
Kconfig drivers: tee: broadcom: add optee based bnxt fw load driver 2020-07-29 10:37:11 -04:00
Makefile drivers: tee: sandbox: add rpc test ta emulation 2021-02-16 11:48:20 -05:00
sandbox.c drivers: tee: sandbox: Fix SCP03 control emulator 2023-04-28 11:30:17 -06:00
tee-uclass.c tee: optee: sync cache on pre-reloc OP-TEE invocation 2021-07-23 07:13:25 -04:00