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

debug: debug_stream: Access debug slot directly using cavstool.py #9498

Merged

Commits on Sep 27, 2024

  1. tools: debug_stream.py: Access debug slot directly using cavstool.py

    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>
    Jyri Sarha committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    f2274ef View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2024

  1. app: add new debug_stream_overlay.conf

    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>
    Jyri Sarha committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    0b1c4d1 View commit details
    Browse the repository at this point in the history
  2. debug: debug_stream_slot: A simple typo fix to a logging message

    A simple typo fix to a logging message.
    
    Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
    Jyri Sarha committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    49e74b9 View commit details
    Browse the repository at this point in the history
  3. tools: debug_stream.py: Use cavstool.debug_slot_offset_by_type()

    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>
    Jyri Sarha committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    edeff09 View commit details
    Browse the repository at this point in the history