Bug 178611 - regression: suspend to mem hangs during resume - Lenovo G40
Summary: regression: suspend to mem hangs during resume - Lenovo G40
Alias: None
Product: Power Management
Classification: Unclassified
Component: Hibernation/Suspend (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Chen Yu
Depends on:
Blocks: 178231
  Show dependency tree
Reported: 2016-10-20 07:05 UTC by Zhang Rui
Modified: 2019-09-19 00:26 UTC (History)
3 users (show)

See Also:
Kernel Version: 4.8-rc1
Regression: Yes
Bisected commit-id:


Description Zhang Rui 2016-10-20 07:05:09 UTC
the problem happens only if analyze_suspend is used to suspend the system.
during resume, everything goes fine, and then hangs in analyze_suspend, in this line
recdata = fp.read(rechead[1]-8)

writing directly to /sys/power/state or using rtcwake tool does not have any problem.

The problem can not be reproduced in 4.7 kernel.
Comment 1 Zhang Rui 2016-10-20 07:07:39 UTC
I'm doing git bisect right now.
Comment 2 Zhang Rui 2016-11-14 05:01:46 UTC
Yu, please check if analyze_suspend still hangs in the latest upstream kernel.
Comment 3 Rafael J. Wysocki 2016-11-28 22:36:27 UTC
It looks like the handling of the task that drives system suspend may be broken somehow.

Does it still happen in 4.9-rc7?
Comment 4 Chen Yu 2016-12-17 15:58:01 UTC
Not reproduced on 4.9 upstream.

Note You need to log in before you can comment on or make changes to this bug.