Skip to content

[BUG] Volume DSP Panic on IPC response timeout, DSP Panic notification #6034

Closed

Description

@wszypelt

Describe the bug

ERROR:Exception DspPanicError occurred at 'C:\work\tools\cavs_scripts-py\utilities\ipc_driver.py':171 DSP Panic on IPC response timeout! 0x00000005 0x0DEAD006 0x00004000
ERROR:Exception DspPanicError occurred at 'C:\work\tools\cavs_scripts-py\utilities\ipc_driver.py':171 DSP Panic notification received: SOF_IPC_PANIC_EXCEPTION 0x00000005 0x0DEAD006 0x00004000

Bug occurs with a playback iteration greater than 1

Bug was found in:
TestVolumeSimple8000Hz16b16b1ch
TestVolumeSimple8000Hz24b32b4ch
TestVolumeSimple48000Hz32b32b8ch
TestVolumeChangeInMiddle8000Hz32b32b4ch
TestVolumeChangeInMiddle48000Hz32b32b4ch
TestVolumeMultipleChanges8000Hz24b32b2ch
TestVolumeMultipleChanges48000Hz24b32b2ch
TestVolumeMute8000Hz32b32b8ch
TestVolumeMute48000Hz32b32b8ch
TestVolumeInitialRampSimple8000Hz24b32b4ch
TestVolumeInitialRampSimple48000Hz32b32b2ch
TestDiffVolumeChangeInChannels8000Hz24b32b4ch
TestDiffVolumeChangeInChannels48000Hz32b32b4ch

Topology

TestVolumeSimple

                +--------------------------------+
    +------+    | +---+  +- -+  +---+  +-------+ |
    | Host |----->|Buf|->|Vol|->|Buf|->|SSP Dai|---+
    +------+    | +---+  +-- +  +---+  +-------+ | |
                +--------------------------------+ |
                                                   |
                +------------------+               |
    +------+    | +---+  +-------+ |               |
    | Host |<-----|Buf|<-|SSP Dai|<----------------+
    +------+    | +---+  +-------+ |
                +------------------+

Description:
Simultaneous playback and capture on external loopback (same SSP) with signal amplitude verification.
Playback pipeline contains volume component.
Volume gain is explicitly set to 1 before playback starts.

To Reproduce
Run tests with diagnostic driver
with argument: --playback_iterations=2

03_00_TestVolumeSimple8000Hz16b16b1ch

Reproduction Rate
100%

Environment

  1. Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
  2. Name of the platform(s) on which the bug is observed.
    • Platform: TGL RVP

the last working and not working commit: ebc222d

Logs
DSPPanicVolume.zip

Activity

  1. added
    bugSomething isn't working as expected
    TGLApplies to Tiger Lake
    diagnostic driverSlim driver / diagnostic driver issue
    on Jul 21, 2022
  2. lgirdwood commented on Jul 21, 2022

    @lgirdwood
    Member

    @ranj063 module adapter related ?

  3. added
    P1Blocker bugs or important features
    on Jul 26, 2022
  4. kfrydryx commented on Aug 2, 2022

    @kfrydryx
    Contributor

    Still reproducing. Bisect points to module adapter - first bad commit f7663de.

  5. lgirdwood commented on Aug 2, 2022

    @lgirdwood
    Member

    @wszypelt @kfrydryx is this only reproducing with the loopback ? What happens if gain is NOT set prior to test. The DEAD code is an assert().
    @lyakh can you take a look at this, thanks !

  6. lyakh commented on Aug 15, 2022

    @lyakh
    Collaborator

    @wszypelt can this still be reproduced? But this test isn't in the standard CI, so we don't see it in PR testing?

  7. wszypelt commented on Aug 22, 2022

    @wszypelt
    Author

    @lyakh @kfrydryx @lgirdwood
    Issue still reproducing, with playback iteration > 1. In CI we test all tests with playback_iteration = 1. Therefore, it does not show this issue. We perform stress tests every two weeks.

  8. added this to the v2.3 milestone on Aug 24, 2022
  9. lgirdwood commented on Aug 24, 2022

    @lgirdwood
    Member

    @lyakh @kfrydryx @lgirdwood
    Issue still reproducing, with playback iteration > 1. In CI we test all tests with playback_iteration = 1. Therefore, it does not show this issue. We perform stress tests every two weeks.

    Ok, so the Linux CI will test multiple times, but I dont think it uses the loopback mode above. @fredoh9 can you confirm if we have a similar loopback test in the Jenkins CI ?

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

Metadata

Metadata

Labels

P1Blocker bugs or important featuresTGLApplies to Tiger LakebugSomething isn't working as expecteddiagnostic driverSlim driver / diagnostic driver issue

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions