linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v10 0/4] tee: introduce TEE system sssion
@ 2023-10-03 14:06 Etienne Carriere
  2023-10-03 14:06 ` [PATCH v10 1/4] tee: optee: system call property Etienne Carriere
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Etienne Carriere @ 2023-10-03 14:06 UTC (permalink / raw)
  To: linux-kernel
  Cc: Jens Wiklander, Sumit Garg, linux-arm-kernel, op-tee,
	Jerome Forissier, Etienne Carriere

This series introduces TEE system sessions for TEE service sessions that
require TEE to provision resources to prevent deadlock when clients call
the TEE.

This deadlock situation can happen when a TEE service is used by low
level system resources as for example when Linux kernel uses SCMI
service embedded in TEE for clock, reset, regulator, etc... controls.
This case is detailled in patch 2/4:

> This feature is needed to prevent a system deadlock when several TEE
> client applications invoke TEE, consuming all TEE thread contexts
> available in the secure world. The deadlock can happen in the OP-TEE
> driver for example if all these TEE threads issue an RPC call from TEE
> to Linux OS to access an eMMC RPMB partition (TEE secure storage) which
> device clock or regulator controller is accessed through an OP-TEE SCMI
> services. In that case, Linux SCMI driver must reach OP-TEE SCMI
> service without waiting until one of the consumed TEE threads is freed.

Etienne Carriere (4):
  tee: optee: system call property
  tee: system session
  tee: optee: support tracking system threads
  firmware: arm_scmi: optee: use optee system invocation

 drivers/firmware/arm_scmi/optee.c |   4 +
 drivers/tee/optee/call.c          | 152 +++++++++++++++++++++++++++---
 drivers/tee/optee/core.c          |   5 +-
 drivers/tee/optee/ffa_abi.c       |  13 +--
 drivers/tee/optee/optee_private.h |  33 ++++++-
 drivers/tee/optee/smc_abi.c       |  31 ++++--
 drivers/tee/tee_core.c            |   8 ++
 include/linux/tee_drv.h           |  16 ++++
 8 files changed, 227 insertions(+), 35 deletions(-)

-- 
2.25.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2023-10-13  9:49 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-03 14:06 [PATCH v10 0/4] tee: introduce TEE system sssion Etienne Carriere
2023-10-03 14:06 ` [PATCH v10 1/4] tee: optee: system call property Etienne Carriere
2023-10-04  1:47   ` kernel test robot
2023-10-03 14:06 ` [PATCH v10 2/4] tee: system session Etienne Carriere
2023-10-03 14:06 ` [PATCH v10 3/4] tee: optee: support tracking system threads Etienne Carriere
2023-10-06  9:33   ` Sumit Garg
2023-10-11  7:11     ` Etienne CARRIERE - foss
2023-10-13  7:21       ` Sumit Garg
2023-10-13  8:39         ` Etienne CARRIERE - foss
2023-10-13  9:13           ` Sumit Garg
2023-10-13  9:23             ` Etienne CARRIERE - foss
2023-10-13  9:36               ` Sumit Garg
2023-10-13  9:48                 ` Etienne CARRIERE - foss
2023-10-03 14:06 ` [PATCH v10 4/4] firmware: arm_scmi: optee: use optee system invocation Etienne Carriere

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).