Skip to content

[BUG][MTL-004][Chrome]IPC timeout when set pipeline state to running for DMIC pipeline #7228

Closed

Description

@aiChaoSONG

Describe the bug
The DMIC capture pipeline on MTL chromebook cannot work, we see ipc timeout for setting pipeline state to running IPC.

To Reproduce
do recording through DMIC pipeline.

Reproduction Rate
100%

Environment

  1. Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
    • Kernel: {8d5df0f5a from chrome kernel}
    • SOF: {MTL-004 release, tag: releases/mtl/v4.0, compiled with -d option}
  2. Name of the topology file
    • Topology: {sof-mtl-max98360a-rt5682.tplg}
  3. Name of the platform(s) on which the bug is observed.
    • Platform: {MTL Chromebook}
[   89.493528] sof-audio-pci-intel-mtl 0000:00:1f.3: ipc tx      : 0x13000004|0x0: GLB_SET_PIPELINE_STATE
[   89.998215] sof-audio-pci-intel-mtl 0000:00:1f.3: ipc timed out for 0x13000004|0x0
[   90.006716] sof-audio-pci-intel-mtl 0000:00:1f.3: ------------[ IPC dump start ]------------
[   90.016161] sof-audio-pci-intel-mtl 0000:00:1f.3: Host IPC initiator: 0x93000004|0x0|0x0, target: 0x33000000|0x0|0x0, ctl: 0x3
[   90.028894] sof-audio-pci-intel-mtl 0000:00:1f.3: ------------[ IPC dump end ]------------
[   90.038132] sof-audio-pci-intel-mtl 0000:00:1f.3: ------------[ DSP dump start ]------------
[   90.047562] sof-audio-pci-intel-mtl 0000:00:1f.3: IPC timeout
[   90.053983] sof-audio-pci-intel-mtl 0000:00:1f.3: fw_state: SOF_FW_BOOT_COMPLETE (6)
[   90.062642] sof-audio-pci-intel-mtl 0000:00:1f.3: ROM status: 0x5, ROM error: 0x0
[   90.071002] sof-audio-pci-intel-mtl 0000:00:1f.3: ROM debug status: 0x50000005, ROM debug error: 0x0
[   90.081211] sof-audio-pci-intel-mtl 0000:00:1f.3: ROM feature bit not enabled
[   90.089184] sof-audio-pci-intel-mtl 0000:00:1f.3: ------------[ DSP dump end ]------------
[   90.098422] sof-audio-pci-intel-mtl 0000:00:1f.3: failed to set state 4 for pipeline 14
[   90.107366] sof-audio-pci-intel-mtl 0000:00:1f.3: ASoC: error at soc_component_trigger on 0000:00:1f.3: -110
[   90.118354]  DMIC: ASoC: trigger FE cmd: 1 failed: -110
[   90.124197] sof-audio-pci-intel-mtl 0000:00:1f.3: pcm: trigger stream 99 dir 1 cmd 0

