Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 122277 - Kernel warm reboot fails, will only cold boot. Possible regression from kernel linux-2.6.14-gentoo-r5
Summary: Kernel warm reboot fails, will only cold boot. Possible regression from kerne...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
Depends on:
Reported: 2006-02-09 09:51 UTC by Tersius
Modified: 2006-02-21 03:47 UTC (History)
1 user (show)

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

dmesg of working kernel (dmesg-2.6.14-gentoo-r5.txt,17.24 KB, text/plain)
2006-02-09 13:43 UTC, Tersius
dmesg crash (dmesg_crash.JPG,550.18 KB, image/jpeg)
2006-02-10 01:49 UTC, Tersius
dmesg_crash2.6.16-rc2.jpg (dmesg_crash2.6.16-rc2.jpg,75.32 KB, image/jpeg)
2006-02-10 11:05 UTC, Tristan Heaven (RETIRED)
patch (usb-pci-quirk-verbose.patch,2.36 KB, patch)
2006-02-12 09:46 UTC, Daniel Drake (RETIRED)
Details | Diff
patch (usb-pci-quirk-verbose.patch,4.41 KB, patch)
2006-02-12 09:51 UTC, Daniel Drake (RETIRED)
Details | Diff
new patch (patch,2.61 KB, patch)
2006-02-18 05:51 UTC, Daniel Drake (RETIRED)
Details | Diff
patch for 2.6.14 (ehci-handoff-2.6.14.patch,565 bytes, patch)
2006-02-18 16:48 UTC, Daniel Drake (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tersius 2006-02-09 09:51:31 UTC
linux-2.6.14-gentoo-r5 works fine but when I upgrade to linux-2.6.15-gentoo-r1 or even vanilla linux-2.6.16-rc1 the problem occurs.

If I reboot my system the kernel boots up to a point and then just stops without any error messages. I have to do a cold/hard boot before the kernel will boot normally.

Here is the last 2 lines from dmesg where the crash occurs.
ehci_hcd 0000:00:1d.7: EHCI Host Controller
ehci_hcd 0000:00:1d.7: debug port 1

#emerge --info
Portage 2.0.54 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r2, 2.6.14-gentoo-r5 i686)
System uname: 2.6.14-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz
Gentoo Base System version 1.6.14
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
FEATURES="autoconfig candy ccache distlocks sandbox sfperms strict"
USE="x86 X acl acpi alsa apm audiofile avi bash-completion berkdb bitmap-fonts bonobo bzip2 cdr crypt cups curl dbus dvd dvdr eds emboss encode esd exif expat fam ffmpeg flac foomaticdb fortran gd gdbm gif gimpprint gjc glut gmp gnome gpm gstreamer gtk gtk2 gtkhtml hal idn imagemagick imlib innodb ipv6 java jpeg junit kde lcms ldap libg++ libwww lua mad matroska mhash mikmod mmx mmx2 mng motif mozilla mp3 mpeg mysql ncurses nls ogg oggvorbis openal opengl oss pam pcre pdflib perl png ppds python qt quicktime readline real recode samba sdl slang snmp spell sse sse2 ssl svga tcltk tcpd tiff truetype truetype-fonts type1-fonts udev usb vorbis win32codecs xine xinerama xml xml2 xmms xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Comment 1 Tersius 2006-02-09 13:43:04 UTC
Created attachment 79372 [details]
dmesg of working kernel
Comment 2 Tersius 2006-02-10 01:49:09 UTC
Created attachment 79415 [details]
dmesg crash
Comment 3 Daniel Drake (RETIRED) gentoo-dev 2006-02-10 09:09:02 UTC
Is this reproducible on the latest development kernel, currently 2.6.16-rc2?
Comment 4 Tersius 2006-02-10 10:53:13 UTC
Yes I can reproduce it in 2.6.16-rc2, I have found this post in the forums with a related problem.
Comment 5 Tersius 2006-02-10 10:58:01 UTC
With the new kernel( 2.6.16-rc2) it crashes when it registers the IO Schedulers.
Comment 6 Daniel Drake (RETIRED) gentoo-dev 2006-02-10 11:02:52 UTC
(In reply to comment #5)
> With the new kernel( 2.6.16-rc2) it crashes when it registers the IO
> Schedulers.

Please elaborate - what is the crash message?
Comment 7 Tersius 2006-02-10 11:05:13 UTC
I'm getting someone to upload the new picture I have taken. It will be up shortly.
Comment 8 Tristan Heaven (RETIRED) gentoo-dev 2006-02-10 11:05:42 UTC
Created attachment 79448 [details]

Attached on behalf of Tersius.
Comment 9 Daniel Drake (RETIRED) gentoo-dev 2006-02-11 03:15:22 UTC
Probably this bug:

Please try this patch:
Comment 10 Tersius 2006-02-11 08:36:08 UTC
Seems to be the same as
Comment 11 Daniel Drake (RETIRED) gentoo-dev 2006-02-12 09:46:48 UTC
Created attachment 79575 [details, diff]

Please try this patch. It includes the one mentioned above so you may need to revert that first (patch -R).
Comment 12 Daniel Drake (RETIRED) gentoo-dev 2006-02-12 09:51:09 UTC
Created attachment 79577 [details, diff]

Wrong patch. Please use this one instead.
Comment 13 Daniel Drake (RETIRED) gentoo-dev 2006-02-17 08:50:28 UTC
Bump. Any news?
Comment 14 Tersius 2006-02-18 01:19:04 UTC
I have tried that patch with 2.6.16-rc3 and it still crashes.
Here is a screenshot. <a href=""><img src="" border="0" width="1632" alt="Image Hosted by" /></a>
Comment 15 Daniel Drake (RETIRED) gentoo-dev 2006-02-18 05:51:21 UTC
Created attachment 80094 [details, diff]
new patch

Please try this one against 2.6.16-rc4
It won't solve the patch but should give a definate answer where the hang is occurring.
Comment 16 Tersius 2006-02-18 07:44:57 UTC
Here is the latest screenshot with your patch.
Comment 17 Daniel Drake (RETIRED) gentoo-dev 2006-02-18 08:05:05 UTC
Will track upstream bug
Comment 18 Daniel Drake (RETIRED) gentoo-dev 2006-02-18 16:48:19 UTC
Created attachment 80135 [details, diff]
patch for 2.6.14

This may sound a bit odd but it will help debug the problem. Please apply this patch to your working 2.6.14 kernel, and also enable this option:

[*]   USB verbose debug messages (CONFIG_USB_DEBUG)

After recompiling and rebooting into it, please attach a new dmesg log here.
Comment 19 Tersius 2006-02-19 03:54:55 UTC
I have upgraded the BIOS and also disbaled usb legacy support and it seems as if the problem has gone away.

I will test it for a while and see what happens.
Currently running 2.6.16-rc4 and it warm boots fine.
Comment 20 Daniel Drake (RETIRED) gentoo-dev 2006-02-19 07:14:00 UTC
Ok, thanks for trying that. Could you also try enabling usb legacy support and see if that brings the problem back?

If my understanding is correct, all of this handoff stuff is designed to make USB legacy work ok.
Comment 21 Daniel Drake (RETIRED) gentoo-dev 2006-02-21 03:47:19 UTC
Problem doesn't resurface with USB legacy turned on, must have been a BIOS bug. Thanks for your effort towards solving this.