Skip to content

PM: Link DMA fails to resume after system suspend #489

Closed

Description

@keqiaozhang

This issue only happens with aplay, no such issue if use browser player to play audio via HDMI or I2S.
Plus, we only observe this issue on HDMI with 0.55 recipe.
But with PV recipe, both hdmi and i2s can reproduce this issue.

How to reproduce:

  1. open one terminal and play audio via hdmi monitor.
    aplay -Dhw:0,5 -f dat -c 2 audio.wav
  2. open another terminal and run suspend/resume test
    suspend_stress_test
  3. then system will reboot

No log is available.

PV recipe:
kernel: cros-sof-v4.14-rebase
sof/tplg: glk-005-drop-stable

Activity

  1. added
    bugSomething isn't working
    P2Critical bugs or normal features
    GLKApplies to Gemini Lake
    on Jan 2, 2019
  2. plbossart commented on Jan 2, 2019

    @plbossart
    Member

    Good test!

    IIRC correctly all streams are stopped by CRAS before suspend and explicitly restarted so the different behavior is "normal" since the flows are different.

    I believe you can force the same behavior with CRAS if you use the traditional method of suspending (echo mem > /sys/power/state), with CRAS using the RESUME_TRIGGER just like aplay.

    @ranj063 @cujomalainey can you double-check if my understanding is correct?

  3. mengdonglin commented on Jan 14, 2019

    @mengdonglin

    @keqiaozhang Please help check if this is the the same issue of thesofproject/sof#788 reported on APL.

  4. keqiaozhang commented on Jan 14, 2019

    @keqiaozhang
    Author

    @mengdonglin
    I tried to disable system reboot when kernel panic on GLK, but system just died after running the test, still no useful log or trace available.

  5. keyonjie commented on Jan 14, 2019

    @keyonjie

    @keqiaozhang Please help check if this is the the same issue of thesofproject/sof#788 reported on APL.

    I believe so, this is known issue.

  6. cujomalainey commented on Jan 14, 2019

    @cujomalainey

    Following up with the CRAS team.

  7. changed the title [-]GLK: doing HDMI playback in shell and suspend/resume at same time will cause system to reboot [/-] [+]GLK: run aplay in shell and suspend/resume at same time will cause system to reboot [/+] on Jan 15, 2019
  8. changed the title [-]GLK: run aplay in shell and suspend/resume at same time will cause system to reboot [/-] [+]PM: Link DMA fails to resume after system suspend[/+] on Jan 26, 2019
  9. ranj063 commented on Jan 26, 2019

    @ranj063
    Collaborator

    @mengdonglin @keqiaozhang I've edited the title of this issue to be more indicative of what the problem is and I'm elevating its status to P1 because this needs to be fixed ASAP.

    Basically we can resume host dma after system suspend but link DMA fails to resume.
    @RanderWang @libinyang are both looking to fix it.

  10. added
    APLApplies to ApolloLake platform
    CNLApplies to Cannonlake
    on Jan 26, 2019
  11. 14 remaining items

  12. mengdonglin commented on Feb 25, 2019

    @mengdonglin

    @ranj063 ,

    You will continue working on this issue ?I
    You commented that "I will submit a separate PR for the link DMA resuming part" in #582 (comment)

    I've checked with @RanderWang and he has not been working on this.

  13. ranj063 commented on Feb 26, 2019

    @ranj063
    Collaborator

    @mengdonglin yes but this is not a P1 issue. Could you please downgrade it to P2?

  14. added
    P2Critical bugs or normal features
    and removed
    P1Blocker bugs or important features
    on Mar 1, 2019
  15. assigned and unassigned on Mar 4, 2019
  16. lgirdwood commented on Apr 2, 2019

    @lgirdwood
    Member

    @mengdonglin this is still showing in daily test. Do we have an ETA for fixing ?This is P1 for me sine aplay is gold standard for Linux userspace API usage.

  17. libinyang commented on Apr 2, 2019

    @libinyang

    @lgirdwood
    #725
    is submitted. Ranjani suggestion we should implement the trigger order in FE link. As you know, if we implement in FE link, this will touch the ABI, alsa-lib, m4 topology file. It will take a longer time. I'm now implement it in FE link.
    Another patch in hdmi codec is submitted in alsa mail list. I proposed 2 solutions, but Takashi's doesn't like it. Takashi proposed 4 solutions. I'm now submitting the patch for his 4th solution and wait for his review. And as per Pierre's suggestion, I will test the patch on cAVS tomorrow.

  18. kv2019i commented on Apr 29, 2019

    @kv2019i
    Collaborator

    @libinyang Can you update on the status? This was discussed in the bugscrub today, but it's hard to understand the status from this list. PR824 is closed, what remains?

  19. libinyang commented on Apr 29, 2019

    @libinyang

    @kv2019i Patch hw_params for BE is merged. However, we still need Ranjani's patch: #880

    So the bug still exists. After #880 is merged, this bug can be closed.

  20. libinyang commented on Apr 30, 2019

    @libinyang

    Patch #880 is merged yesterday. I think we can close this bug now.

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

Metadata

Metadata

Assignees

Labels

APLApplies to ApolloLake platformCNLApplies to CannonlakeGLKApplies to Gemini LakeP2Critical bugs or normal featuresbugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions