-
Notifications
You must be signed in to change notification settings - Fork 349
zephyr: add notifier_register(ipc_send_queued_msg) in task_main_start() #4428
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
Conversation
... and rename some parameter names. Signed-off-by: Marc Herbert <marc.herbert@intel.com>
Fixes thesofproject#4356 In XTOS SOF, ipc_send_queued_msg() is run by task_main_primary_core(), the initialization of which has a hard and circular dependency with the initialization of the EDF scheduler. This EDF scheduler is not part of Zephyr. Because of the circular dependency it does not seem possible (nor desirable?) to refactor this code and make it compatible with Zephyr. So schedule ipc_send_queued_msg() differently in Zephyr: using a notifier triggered by the periodic Low Latency scheduler. Signed-off-by: Marc Herbert <marc.herbert@intel.com>
9183a64 to
ba6e208
Compare
|
alsabat noise in https://sof-ci.01.org/sofpr/PR4428/build9523/devicetest/?model=CML_SKU0955_HDA&testcase=check-alsabat-headset-playback can't be related, everything else is green |
| /* init pipeline position offsets */ | ||
| pipeline_posn_init(sof); | ||
|
|
||
| (void)notifier_register(NULL, scheduler_get_data(SOF_SCHEDULE_LL_TIMER), |
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.
Can we have a comment here stating the long term solution so everyone knows this will be temporary. This can be another PR, feel free to create a feature for this too.
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.
Submitted in PR #4441
|
Alsabat showing some DUT clock drift wrt testing PC. |
As requested in previous PR thesofproject#4428 Signed-off-by: Marc Herbert <marc.herbert@intel.com>
As requested in previous PR #4428 Signed-off-by: Marc Herbert <marc.herbert@intel.com>
As requested in previous PR thesofproject#4428 Signed-off-by: Marc Herbert <marc.herbert@intel.com>
As requested in previous PR #4428 Signed-off-by: Marc Herbert <marc.herbert@intel.com>
Fixes the zephyr part of #4356
In XTOS SOF, ipc_send_queued_msg() is run by task_main_primary_core(),
the initialization of which has a hard and circular dependency with the
initialization of the EDF scheduler. This EDF scheduler is not part of
Zephyr. Because of the circular dependency it does not seem
possible (nor desirable?) to refactor this code and make it compatible
with Zephyr. So schedule ipc_send_queued_msg() differently in Zephyr:
using a notifier triggered by the periodic Low Latency scheduler.
Signed-off-by: Marc Herbert marc.herbert@intel.com
Not related to this PR but if you're curious about
NOTIFIER_ID_LL_POST_RUNfind information in #4430