Bug 764864

Summary: Suspend to RAM doesn't work after upgrading to kernel in kernel standard repo
Product: [openSUSE] openSUSE 12.1 Reporter: Forgotten User 10buyl7JnO <forgotten_10buyl7JnO>
Component: BasesystemAssignee: Mike Galbraith <mgalbraith>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Critical    
Priority: P5 - None CC: alphavax, axel.braun, bugzilla, forgotten_F_x5zST44w, forgotten_qh4p90Reu9, forgotten_qKCeLthckA, gordon, harbrink, hendersj, hendrikw, james.knott, jslaby, kolAflash, luca.petrucci, mcphrsp, meissner, pierre.baldensperger, randolph, richlv, suse, tiwai, wilke
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 12.1   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Forgotten User 10buyl7JnO 2012-05-31 11:31:21 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.52 Safari/536.5

I had to upgrade kernel to the version available in kernel standard repo for fixing bug #760279. Since then suspend doesn't work. When I close laptop lid or manually click suspend menu, seems hd stops rotating but system freezes and cpu fan rotates faster making noise. 

Reproducible: Always

Steps to Reproduce:
1.Update kernel from kernel standard repo.
2.Suspend to RAM.
Actual Results:  
Laptop freezes.

Expected Results:  
Suspend to RAM
Comment 1 Andreas Jaeger 2012-06-22 10:41:20 UTC
Which kernel version are you using now? Please show "uname -a" output
Comment 2 Forgotten User 10buyl7JnO 2012-06-22 11:25:13 UTC
ruchir@linux-sz3z:~> uname -a
Linux linux-sz3z.site 3.1.10-47-desktop #1 SMP PREEMPT Wed Jun 20 18:50:54 UTC 2012 (83f7a48) x86_64 x86_64 x86_64 GNU/Linux
Comment 3 Hendrik Woltersdorf 2012-06-23 09:23:42 UTC
I get the same results at my desktop PC after updating yesterday to kernel:
3.1.10-1.13-desktop #1 SMP PREEMPT Tue Jun 12 13:11:31 UTC 2012 (44a489e) x86_64 x86_64 x86_64 GNU/Linux
It was a regular update through Apper, not from a special repository.
Comment 4 Jan Ritzerfeld 2012-06-23 11:09:27 UTC
*** Bug 768483 has been marked as a duplicate of this bug. ***
Comment 5 Jan Ritzerfeld 2012-06-23 11:14:33 UTC
kernel-desktop-3.1.10-1.13.1 breaks s2ram on my T410s. After
minutes, it just crashes losing all unsaved work and yielding to an unclean filesystem!
Comment 6 Forgotten User qh4p90Reu9 2012-06-23 16:58:36 UTC
Same for my HP dv6. Suspend doesn't work at all, and shutdown only works intermittently
Comment 7 Jim Henderson 2012-06-23 18:36:49 UTC
Same on a Dell N7110 (R17) laptop with the 3.1.10-1.13.1 kernel.  I also see on shutdown that the system doesn't power off as well.
Comment 8 Peter McPherson 2012-06-24 06:19:29 UTC
My desktop PC with the new kernel-desktop 3.1.10-1.13 powers down ("shutdown") ok but sleep and hibernate result in the system hanging.

For "hibernate", it sticks at "Snapshotting system"

for "sleep", I get the message:

Welcome to openSUSE 12.1 "asparagus"...kernel 3.1.10-1.13 desktop (tty1)
Hint: Numlock off
Linux xxxx: login:

and at this point, keyboard entry is not accepted.
Comment 9 Pierre Baldensperger 2012-06-24 08:43:07 UTC
Same for me on HP Elitebook 8440p.
Both suspend to disk and to ram broken after 3.1.10-1.13 update.
Frozen at message "snapshotting system".
Found nothing unusual in the logs.
Regular shutdown seemed to work OK though.
Temporarily worked around by reverting to kernel 3.1.10-1.9.

Check the following forum threads:

http://forums.opensuse.org/english/get-technical-help-here/laptop/476284-after-latest-kernel-upgrade-system-does-not-shut-down-normally-lenovo-x201i.html

http://forums.opensuse.org/english/get-technical-help-here/64-bit/476287-re-cant-sleep-hibernate-after-kernel-update-post2470907.html

In the first thread the Lenovo user also experiences a shutdown problem. Another user (dragonmj) suggested changing the default init program in the grub config, adding "init=/bin/systemd" in the kernel command line. Didn't try that suggestion though.
Comment 10 Jim Henderson 2012-06-24 08:46:10 UTC
I did try the suggestion of adding init=/bin/systemd on my startup, but it didn't make a difference.
Comment 11 Peter McPherson 2012-06-24 09:17:04 UTC
OpenSUSE 12.2 Beta2 with kernel 3.4.2.1 desktop x86_64 does not have this problem on my desktop PC.
Comment 12 Gordon Dickens 2012-06-24 12:56:56 UTC
I am having the same problem.  Sleep/suspend-to-RAM does not work.
The computer freezes and I have to do a hard power off and reboot
to get it back.  I am running OpenSUSE 12.1 on a Dell Precision
M6300 laptop.  The kernel that fails is kernel-default
3.1.10-1.13.1.  I have reverted to kernel-default 3.1.10-1.9.1
which works fine.

BTW, this bug is has been duplicated in the following bugs as
well:

#768560
#768553
#768483

Somebody with the appropriate credentials needs to mark these
bugs as duplicates.

FYI,

Gordon
Comment 13 Luca Petrucci 2012-06-24 16:06:56 UTC
Same problem with a Sony Vaio notebook.
After upgrading the kernel, susoend to ram does not work anymore: the screen goes black and the fun starts to run at the maximum speed.
booting the old kernel fixes the problem.
Comment 14 Luis Castillo 2012-06-24 17:22:16 UTC
Same problem with Sony Vaio Laptop VPCF1. Same simptopms as above post, problem fixed after reveting to kernel 3.1.10-1.9
Comment 15 Marcus Meissner 2012-06-25 11:07:14 UTC
*** Bug 768560 has been marked as a duplicate of this bug. ***
Comment 16 Marcus Meissner 2012-06-25 11:08:51 UTC
*** Bug 768556 has been marked as a duplicate of this bug. ***
Comment 17 Klaus Singvogel 2012-06-25 11:12:53 UTC
/me too. :-)

Maybe related: only on my desktop (64bit), but not on my EEE PC laptop (32bit)
Comment 18 Jiri Slaby 2012-06-25 11:33:49 UTC
Guys, could any of you find out the git commit ids of both the working and non-working kernels?

Like
  rpm -qi kernel-default-3.1.10-1.9
and
  rpm -qi kernel-default-3.1.10-1.13.1
...

It's a "GIT Revision:" line at the end of the output.
Comment 19 Gordon Dickens 2012-06-25 11:50:04 UTC
I only have 3.1.10-1.9.1 installed now and the last few lines of
"rpm -qi kernel-default-3.1.10-1.9.1" is as follows:

GIT Revision: 4a97ec881a17a4d16fd1086877017ba8a88ffc8f                                                                               
GIT Branch: openSUSE-12.1                                                                                                            
Distribution: openSUSE 12.1


"rpm -qi kernel-default-3.1.10-1.13.1" output is:

package kernel-default-3.1.10-1.13.1 is not installed

FYI,

Gordon
Comment 20 Klaus Singvogel 2012-06-25 11:54:51 UTC
Last lines output of "rpm -qi kernel-desktop-3.1.10-1.13.1":

Source Timestamp: 2012-06-12 15:11:31 +0200
GIT Revision: 44a489e456a41b2f1b895d7788f30ecfe96d2b47
GIT Branch: openSUSE-12.1
Distribution: openSUSE 12.1
Comment 21 Forgotten User 10buyl7JnO 2012-06-25 12:03:13 UTC
kernel-desktop-3.1.10-47.1.x86_64


Source Timestamp: 2012-06-20 20:50:54 +0200
GIT Revision: 83f7a48035eb2d36457579cc5f825196b16a06f1
GIT Branch: openSUSE-12.1
Distribution: Kernel:openSUSE-12.1
Comment 22 Jiri Slaby 2012-06-25 12:24:27 UTC
Ok, so something in the range 4a97ec881a17a4d..44a489e456a41 is broken.

The first thing which emerges is:
commit 4b7324c6d50b5f7c472164fcd85ef51da0b083e2
Author: Mike Galbraith <mgalbraith@suse.de>
Date:   Thu Apr 12 13:17:29 2012 +0200

    CPU hotplug, cpusets, suspend: Don't touch cpusets during suspend/resume (bn
c#752460).

