-
Notifications
You must be signed in to change notification settings - Fork 309
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
Re-enable DMA trace initialization in Zephyr #4452
Conversation
No one noticed that ll_tr was missing because the DMA trace does not work in Zephyr and the main branch yet. Signed-off-by: Marc Herbert <[email protected]>
Because it's mostly working now and avoids macro nesting complexity; there is already #ifdef CONFIG_DW_SPI #elif CONFIG_TRACE Just for the record this is reverting a very tiny part of commit cf8e35f ("zephyr: init: create a zephyr entry point in SOF.") Signed-off-by: Marc Herbert <[email protected]>
Reverts commit 74cacc3 ("zephyr: ipc: dont enable DMA trace transport.") modified by commit d728276 ("ipc3: don't declare unused variables") Signed-off-by: Marc Herbert <[email protected]>
Good that you've posted this, nice to see that all those parts can be safely re-enabled and the respective |
On one hand it would be better to turn this on once the corresponding tests are ready[*]. On the other hand a "Continuous Integration" and "Continuous Review" approach is also valuable, it can be harder to find reviewers for large PRs and I'm one of the (few?) people who looks at tests results every day. Moreover this PR is just removing 2 hacks and fixing one minor issue, the tracing code is unused only in Zephyr and this PR makes the initialization code actually run in Zephyr, so it's not really unused. Also keep in mind I'm testing this code (+ other work in progress) many times every day. In fact I've been sitting on these specific patches for a long time and I waited to have the sof-logger fully working before submitting them. The next PRs should be bigger I promise :-) [*] In fact I've already been spending a massive amount of time on the test side, see the large web of links from thesofproject/sof-test#297 https://sof-ci.01.org/sofpr/PR4452/build9577/devicetest is all green. |
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.
@lgirdwood IMHO usually it's better to only add or enable code when it is used and can be tested, but in principle it should be fine to merge this now too, seems harmless enough. |
would like to clarify what the DMA trace task would do after this
In fact I've looked again and it seems to me that after this PR the DMA trace task would begin scheduling periodically under Zephyr. And this doesn't work yet, right? Do we really want this even if this isn't causing any problems, which I'm not sure about? |
It used to work until your commit your PR |
Superset #4503 was merged. |
Just a first part. The DMA trace with the SOF dictionary works in my workspace but I'm still cleaning up the rest.