Repository navigation
Conversation
|
@mwasko fyi - pls review |
42e21a6 to
6a11915
Compare
|
@lgirdwood wrote:
The other commit could hit Zephyr+IPC3 combo if you have a source of frequency notifications on Zephyr side (e.g. DMA trace, IPC stream position updates enabled or something similar). So potentially for 2.3 as well. |
|
V2 uploaded:
|
6a11915 to
0bc8ab0
Compare
|
V3 update:
|
|
Convert back to draft. The EDF scheduler usage is not correct. This is now relying on a peculiar implementation of EDF scheduler on Zephyr, and we should not increase such code in SOF. I'll figure out a another solution for the delayed work here. |
0bc8ab0 to
7e369c0
Compare
|
V4 update:
|
7e369c0 to
5e82164
Compare
5e82164 to
c8bd2b9
Compare
|
V5 update (back as DRAFT again):
|
c8bd2b9 to
9bb2e27
Compare
|
V6 update:
|
There was a problem hiding this comment.
At the moment this should be OK as the only notification provider is mtrace, but in future if we have other notification sources then either each will have it's own static struct or we need to dynamically allocate notification messages..
9bb2e27 to
8ce7899
Compare
|
V7 update:
|
|
SOFCI TEST |
|
@lgirdwood The first patch affects XTOS builds (moves IPC late sending from OS main loop to LL scheduler) and it is possible this is now failing cases (e.g. the Intel CI builds). |
Zephyr build was failing on the zephyr.h issues, fix now merged but it looks like build still problematic. Maybe needs a rebase and force push ? |
|
@lgirdwood wrote:
I think you need to ignore these GH tests that test with "main" of Zephyr. These are "informational" (for us), but it's is normal and expected that upstream Zephyr has merged patches that does not build with current SOF main. I.e. these checks will pass again when we make a SOF PR that updates the manifest (and potential local changes to SOF). The XTOS/IPC3 failure is more worrying. There seems to be a IPC panic in a multicore test. |
|
Hmm, let me fork out the changes that do not have any impact to IPC3/XTOS. |
There was a problem hiding this comment.
here updating mtrace_notify_last_sent is intended?
There was a problem hiding this comment.
Damn, rebasing brought it back. Will address.
There was a problem hiding this comment.
if the answer to the above is "yes," then this shouldn't be needed
There was a problem hiding this comment.
list_item() is kind of nicer for this
There was a problem hiding this comment.
I think it should be ok to just call schedule_task() under the spinlock?
There was a problem hiding this comment.
Hmm, indeed that seems to be safe (or at least done elsewhere in the code. I'll move it.
There was a problem hiding this comment.
I'd rather use an affirmative condition check :-)
There was a problem hiding this comment.
I must be confusing this with something else, wasn't this supposed to be an EDF task?
There was a problem hiding this comment.
Yup, I dropped that approached and used LL task instead. We should not rely on the "task start" field in EDF scheduling (it's a feature of the Zephyr SOF EDF scheduler implementation, not part of the interface).
|
I'll close this to not waste reviewers time. There's a repeating failure in XTOS/IPC3 tests with this series and this probably relates to the first patch that also touches the XTOS primary core main loop (moving the IPC flushing from OS main loop to a normal LL scheduler task). Until I figure this out, we can't merge this. The other fixes are important though, so let's get them merged at a faster speed. -> #6260 Sorry for the churn all reviewers. |
The IPC send queue is used when a message cannot be sent immediately and/or the platform driver returns -EBUSY. This mechanism has been broken in Zephyr SOF builds. In XTOS builds, the ipc_send_queued_msg() was called directly from the operating system main task in src/schedule/task.c:task_main_primary_core(). This mainloop functionality is moved to Zephyr, so same implementation cannot be used on Zephyr. This commit unifies the implementation and uses a normal LL scheduler task to manage the send queue. This task is managed by IPC code, so low-level OS code does not need to call IPC stack directly. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
8ce7899 to
d3d1836
Compare
|
V8 update:
|
|
Still failing in the multicore IPC3/XTOS tests. |
Fix issues with ipc_send_queued_msg() both in generic IPC4 code, as well as a seperate problem in Zephyr SOF builds.
FYI @bardliao @abonislawski @marcinszkudlinski