Bug 178611

Summary: regression: suspend to mem hangs during resume - Lenovo G40
Product: Power Management Reporter: Zhang Rui (rui.zhang)
Component: Hibernation/SuspendAssignee: Chen Yu (yu.c.chen)
Status: CLOSED UNREPRODUCIBLE    
Severity: normal CC: lenb, rjw, yu.c.chen
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 4.8-rc1 Subsystem:
Regression: Yes Bisected commit-id:
Bug Depends on:    
Bug Blocks: 178231    

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.