Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 165365 - sys-kernel/gentoo-sources-2.6.19-r5 - software suspend freezes when hostap driver is used
Summary: sys-kernel/gentoo-sources-2.6.19-r5 - software suspend freezes when hostap dr...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-04 23:41 UTC by David Lublink
Modified: 2007-04-30 21:55 UTC (History)
0 users

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


Attachments
config file used to compile kernel (d_config,10.90 KB, text/plain)
2007-02-04 23:43 UTC, David Lublink
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Lublink 2007-02-04 23:41:45 UTC
When the HostAP driver is used on the computer (for the netgear ma401) card, software suspend will freeze before it completes. When it freezes, the last kernel message (with echo 5 >/proc/sys/kernel/printf) says 'suspending consoles'. It freezes and nothing else happens. (Harddrive light doesn't blink) I left it in this condition for several minutes and no response. The exact same kernel without Hostap (using hermes/orinoco instead) works properly.

Reproducible: Always

Steps to Reproduce:
1. Running with Kernel 2.6.19-r5 with Software Suspend and HostAP
2. echo disk >/sys/power/state or choose hibernate from Gnome shutdown menu
2. 
3.

Actual Results:  
Freezes after kernel message 'Suspending consoles'. Message will not appear unless I send 5 into /proc/sys/kernel/printf.

Expected Results:  
System should copy memory to harddisk and powerdown


This is my first bug report, so if I am missing any important information, feel free to email me and I will add it.
Comment 1 David Lublink 2007-02-04 23:43:05 UTC
Created attachment 109185 [details]
config file used to compile kernel

This is the contents from .config in the /usr/src/linux from which the kernel was compiled. I renamed it as not to upload a file starting with a period.
Comment 2 David Lublink 2007-02-04 23:44:27 UTC
Portage 2.1.1-r2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r4, 2.6.19-gentoo-r5 i686)
=================================================================
System uname: 2.6.19-gentoo-r5 i686 Intel(R) Pentium(R) III Mobile CPU      1066MHz
Gentoo Base System version 1.12.6
Last Sync: Sat, 03 Feb 2007 00:30:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium3 -mtune=pentium3 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O3 -march=pentium3 -mtune=pentium3 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="en fr"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aac acpi alsa alsa_cards_ali5451 alsa_cards_als4000 alsa_cards_atiixp alsa_cards_atiixp-modem alsa_cards_bt87x alsa_cards_ca0106 alsa_cards_cmipci alsa_cards_emu10k1x alsa_cards_ens1370 alsa_cards_ens1371 alsa_cards_es1938 alsa_cards_es1968 alsa_cards_fm801 alsa_cards_hda-intel alsa_cards_intel8x0 alsa_cards_intel8x0m alsa_cards_maestro3 alsa_cards_trident alsa_cards_usb-audio alsa_cards_via82xx alsa_cards_via82xx-modem alsa_cards_ymfpci alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol audacious avahi bash-completion berkdb binary-drivers bitmap-fonts bzip2 cairo cdr cli colordiff cracklib crypt css cups dbus divx dlloader dri dvd dvdr dvdread eds elibc_glibc emboss encode esd fam ffmpeg firefox fortran gdbm gif gimp gnome gpm gstreamer gtk gtk2 hal iconv imap input_devices_evdev input_devices_keyboard input_devices_mouse java jpeg kernel_linux lame lcd_devices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_devices_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_ncurses lcd_devices_text libg++ linguas_en linguas_fr mad midi mikmod mozbranding mozcalendar mozdevelop mozdom mp3 mp4 mpeg mplayer msn multiuser ncurses nethack nfs nls nptl nptlonly nsplugin ntfs ogg opengl pam pcmcia pcre pdf perl png ppds pppd python quicktime rar readline real reflection samba sdl session sound spell spl ssl symlink tcpd timidity trayicon truetype truetype-fonts type1-fonts udev unicode unzip usb userland_GNU v4l video_cards_fglrx video_cards_radeon vim vnc vorbis win32codecs wma x11vnc xml xorg xsl xslt xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

Comment 3 David Lublink 2007-02-04 23:48:16 UTC
I have two compiled kernels on my system, one with hostap and one with hermes. Both boot with the same options in grub. The only difference between the two is this driver. Software suspend works on the hermes kernel but not the hostap kernel.

Comment 4 David Lublink 2007-02-04 23:50:48 UTC
Related forum thread: http://forums.gentoo.org/viewtopic-p-3886565.html
Comment 5 David Lublink 2007-02-05 17:55:02 UTC
I did further testing and found that if it is compiled in or compiled as a module I get the same results.
Comment 6 David Lublink 2007-02-05 18:01:39 UTC
I did step by step and found that if the hardware used in testing (netgear
ma401) is not inserted into the machine, it will suspend without issue. In
order for the bug to occur, the ma401 has to be inserted with hostap and
hostap_cs modules loaded.
Comment 7 David Lublink 2007-02-05 18:12:38 UTC
I did step by step and found that if the hardware used in testing (netgear
ma401) is not inserted into the machine, it will suspend without issue. In
order for the bug to occur, the ma401 has to be inserted with hostap and
hostap_cs modules loaded. If the hardware is inserted, but hostap and hostap_cs are not loaded, the machine will suspend to disk properly. If I use sys-power/hibernate-script and activate the option 'EjectCards Yes' it will suspend properly.
Comment 8 Daniel Drake (RETIRED) gentoo-dev 2007-04-07 15:21:43 UTC
Can you reproduce this with the latest development kernel, currently 2.6.21-rc6?
Comment 9 David Lublink 2007-04-16 02:18:37 UTC
I don't see the kernel version mentioned in portage. Where can I download it?
Comment 10 Daniel Drake (RETIRED) gentoo-dev 2007-04-16 11:39:58 UTC
-rc7 is now the latest. You can use ketchup: http://www.reactivated.net/weblog/archives/2007/04/using-ketchup-to-quickly-install-kernel-sources/
Comment 11 Daniel Drake (RETIRED) gentoo-dev 2007-04-30 21:55:48 UTC
Please reopen when you have tested with the latest development kernel (currently 2.6.21)