Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 334539 - sys-kernel/gentoo-sources-2.6.35*: suspend to RAM fails
Summary: sys-kernel/gentoo-sources-2.6.35*: suspend to RAM fails
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
Whiteboard: linux-2.6.35-regression, linux-2.6.36
Depends on:
Reported: 2010-08-26 09:56 UTC by Stefan Huber
Modified: 2010-12-28 06:15 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---

pm-suspend.log (pm-suspend.log.gz,8.40 KB, text/plain)
2010-08-26 09:59 UTC, Stefan Huber
/var/log/messages (var_log_messages.gz,18.10 KB, text/plain)
2010-08-26 10:00 UTC, Stefan Huber
Kernel config of non-working gentoo-sources-2.6.35-r4 (config.gz,16.71 KB, text/plain)
2010-08-26 10:01 UTC, Stefan Huber

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Huber 2010-08-26 09:56:11 UTC
After calling 'pm-suspend' the screen turns black as expected. But instead of going completely into suspend the moon-LED blinks, power-on and battery symbol stays on, the backlit of the display remains on and the system is freezed.

- Alt+sysrq does not respond; one has to power off the notebook (Lenovo T400)

- It is a regression: no problems for gentoo-sources-2.6.34* (or older). Problem still present in vanilla-sources-2.6.36_rc1

- Since many similar problems have been reported for 2.6.35, I tried the (pseudo-)solutions I found in the net. The following did not help:
  * kernel-param: acpi_sleep=nonvs
  * kernel-param: acpi_sleep=nonvs terminal=tty0
  * removing TPM support from kernel config

Reproducible: Sometimes

Steps to Reproduce:
The problem does not occur deterministically. Sometimes suspend works. However, it seems that suspend works from a non-X terminal. And it seems that the problem always occurs right after booting when kdm shows up.
Comment 1 Stefan Huber 2010-08-26 09:59:29 UTC
Created attachment 244643 [details]

- PM_DEBUG=true has been set
- contains after line 180 the list of kernel modules loaded.
Comment 2 Stefan Huber 2010-08-26 10:00:18 UTC
Created attachment 244645 [details]

Contains the corresponding section of /var/log/messages where suspend failed.
Comment 3 Stefan Huber 2010-08-26 10:01:59 UTC
Created attachment 244647 [details]
Kernel config of non-working gentoo-sources-2.6.35-r4
Comment 4 Stefan Huber 2010-08-26 19:27:38 UTC
I did a 'git bisect' which revealed commit d1b851fc0d105caa6b6e3e7c92d2987dfb52cbe0 on my system. It seems that this commit already gained attention by the kernel developers. According to the message [1] the problem is fixed in 2.6.36-rc2. It seems that I can confirm this on my machine with vanilla-sources-2.6.36_rc2.

The fixing commit, according to [1], was merged one day after was released. Hopefully, will contain a fix as well in order to make 2.6.35 usable again.

Summarizing: bug fixed for 2.6.36_rc2, but still open for the 2.6.35 branch.

Comment 5 Markos Chandras (RETIRED) gentoo-dev 2010-08-27 23:36:49 UTC
Thank you very much for all the tests you did and for the git bisect

Assigning to kernel team
Comment 6 Stefan Huber 2010-08-29 10:56:13 UTC
Little update: kernel (and gentoo-sources-2.6.35-r5) does not contain a fix. 
Comment 8 Stefan Huber 2010-09-22 08:53:33 UTC
Some news:

1. gentoo-sources-2.6.35-r8 (which is based on kernel does not fix the problem.

2. the patch based on commit 72bcb2690927f04c0479cd0d83825f09f3bf4d4f applied on gentoo-sources-2.6.35-r8 does not fix the problem.

3. the patch based on commit 90eb77baaea35c591bd324b31e9eac032bd603c9 [drm/i915/suspend: s/IS_IRONLAKE/HAS_PCH_SPLIT/] applied on gentoo-sources-2.6.35-r8 does not fix the problem.

However, the bad commit d1b851fc0d105caa6b6e3e7c92d2987dfb52cbe0 did not touch the file i915_suspend.c and therefore point 2. and 3. make sense. I suggest one tries more patches collected by the merge commit 4238a417a91643e1162a98770288f630e37f0484 which modify one of the following files:
 - i915_dma.c
 - i915_gem.c
 - i915_irq.c
 - intel_ringbuffer.c

Or, one could start a git bisect from 2.6.36-rc1 to 2.6.36-rc2 to find the fixing commit.

Comment 9 Stefan Huber 2010-10-21 18:21:57 UTC
Well, it seems that the 2.6.35 line stays with this bug forever. However, the brand new gentoo-sources-2.6.36 kernel works well, as expected due to comment #4.
Comment 10 Mike Pagano gentoo-dev 2010-12-21 14:23:13 UTC
gentoo-sources-2.6.35-r5 stable on amd64.
Comment 11 Stefan Huber 2010-12-21 14:25:59 UTC
(In reply to comment #10)
> gentoo-sources-2.6.35-r5 stable on amd64.

To be precise, gentoo-sources-2.6.36-r5 got stable on amd64.

Comment 12 katabami 2010-12-28 06:15:21 UTC
For the first time readers: this bug happened only to those with i915 drm driver.
(Intel's gpu.)