Bugzilla – Full Text Bug Listing
|Summary:||[SNB] system hangs after suspend-resume|
|Component:||DRM/Intel||Assignee:||Chris Wilson <chris>|
|Status:||RESOLVED FIXED||QA Contact:|
|Priority:||medium||CC:||hanswurst, jbarnes, yi.sun, yuanhan.liu, zhenyu.z.wang|
|i915 platform:||i915 features:|
Description alanw 2011-03-20 04:46:25 UTC
I have a complete hang while resume no matter if it is in text-mode or in Xorg. I have a H67 chipset with a Core i5 2500k CPU. I even tried it with the nomodeset kernel parameter. It is 100% reproducible. I tested on Ubuntu Natty Alpha3 (with fresh 2.6.38+git19032011 kernel) with updated packages with xorg edgers ppa up to today's git updates. Suspend goes well. I can "wake" up the machine to a point where the cpu cooler gets spinning, but that is all. No sign of a log in suspend log about waking up (only of course about going to sleep). System completely hangs. No way to connect with ssh. Other users from xbmc forums reported this problem as well. On windows the machine wakes up perfectly. dmesg output (with drm.debug=7): http://pastebin.com/cLgKHHfb pm-suspend.log: http://pastebin.com/tPHNrW0L
Comment 1 Chris Wilson 2011-03-20 04:59:04 UTC
This doesn't immediately strike me as being i915.ko related...
Comment 2 alanw 2011-03-20 10:41:11 UTC
(In reply to comment #1) > This doesn't immediately strike me as being i915.ko related... Sorry for beening noob. You mean i reported it in a wrong place ? Can you help where i should report ? Or is it possible to move this report there ? If not can you close it ?
Comment 3 Chris Wilson 2011-03-20 10:48:26 UTC
Just that our expertise only runs as far as the gfx. Have a look to see if this is similar to bug 32539, or if any of the debugging steps there help.
Comment 4 alanw 2011-03-20 10:53:41 UTC
(In reply to comment #3) > Just that our expertise only runs as far as the gfx. Have a look to see if this > is similar to bug 32539, or if any of the debugging steps there help. Thanks. That is not helping me. Do you know where i should report this problem ?
Comment 5 Gordon Jin 2011-03-20 17:51:24 UTC
I heard from Yuanhan that this is a BIOS bug.
Comment 6 Yuanhan Liu 2011-03-20 18:24:38 UTC
(In reply to comment #5) > I heard from Yuanhan that this is a BIOS bug. Yes. Besides the BIOS bug, Zhenyu has found something else which may fix some case of this issue. So, alanw, would you please try to update your bios, then have another try? Thanks, Yuanhan Liu
Comment 7 Wang Zhenyu 2011-03-21 02:23:05 UTC
I failed to attach patches here... please try my patches at http://people.freedesktop.org/~zhen/snb_desktop_suspend/ also with one at http://git.kernel.org/?p=linux/kernel/git/ickle/drm-intel.git;a=commit;h=a7a75c8f70d6f6a2f16c9f627f938bbee2d32718 New BIOS update is required for fixing suspend/resume issue on my DH67 board. Patches are against upstream 2.6.38 kernel. These have passed many cycles of S3 test on my hw here.
Comment 8 alanw 2011-03-21 03:12:20 UTC
> New BIOS update is required for fixing suspend/resume issue on my DH67 board. > Patches are against upstream 2.6.38 kernel. These have passed many cycles of S3 > test on my hw here. Thank you. I have an MSI board but i see that there is an updated BIOS there with updated chipset firmware. That might be what i need. I will make a test tonight and report back. Thanks once again. The board and BIOS version. http://www.msi.com/product/mb/H67MS-E33.html#/?div=BIOS
Comment 9 alanw 2011-03-22 00:48:25 UTC
(In reply to comment #6) > (In reply to comment #5) > > I heard from Yuanhan that this is a BIOS bug. > > Yes. Besides the BIOS bug, Zhenyu has found something else which may fix some > case of this issue. > > So, alanw, would you please try to update your bios, then have another try? > > Thanks, > Yuanhan Liu I made a short test last night. I have not yet applied Zhenyu's patches. I only upgraded to the latest BIOS (chipset firmware) yet. Well i had only made a quick test yet, but suspend began to work (at least a 3-4 times i tried), but the BIOS upgrade left me without the HDMI audio device. That is really strange. I only have two devices show up with aplay -l. Previously i had a device #3 with the HDMI output. IN BIOS i don't see an potion to turn this on or off. I'll make further tests with suspend with Zhenyu's patches today. Also i will try to boot the machine into Windows to see if the HDMI audio device really disappeared. If yes there might be that the chipset upgrade is faulty. @Zhenyu: Could you please check if your HDMI audio device shows up with the new BIOS on your Mobo ? Thx
Comment 10 Wang Zhenyu 2011-03-22 23:13:08 UTC
sorry, no HDMI monitor by hand. New patch set uploaded to http://people.freedesktop.org/~zhen/snb_desk_suspend_0323/
Comment 11 alanw 2011-03-23 01:05:18 UTC
I made tests with the first patch set. It was applied to 2.6.38 final kernel. Testing went good, fast suspend and resume without a problem (10-20 cycles) (In reply to comment #10) > sorry, no HDMI monitor by hand. About the HDMI audio device disappearing with new firmware, I made a test with Windows 7 x64 and yes this is definitely a firmware bug. The hdmi audio device disappeared in both linux and windows with new BIOS. Reverting back to the previous BIOS instantly gives back the HDMI audio device. I reported this to MSI, but where else should i report the problem ? It could be a BIOS or a chipset firmware problem. @Zhenyo: I think if you don't even plug the hdmi cable you should be seeing the hdmi audio device. Could you please check? With that info we could decide whether it is a BIOS or a firmware problem. Should i make a test with the new patchset?
Comment 12 mus.svz 2011-03-23 09:22:58 UTC
I already commented on bug #32589 about this issue (https://bugs.freedesktop.org/show_bug.cgi?id=32539#c10). I just did a BIOS update on my Intel DH67GD and I this fixed it for me as well, resume works fine now. :) I'm running kernel 2.6.38 and HDMI audio still works as well btw. ;)
Comment 13 Yuanhan Liu 2011-03-23 18:16:38 UTC
*** Bug 32539 has been marked as a duplicate of this bug. ***
Comment 14 HwRhymes 2011-05-25 10:14:23 UTC
I'm affected a bug that has the exact same effects as described by alanw, however I use different hardware: Asus P8P67-m PRO, i5 2500k and an Asus GT210 Nvidia GPU. The machine seems to suspend properly, but on resume it is completely unresponsive and even does multiple reboots (telling from harddisk spinups and onboard LED flashing). If the GPU is installed, then there is no video signal on resume. With or without GPU, it does not respond to pings or ssh logins and can only be shutdown by a hard reset. As reported in Ubuntu's bugreport system, resume is also broken on the P8H67-m PRO version with internal graphics, however the standard P8P67 (PRO) is not affected. https://bugs.launchpad.net/ubuntu/+source/linux/+bug/760842 The problem is 100% reproducible with the latest BIOS (as well as the previous versions) and all kernels tested (2.6.32-lts, 2.6.37, 2.6.38, 2.6.39). Suspend (S3) was initiated by "pm-suspend" or "echo -n mem > /sys/power/state" from terminal, without any nvidia graphics driver installed. Additionally, I tried Wang Zhenyu's patchset (http://people.freedesktop.org/~zhen/snb_desk_suspend_0323/) on a stock 2.6.38 kernel, but this is probably only targeted towards the internal Intel GPU and (not surprisingly) does not work in my case. I should mention that no overclocking is present and I tested it enabling/disabling all possible BIOS settings without success. pm-suspend.log http://pastebin.com/srfzWiC6 Using sudo sh -c "echo 'core' > /sys/power/pm_test" before suspending forces the kernel to do simulate suspend and resume without actually calling the low-level hardware commands. The results below are copy & pasted from the Ubuntu bugtracker: ------------------------------- 1. GPU present (with Nvidia driver), fans kept running and machine was stuck (no ping, no keyboard, no video signal). dmesg after reboot: http://pastebin.com/wpmxaU3C 2. No GPU present (but Nvidia driver still installed), it correctly suspended and resumed after a few seconds. dmesg: http://pastebin.com/UMt1aj2q 3. GPU present (Nvidia driver removed, nouveau driver installed), it correctly suspended and resumed after a few seconds. dmesg: http://pastebin.com/wC6VitEc ----- 4. no echo "core" GPU present, Nvidia driver removed, nouveau driver installed, regular pm-suspend ---> machine stuck and multiple reboots
Comment 15 Jesse Barnes 2011-06-16 10:53:27 UTC
Hans, it sounds like you have a different problem with nvidia, please open a new bug for that (and not against drm/intel). And this bug seems to be fixed for at least one user; please open a new one if you still have issues (but please try http://lists.freedesktop.org/archives/intel-gfx/2011-June/010979.html first).