Bug#659363: Hibernate freezes on HP dc7900 with Linux 3.2 (regression)
Hi Pelle,
Per Olofsson wrote:
> Second time I hibernated my system, it froze. Kernel error messages
> were printed on the console, I attach a photo of my display.
Thanks. My only hints are to try narrowing this down using hints
from Documentation/basic-pm-debugging.txt[1] and that it might be
possible to get a fuller log using netconsole[2].
Can you reproduce this without the i915 driver loaded?
Hope that helps,
Jonathan
[1] http://www.kernel.org/doc/Documentation/power/basic-pm-debugging.txt
or the corresponding file in the kernel source or linux-doc-3.2
[2] http://www.kernel.org/doc/Documentation/networking/netconsole.txt
--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120210211833.GK19216@burratino">http://lists.debian.org/20120210211833.GK19216@burratino
03-12-2012, 03:24 PM
Per Olofsson
Bug#659363: Hibernate freezes on HP dc7900 with Linux 3.2 (regression)
Hi Jonathan,
2012-02-10 22:18, Jonathan Nieder skrev:
> Per Olofsson wrote:
>
>> Second time I hibernated my system, it froze. Kernel error messages
>> were printed on the console, I attach a photo of my display.
>
> Thanks. My only hints are to try narrowing this down using hints
> from Documentation/basic-pm-debugging.txt[1] and that it might be
> possible to get a fuller log using netconsole[2].
Thanks for the hints! It is a bit time-consuming to debug because the
problem does not happen every time I hibernate. However, it does happen
often enough.
I will try the debug steps and report back the results. Since suspend to
RAM works fine, I'm guessing that it has something to do with writing
the image to disk. Perhaps ACPI is interacting badly with the SATA
driver or so.
I also tried updating my BIOS, but it didn't change anything.
> Can you reproduce this without the i915 driver loaded?
Not really. It seems that the error only happens when I have a lot of
processes loaded in memory. Running from the console does not seem to
trigger it. I guess I could try running X with vesa for a while, but I'd
rather not if I don't have to.
--
Pelle
--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4F5E2330.5060505@debian.org">http://lists.debian.org/4F5E2330.5060505@debian.org
03-13-2012, 03:16 PM
Per Olofsson
Bug#659363: Hibernate freezes on HP dc7900 with Linux 3.2 (regression)
Hi again,
2012-03-12 17:24, Per Olofsson skrev:
> Thanks for the hints! It is a bit time-consuming to debug because the
> problem does not happen every time I hibernate. However, it does happen
> often enough.
>
> I will try the debug steps and report back the results. Since suspend to
> RAM works fine, I'm guessing that it has something to do with writing
> the image to disk. Perhaps ACPI is interacting badly with the SATA
> driver or so.
I have now tried some debugging steps, but I can't get the system to
freeze with the debugging modes. It probably needs to actually try to
write the image to disk in order to hit the bug.
Perhaps, as you said, it has something to do with i915 after all. I will
dig further.
--
Pelle
--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4F5F72E5.6060806@dsv.su.se">http://lists.debian.org/4F5F72E5.6060806@dsv.su.se
03-16-2012, 05:00 PM
Jonathan Nieder
Bug#659363: Hibernate freezes on HP dc7900 with Linux 3.2 (regression)
Hi Pelle,
Per Olofsson wrote:
> I have now tried some debugging steps, but I can't get the system to
> freeze with the debugging modes.
Thanks for checking. Could you spell this out a little more for me?
Do you mean, for example, that
echo platform >/sys/power/disk
echo disk >/sys/power/state
doesn't hang?
--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120316180051.GF28004@burratino">http://lists.debian.org/20120316180051.GF28004@burratino
03-17-2012, 01:42 PM
Per Olofsson
Bug#659363: Hibernate freezes on HP dc7900 with Linux 3.2 (regression)
Hi Jonathan,
2012-03-16 19:00, Jonathan Nieder skrev:
>> I have now tried some debugging steps, but I can't get the system to
>> freeze with the debugging modes.
>
> Thanks for checking. Could you spell this out a little more for me?
>
> Do you mean, for example, that
>
> echo platform >/sys/power/disk
> echo disk >/sys/power/state
>
> doesn't hang?
What I mean is that I can't get it to hang when I write different values
to /sys/power/pm_test, as suggested in basic-pm-debugging.txt. It only
hangs with the default value "none".
Also, it doesn't matter if I put platform or shutdown in
/sys/power/disk. It hangs anyway.
I have noted, however, that it seems to hang much less frequently if I
unload the Virtualbox modules. But I am not certain, and it does hang
anyway after a while.
I am in contact with Bojan Smojver who made some changes in the
hibernate code for 3.2. He has given me further debugging hints, but he
thinks that my error is due to memory corruption by i915.
--
Pelle
--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4F64A2BE.8070700@dsv.su.se">http://lists.debian.org/4F64A2BE.8070700@dsv.su.se
03-19-2012, 05:39 PM
Jonathan Nieder
Bug#659363: Hibernate freezes on HP dc7900 with Linux 3.2 (regression)
tags 659363 + moreinfo
quit
Per Olofsson wrote:
> I am in contact with Bojan Smojver who made some changes in the
> hibernate code for 3.2. He has given me further debugging hints, but he
> thinks that my error is due to memory corruption by i915.
Yes, I would want to rule out an i915 problem, too.
Thanks and hope that helps,
Jonathan
--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120319183958.GA14753@burratino">http://lists.debian.org/20120319183958.GA14753@burratino
03-19-2012, 07:13 PM
Per Olofsson
Bug#659363: Hibernate freezes on HP dc7900 with Linux 3.2 (regression)
2012-03-19 19:39, Jonathan Nieder skrev:
>> I am in contact with Bojan Smojver who made some changes in the
>> hibernate code for 3.2. He has given me further debugging hints, but he
>> thinks that my error is due to memory corruption by i915.
>
> Yes, I would want to rule out an i915 problem, too.
I have ruled it out now. The bug occurs even if I never load i915 and
the vbox* modules. It has to do with the size of the image written to disk.
For more details see:
https://bugzilla.redhat.com/show_bug.cgi?id=785384
--
Pelle
--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4F679384.5050704@dsv.su.se">http://lists.debian.org/4F679384.5050704@dsv.su.se
03-19-2012, 07:26 PM
Jonathan Nieder
Bug#659363: Hibernate freezes on HP dc7900 with Linux 3.2 (regression)
> I have ruled it out now. The bug occurs even if I never load i915 and
> the vbox* modules. It has to do with the size of the image written to disk.
>
> For more details see:
> https://bugzilla.redhat.com/show_bug.cgi?id=785384
Thanks.
--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120319202602.GC21963@burratino">http://lists.debian.org/20120319202602.GC21963@burratino
04-01-2012, 06:37 PM
Udo Richter
Bug#659363: Hibernate freezes on HP dc7900 with Linux 3.2 (regression)
It seems I am seeing the same bug too, on
linux-image-3.2.0-0.bpo.1-686-pae, 3.2.4-1~bpo60+1. However, I'm on an
nVidia nForce 570 chipset (AMD A64-x2), esp. using the sata_nv driver.
About half of the hibernate-disk cycles do work, the other half starts
writing the image to some point just normally, but after a few seconds
the disk writer gets extremely slow (around 1% per minute), and after
some more minutes, the kernel throws page allocation failures:
The output matches the screenshot that was posted to the redhat bug
tracker on 2012-03-28, so it looks like the same issue: Running out of
memory, maybe because hibernate buffers eated it.
Cheers,
Udo
04-01-2012, 07:30 PM
Jonathan Nieder
Bug#659363: Hibernate freezes on HP dc7900 with Linux 3.2 (regression)
Hi Udo,
Udo Richter wrote:
> It seems I am seeing the same bug too
Please test the attached patch[2], for example by following the following
instructions:
0. Prerequisites.
apt-get install git build-essential
1. Get a copy of the kernel history if you don't already have it.
cd linux
git remote add -f stable
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
3. Configure, build, and test.
cp /boot/config-$(uname -r) .config; # current configuration
make localmodconfig; # optional: minimize configuration
make deb-pkg; # optionally with -j<num> for parallel build
dpkg -i ../<name of package>; # as root
reboot
... test test test ...
4. Hopefully it reproduces the bug. Try the patch:
git am -3sc <path to patch>
make deb-pkg; # maybe with -j4
dpkg -i ../<name of package>; # as root
reboot
... test test test ...
An alternative method for testing patches is described at [1].
Hope that helps,
Jonathan
[1] http://kernel-handbook.alioth.debian.org/ch-common-tasks.html#s-common-official
or the corresponding page from the debian-kernel-handbook package
[2] from http://thread.gmane.org/gmane.linux.kernel/1273425