Skip to content

[BUG][SDW][CML] clock stop prepare issue - Speaker cannot work after suspend/resume #2606

Closed

Description

@bardliao

Canonical reported an issue that speaker can't work on CML + dual rt1308 laptop.
The issue happens only once so far.
The error kernel log is

rt1308 sdw:1:25d:1308:0: Clock Stop prepare failed for slave: -61
rt1308 sdw:1:25d:1308:0: pre-prepare failed:-61
intel-master sdw-master-1: prepare clock stop failed -61
intel-master sdw-master-1: cannot enable clock stop on suspend
...
rt1308 sdw:1:25d:1308:0: Unable to sync register 0xc030. -22
intel-master sdw-master-1: pm_runtime_get_sync failed in intel_startup, ret -22
intel-master sdw-master-1: ASoC: can't open DAI SDW1 Pin2: -22
SDW1-Playback: ASoC: BE open failed -22
SDW1-speakers: ASoC: failed to start some BEs -22

The issue is that somehow we didn't get ACK from codec and then cause clock stop prepare failed.
The question is that do we have a way to recover from no ack received?

Activity

  1. plbossart commented on Dec 7, 2020

    @plbossart
    Member

    can we have a longer dmesg trace @bardliao ?

    What we could do in this case is just to mark the device as not functional, suspend anyways and reset the bus on startup.

    But that looks like a corner case for now.

  2. added
    bug
    SDW
    on Dec 8, 2020
  3. changed the title [-][BUG][SDW][CML] Speaker cannot work after suspend/resume[/-] [+][BUG][SDW][CML] clock stop prepare issue - Speaker cannot work after suspend/resume[/+] on Dec 11, 2020
  4. added
    CML
    P2
    Clock Stop prepare failed
    on Dec 14, 2020
  5. mengdonglin commented on Dec 14, 2020

    @mengdonglin

    @bardliao @plbossart It seems this issue can be reproduced with SDCA codec ALC1316 on TGL-U laptop device. Please check CI report 1118 on 2020-12-10 (UTC). Failed case: check-suspend-resume-with-playback-25.sh

    dmesg

    kernel: [   61.208533] PM: suspend exit
    kernel: [   61.683079] sof-audio-pci 0000:00:1f.3: ipc rx: 0x90020000: GLB_TRACE_MSG
    kernel: [   61.683106] sof-audio-pci 0000:00:1f.3: ipc rx done: 0x90020000: GLB_TRACE_MSG
    kernel: [   62.183129] sof-audio-pci 0000:00:1f.3: ipc rx: 0x90020000: GLB_TRACE_MSG
    kernel: [   62.183153] sof-audio-pci 0000:00:1f.3: ipc rx done: 0x90020000: GLB_TRACE_MSG
    kernel: [   64.876111] intel-sdw intel-sdw.2: Msg ignored for Slave 1
    kernel: [   64.876120] rt1316-sdca sdw:2:25d:1316:1: Clock Stop prepare failed for slave: -61
    kernel: [   64.876130] rt1316-sdca sdw:2:25d:1316:1: pre-prepare failed:-61
    kernel: [   64.876135] intel-sdw intel-sdw.2: prepare clock stop failed -61
    kernel: [   64.876141] intel-sdw intel-sdw.2: cannot enable clock stop on suspend
    
  6. added
    TGL
    P1
    duplicate
    and removed
    P2
    on Dec 14, 2020
  7. mengdonglin commented on Dec 14, 2020

    @mengdonglin

    @plbossart @bardliao Can we take this issue as a duplicate of #2621 ?

  8. added
    P2
    and removed
    P1
    on Dec 14, 2020
  9. 51 remaining items

  10. added
    suspend resume
    on Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

CMLClock Stop prepare failedP3SDWbugsuspend resume

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions