Skip to content

[BUG] [TGL]HDMI/DP aplay failed and can not be released after wake up from s2idle  #1651

Closed

Description

@Liviali155

Describe the bug
HDMI aplay failed and can not be released after wake up from s2idle
Error not seen when doing HDMI aplay after "Suspeand & Resume with playback_HDMI"

Wait about 10min,HDMI aplay successfully and can be released with “ctrl+c”,but aplay again, it
still failed and can not be released, Only unplug/plugin power supply to reboot can recover

To Reproduce
1.sudo reboot
2."sudo rtcwake -m mem -s 10 " from idle
3.aplay -Dhw:0,3 -r48000 -c2 -fs16_le wav/48California_Dreaming.wav -vv -i

Reproduction Rate
10/10

Expected behavior
Aplay via HDMI normally

Actual result
HDMI aplay failed and can not be released
Capture

There is no error dmesg message and sof error trace

Environment
Platform: TGL-U RVP with onboard codec ALC711 in HDA mode
Firmware:9bae27fd https://github.com/thesofproject/sof/commits/master
Kernel:7fde4754 https://github.com/thesofproject/linux/commits/topic/sof-dev
Topology: file: tools/topology/sof-apl-nocodec.tplg same as firmware

dmesg1225.log
sof_trace.log

Activity

  1. added
    bugSomething isn't working
    TGLApplies to Tiger Lake platform
    on Dec 25, 2019
  2. Liviali155 commented on Dec 27, 2019

    @Liviali155
    Author

    Issue can also be reproduced when aplay HDMI after Suspend & Resume with analog playback, so I will change the title:delete(entered from idle)
    1.sudo reboot
    2.Suspend & Resume with analog playback
    3.Ctrl+c to stop analog playback
    4.aplay -Dhw:0,3 -r48000 -c2 -fs16_le wav/48California_Dreaming.wav -vv -i

  3. changed the title [-][BUG] [TGL]HDMI aplay failed and can not be released after wake up from s2idle (entered from idle)[/-] [+][BUG] [TGL]HDMI aplay failed and can not be released after wake up from s2idle [/+] on Dec 27, 2019
  4. Liviali155 commented on Dec 27, 2019

    @Liviali155
    Author

    Error not seen in deep mode

  5. Liviali155 commented on Dec 30, 2019

    @Liviali155
    Author

    Tried with PR #1631 ,issue can also be reproduced

  6. keyonjie commented on Dec 30, 2019

    @keyonjie

    We are still missing PMC support for TGL with mainline kernel.

  7. keyonjie commented on Dec 30, 2019

    @keyonjie

    So I would say Power Management support on TGL with mainline kernel is not mature yet.

  8. added
    P2Critical bugs or normal features
    on Jan 8, 2020
  9. kv2019i commented on Jan 8, 2020

    @kv2019i
    Collaborator

    @keyonjie It's a bit odd though that aplay works once after resume, but only then hangs. If the rootcause is gaps in PMC support, I'd assume playback to immediately fail after. OTOH, log has errors from other drivers that do inditate issues with resuming, so indeed this looks like most plausible explanation. Tagging with P2 in any case as this is rather severe case.

  10. sinahuang commented on Jan 9, 2020

    @sinahuang

    Issue also can be reproduce on TGL-U RVP with soundwire-latest (commit: 121c751) when aplay DP after wake up from s2idle.

    Test recipe

    Kernel:https://github.com/thesofproject/linux/tree/integration/soundwire-latest commit: 121c751
    FW: https://github.com/thesofproject/sof/commits/master commit: f587993
    Tplg: Same with TGL FW branch : sof-tgl-rt711-rt1308.tplg
    Platform:TGL-U RVP with codec ALC711 in SDW mode and RT1308 in I2S mode
    dmesg.log
    sof_trace.log

  11. changed the title [-][BUG] [TGL]HDMI aplay failed and can not be released after wake up from s2idle [/-] [+][BUG] [TGL]HDMI/DP aplay failed and can not be released after wake up from s2idle [/+] on Jan 9, 2020
  12. self-assigned this
    on Feb 6, 2020
  13. kv2019i commented on Feb 6, 2020

    @kv2019i
    Collaborator

    @sinahuang Please try with patches #1763 and #1767 -- I believe these fix the problem.

  14. Liviali155 commented on Feb 11, 2020

    @Liviali155
    Author

    Tried with PR #1767,error not seen

    Platform: TGL-U RVP with onboard codec ALC711 in HDA mode
    Firmware: a573a2c https://github.com/thesofproject/sof/commits/master
    Kernel: 0c7dcfe https://github.com/thesofproject/linux/commits/topic/sof-dev
    Topology file: tools/topology/sof-hda-generic-4ch.tplg same as firmware

  15. sinahuang commented on Feb 11, 2020

    @sinahuang

    Issue can't be reproduce on TGL-U RVP with soundwire-latest (commit: 0c7dcfe) when aplay DP/HDMI after wake up from s2idle.

    Test recipe

    Kernel:https://github.com/thesofproject/linux/commits/topic/sof-dev commit:0c7dcfe
    FW: https://github.com/thesofproject/sof/commits/master commit: a573a2c
    Tplg: Same with FW branch, rename sof-tgl-rt711-i2s-rt1308.tplg to sof-tgl-rt711-rt1308.tplg
    Platform:TGL-U RVP with codec ALC711 in SDW mode and RT1308 in I2S mode

  16. Liviali155 commented on Feb 14, 2020

    @Liviali155
    Author

    Error not seen on TGL-U on 20200214,but PR #1767 has not been merged,and there is a regression issue #1792 ,I am not sure if there is relationship between them

    Platform: TGL-U RVP with onboard codec ALC711 in HDA mode
    Firmware: 4d17d0d https://github.com/thesofproject/sof/commits/master
    Kernel: daf71dc https://github.com/thesofproject/linux/commits/topic/sof-dev
    Topology file: tools/topology/sof-hda-generic-4ch.tplg same as firmware

  17. kv2019i commented on Feb 14, 2020

    @kv2019i
    Collaborator

    Ack @Liviali155 , this is excellent news! The fixes were merged via upstream merge #1782 and first part of the fix was already merged to sof-dev via #1764 earlier. So it's ok #1767 was not merged.

    I guess we can close this?

    Seems #1782 caused a regression #1792 ,are you sure we can closed it?

  18. Liviali155 commented on Feb 17, 2020

    @Liviali155
    Author

    Close this issue since fix of PR #1767 was actually merged via upstream rebase

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

Metadata

Metadata

Labels

P2Critical bugs or normal featuresTGLApplies to Tiger Lake platformbugSomething isn't workingsuspend resumeIssues related to suspend resume (e.g. rtcwake)

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions