-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Long running TEE command generate kernel complains (rpi3) #1353
Comments
I'd imagine this would be seen on any device (i.e., not just RPi3). I cannot say for sure, but in some cases Linux kernel becomes a bit unhappy when you are doing jobs that takes a certain amount of time. Normally we get interrupted when doing work in secure side which gives CPU time back to the kernel and then we re-enter secure side again and continue the job. Could it be that simple that kernel API patch contains a bug setting this a side? (I haven't really looked into that patch set). |
At the boundary of syscall entry/exit there's some RCU magic done. For long running syscalls the RCU magic is delayed. Perhaps there's some special barrier function that can be called to make RCU happy without crossing a syscall boundary. |
I also think that when we're switching to secure world, RCU has to be told that we're about to execute some possibly lengthy code that doesn't deal at all with RCU or use them in any way. Similar to what's done in the idle thread: IMO this should be discussed on the ARM LKML, where we can find RCU experts, and BTW it would be a gentle remainder that some people are indeed using the OP-TEE driver that is also under review for upstream ;) |
Assuming IRQ is not masked while doing a lengthy secure standard call, besides the additional latency to switch from op-tee to NW context after which the normal linux IRQ handling continues, how is it affecting |
I misread the issue hence my previous question "How op-tee presence is it affecting |
We are closing this issue/question, why?
If you however feel that you have additional questions or still thinks this is an issue, then please feel free to re-open the issue again. When closing issues we will only show this entire message once. // OP-TEE admins |
I've a TA command that takes a long time (RSA key generation), and this causes some "unpleasant looking" kernel dumps (things still work). Any idea what to do about them?
(Note, I'm calling the TEE from kernel using the kernel API patch).
... I'm running in DEBUG mode, so there are lots of DEBUG: messages, could be cause?
... or, as I'm calling TEE from another kernel driver, I suppose I could have some locking on, in which case it is my fault.
The text was updated successfully, but these errors were encountered: