optee: add per cpu asynchronous notification
authorEtienne Carriere <etienne.carriere@linaro.org>
Wed, 22 Mar 2023 13:22:12 +0000 (14:22 +0100)
committerJens Wiklander <jens.wiklander@linaro.org>
Thu, 30 Mar 2023 06:27:05 +0000 (08:27 +0200)
commitb3b4ced12c1bc829888803ce07fff317e590ec1c
treee09b21a6b40c98ecddc1a233b4c66138fa55ca53
parent0d0eaa780ba3b8a02a1ac87f38c34dfe365f27d6
optee: add per cpu asynchronous notification

Implements use of per-cpu irq for optee asynchronous notification.

Existing optee async notif implementation allows OP-TEE world to
raise an interrupt on which Linux optee driver will query some pending
events. This change allows the signaling interrupt to be a per-cpu
interrupt as with Arm GIC PPIs. Using a PPI instead of an SPI is useful
when no GIC lines are provisioned in the chip design and there are spare
PPI lines.

Cc: Jens Wiklander <jens.wiklander@linaro.org>
Cc: Sumit Garg <sumit.garg@linaro.org>
Cc: Marc Zyngier <maz@kernel.org>
Co-developed-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
[JW: fixing a spell error in @notif_pcpu_wq description]
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
drivers/tee/optee/optee_private.h
drivers/tee/optee/smc_abi.c