Skip to content

[FEATURE] sof-test should run without DMA trace - only etrace #726

Open

Description

@plbossart

Is your feature request related to a problem? Please describe.

Facts:

We should be able to run sof-tests, possibly in a more limited version since less information is available, without requiring the DMA trace to be enabled.

Describe the solution you'd like
autodetection that only /sys/kernel/debug/sof/etrace is available and skips of all DMA trace parsing/error detection

Describe alternatives you've considered
none

@lgirdwood @kv2019i @marc-hb @aiChaoSONG @fredoh9 @ranj063 @lyakh FYI

Activity

  1. marc-hb commented on Jul 1, 2021

    @marc-hb
    Collaborator

    We already have a -s option: #681

    What's missing and and what level? In run-all-tests.sh marc-hb@run-all-nologger ?

  2. plbossart commented on Jul 7, 2021

    @plbossart
    MemberAuthor

    @marc-hb I don't want to disable sof-logger (which will read the etrace which is ALWAYS enabled).

    I just want to disable the DMA trace.... (sof-logger -t) which is conditionally enabled by the kernel.

  3. plbossart commented on Jul 7, 2021

    @plbossart
    MemberAuthor

    See e.g. thesofproject/sof#3673, how would one run such tests if we cannot disable the DMA trace...

  4. marc-hb commented on Jul 7, 2021

    @marc-hb
    Collaborator

    I just tried modprobe snd_sof sof_debug=0 as documented at https://thesofproject.github.io/latest/developer_guides/debugability/logger/index.html but the firmware seems to still receive the same ipc: debug cmd 0x30000 request from the kernel to enable the DMA trace.

  5. plbossart commented on Jul 7, 2021

    @plbossart
    MemberAuthor

    @marc-hb try PR thesofproject/linux#3021, that disables the trace for real. The current code can only enable the trace with the module parameter, not disable it.

  6. marc-hb commented on Jul 8, 2021

    @marc-hb
    Collaborator

    @marc-hb try PR thesofproject/linux#3021, that disables the trace for real.

    Does not apply to CI but in my workspace I found it easier to turn off CONFIG_SND_SOC_SOF_DEBUG_ENABLE_FIRMWARE_TRACE. Then I upgraded sof_insert.sh to support modules parameters (#734) and with that a simple ./test-case/check-playback.sh -s runs fine and passes. As I wrote earlier, the etrace still works.

  7. marc-hb commented on Nov 24, 2021

    @marc-hb
    Collaborator

    #811 to disable the logger entirely (even etrace)

  8. added
    area:logsLog and results collection, storage, etc.
    on Jan 21, 2022
  9. plbossart commented on Jan 28, 2022

    @plbossart
    MemberAuthor

    #811 to disable the logger entirely (even etrace)

    that's not what I was asking - only disable DMA traces and keep etrace

  10. marc-hb commented on Jan 28, 2022

    @marc-hb
    Collaborator

    I know, that's why this is not closed.

  11. plbossart commented on Mar 18, 2022

    @plbossart
    MemberAuthor

    this is still open IMHO

  12. added
    P1Blocker bugs or important features
    on Sep 22, 2022
  13. added
    P2Critical bugs or normal features
    and removed
    P1Blocker bugs or important features
    on Jan 9, 2023
  14. aiChaoSONG commented on Jan 9, 2023

    @aiChaoSONG

    We focus on IPC4 dev now, this is IPC3 specific, make it P2

  15. marc-hb commented on Mar 15, 2024

    @marc-hb
    Collaborator

    Resurrecting #1065 would probably be a good start

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Critical bugs or normal featuresarea:logsLog and results collection, storage, etc.type:enhancementNew framework feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions