Skip to content

[FEATURE] dump PM stats on suspend-resume rtcwake error #898

Closed

Description

@plbossart

Is your feature request related to a problem? Please describe.

we routinely have suspend/resume failures with rtcwake reporting a write error

I believe this case happens when we see the error in dmesg

"Some devices failed to suspend, or early wake event detected"

I will make the conjecture that 90% of the current 'errors' are related to this message. Since it's cryptic, we would need additional information to figure out if issues are audio-related or not, and in the latter case investigate if they are severe or not.

Describe the solution you'd like

dump all the information provided in /sys/power/susped_stats, and check if the numbers reported in failed_suspend/failed_resume increase during cycles

root@pbossart-mobl3:/sys/power/suspend_stats# ls
fail            failed_resume        failed_suspend        last_failed_dev    success
failed_freeze   failed_resume_early  failed_suspend_late   last_failed_errno
failed_prepare  failed_resume_noirq  failed_suspend_noirq  last_failed_step

What is specifically interesting is the 'last_failed_dev' string which should tell us if the problem is audio -related or not.

Describe alternatives you've considered

modify the kernel so that __pm_pr_dbg provides the results in all cases, not just when the log level is DEBUG.

Activity

  1. plbossart commented on Apr 29, 2022

    @plbossart
    MemberAuthor
  2. marc-hb commented on May 3, 2022

    @marc-hb
    Collaborator

    dump all the information provided in /sys/power/susped_stats, and check if the numbers reported in failed_suspend/failed_resume increase during cycles

    Shouldn't be too hard, I can take a stab at this. However please help review cleanup #899 first so I can start from a clean base.

    EDIT: submitted in #900

  3. marc-hb commented on Jul 25, 2022

    @marc-hb
    Collaborator

    @plbossart are recent sof-test changes enough, close as done?

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions