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 stream debugfs #5154

Open
wants to merge 4 commits into
base: topic/sof-dev
Choose a base branch
from

Commits on Aug 29, 2024

  1. ASoC: SOF: ipc4: Add sof_ipc4_create_debug_slot_debugfs_node()

    Adds sof_ipc4_create_debug_slot_debugfs_node() -function for mapping
    an SOF Intel ipc4 debug window slot as debugfs file. The actual slot
    is specified with slot_type parameter that are defined in
    include/sound/sof/ipc4/header.h and the slot is found with
    sof_ipc4_find_debug_slot_offset_by_type(). It also takes the
    data_offset parameter that specifies where the payload data in the
    slot begins. The portion that is mapped to the debugfs file is
    everything after the offset. The last parameter is the name of the
    file.
    
    Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
    Jyri Sarha committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    1dfa64a View commit details
    Browse the repository at this point in the history
  2. ASoC: SOF: IPC4: Add debug-stream debug slot type

    Add new debug window slot type for debug-stream protocol. For details see
    src/debug/debug_stream/debug_stream_slot.h under SOF sources [1].
    
    [1] https://github.com/thesofproject/sof
    
    Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
    Jyri Sarha committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    112a68b View commit details
    Browse the repository at this point in the history
  3. ASoC: SOF: ipc4: Maps debug-stream debug window slot as debugfs file

    Maps debug-stream debug window slot as debugfs file with
    sof_ipc4_create_debug_slot_debugfs_node() -function.
    
    Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
    Jyri Sarha committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    503130b View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2024

  1. ASoC: SOF: ipc4: Use generic function for mapping "exception" debugfs…

    … file
    
    Remove ipc4-telemetry.[ch] and use sof_ipc4_create_debug_slot_debugfs_node()
    instead for mapping "exception" debugfs file. In running system the
    SOF_IPC4_DEBUG_SLOT_TELEMETRY is used for telemetry data, but if configured,
    Zephyr exception data is dumped in the same debug window slot, right after
    the separator word.
    
    Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
    Jyri Sarha committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    68be79a View commit details
    Browse the repository at this point in the history