Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 188071 - More mac80211 problems with iwlwifi
Summary: More mac80211 problems with iwlwifi
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Saleem Abdulrasool (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-08 04:23 UTC by David Carlos Manuelda
Modified: 2007-08-14 16:39 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Carlos Manuelda 2007-08-08 04:23:11 UTC
I have latest snapshot of iwlwifi (1.0.0), and I have a problem, sometimes (not all the times though) I have a kernel panic at boot.

I need to reboot many times in order to boot or have the kill switch on to avoid this (in last case, my system hangs when I remove the kill...)

I reported it upstream and they asked me if I had all the mac80211-9.x.x patches in kernel. As in bug #185255 there was removed a deadlock, I was wondering if this patches are really needed, and if so, asking a version bump with them.

This is the upstream report (with more info of kernel panic):
http://bughost.org/bugzilla/show_bug.cgi?id=1386

I have more panic examples, (in the above bug it occurred when unloading module, but I'll post more info as needed of the new kind of panic) 

Reproducible: Always
Comment 1 David Carlos Manuelda 2007-08-08 04:24:43 UTC
Another upstream example, this one with gentoo-sources:

http://bughost.org/bugzilla/show_bug.cgi?id=1406

Maybe this is all related to mac80211 and needs an urgent upgrade (in the meanwhile 2.6.23 is released?)
Comment 2 Ingmar Vanhassel (RETIRED) gentoo-dev 2007-08-08 11:57:30 UTC
In upstream GIT repos [1], you can see that the stable branch has a commit after the 1.0.0 release which works around a kernel panic bug. See this commit: [2].

Can you try saving the patch from [2] (the plain link at the top), copy the iwlwifi ebuild to a local overlay, and apply the patch from the ebuild?
Comment 3 Ingmar Vanhassel (RETIRED) gentoo-dev 2007-08-08 12:34:32 UTC
Awesome, I actually forgot to include the links ...

[1] http://intellinuxwireless.org/repos/?p=iwlwifi.git;a=shortlog;h=stable
[2] http://intellinuxwireless.org/repos/?p=iwlwifi.git;a=commitdiff;h=ff650eca47dd9d3fed5d125fec4eeefa21e9d007

/me goes to drink more coffee
Comment 4 David Carlos Manuelda 2007-08-08 15:07:31 UTC
I don't know how to patch files :(
I will read some documentation and try.
Comment 5 Ingmar Vanhassel (RETIRED) gentoo-dev 2007-08-08 15:21:04 UTC
David, like this:

- Copy the iwlwifi directory to a local overlay.
- Save the patch under [2], with the 'plain' link on that page, as "iwlwifi-kernel-panic-workaround.patch", and copy it to $LOCAL_OVERLAY/net-wireless/iwlwifi/files
- Paste this at the bottom of your LOCAL "iwlwifi-1.0.0.ebuild" (the one you copied in step 1)

src_unpack() {
	unpack ${A}
	cd "${S}"
	epatch "${FILESDIR}/${PN}-kernel-panic-workaround.patch"
}

- go to the directory where you copied "iwlwifi-1.0.0.ebuild" to, and do
"ebuild iwlwifi-1.0.0.ebuild manifest"

- emerge this new ebuild

- unload & reload iwlwifi module (modprobe -r iwl4965 && modprobe -i iwl4965) or reboot
Comment 6 David Carlos Manuelda 2007-08-08 23:47:08 UTC
Done, it compiles and installs. Let's see if it works well..
Thanks for the guide anyway :D !!

Don't close this, let me test for at least 10 days as this bug is not always reproducible. If within 10 days I don't have any other issue, I'll attach new iwlwifi-1.0.0-r1.ebuild and patch and this can be closed.

Thanks again.
Comment 7 David Carlos Manuelda 2007-08-14 16:39:30 UTC
I think it is included in upstream 1.0.0-1 snapshot, wich is in the main tree, so this should be fixed. Thanks.