Skip to content

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 <jyri.sarha@linux.intel.com>
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 <jyri.sarha@linux.intel.com>
A simple typo fix to a logging message.

Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
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 <jyri.sarha@linux.intel.com>
@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