Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 208843 - gentoo-sources-2.6.24 - rmmod iwl3945 causes computer's freeze
Summary: gentoo-sources-2.6.24 - rmmod iwl3945 causes computer's freeze
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard: linux-2.6.25
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-04 12:42 UTC by elyahou
Modified: 2008-04-17 17:36 UTC (History)
2 users (show)

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


Attachments
error message screenshot (SP_A0202.jpg,954.32 KB, image/jpeg)
2008-02-05 12:39 UTC, elyahou
Details

Note You need to log in before you can comment on or make changes to this bug.
Description elyahou 2008-02-04 12:42:17 UTC
I have iwl3945 and mac80211 as kernel modules (2.6.24-gentoo)

if I rmmod or modprobe -r iwl3945, Two LEDS start flashind and the PC freezes, i am forced to reboot...

# modinfo iwl3945
filename:       /lib/modules/2.6.24-gentoo/kernel/drivers/net/wireless/iwlwifi/iwl3945.ko
license:        GPL
author:         Copyright(c) 2003-2007 Intel Corporation
version:        1.1.17kds
description:    Intel(R) PRO/Wireless 3945ABG/BG Network Connection driver for Linux
srcversion:     84FCA8FBB1030866AE48574
alias:          pci:v00008086d00004227sv*sd*bc*sc*i*
alias:          pci:v00008086d00004222sv*sd*bc*sc*i*
depends:        mac80211
vermagic:       2.6.24-gentoo SMP mod_unload CORE2
parm:           antenna:select antenna (1=Main, 2=Aux, default 0 [both]) (int)
parm:           disable:manually disable the radio (default 0 [radio on]) (int)
parm:           hwcrypto:using hardware crypto engine (default 0 [software])
 (int)
parm:           debug:debug output mask (int)
parm:           disable_hw_scan:disable hardware scanning (default 0) (int)
parm:           queues_num:number of hw queues. (int)
parm:           qos_enable:enable all QoS functionality (int)

Reproducible: Always
Comment 1 elyahou 2008-02-04 21:10:15 UTC
i try to rmmod with -v option:

output:

rmmod iwl3945,wait=no
Oops:0000 [#1]SMP
Modules linked in:fuse
Comment 2 Daniel Drake (RETIRED) gentoo-dev 2008-02-04 21:25:27 UTC
Does anything appear after that?

If you run the rmmod on a root console outside of X, you will probably see a much more detailed crash report. Please capture that, either with digital camera or serial console.
Comment 3 elyahou 2008-02-04 22:07:21 UTC
the output of  rmmod -v iwl3945 i have paste was from the tty1 console and there was no more details...
Comment 4 elyahou 2008-02-05 12:37:33 UTC
I succeded in having a stack trace, i photographed that... (attachement)
Comment 5 elyahou 2008-02-05 12:39:17 UTC
Created attachment 142716 [details]
error message screenshot
Comment 6 Daniel Drake (RETIRED) gentoo-dev 2008-02-05 16:15:56 UTC
Great, thanks. Sorry to be a pain, any chance you could enable a framebuffer with higher resolution so that more text appears on screen? The top of the message has been cut off, and it might not have even been the first stack trace.
Comment 7 elyahou 2008-02-05 20:05:24 UTC
With a framebuffer we can see the beginning of the message. I uploaded the photo:

http://img176.imageshack.us/img176/1468/spa0203ur5.jpg

Scuse for the quality of the picture
Comment 8 elyahou 2008-02-08 00:54:16 UTC
I have posted the bug on Bughost ( http://bughost.org/bugzilla/show_bug.cgi?id=1548 ) and one tolds to me that the driver included in the kernel causes that bug...and advices to me to upgrade to iwlwifi-1.2.23, i think the ebuild of iwlwifi have to be modified so that we will be able to compile this driver with the new kernel.

thx
Comment 9 Daniel Drake (RETIRED) gentoo-dev 2008-02-09 16:13:13 UTC
I don't see any bug reports stating that 1.2.23 doesn't compile on 2.6.24. If that's the case, could you please file a new bug for that issue and mention it here?
Comment 10 Pacho Ramos gentoo-dev 2008-02-10 13:11:41 UTC
(In reply to comment #8)
> I have posted the bug on Bughost (
> http://bughost.org/bugzilla/show_bug.cgi?id=1548 ) and one tolds to me that the
> driver included in the kernel causes that bug...and advices to me to upgrade to
> iwlwifi-1.2.23, i think the ebuild of iwlwifi have to be modified so that we
> will be able to compile this driver with the new kernel.
> 
> thx
> 

Maybe other option would be patch kernel iwlwifi for updating it to 1.2.23 (or maybe do both: update iwlwifi provided by kernel (for Gentoo 2008.0 install) and also maintain iwlwifi ebuild for being able to get the latest iwlwifi if needed)
Comment 11 Daniel Drake (RETIRED) gentoo-dev 2008-02-10 13:20:59 UTC
we'll work on backporting a fix when it is confirmed that there is one
Comment 12 Daniel Drake (RETIRED) gentoo-dev 2008-03-11 16:48:39 UTC
Please can you test the latest development kernel, currently 2.6.25-rc5, and see how things work there?
Comment 13 elyahou 2008-03-12 15:28:09 UTC
Ok with the vanilla 2.6.25-RC5, I can modprobe -r iwl3945, i see that the version of the driver is 1.2.23... But this kernel don't leave me install the nvidia driver so I would install this driver with portage and with my actual kernel (2.6.24) 

Why the ebuild contains that:
	if kernel_is gt 2 6 23 ; then
		eerror "iwlwifi is included in 2.6.24, this ebuild is not guaranteed to"
		eerror "build against the newer kernel."
		die "invalid /usr/src/linux symlink"
Comment 14 Daniel Drake (RETIRED) gentoo-dev 2008-03-18 10:36:30 UTC
I don't understand why you're looking at the ebuild when you are using the in-kernel drivers.

Nevertheless, thanks for the testing, it looks like we'll be waiting for 2.6.25 to close this one.
Comment 15 Flavio 2008-04-01 21:21:03 UTC
(In reply to comment #14)
> I don't understand why you're looking at the ebuild when you are using the
> in-kernel drivers.
> 
> Nevertheless, thanks for the testing, it looks like we'll be waiting for 2.6.25
> to close this one.
> 

Hello! I have this problem too. I absolutely want to emerge iwlwifi driver, and not to use the one included into the kernel. That driver doesn't work as well as the portage one. It frequently disconnects from the AP, and it's not a good thing.

Is there a workaround to emerge that driver anyway?

Thanks
Comment 16 Daniel Drake (RETIRED) gentoo-dev 2008-04-02 08:54:31 UTC
Have you tried the latest development kernel, currently 2.6.25-rc7?
Comment 17 Flavio 2008-04-02 10:36:05 UTC
(In reply to comment #16)
> Have you tried the latest development kernel, currently 2.6.25-rc7?
> 

No I haven't. I prefer to use the last stable kernel release, which is 2.6.24-r4 at the moment.

Thanks.
Comment 18 Daniel Drake (RETIRED) gentoo-dev 2008-04-02 10:42:36 UTC
It would be useful if you could at least briefly try 2.6.25-rc8 for testing purposes. I think you will find the driver there is more up to date than what you will find externally, and hopefully your issues will be gone.
Comment 19 Daniel Drake (RETIRED) gentoo-dev 2008-04-02 10:43:37 UTC
And if you want to use the external version and it is not working with 2.6.24 you are welcome to file a new bug. This bug is about the kernel, but the iwlwifi external package is maintained by other people.
Comment 20 Daniel Drake (RETIRED) gentoo-dev 2008-04-17 17:36:21 UTC
gentoo-sources-2.6.25 is now in portage