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

check-playback: add check for FW performance #959

Closed

Commits on Sep 14, 2022

  1. lib.sh: move logger collection to a function

    Signed-off-by: Keqiao Zhang <keqiao.zhang@intel.com>
    keqiaozhang committed Sep 14, 2022
    Configuration menu
    Copy the full SHA
    6aea288 View commit details
    Browse the repository at this point in the history
  2. lib.sh: add a function for mtrace collection

    mtrace is a new logging tool. Tool to stream data from Linux
    SOF driver mtrace debugfs interface to standard output.
    
    Signed-off-by: Keqiao Zhang <keqiao.zhang@intel.com>
    keqiaozhang committed Sep 14, 2022
    Configuration menu
    Copy the full SHA
    c26ba47 View commit details
    Browse the repository at this point in the history
  3. lib.sh: add a function to check the IPC4 Zephyr firmware

    This function can check if the running firmware is IPC4 Zephyr.
    
    Signed-off-by: Keqiao Zhang <keqiao.zhang@intel.com>
    keqiaozhang committed Sep 14, 2022
    Configuration menu
    Copy the full SHA
    273822e View commit details
    Browse the repository at this point in the history
  4. lib.sh: enable the mtrace for IPC4 Zephyr platforms

    The mtrace is only support IPC4 platforms and mtrace should run
    while tests are running ATM. If mtrace is not running, DSP will
    stop outputting logs when buffer is full. So we need to keep the
    mtrace running during the test, or you won't see the error log.
    
    Signed-off-by: Keqiao Zhang <keqiao.zhang@intel.com>
    keqiaozhang committed Sep 14, 2022
    Configuration menu
    Copy the full SHA
    684cb64 View commit details
    Browse the repository at this point in the history
  5. hijack.sh: kill the mtrace after test

    Need to kill the mtrace-reader.py process after the test
    to prevent the conflicts between each case.
    
    Signed-off-by: Keqiao Zhang <keqiao.zhang@intel.com>
    keqiaozhang committed Sep 14, 2022
    Configuration menu
    Copy the full SHA
    2230534 View commit details
    Browse the repository at this point in the history
  6. check-playback: add check for FW performance

    Add a tool to analyze the performance traces that are emitted
    by the FW low-latency scheduler, and use this tool in the check
    playback test case.
    
    The tool requires output of FW logs and currently only supports
    the mtrace output available in SOF Zephyr IPC4 builds. This can
    be extended later for other output types.
    
    The sof-ll-timer-check.py can do some simple global check like
    observing occurences of low-latency scheduler overruns and raise
    an error in this case.
    
    For most of the analysis, sof-ll-timer-check.py needs reference
    data detailing what the expected performance level should be.
    To implement this, a simple JSON database is added via
    sof-ll-timer-check-db.json that is used to query the reference
    data. As this data is manually maintained, it is expected
    reference data is only used for a small set of key use-cases for
    any given platform.
    
    Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
    kv2019i committed Sep 14, 2022
    Configuration menu
    Copy the full SHA
    897c36f View commit details
    Browse the repository at this point in the history