Bug 47901 - Suspend on Thinkpad x220: Hangs during resume
Summary: Suspend on Thinkpad x220: Hangs during resume
Status: RESOLVED OBSOLETE
Alias: None
Product: Drivers
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Dan Carpenter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-24 09:10 UTC by Dan Carpenter
Modified: 2013-11-19 23:06 UTC (History)
2 users (show)

See Also:
Kernel Version: 3.5.3
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Dan Carpenter 2012-09-24 09:10:11 UTC
Subject    : Suspend on Thinkpad x220: Hangs during resume
Submitter  : "Felix A. Kater" <fkater@googlemail.com>
Date       : Tue, 11 Sep 2012 09:39:48 +0200
Message-ID : <20120911073948.GA2872@comppasch2>
References : https://lkml.org/lkml/2012/9/11/68

This issue has been addressed in http://lkml.org/lkml/2011/5/22/2
already, however, the patch does not work for me.

My Thinkpad x220 still does not wake up from suspend anymore, for at
least a year of kernel versions now. It hangs during resume.

Things I tried without success:


(1) The mentioned patch

diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
index 9fe9ebe..649451a 100644
--- a/drivers/gpu/drm/i915/i915_drv.c
+++ b/drivers/gpu/drm/i915/i915_drv.c
@@ -239,7 +239,7 @@ static const struct intel_device_info intel_sandybridge_d_info = {
 static const struct intel_device_info intel_sandybridge_m_info = {
        .gen = 6, .is_mobile = 1,
        .need_gfx_hws = 1, .has_hotplug = 1,
-       .has_fbc = 1,
+       .has_fbc = 0,
        .has_bsd_ring = 1,
        .has_blt_ring = 1,
        .has_llc = 1,


(2) Setting CONFIG_DRM_I915_KMS=no 

After that X11 fails to find drivers and drops me to the console.
However, even from here, no resume after suspend.


(3) Boot options

kernel (hd0,0)/bzImage quiet i915.i915_enable_rc6=0 i915.i915_enable_fbc=0 i915.lvds_downclock=0


(4) FYI: my normal .config attached below
Comment 1 Alan 2012-09-24 09:29:57 UTC
If there is no resume even with KMS disabled then the problem is unlikely to be a graphics one. This bug therefore seems mis-assigned ?
Comment 2 Dan Carpenter 2012-09-24 09:48:51 UTC
Ok.  I've filed it under Other because we have no idea what the problem is.

NEED_MORE_INFO.

Also apparently, only the assignee can change the assignee information and not the reporter.  Bugzilla sucks.  Let's see if I can take the assignment.
Comment 3 Felix Kater 2012-11-16 12:09:09 UTC
(1) FYI: I tried to track down the kernel version which worked once (around 3.2.12 with i915.modeset=0). However, I got another issue: Even shutdown hangs then. So I gave up here.

(2) But things have changed anyway: Using standard v3.6.6, i915.modeset=0 and no X running the resume hangs for ~20 s, but continues. I had not waited that long recently. Then it continues until "PM: Image loading progress: 100%", then "suspending console(s)" and the hint to use "no_console_suspend to debug". Anyway: I get my console again, however, dmesg shows lots of I/O errors for /dev/sda which can not be accessed. Of course, the system is unusable.

Here, I should mentioned that I use initramfs to decrypt my system partition before using it (sorry for not mentioning it earlier). Of course, my initramfs using cryptsetup once worked with suspend/resume.

I'll try to create a decrypted version of my system and check without initramfs.

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