-
Notifications
You must be signed in to change notification settings - Fork 311
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
pipeline:make the IPC API atomic. #104
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code changes look correct if we have to make prepare() atomic. However, I'm not following the commit message comments. Can you add more detail to each step above, include numbers on newlines like 1), 2) etc to make it easy to follow. Thanks
ok, I will change the comment and upload the patch again. |
update the comment already. please check it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, so I assume we have a race with the IPC interrupt when handling XRUNs ?
Is this fixing a real bug today or just fixing a potential race ?
This is just fixing a potential race. |
ok, so pipeline APIs are called by IPC handler (which is serialized and only called in idle state) and internally for XRUN and copy(). XRUN handler should be atomic (IRQs off) alongside the other IPC pipeline APIs. |
exactly! this patch is good for the stress test. |
please rename the PR and message to reflect the agreed changes alongside the new patches.. |
update the PR and message already. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This patch should also make the other pipeline APIs called by IPC atomic. e.g.params and reset
I will do this after back to office. |
make the IPC API atomic, to avoid the interruption of the scheduled pipeline. Signed-off-by: Wu Zhigang <zhigang.wu@linux.intel.com>
updated the code and message already. |
CI observed building failure. Failed Platform: baytrail apollolake cannonlake configure: error: in `/build/sof/src': |
@jiawang6 I think your CI is broken as this patch builds for me and has nothing todo with autotools. |
make the IPC API atomic, to avoid the interruption of
the scheduled pipeline.
Signed-off-by: Wu Zhigang zhigang.wu@linux.intel.com