Skip to content

[glk][br-master] System failed to enter S3 and S0ix  #375

Closed

Description

@keqiaozhang

System failed to suspend.

Test step:
sudo suspend_stress_test -c 25

dmesg:
[ 1322.489381] PM: Wakeup pending, aborting suspend
[ 1322.489392] last active wakeup source: rtc_cmos
[ 1322.489401] PM: suspend of devices aborted after 0.025 msecs
[ 1322.489403] PM: Some devices failed to suspend, or early wake event detected
[ 1322.489409] net lo: Unbalanced pm_runtime_enable!
[ 1322.489413] PM: resume of devices complete after 0.006 msecs
[ 1325.495355] HDMI HDA Codec ehdaudio0D2: hdac_hdmi_present_sense: disconnect for pin:port 5:0
[ 1325.495632] HDMI HDA Codec ehdaudio0D2: hdac_hdmi_present_sense: disconnect for pin:port 6:0
[ 1325.495922] HDMI HDA Codec ehdaudio0D2: hdac_hdmi_present_sense: disconnect for pin:port 7:0
[ 1325.497567] PM: Finishing wakeup.
[ 1325.497569] OOM killer enabled.
[ 1325.497571] Restarting tasks ... done.
[ 1325.501835] thermal thermal_zone6: failed to read out thermal zone (-61)
[ 1325.503534] PM: suspend exit
[ 1325.780357] init: powerd main process (3483) killed by TERM signal
[ 1326.501291] sof-audio sof-audio: ipc tx: 0x40010000: GLB_PM_MSG: CTX_SAVE
[ 1326.501370] sof-audio sof-audio: ipc tx succeeded: 0x40010000: GLB_PM_MSG: CTX_SAVE
[ 1326.501378] sof-audio sof-audio: tag 1 not opened!
[ 1326.523392] sof-audio sof-audio: DSP core(s) enabled? 0 : core_mask 3

Test env:
Environment:
sof: glk-003-drop-stable 95b4a6d
soft: master d77beaf
kernel: sof-dev 64cf3e3 with one HDMI audio enabling patch:https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/1220403/1

dmesg.log
rmbox-t.log

Activity

  1. added
    bugSomething isn't working as expected
    P1Blocker bugs or important features
    on Sep 14, 2018
  2. ranj063 commented on Sep 19, 2018

    @ranj063
    Collaborator

    @keqiaozhang can you please verify if the issue is fixed with thesofproject/linux#141?
    It has been merged into cros-sof-v4.14-rebase

  3. mengdonglin commented on Sep 21, 2018

    @mengdonglin
    Collaborator

    @keqiaozhang Can the fix work for your GLK device?

  4. mengdonglin commented on Sep 21, 2018

    @mengdonglin
    Collaborator

    It seems Ranjani has fixed this issue, so add label "fixed" and wait for validation.

  5. mengdonglin commented on Sep 24, 2018

    @mengdonglin
    Collaborator

    @ranj063 It seems system suspend/resume can work on your GLK, could you clarify which SOF firmware branch you're using? master or glk-003-drop-stable?

  6. keqiaozhang commented on Sep 25, 2018

    @keqiaozhang
    CollaboratorAuthor

    @ranj063 @mengdonglin
    Tested with latest sof-master+ kernel-cros-sof-v4.14-rebase , audio device 0000:00:0e.0 failed to suspend: error -110.
    But check with sof-glk-003-drop-stable, system suspend/resume(s2idle) is supported, I tested with suspend_stress_test for more than 10 times and the runtime_status is also correct.
    So this issue is fixed in sof-glk-003-drop-stable + kernel-cros-sof-v4.14-rebase, some patches need to cherry-pick to sof-master.

  7. mengdonglin commented on Sep 25, 2018

    @mengdonglin
    Collaborator

    @ranj063 @mmaka1 would you like to sync on the patches that need to be cherry picked from glk-003-drop-stable to master?

  8. self-assigned this
    on Sep 25, 2018
  9. mmaka1 commented on Sep 25, 2018

    @mmaka1

    @mengdonglin There is a single one for FW b8d7166, no issue with merging this one.

  10. lgirdwood commented on Sep 25, 2018

    @lgirdwood
    Member

    @mengdonglin @mmaka1 now cherry picked and merged b8d7166

  11. keqiaozhang commented on Sep 27, 2018

    @keqiaozhang
    CollaboratorAuthor

    @mmaka1
    This issue still can be reproduced in latest sof-master. so there's still have a gap between glk003 and master branch. Please help to confirm this.
    [ 255.313810] PM: suspend entry (s2idle)
    [ 255.313818] PM: Syncing filesystems ... done.
    [ 255.329545] PM: Preparing system for sleep (s2idle)
    [ 255.334709] PM: Suspending system (s2idle)
    [ 256.505791] PM: suspend of devices complete after 36.473 msecs
    [ 256.511865] sof-audio sof-audio: ipc tx: 0x40010000: GLB_PM_MSG: CTX_SAVE
    [ 256.815392] PM: Device 0000:00:0e.0 failed to suspend late: error -110
    [ 256.846483] PM: early resume of devices complete after 31.081 msecs
    [ 256.846487] PM: late suspend of devices aborted after 340.691 msecs
    [ 256.846488] PM: late suspend of devices failed
    [ 257.004407] PM: Device 0000:00:0e.0 failed to resume: error -5
    [ 257.239399] PM: resume of devices complete after 392.906 msecs
    [ 260.247214] PM: Finishing wakeup.
    [ 260.270538] PM: suspend exit

  12. keqiaozhang commented on Sep 27, 2018

    @keqiaozhang
    CollaboratorAuthor

    @mmaka1 I also found that firmware will be panic after system is booted in sof-master, this issue maybe blocked by this regression.

  13. changed the title [-][glk][br-glk] System failed to enter S3 and S0ix [/-] [+][glk][br-master] System failed to enter S3 and S0ix [/+] on Sep 27, 2018
  14. keqiaozhang commented on Oct 19, 2018

    @keqiaozhang
    CollaboratorAuthor

    This is a kernel issue and fixed in cros-sof-v4.14-rebase branch.
    Fixed by PR thesofproject/linux#186

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

Metadata

Metadata

Labels

GLKApplies to Gemini Lake platformP1Blocker bugs or important featuresbugSomething isn't working as expectedverifiedQA/Bug reporter verifies solution worked.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions