Hi,
I'm wondering if it is safe to call tee_invoke_supp_plugin_rpc() from within the OP-TEE kernel with both foreign and/or native exceptions masked ?
Regards, Jacob
Hi Jacob,
On Fri, May 5, 2023 at 2:01 PM Jacob Kroon Jacob.Kroon@axis.com wrote:
Hi,
I'm wondering if it is safe to call tee_invoke_supp_plugin_rpc() from within the OP-TEE kernel with both foreign and/or native exceptions masked ?
tee_invoke_supp_plugin_rpc() must be called from a normal thread context, the exceptions can be masked even if it's probably not a good idea.
Cheers, Jens
Ok, thank you.
Regards, Jacob
________________________________________ From: Jens Wiklander jens.wiklander@linaro.org Sent: Friday, May 5, 2023 2:07 PM To: Jacob Kroon Cc: op-tee@lists.trustedfirmware.org; Lars Persson Subject: Re: Calling tee_invoke_supp_plugin_rpc() with exceptions masked
Hi Jacob,
On Fri, May 5, 2023 at 2:01 PM Jacob Kroon Jacob.Kroon@axis.com wrote:
Hi,
I'm wondering if it is safe to call tee_invoke_supp_plugin_rpc() from within the OP-TEE kernel with both foreign and/or native exceptions masked ?
tee_invoke_supp_plugin_rpc() must be called from a normal thread context, the exceptions can be masked even if it's probably not a good idea.
Cheers, Jens
On Fri, 5 May 2023 at 17:37, Jens Wiklander jens.wiklander@linaro.org wrote:
Hi Jacob,
On Fri, May 5, 2023 at 2:01 PM Jacob Kroon Jacob.Kroon@axis.com wrote:
Hi,
I'm wondering if it is safe to call tee_invoke_supp_plugin_rpc() from within the OP-TEE kernel with both foreign and/or native exceptions masked ?
tee_invoke_supp_plugin_rpc() must be called from a normal thread context, the exceptions can be masked even if it's probably not a good idea.
Yeah, especially if expensive operations are performed by that RPC with interrupts masked, you are probably going to get CPU stall messages from the Linux scheduler.
-Sumit
Cheers, Jens
op-tee@lists.trustedfirmware.org