Skip to content
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

[DNM] Debug stream: use cavstool offset_by_type() #9543

Conversation

jsarha
Copy link
Contributor

@jsarha jsarha commented Oct 3, 2024

This PR is based on top #9498 and depends on zephyrproject-rtos/zephyr#79061 e.g. the both of them should be merged before this can be merged.

The only relevant commit to review in this PR is the last, the others are reviewed under #9498 .

Jyri Sarha added 4 commits September 27, 2024 10:12
Access debug slot directly using cavstool.py, by specifying the debug
slot number where the debug_stream data is transferred.

Adds one command line parameter for selecting the debug slot directly
and adds an alternative mainloop for polling the slot through
cavstool.py direct access.

The commit also adds quite a few data consistency checks and error
handling improvements as with the direct memory access its much more
likely to get inconsistent data when the DSP is booting up, and code
needs to be robust enough not to crash in such a situation. Also the
logging messages about those checks failing has been lowered so that
they are not too noisy.

Signed-off-by: Jyri Sarha <[email protected]>
Add overlay to build debug_stream protocol over a debug window slot,
make room for the slot, and send thread info data through it.

Signed-off-by: Jyri Sarha <[email protected]>
A simple typo fix to a logging message.

Signed-off-by: Jyri Sarha <[email protected]>
The new cavstool.debug_slot_offset_by_type() opens an opportunity to
improve debug_stream.py usability a bit. If the debugfs file is not
found, then try to find the correct debug slot the correct slot using
cavstool direct access and debug_slot_offset_by_type().

Signed-off-by: Jyri Sarha <[email protected]>
@jsarha jsarha added the DNM Do Not Merge tag label Oct 3, 2024
@jsarha
Copy link
Contributor Author

jsarha commented Oct 4, 2024

zephyrproject-rtos/zephyr#79061 was merged quickly, no need for this PR any more, as "tools: debug_stream.py: Use cavstool.debug_slot_offset_by_type()" can be part of #9498 . Closing the PR.

@jsarha jsarha closed this Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DNM Do Not Merge tag
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant