Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 257095 - [2.6.27 regression] oops on resume from hibernate
Summary: [2.6.27 regression] oops on resume from hibernate
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard: linux-2.6.27-regression
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-31 14:02 UTC by Petr Lanc
Modified: 2009-12-02 13:32 UTC (History)
1 user (show)

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


Attachments
2.6.27-r8 kernel .config (config-2.6.27-r8,53.33 KB, text/plain)
2009-01-31 14:03 UTC, Petr Lanc
Details
lspci -vv (lspci.txt,11.42 KB, text/plain)
2009-01-31 14:04 UTC, Petr Lanc
Details
dmesg before suspend to disk (dmesg.txt,22.43 KB, text/plain)
2009-02-02 09:24 UTC, Petr Lanc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Lanc 2009-01-31 14:02:21 UTC
I upgrade  kernel from sys-kernel/gentoo-sources-2.6.26-r4 to sys-kernel/gentoo-sources-2.6.27-r8 on my IBM ThinkPad R40. When I suspend linux with 'echo disk > /sys/power/state', system got suspended OK, but while resuming procedure, after few second reading from disk it freeze and CAPS LED blinking. I must power cycle or use magic sysrq+b to reboot. After that it reboots as usual. Unfortunately it produces no output to console, nor system logs.

I tried sys-kernel/gentoo-sources-2.6.28-r1, but it doest work, like sys-kernel/gentoo-sources-2.6.27-r8. With sys-kernel/gentoo-sources-2.6.26-r4 and older is all OK.

Suspend to ram work good with all kernels.

Reproducible: Always

Steps to Reproduce:
1. boot sys-kernel/gentoo-sources-2.6.27-r8
2. # echo disk > /sys/power/state
3. resume

Actual Results:  
Notebook freeze with cursor on blank screen and CAPS LED blinking, power cycle or magic sysrq+b needed.

Expected Results:  
Resume all processes as usual.

shana ~ # emerge --info
Portage 2.1.6.4 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.27-gentoo-r8 i686)
=================================================================
System uname: Linux-2.6.27-gentoo-r8-i686-Intel-R-_Pentium-R-_M_processor_1300MHz-with-glibc2.0
Timestamp of tree: Fri, 30 Jan 2009 05:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-lang/python:     2.5.2-r7
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium-m -msse -msse2 -funroll-loops -mfpmath=sse -mmmx -fomit-frame-pointer -fprefetch-loop-arrays -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O3 -march=pentium-m -msse -msse2 -funroll-loops -mfpmath=sse -mmmx -fomit-frame-pointer -fprefetch-loop-arrays -pipe"
DISTDIR="/home/tmp/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ http://mirror.switch.ch/mirror/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/ mirrors/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo/"
LANG="POSIX"
LDFLAGS="-Wl,-O1"
LINGUAS="cs en"
MAKEOPTS="-j2"
PKGDIR="/var/tmp/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac aalib acl acpi alsa asf bash-completion berkdb bzip2 cdparanoia cdrom cjk cli cracklib crypt cups dri dvd dvdread encode ffmpeg flac fontconfig foomaticdb fortran fuse gdbm gif gimpprint gpm gtk gtk2 iconv ieee1394 imagemagick imap immqt-bc iproute2 isdnlog jpeg kde lzo mad maildir midi mjpeg mmx mp3 mpeg mplayer mudflap ncurses network nls nptl nptlonly nsplugin objc ogg oggvorbis opengl openmp oss pam pcre pdf pdflib perl png ppds pppd python qt qt3 quicktime rar readline reflection samba sdl session slang sndfile spell spl sse sse2 ssl sysfs tcpd threads tiff truetype unicode usb vim-with-x vorbis wifi win32codecs wma wmf x264 x86 xinerama xorg xpm xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="cs en" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Petr Lanc 2009-01-31 14:03:50 UTC
Created attachment 180409 [details]
2.6.27-r8 kernel .config
Comment 2 Petr Lanc 2009-01-31 14:04:48 UTC
Created attachment 180410 [details]
lspci -vv
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2009-02-02 04:55:50 UTC
Can you please attach the dmesg output from _before_ you try to suspend to disk?
Comment 4 Petr Lanc 2009-02-02 09:24:38 UTC
Created attachment 180674 [details]
dmesg before suspend to disk
Comment 5 Petr Lanc 2009-02-05 10:23:47 UTC
I tried boot to single user without any other process running, unload all possible modules, kick off agp and firewire drivers from kernel, but without success. Its all the same...

I use manually configured/compiled kernel and genkernel generated initrd with lvm and luks (because of my encrypted filesystems and swap). 
Comment 6 Toralf Förster gentoo-dev 2009-02-18 13:41:55 UTC
(In reply to comment #5)
>(because of my encrypted filesystems and swap). 
Really off-topic here but do you have different partitions for swap and suspend-to-disk image ?
Comment 7 Petr Lanc 2009-02-18 17:55:20 UTC
(In reply to comment #6)
> (In reply to comment #5)
> >(because of my encrypted filesystems and swap). 
> Really off-topic here but do you have different partitions for swap and
> suspend-to-disk image ?
> 

No, it's the same one swap partition. Resuming is done after LUKS unlock from initrd.
Comment 8 Daniel Drake (RETIRED) gentoo-dev 2009-03-15 00:05:37 UTC
The caps lock blinking indicates a kernel crash. What do you see on the screen at that time?

Can you reproduce this on the latest development kernel, currently v2.6.29-rc8?
Comment 9 Petr Lanc 2009-03-16 13:15:04 UTC
When resuming, screen went blank, only cursor at top left corner blinks. (On older versins, where it works is screen blank with blinking cursor too.) After 2-4 seconds reding from disk, caps led begin blinking.

I tried sys-kernel/vanilla-sources-2.6.29_rc8, with the same result: blank screen and caps blinks.
Comment 10 Mike Pagano gentoo-dev 2009-05-01 22:17:49 UTC
Any news here? Have you tested with vanilla-sources-2.6.29.1 ?
Comment 11 Petr Lanc 2009-05-05 08:01:37 UTC
I tried vanilla-2.6.29.1, but it's still the same: few seconds reading from disk, then freeze with blank screen and blinking caps led.
Comment 12 George Kadianakis (RETIRED) gentoo-dev 2009-05-08 19:06:30 UTC
(In reply to comment #11)
> I tried vanilla-2.6.29.1, but it's still the same: few seconds reading from
> disk, then freeze with blank screen and blinking caps led.
> 

Could you try booting with the no_console_suspend, nohz=off, highres=off options?

If that doesn't spit out any extra information, could you find the time and read:
Documentation/power/basic-pm-debugging.txt and Documentation/power/tricks.txt in your Linux sources? Not only will it be truly educating and beneficial to your every day life, but it may also help you debug/fix your problem!

Thanks!
Comment 13 Petr Lanc 2009-05-13 08:50:57 UTC
I tried sys-kernel/gentoo-sources-2.6.28-r5 with parameters no_console_suspend nohz=off highres=off. When it freeze during resuming it printed:

ACPI: Hardware changed while hibernated, cannot resume!
Kernel panic - not syncing: ACPI S4 hardware signature mismatch

Indeed, I don't do anything, like add or remove HW.
Comment 14 Daniel Drake (RETIRED) gentoo-dev 2009-05-16 15:41:05 UTC
Excellent, something we can work from :)

Can you reproduce this on the latest development kernel, currently v2.6.30-rc6?
Comment 15 Daniel Drake (RETIRED) gentoo-dev 2009-05-16 15:44:08 UTC
a workaround for this issue: boot with acpi_sleep=s4_nohwsig

Seems to indicate a bug in your BIOS, so you could also try upgrading that. Let's continue with testing 2.6.30 (without workaround) and then we can ask upstream if there are any other options here.
Comment 17 Petr Lanc 2009-05-28 14:56:40 UTC
I tried sys-kernel/vanilla-sources-2.6.30_rc7 with parameters "no_console_suspend nohz=off highres=off". When resiming it silently die after few seconds from disk: Screen is blank, only cursor blinks, no message, no disk activity, no blinking caps lock and sysrq combinations doesn't work either. I tried add "acpi_sleep=s4_nohwsig" parameter, but it's the same. I will try upgrade BIOS, but I must get fdd first.
Comment 18 Petr Lanc 2009-05-29 09:17:22 UTC
I upgrade mys BIOS to newest available version (from 2006), but nothing changed. 2.6.30_rc7 silently freeze, gentoo/2.6.28-r5 says that hardware changed. 2.6.28-r5 with "acpi_sleep=s4_nohwsig" resume successfully, but 2.6.30_rc7 not.
Comment 19 George Kadianakis (RETIRED) gentoo-dev 2009-09-19 19:30:26 UTC
FYI, I tried to shake Novell's bug report a bit, some weeks ago, with this post:
https://bugzilla.novell.com/show_bug.cgi?id=450256#c45 but no one seems to be able to test it. 

Petr, you can either wait for some activity in Novell's bug report or just report this bug upstream :)
Comment 20 Clemmitt M. Sigler 2009-11-04 21:51:28 UTC
(In reply to comment #18)
> I upgrade mys BIOS to newest available version (from 2006), but nothing
> changed. 2.6.30_rc7 silently freeze, gentoo/2.6.28-r5 says that hardware
> changed. 2.6.28-r5 with "acpi_sleep=s4_nohwsig" resume successfully, but
> 2.6.30_rc7 not.

I wanted to enter my own problems and solutions with TuxOnIce on an IBM ThinkPad R40 into the bugzilla database :^)

I've had success with sleep/suspend-to-ram and hibernate/suspend-to-disk using both tuxonice-sources-2.6.30-r6 and tuxonice-sources-2.6.31.  At first, resume from suspend-to-disk hung with similar symptoms to those reported here by Petr Lanc.  Then I found this bug report, which led me to try adding the "acpi_sleep=s4_nohwsig" option to the kernel line in GRUB's config file.

Interestingly, this didn't help, and the resume-from-disk still hung at the same place, with the Caps Lock LED flashing.  I then changed the verbosity and console level options to print out way too much debug info.  At the same time I also uncommented the "FullSpeedCPU yes" option in common.conf.  Then the system resumed without any problems!  I put the comment output options back to their defaults, and now system hibernation works just fine :^)

So, I recommend trying "acpi_sleep=s4_nohwsig" as a kernel line option in the GRUB config file (/boot/grub/menu.lst or similar), and setting "FullSpeedCPU yes" in /etc/hibernate/common.conf.  At least that's what WFM.  If the "acpi_sleep=s4_nohwsig" option does make a difference, the Novell bug report which George Kadianakis mentions suggests upgrading/flashing to the latest BIOS version.  This may fix the BIOS bug.  HTH.

Clemmitt
Comment 21 Petr Lanc 2009-12-02 13:32:46 UTC
With recent kernel gentoo-sources-2.6.31-r6 and acpi_sleep=s4_nohwsig my notebook resume successfully! I'm realy glad. Tanks for help.

I think, bug can be closed.