Let's try to revert that.
Comment 23 Jiri Slaby 2012-06-25 12:30:05 UTC
(In reply to comment #22)
> Let's try to revert that.

A kernel with that one reverted will, after it is built, appear at:
http://download.opensuse.org/repositories/home:/jirislaby:/bnc_764864/
Comment 24 Takashi Iwai 2012-06-25 13:30:09 UTC
FWIW, the commit was already reverted in the upstream 3.3-rc7 kernel.

commit 4293f20c19f44ca66e5ac836b411d25e14b9f185
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date:   Wed Mar 7 08:21:19 2012 -0800

    Revert "CPU hotplug, cpusets, suspend: Don't touch cpusets during suspend/re
    
    This reverts commit 8f2f748b0656257153bcf0941df8d6060acc5ca6.
    
    It causes some odd regression that we have not figured out, and it's too
    late in the -rc series to try to figure it out now.
    
    As reported by Konstantin Khlebnikov, it causes consistent hangs on his
    laptop (Thinkpad x220: 2x cores + HT).  They can be avoided by adding
    calls to "rebuild_sched_domains();" in cpuset_cpu_[in]active() for the
    CPU_{ONLINE/DOWN_FAILED/DOWN_PREPARE}_FROZEN cases, but it's not at all
    clear why, and it makes no sense.
    
    Konstantin's config doesn't even have CONFIG_CPUSETS enabled, just to
    make things even more interesting.  So it's not the cpusets, it's just
    the scheduling domains.
    
    So until this is understood, revert.
    
    Bisected-reported-and-tested-by: Konstantin Khlebnikov <khlebnikov@openvz.or
    Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
    Acked-by: Ingo Molnar <mingo@elte.hu>
    Acked-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Comment 25 Marcus Meissner 2012-06-25 18:25:19 UTC
*** Bug 768682 has been marked as a duplicate of this bug. ***
Comment 26 Forgotten User F_x5zST44w 2012-06-25 19:08:22 UTC
(In reply to comment #23)
> A kernel with that one reverted will, after it is built, appear at:
> http://download.opensuse.org/repositories/home:/jirislaby:/bnc_764864/

Fix confirmed! kernel-desktop-3.1.10-1.1.x86_64 from /home:/jirislaby:/bnc_764864/ fixes the hibernation issue for me. Tried a couple of hibernation/wake-up cycles - all looks good here.

(btw: the mentioned commit had already been reverted on kernel mainline before it was even considered as a patch for #752460. Not sure if this happens often, but maybe there's a way to double check before pulling kernel patches - i.e. grep through mainline commit logs to see if the commit ID was reverted/extended/commented upon)
Comment 27 Marcus Meissner 2012-06-25 20:35:50 UTC
I have removed the current 12.1 update kernel from the update repository.

A fixed one will be prepared and pushed once a fix was confirmed.
Comment 28 Mike Galbraith 2012-06-26 03:45:41 UTC
(In reply to comment #27)
> I have removed the current 12.1 update kernel from the update repository.
> 
> A fixed one will be prepared and pushed once a fix was confirmed.

I've removed the ill fated fix.  The problem it addressed (bnc#752460) is being respun upstream.  When it hits mainline and is baked, I'll look at backporting,  it's currently in tip as 0c1508129adc051fabaf8debefea79baa2f1a81b.
Comment 29 Mike Galbraith 2012-06-26 03:49:56 UTC
(In reply to comment #26)
> (In reply to comment #23)
> > A kernel with that one reverted will, after it is built, appear at:
> > http://download.opensuse.org/repositories/home:/jirislaby:/bnc_764864/
> 
> Fix confirmed! kernel-desktop-3.1.10-1.1.x86_64 from
> /home:/jirislaby:/bnc_764864/ fixes the hibernation issue for me. Tried a
> couple of hibernation/wake-up cycles - all looks good here.
> 
> (btw: the mentioned commit had already been reverted on kernel mainline before
> it was even considered as a patch for #752460. Not sure if this happens often,
> but maybe there's a way to double check before pulling kernel patches - i.e.
> grep through mainline commit logs to see if the commit ID was
> reverted/extended/commented upon)

It would appear I missed the revert.
Comment 30 Forgotten User 10buyl7JnO 2012-06-26 07:06:16 UTC
Can someone confirmed if bug #760279 is fixed in this version? As that bug is more deadlier than this one :)
Comment 31 Forgotten User 10buyl7JnO 2012-06-26 07:29:16 UTC
bnc_764864 disappeared from home:jirislaby repo. Is the fix available in update repo or kernel head?
Comment 32 Jiri Slaby 2012-06-26 18:21:54 UTC
(In reply to comment #31)
> bnc_764864 disappeared from home:jirislaby repo. Is the fix available in update
> repo or kernel head?

Yep, in 12.1 kernel branch:
http://download.opensuse.org/repositories/Kernel:/openSUSE-12.1/standard/

It will appear in the update repo later.
Comment 33 Jeff Mahoney 2012-06-28 12:46:51 UTC
*** Bug 768553 has been marked as a duplicate of this bug. ***
Comment 34 Swamp Workflow Management 2012-07-03 12:14:13 UTC
openSUSE-SU-2012:0812-1: An update that solves 7 vulnerabilities and has 27 fixes is now available.

Category: security (moderate)
Bug References: 700174,716996,731537,731720,732006,735362,736268,745929,747038,747404,748463,748859,752460,754186,756840,757783,757789,758243,758260,758813,759545,759554,760077,760279,760860,760902,760974,761681,762991,762992,764864,765102,765320,767786
CVE References: CVE-2009-4020,CVE-2011-3347,CVE-2012-2119,CVE-2012-2123,CVE-2012-2136,CVE-2012-2373,CVE-2012-2663
Sources used:
openSUSE 12.1 (src):    kernel-docs-3.1.10-1.16.2, kernel-source-3.1.10-1.16.1, kernel-syms-3.1.10-1.16.1
Comment 35 Randolph Directo 2012-07-10 23:36:29 UTC
Where is the kernel fix for 11.4? There was a 11.4 kernel update too with equal consequences upon sleep and hibernation apps. Here's my sys info:

OS:  Linux 2.6.37.6-0.20-desktop x86_64
System:  openSUSE 11.4 (x86_64)
KDE:  4.6.00 (4.6.0) "release 6"

Thanks in advance.
Comment 36 Jeff Mahoney 2012-07-26 21:59:42 UTC
*** Bug 768937 has been marked as a duplicate of this bug. ***