Bug 15322
Summary: | [855GM KMS] freezes on suspend to RAM | ||
---|---|---|---|
Product: | Drivers | Reporter: | Xavier Chantry (chantry.xavier) |
Component: | Video(DRI - Intel) | Assignee: | ykzhao (yakui.zhao) |
Status: | RESOLVED PATCH_ALREADY_AVAILABLE | ||
Severity: | normal | CC: | andremuellerster, diegoe, jbarnes, mjg59-kernel, pwasiewi, rjw, ronny.standtke, wferi |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.33-rc7 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: |
irc conversation with matthew
DSDT patch that fixes / workarounds the problem. |
Description
Xavier Chantry
2010-02-15 23:04:42 UTC
Are you sure it hangs when unbinding fbcon? Your console will be unusable at that point (we don't hand back off to the vga driver in any meaningful way), so your console will just stop at whatever point you left it at. Does suspend work if you use echo mem > /sys/power/state rather than pm-suspend? I am pretty sure it hangs, sysrq does not work and the thinkpad leds are frozen. Also I do not just unbind fbcon, I do this for reloading the driver. It works well with nouveau, but I don't know if it does with intel. Shouldn't the console be restored after reloading i915 module with modeset? IIRC I checked with netconsole while unbinding & reloading, but I could not get any information/message. Maybe the network was down as well. I just tried now : echo 0 > /sys/class/vtconsole/vtcon1/bind ; echo '7 on' > /pric/acpi/ibm/led And the suspend led did not turn on. The wireless network does not answer ping and its led is frozen. I tried many times with pm-suspend, many times with echo mem > /sys/power/state , I always get the same result with both. Finally I confirm everything Ferenc reported, the two most important bits are probably the following : 1 - following Documentation/power/basic-pm-debugging.txt , freezer and devices test pass , but platform test fails. "If the "platform" test fails, there is a problem with the handling of the platform (eg. ACPI) firmware on your system. In that case the "platform" mode of hibernation is not likely to work. You can try the "shutdown" mode, but that is rather a poor man's workaround." (but again, it works perfectly without KMS) 2 - it seems to hang on the following call : /* Run the _PTS method */ status = acpi_evaluate_object(NULL, METHOD_NAME__PTS, &arg_list, NULL); (This was also tested using thinkpad leds : I added code to turn them on before the call and turn them down after. Result : they stay on. But no idea how reliable that test is :)) Yakui, any ideas? Hang at suspend is a bad failure mode... Thanks to Matthew Garrett aka mjg59, there are some new information on this. By removing a single line / call in _PST (\VVPD (0x03)), everything seems to work perfectly. I will attach the simple dsdt diff as well as the irc conversation (hopefully Matthew is fine with that ;)). Created attachment 25632 [details]
irc conversation with matthew
Created attachment 25633 [details]
DSDT patch that fixes / workarounds the problem.
Thanks Xavier, I'll try right now! I just built a custom kernel applying Xavier's patch to my DSDT. It works! So, I have no clue how we can fix this /in/ the kernel, but I surely look forward for such fix :-). I repeat, the DSDT trick works. Last comment from mjg59 : 02:02 <mjg59> Ok, so that's good to know 02:03 <mjg59> Unfortunate that it's an SMI call... 02:03 <mjg59> Maybe we can try to figure out from the name what it's doing I don't know if we can still hope it'll be figured out and fixed one day. But at least we have the custom DSDT now. So thanks to Matthew again ! :) Well, since you are already on it why don't you bug matthew a bit more and get his help for some further debugging? ;) dupe of https://bugs.freedesktop.org/show_bug.cgi?id=22126, closing this one *** Bug 13805 has been marked as a duplicate of this bug. *** Just a short info: This patch breaks external monitor support on certain notebooks (including mine, unfortunately). For more details please have a look at the following bug report: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/796030 At the bottom of this launchpad bug report is also a patch that fixes the external monitor issue. Thank you for patching the patch so that I can finally upgrade from kernel 2.6.32 to something more current. |