Bug 22695 - [G45] X Freezes on resume from suspend
Summary: [G45] X Freezes on resume from suspend
Status: CLOSED INVALID
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: XOrg git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: ykzhao
QA Contact:
URL:
Whiteboard:
Keywords: NEEDINFO
Depends on:
Blocks:
 
Reported: 2009-07-09 20:11 UTC by Jason Smith
Modified: 2017-07-24 23:09 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
dmesg after (107.57 KB, application/octet-stream)
2009-07-13 16:04 UTC, Jason Smith
no flags Details
xorg log after crash (77.32 KB, application/x-trash)
2009-07-13 21:23 UTC, Jason Smith
no flags Details

Description Jason Smith 2009-07-09 20:11:14 UTC
Ubuntu 9.04
Kernel - git 07/07/09
Intel Driver/mesa - git master

On resume from a suspend, x freezes.  I am presented with an image of what my desktop looked like before I suspended (I do not use a lock screen), and cannot interact with the machine in any way. I do not have the ability to test and see if network access still works, however the numlock/capslock keys are both responsive. The mouse does not move however and there is nothing at all of interest in logs after a freeze. So far the only way I have found out of it is a hard reset.
Comment 1 ykzhao 2009-07-10 01:12:05 UTC
Will you please try the patch in https://bugs.freedesktop.org/show_bug.cgi?id=21719#C8 on the latest linus git tree and see whether the issue still exists?

Thanks.
Comment 2 Jason Smith 2009-07-10 08:27:22 UTC
I can't say with 100% certainty, but thus far my suspend/resume has worked minus hitting bug #22426. However restarting my WM after a resume clears that up and is therefore a small issue as I dont lose any data. However this would be a major ticket item for normal users as it sure looks funky...
Comment 3 Jason Smith 2009-07-10 17:21:06 UTC
I can now say with 100% certainty that patch did not fix the issue. After letting my computer sleep for a couple hours after work today (drive home) it froze on resume. The issue is not resolved =/
Comment 4 Jason Smith 2009-07-11 22:11:10 UTC
I remembered some additional informaiton I should have included with the initial report. This bug started after receiving an update to the xorg intel driver, around 3 weeks ago I think. I would prefer not to have to perform a bisect of the driver (largely since I suck at git), but will do so if someone can give me instructions.
Comment 5 ykzhao 2009-07-12 18:46:05 UTC
(In reply to comment #3)
> I can now say with 100% certainty that patch did not fix the issue. After
> letting my computer sleep for a couple hours after work today (drive home) it
> froze on resume. The issue is not resolved =/
Will you please do the following test to narrow down this issue?
a. kill the process using /proc/acpi/event
b. dmesg >dmesg_before; echo mem > /sys/power/state; dmesg >dmesg_after; sync;
c. wait for about one or two hours and press the power button to wake up the system. This is to simulate that the box is in sleeping state for a couple hours.
d. If the system can't be booted, please reboot the system and see whether there exists the file of dmesg_after.
Thanks.
> 

Comment 6 Jason Smith 2009-07-12 23:24:41 UTC
Will do tonight, thank you for the input!
Comment 7 Jason Smith 2009-07-13 16:04:05 UTC
Created attachment 27653 [details]
dmesg after
Comment 8 Jason Smith 2009-07-13 16:04:45 UTC
So the results are in. I do in fact get a dmesg_after as a result, however there does not appear to be anything interesting in there.
Comment 9 ykzhao 2009-07-13 18:13:54 UTC
(In reply to comment #8)
> So the results are in. I do in fact get a dmesg_after as a result, however
> there does not appear to be anything interesting in there.
As there exists the file of dmesg_after, it seems that the system can be resumed from the sleeping state. And the remaining issue is that sometimes X will freeze on resume.

It will be great if you can attach the Xorg log when it freezes.(BTW: this should be obtained when the system enters the console mode in the next startup).

Will you please confirm whether it can be resumed correctly under console mode?
The patch in comment #1 is required. 

thanks.


Comment 10 Jason Smith 2009-07-13 21:23:09 UTC
Created attachment 27673 [details]
xorg log after crash

Here you go, this is the xorg log from after a crash, I dont think there is too much of interest in there unfortunately. Trying to suspend from console and see if I can reproduce that way.
Comment 11 Jason Smith 2009-07-14 17:20:08 UTC
Ok so suspend from console works fine, however sometimes when I try to switch back into X it will lock immediately after displaying the contents in X
Comment 12 ykzhao 2009-07-30 19:14:49 UTC
(In reply to comment #11)
> Ok so suspend from console works fine, however sometimes when I try to switch
> back into X it will lock immediately after displaying the contents in X
> 
Will you please also attach the xorg.log with KMS disabled? Of course please enable the modedebug in xorg.conf.

It will be great if you can attach the output of vbios dump.
Thanks.

Comment 13 ykzhao 2009-09-15 23:41:53 UTC
Will you please try the following patches and see whether the
issue still exists?
  Patch : drm/i915: Check that the relocation points to within the target
   http://lists.freedesktop.org/archives/intel-gfx/2009-September/004243.html

   i965: Fix relocation delta for WM surfaces (in mesa) 
http://cgit.freedesktop.org/mesa/mesa/commit/?id=acfea5c705f383692e661d37c5cd7da2f3db559b

thanks
Comment 14 ykzhao 2010-06-07 19:22:52 UTC
Since there is no response for more than two months, this bug will be rejected.

If the issue still can be reproduced, please reopen it again.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.