-
Notifications
You must be signed in to change notification settings - Fork 349
detect_test: add notification to the list if channel busy #2440
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
detect_test: add notification to the list if channel busy #2440
Conversation
|
@lgirdwood This should fix internal CI, however some major refactor of IPC notifications is needed. I'll try to take care of it. |
paulstelian97
left a comment
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.
Do the other platform specific IPC drivers have to adjust? I see no adjustment in the i.MX specific IPC implementation and I think there are others as well.
Adds notification to the beginning of the list if there is some other IPC notification being sent. Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
With this change no. |
I suspected it because you have modified that platform specific function related to IPC, both change of signature and usage. Build failures can be because of conflicting prototype and definition of this function on the non-CAVS platforms? |
paulstelian97
left a comment
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.
Blocking until the implementation is adjusted on all platforms. As of this review, non-CAVS platforms fail the build.
9811df6 to
be28b88
Compare
Dismiss as issue is resolved, I will re-review now.
paulstelian97
left a comment
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.
Looks good now.
| ipc_platform_send_msg(&cd->msg); | ||
| if (ipc_platform_send_msg(&cd->msg) < 0) | ||
| /* Other notification in progress, so just add to the list */ | ||
| list_item_prepend(&cd->msg.list, &ipc_get()->msg_list); |
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 prepending should be in the IPC core. i.e. we should have a new IPC API
int ipc_platform_send_msg_queue(msg, priority, remove_duplicates);
Where priority HIGH would mean we insert new message at list head, otherwise it's list tail. The remove duplicates bool means to remove any older messages from this sender and use this message. Handy if we are sending any high frequency updates and want to remove stale or older updates.
This should be called directly instead of existing method (and will acquire any locks etc)..
|
@tlauda any reason to close ? Is there another fix ? |
Adds notification to the beginning of the list if there is some
other IPC notification being sent.
Signed-off-by: Tomasz Lauda tomasz.lauda@linux.intel.com