Activity

  1. added
    bugSomething isn't working as expected
    on Mar 8, 2023
  2. changed the title [-][BUG][MTL-Chromebook][MTL-004] IPC timeout when set pipeline state to running[/-] [+][BUG][MTL-Chromebook][MTL-004] IPC timeout when set pipeline state to running for DMIC pipeline[/+] on Mar 8, 2023
  3. added
    P1Blocker bugs or important features
    MTLApplies to Meteor Lake platform
    on Mar 8, 2023
  4. changed the title [-][BUG][MTL-Chromebook][MTL-004] IPC timeout when set pipeline state to running for DMIC pipeline[/-] [+][BUG][Chrome][MTL-004] IPC timeout when set pipeline state to running for DMIC pipeline[/+] on Mar 8, 2023
  5. keqiaozhang commented on Mar 8, 2023

    @keqiaozhang
    Collaborator

    This issue also can be reproduced on MTL-RVP. I filed a similar issue #7231

  6. added
    duplicateThis issue or pull request already exists
    DMICDigital Microphone
    on Mar 8, 2023
  7. changed the title [-][BUG][Chrome][MTL-004] IPC timeout when set pipeline state to running for DMIC pipeline[/-] [+][BUG][MTL-004][Chrome]IPC timeout when set pipeline state to running for DMIC pipeline[/+] on Mar 8, 2023
  8. jairaj-arava commented on Mar 8, 2023

    @jairaj-arava
    Contributor

    @aiChaoSONG I see the same issue on the device at my end with MTL-004 release with both DMIC and Headset MIC.

    DMIC:
    [ 187.862623] sof-audio-pci-intel-mtl 0000:00:1f.3: ipc timed out for 0x13020003|0x0
    [ 187.871121] sof-audio-pci-intel-mtl 0000:00:1f.3: ------------[ IPC dump start ]------------
    [ 187.880602] sof-audio-pci-intel-mtl 0000:00:1f.3: Host IPC initiator: 0x13020003|0x0|0x0, target: 0x33000000|0x0|0x0, ctl: 0x3
    [ 187.893337] sof-audio-pci-intel-mtl 0000:00:1f.3: ------------[ IPC dump end ]------------
    [ 187.902574] sof-audio-pci-intel-mtl 0000:00:1f.3: ------------[ DSP dump start ]------------
    [ 187.912003] sof-audio-pci-intel-mtl 0000:00:1f.3: IPC timeout
    [ 187.918424] sof-audio-pci-intel-mtl 0000:00:1f.3: fw_state: SOF_FW_BOOT_COMPLETE (6)
    [ 187.927272] sof-audio-pci-intel-mtl 0000:00:1f.3: ROM status: 0x5, ROM error: 0x0
    [ 187.935665] sof-audio-pci-intel-mtl 0000:00:1f.3: ROM debug status: 0x50000005, ROM debug error: 0x0
    [ 187.946010] sof-audio-pci-intel-mtl 0000:00:1f.3: ROM feature bit not enabled
    [ 187.954014] sof-audio-pci-intel-mtl 0000:00:1f.3: ------------[ DSP dump end ]------------
    [ 187.963253] sof-audio-pci-intel-mtl 0000:00:1f.3: failed to pause pipeline 14
    [ 187.971227] sof-audio-pci-intel-mtl 0000:00:1f.3: ASoC: error at soc_component_trigger on 0000:00:1f.3: -110
    [ 187.982218] DMIC: ASoC: trigger FE cmd: 1 failed: -110

    Headset:
    [ 74.643167] init: ml-service (mojo_service) post-start process (5057) terminated with status 2
    [ 77.403116] sof-audio-pci-intel-mtl 0000:00:1f.3: ipc timed out for 0x13020003|0x0
    [ 77.411612] sof-audio-pci-intel-mtl 0000:00:1f.3: ------------[ IPC dump start ]------------
    [ 77.421065] sof-audio-pci-intel-mtl 0000:00:1f.3: Host IPC initiator: 0x13020003|0x0|0x0, target: 0x33000000|0x0|0x0, ctl: 0x3
    [ 77.433823] sof-audio-pci-intel-mtl 0000:00:1f.3: ------------[ IPC dump end ]------------
    [ 77.443060] sof-audio-pci-intel-mtl 0000:00:1f.3: ------------[ DSP dump start ]------------
    [ 77.452491] sof-audio-pci-intel-mtl 0000:00:1f.3: IPC timeout
    [ 77.458911] sof-audio-pci-intel-mtl 0000:00:1f.3: fw_state: SOF_FW_BOOT_COMPLETE (6)
    [ 77.467569] sof-audio-pci-intel-mtl 0000:00:1f.3: ROM status: 0x5, ROM error: 0x0
    [ 77.475933] sof-audio-pci-intel-mtl 0000:00:1f.3: ROM debug status: 0x50000005, ROM debug error: 0x0
    [ 77.486217] sof-audio-pci-intel-mtl 0000:00:1f.3: ROM feature bit not enabled
    [ 77.494192] sof-audio-pci-intel-mtl 0000:00:1f.3: ------------[ DSP dump end ]------------
    [ 77.503429] sof-audio-pci-intel-mtl 0000:00:1f.3: failed to pause pipeline 6
    [ 77.511318] sof-audio-pci-intel-mtl 0000:00:1f.3: ASoC: error at soc_component_trigger on 0000:00:1f.3: -110
    [ 77.522375] Headset: ASoC: trigger FE cmd: 1 failed: -110

  9. self-assigned this
    on Mar 9, 2023
  10. abonislawski commented on Mar 9, 2023

    @abonislawski
    Member

    Analyzed today the problem with -d option, we are crashing because of wrong clock selected for this load and this results in timer overruns. Without -d option DSP can still handle it and crashing only with asserts enabled.

    However, the clock selection mechanism and manifest data are correct.
    The true root cause is incorrect data in IPC for gain module. For gain FW receives 0 CPC instead of 10183 from manifest and this results in wrong calculations for clock selection.
    All other modules receives normal CPC.
    Gain receives correct CPC in python tests also.

  11. added a commit that references this issue on Mar 10, 2023
  12. added a commit that references this issue on Mar 10, 2023
  13. added a commit that references this issue on Mar 13, 2023
  14. added a commit that references this issue on Mar 13, 2023
  15. mengdonglin commented on Mar 22, 2023

    @mengdonglin
    Collaborator

    Closing as not reproduced on MTL Chrome book.

  16. aiChaoSONG commented on Mar 22, 2023

    @aiChaoSONG
    CollaboratorAuthor

    can not be reproduced on Intel RVP

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

Metadata

Metadata

Assignees

Labels

DMICDigital MicrophoneMTLApplies to Meteor Lake platformP1Blocker bugs or important featuresbugSomething isn't working as expectedduplicateThis issue or pull request already existsmtl-004Issues observed with mtl-004 release

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions