Skip to content
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

Why need lock_single_instance for single_instance TA? #1576

Closed
prime-zeng opened this issue Jun 2, 2017 · 5 comments
Closed

Why need lock_single_instance for single_instance TA? #1576

prime-zeng opened this issue Jun 2, 2017 · 5 comments

Comments

@prime-zeng
Copy link
Contributor

Hi

We have already got the ctx->busy,and for the lock_single_instance, if we have 2 single_instance TAs, we can't access them in parallel, could anyone help to explain?
Thanks.

@jenswi-linaro
Copy link
Contributor

It's a way of guaranteeing that we can't deadlock. Single instance TAs can form lock graphs that could lead to deadlocks. I suppose there's some more advanced way we can detect this, but the advantage with this somewhat blunt approach is that the we always have the same behavior regardless of which other TAs are active etc.

@prime-zeng
Copy link
Contributor Author

@jenswi-linaro any detail about the lock graphs? So if i have all TAs set to single instance, the performance will be bad because we can't take advantage of the SMP, right?

@jenswi-linaro
Copy link
Contributor

I don't have any more details on the lock graphs. I only realized that something had to be done about potential deadlocks and this works and is predicable.

@ghost
Copy link

ghost commented Oct 6, 2017

We are closing this issue/question, why?

  • We believe the question has been answered.
  • Quite often when we have answered the questions, the issuer forget to close the issue which results in many open issues for us which makes it hard to keep track of the ones actually waiting for an answer.
  • In some cases we ask follow-up questions, but do not hear back from the one creating the issue.

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

@ghost ghost closed this as completed Oct 6, 2017
@jforissier
Copy link
Contributor

#1915 added a config option to disable the global lock.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants