Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 420193 - Resume from suspend to RAM fails (kernel panic)
Summary: Resume from suspend to RAM fails (kernel panic)
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-08 06:52 UTC by René Korthaus
Modified: 2012-07-17 15:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Output of emerge --info (emerge--info.txt,5.20 KB, text/plain)
2012-06-08 06:52 UTC, René Korthaus
Details
Output of lsmod (lsmod.txt,2.17 KB, text/plain)
2012-06-08 06:53 UTC, René Korthaus
Details
Kernel dumps after resume from suspend (dumps.txt,237.84 KB, text/plain)
2012-06-08 06:53 UTC, René Korthaus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description René Korthaus 2012-06-08 06:52:36 UTC
Created attachment 314639 [details]
Output of emerge --info

I have an HP EliteBook 8440p on which resume after suspend (using sys-power/pm-utils) is failing with a kernel panic in 2/10 cases. I already started debugging the issue and found the kernel either crashing with "BUG: unable to handle kernel paging request at (address)" or "BUG: unable to handle kernel NULL pointer dereference at (address)". The stack trace belonging always seems to be related to a different process.

Latest Ubuntu 12.04 is working fine with suspend/resume on this machine.

I already tried to track down the problem disabling suspicious hard-/software:
* disabled Broadcom WiFi card via BIOS: no effect
* unloaded broadcom drivers from kernel before suspend: no effect
* try suspend without X running: no effect
* unloaded VirtualBox kernel modules from kernel before suspend: no effect

I must note that we are using VirtualBox and x11-drivers/nvidia-drivers on this machine. I tested the same setup on the successor of the EliteBook 8440p, the EliteBook 8460p. It uses an Intel WiFi chip and ATI graphics. Here, suspend/resume works fine.

Attached you'll find the output of emerge --info, lsmod, and several dumps I made using the serial console.
Comment 1 René Korthaus 2012-06-08 06:53:00 UTC
Created attachment 314641 [details]
Output of lsmod
Comment 2 René Korthaus 2012-06-08 06:53:25 UTC
Created attachment 314643 [details]
Kernel dumps after resume from suspend
Comment 3 Wormo (RETIRED) gentoo-dev 2012-06-08 07:26:54 UTC
Can you do a fresh boot straight into text mode (i.e. don't load the nvidia stuff) with some suspend/resume cycles, to see if it ever panics without nvidia or virtualbox drivers? 

Assuming that still shows the problem, next step would be to build your kernel with memory debugging features on and see if you can catch a memory corruption bug closer to when it happens instead of during resume.
Comment 4 René Korthaus 2012-06-08 10:47:58 UTC
(In reply to comment #3)
> Can you do a fresh boot straight into text mode (i.e. don't load the nvidia
> stuff) with some suspend/resume cycles, to see if it ever panics without
> nvidia or virtualbox drivers? 
> 
> Assuming that still shows the problem, next step would be to build your
> kernel with memory debugging features on and see if you can catch a memory
> corruption bug closer to when it happens instead of during resume.

Still panics without VirtualBox and nvidia drivers. Any hint on which memory debugging features to use and how to debug?
Comment 5 Mike Pagano gentoo-dev 2012-06-20 22:47:48 UTC
Have you tried with a vanilla kernel?
Comment 6 René Korthaus 2012-06-21 12:22:04 UTC
Yes I have and I can confirm that it also fails with a vanilla kernel.
Comment 7 Mike Pagano gentoo-dev 2012-06-22 18:50:39 UTC
Can you please post a kernel oops with VirtualBox not loaded?
Comment 8 Mike Pagano gentoo-dev 2012-06-22 18:50:56 UTC
That should have read *without* VirtualBox loaded.