Skip to content

[BUG] ipc timed out for 0x13000003 GLB_SET_PIPELINE_STATE on MTL-HDA when testing multiple-pipeline  #7650

Closed

Description

@keqiaozhang

Describe the bug
This issue only happens on mtl-005-stable-drop branch, no reproductions on sof-main branch. It's more like a regression and the reproduce rate is almost 100%.

dmesg

[ 1982.116838] kernel: snd_sof:sof_ipc4_route_free: sof-audio-pci-intel-mtl 0000:00:1f.3: unbind modules copier.host.15.1:0 -> gain.15.1:0
[ 1982.117021] kernel: snd_sof:sof_ipc4_set_pipeline_state: sof-audio-pci-intel-mtl 0000:00:1f.3: ipc4 set pipeline 0 state 3
[ 1982.117039] kernel: snd_sof:sof_ipc4_log_header: sof-audio-pci-intel-mtl 0000:00:1f.3: ipc tx      : 0x13000003|0x0: GLB_SET_PIPELINE_STATE
[ 1982.622809] kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: ipc timed out for 0x13000003|0x0
[ 1982.622912] kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: Attempting to prevent DSP from entering D3 state to preserve context
[ 1982.622924] kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: ------------[ IPC dump start ]------------
[ 1982.623028] kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: Host IPC initiator: 0x93000003|0x0|0x0, target: 0x33000000|0x0|0x0, ctl: 0x3
[ 1982.623159] kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: ------------[ IPC dump end ]------------
[ 1982.623205] kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: ------------[ DSP dump start ]------------
[ 1982.623251] kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: IPC timeout
[ 1982.623283] kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: fw_state: SOF_FW_BOOT_COMPLETE (7)
[ 1982.623334] kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: ROM status: 0x0, ROM error: 0x0
[ 1982.623376] kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: ROM debug status: 0x50000005, ROM debug error: 0x0
[ 1982.623456] kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: ROM feature bit enabled
[ 1982.623494] kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: ------------[ DSP dump end ]------------
[ 1982.623562] kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: failed to pause all pipelines
[ 1982.623612] kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: ASoC: error at soc_component_trigger on 0000:00:1f.3: -110
[ 1982.623675] kernel:  HDA Analog: ASoC: trigger FE cmd: 0 failed: -110

To Reproduce
$ ~/sof-test/test-case/multiple-pipeline.sh -f p -l 50
or
$ ~/sof-test/test-case/multiple-pipeline.sh -f c -l 50
or
$ ~/sof-test/test-case/multiple-pause-resume.sh -r 50

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 topology file
  3. Name of the platform(s) on which the bug is observed.
    • Platform: MTL-RVP-HDA

mtrace.txt
dmesg.txt

Activity

  1. added
    bugSomething isn't working as expected
    P1Blocker bugs or important features
    HDAApplies to HD-Audio bus for codec connection
    MTLApplies to Meteor Lake platform
    on May 19, 2023
  2. keqiaozhang commented on May 19, 2023

    @keqiaozhang
    CollaboratorAuthor

    Checked with latest mtl-005/ddc2ef6, the results are the same. This issue can still be reproduced.

  3. keqiaozhang commented on May 22, 2023

    @keqiaozhang
    CollaboratorAuthor

    This issue also can be reproduced after reverting f2fec74 and ddc2ef6.

    So this is not a regression after mtl-005-rc1.

  4. serhiy-katsyuba-intel commented on May 23, 2023

    @serhiy-katsyuba-intel
    Contributor

    I'm trying to reproduce the issue on our Linux machine. On capture test ("-f c" option) I get "aplay: pcm_write:2127: write error: Input/output error" and I do not observe ipc timeouts. So, I'm not sure if this is same problem as reported here or something else.

    Reverting this commit 7c46d9c solves input/output error problem and test successfully passes 50 iteration. That commit is only present on mtl-005-drop-stable branch.

    @keqiaozhang, if its possible, could you try to revert the above commit and run the test to check if it also solves the problem you observe?
    Just in case, tagging @abonislawski , @RanderWang .

  5. keqiaozhang commented on May 24, 2023

    @keqiaozhang
    CollaboratorAuthor
  6. keqiaozhang commented on May 25, 2023

    @keqiaozhang
    CollaboratorAuthor

    Closing this bug, the fix has been landed on https://github.com/thesofproject/sof/commits/mtl-005-drop-stable.

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

Metadata

Metadata

Labels

Fix confirmedFix for the issue has been found and verifiedHDAApplies to HD-Audio bus for codec connectionMTLApplies to Meteor Lake platformP1Blocker bugs or important featuresbugSomething isn't working as expectedmtl-005multi-stream

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions