* kernel panic with rt61pci
@ 2009-04-13 21:11 George Kadianakis
2009-04-13 21:41 ` Ivo van Doorn
0 siblings, 1 reply; 2+ messages in thread
From: George Kadianakis @ 2009-04-13 21:11 UTC (permalink / raw)
To: linux-wireless; +Cc: rt2400-devel
Greetings,
this mail is the result of:
http://bugs.gentoo.org/show_bug.cgi?id=262862
The problem is a 2.6.28 regression (which is fixed in 2.6.29) that
causes a kernel panic when rt61pci tries to connect to a router.
You can find a screenshot of the panic over here:
http://bugs.gentoo.org/attachment.cgi?id=185431
For more info, visit the Gentoo bug entry page.
Any ideas on the patch that fixes the crash?
Thanks :)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: kernel panic with rt61pci
2009-04-13 21:11 kernel panic with rt61pci George Kadianakis
@ 2009-04-13 21:41 ` Ivo van Doorn
0 siblings, 0 replies; 2+ messages in thread
From: Ivo van Doorn @ 2009-04-13 21:41 UTC (permalink / raw)
To: George Kadianakis; +Cc: linux-wireless, rt2400-devel
Hi,
> this mail is the result of:
> http://bugs.gentoo.org/show_bug.cgi?id=262862
>
> The problem is a 2.6.28 regression (which is fixed in 2.6.29) that
> causes a kernel panic when rt61pci tries to connect to a router.
>
> You can find a screenshot of the panic over here:
> http://bugs.gentoo.org/attachment.cgi?id=185431
> For more info, visit the Gentoo bug entry page.
>
> Any ideas on the patch that fixes the crash?
Yes, a very simple one actually.
As mentioned in the bugreport, going through all patches
is unfeasable. There are way too many patches and when you
do get the patch there are probably a lot of dependencies on earlier
patches.
However the bug occurs within Hardware crypto functionality,
this means that the best workaround is to disable the HW crypto itself.
Below is the patch which disables HW crypto by default. Note that it still
allows it to be enabled by using the nohwcrypt=0 module parameter.
If indeed the bug is not present in 2.6.29, I think below patch is the one
most worthwhile. :)
Ivo
---
diff --git a/drivers/net/wireless/rt2x00/rt2500usb.c b/drivers/net/wireless/rt2x00/rt2500usb.c
index 9e630e7..e1ba2e8 100644
--- a/drivers/net/wireless/rt2x00/rt2500usb.c
+++ b/drivers/net/wireless/rt2x00/rt2500usb.c
@@ -38,7 +38,7 @@
/*
* Allow hardware encryption to be disabled.
*/
-static int modparam_nohwcrypt = 0;
+static int modparam_nohwcrypt = 1;
module_param_named(nohwcrypt, modparam_nohwcrypt, bool, S_IRUGO);
MODULE_PARM_DESC(nohwcrypt, "Disable hardware encryption.");
diff --git a/drivers/net/wireless/rt2x00/rt61pci.c b/drivers/net/wireless/rt2x00/rt61pci.c
index 4346cd1..1e1bf5c 100644
--- a/drivers/net/wireless/rt2x00/rt61pci.c
+++ b/drivers/net/wireless/rt2x00/rt61pci.c
@@ -40,7 +40,7 @@
/*
* Allow hardware encryption to be disabled.
*/
-static int modparam_nohwcrypt = 0;
+static int modparam_nohwcrypt = 1;
module_param_named(nohwcrypt, modparam_nohwcrypt, bool, S_IRUGO);
MODULE_PARM_DESC(nohwcrypt, "Disable hardware encryption.");
diff --git a/drivers/net/wireless/rt2x00/rt73usb.c b/drivers/net/wireless/rt2x00/rt73usb.c
index 853b2b2..48a109a 100644
--- a/drivers/net/wireless/rt2x00/rt73usb.c
+++ b/drivers/net/wireless/rt2x00/rt73usb.c
@@ -39,7 +39,7 @@
/*
* Allow hardware encryption to be disabled.
*/
-static int modparam_nohwcrypt = 0;
+static int modparam_nohwcrypt = 1;
module_param_named(nohwcrypt, modparam_nohwcrypt, bool, S_IRUGO);
MODULE_PARM_DESC(nohwcrypt, "Disable hardware encryption.");
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-04-13 21:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-13 21:11 kernel panic with rt61pci George Kadianakis
2009-04-13 21:41 ` Ivo van Doorn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).