ath9k/ath5k + 80211s crash
Sorry, it should be "ath9k reboots, ath5k crashes, the dump log is for ath5k, while ath9k displayed nothing".
Quoted 122 lines · --- On Mon, 6/1/09, [email protected] <[email protected]> wrote:
From: [email protected] <[email protected]>
Subject: ath9k/ath5k + 80211s crash
To: [email protected], [email protected], [email protected]
Date: Monday, June 1, 2009, 10:43 PMBelow is what I saw today(compat-wireless 2009-05-21), I have both an ath9k and an ath5k card. ath9k crashes (see below), ath5k will just reboot the board after "ifconfig mesh up", any idea?
thanks,
X XiaoBusyBox v1.13.4 (2009-06-01 21:18:32 CDT) built-in shell (ash)
Enter 'help' for a list of built-in commands._______
________
__
||.-----.-----.-----.| | | |.----.| |_ | - || _ | -__| || | | || _|| _||_______|| __|_____|__|__||________||__| |____| |__| W I R E L E SS F R E E D O M
KAMIKAZE (bleeding edge, r16290) -------------------
* 10 oz Vodka Shake
well with ice and strain
* 10 oz Triple sec mixture into 10 shot glasses.
* 10 oz lime juice Salute!
---------------------------------------------------root@OpenWrt:/# iw dev wlan0 interface add mesh type mp mesh_id mesh root@OpenWrt:/# ifconfig -a | grep mesh mesh Link encap:Ethernet HWaddr 00:0B:6B:57:09:37 root@OpenWrt:/# ifconfig mesh up PCI error 1 at PCI addr 0x100109dc Data bus error, epc == c024f12c, ra == c024f128 Oops[#1]: Cpu 0 $ 0 : 00000000 00000000 deadc0de 000ffc00 $ 4 : b00109dc b0010000 b0010000 0000000a $ 8 : 80170000 83aeaed0 00080000 00000000 $12 : 00000000 839f04a8 802a0818 00000000 $16 : 000009dc 8016b710 83aea000 000003ff $20 : 83aeaea8 8016b6bc 0000001c 00000007 $24 : 00000000 80070000 $28 : 82c5c000 82c5dc90 7fb0d068 c024f128 Hi : 000000d8 Lo : 00000144 epc : c024f12c 0xc024f12c Not tainted ra : c024f128 0xc024f128 Status: 1000f403 KERNEL EXL IE Cause : 1080001c PrId : 00019374 (MIPS 24Kc) Modules linked in: nf_nat_tftp nf_conntrack_tftp nf_nat_irc nf_conntrack_irc nf_nat_ftp nf_conntrack_ftp i Process ifconfig (pid: 896, threadinfo=82c5c000, task=839f0000, tls=00000000) Stack : 83aea000 83a9d680 00000000 00000018 83aea000 83b109a0 83aea000 83aea000 00000300 83b101e0 82cddeb8 83b109a8 c025977c c0259700 ffffffff 00000000 00000002 00000000 00000003 00000000 00080000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000001 83b109a0 82cddec0 c02599e0 00000000 c025a164 00000001 8009525c 82cddb80 00000300 83b101e0 82cdd800 ... Call Trace:[<c025977c>] 0xc025977c [<c0259700>] 0xc0259700 [<c02599e0>] 0xc02599e0 [<c025a164>] 0xc025a164 [<8009525c>] 0x8009525c [<c01dcb64>] 0xc01dcb64 [<c01ff3b8>] 0xc01ff3b8 [<800dc19c>] 0x800dc19c [<c01eb4b0>] 0xc01eb4b0 [<800b4040>] 0x800b4040 [<801b85e8>] 0x801b85e8 [<801b4454>] 0x801b4454 [<800bdc94>] 0x800bdc94 [<800bdc94>] 0x800bdc94 [<801b632c>] 0x801b632c [<801b6b80>] 0x801b6b80 [<801ffbf8>] 0x801ffbf8 [<801ff9c8>] 0x801ff9c8 [<801b75f8>] 0x801b75f8 [<801b75ec>] 0x801b75ec [<801a75b8>] 0x801a75b8 [<800e0890>] 0x800e0890 [<800e0db0>] 0x800e0db0 [<801a7e30>] 0x801a7e30 [<800d5344>] 0x800d5344 [<800d51c0>] 0x800d51c0 [<801a7ebc>] 0x801a7ebc [<800e0e64>] 0x800e0e64 [<80062504>] 0x80062504 [<80062504>] 0x80062504Code: 02a0f809 02042021 8e450008<34440800> 0220f809 02052821
8e440008 26c211003053fffc
Segmentation fault_______________________________________________
Devel mailing list
[email protected]
http://open80211s.com/mailman/listinfo/devel
Quoted 2 lines · On Mon, Jun 1, 2009 at 11:52 PM, <[email protected]> wrote:
Sorry, it should be "ath9k reboots, ath5k crashes, the dump log is for ath5k, while ath9k displayed nothing".
Can you fit a debug kernel on your platform? The oops is pretty unintelligible as-is.
Signature · 1 line
Bob Copeland %% www.bobcopeland.com
With wireless-testing from a couple of days ago, an X86 system, and this patch:
http://osdir.com/ml/linux-wireless/2009-05/msg01241.html
ath9k can bring up a mesh point interface and doesn't crash for me, but there are no mesh beacons, so mesh isn't working. On ath5k, there are also no beacons and mesh doesn't work, but there's no crash.
Quoted 132 lines · On Mon, Jun 1, 2009 at 8:52 PM, <[email protected]> wrote:
Sorry, it should be "ath9k reboots, ath5k crashes, the dump log is for ath5k, while ath9k displayed nothing".
Quoted 113 lines · --- On Mon, 6/1/09, [email protected] <[email protected]> wrote:
From: [email protected] <[email protected]>
Subject: ath9k/ath5k + 80211s crash
To: [email protected], [email protected], [email protected]
Date: Monday, June 1, 2009, 10:43 PMBelow is what I saw today(compat-wireless 2009-05-21), I have both an ath9k and an ath5k card. ath9k crashes (see below), ath5k will just reboot the board after "ifconfig mesh up", any idea?
thanks,
X XiaoBusyBox v1.13.4 (2009-06-01 21:18:32 CDT) built-in shell (ash)
Enter 'help' for a list of built-in commands._______
________
__
||.-----.-----.-----.| | | |.----.| |_ | - || _ | -__| || | | || _|| _||_______|| __|_____|__|__||________||__| |____| |__| W I R E L E SS F R E E D O M
KAMIKAZE (bleeding edge, r16290) -------------------
* 10 oz Vodka Shake
well with ice and strain
* 10 oz Triple sec mixture into 10 shot glasses.
* 10 oz lime juice Salute!
---------------------------------------------------root@OpenWrt:/# iw dev wlan0 interface add mesh type mp mesh_id mesh root@OpenWrt:/# ifconfig -a | grep mesh mesh Link encap:Ethernet HWaddr 00:0B:6B:57:09:37 root@OpenWrt:/# ifconfig mesh up PCI error 1 at PCI addr 0x100109dc Data bus error, epc == c024f12c, ra == c024f128 Oops[#1]: Cpu 0 $ 0 : 00000000 00000000 deadc0de 000ffc00 $ 4 : b00109dc b0010000 b0010000 0000000a $ 8 : 80170000 83aeaed0 00080000 00000000 $12 : 00000000 839f04a8 802a0818 00000000 $16 : 000009dc 8016b710 83aea000 000003ff $20 : 83aeaea8 8016b6bc 0000001c 00000007 $24 : 00000000 80070000$28 :
82c5c00082c5dc907fb0d068c024f128
Hi :000000d8
Lo : 00000144
epc :c024f12c0xc024f12c
Not tainted
ra :c024f1280xc024f128
Status: 1000f403 KERNEL EXL IE
Cause :1080001c
PrId : 00019374 (MIPS 24Kc)Modules linked in: nf_nat_tftp nf_conntrack_tftp nf_nat_irc
nf_conntrack_ircnf_nat_ftpnf_conntrack_ftpi Process ifconfig (pid: 896, threadinfo=82c5c000, task=839f0000, tls=00000000)
Stack :83aea00083a9d68000000000 0000001883aea00083b109a083aea00083aea000
0000030083b101e082cddeb883b109a8c025977cc0259700ffffffff 00000000 00000002 00000000 00000003
00000000 00080000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 0000000183b109a082cddec0c02599e000000000c025a164000000018009525c82cddb800000030083b101e082cdd800
...Call Trace:[<c025977c>] 0xc025977c[<
c0259700>]0xc0259700
[<c02599e0>]0xc02599e0
[<c025a164>]0xc025a164
[<8009525c>]0x8009525c
[<c01dcb64>]0xc01dcb64
[<c01ff3b8>]0xc01ff3b8
[<800dc19c>]0x800dc19c
[<c01eb4b0>]0xc01eb4b0
[<800b4040>]0x800b4040
[<801b85e8>]0x801b85e8
[<801b4454>]0x801b4454
[<800bdc94>]0x800bdc94
[<800bdc94>]0x800bdc94
[<801b632c>]0x801b632c
[<801b6b80>]0x801b6b80
[<801ffbf8>]0x801ffbf8
[<801ff9c8>]0x801ff9c8
[<801b75f8>]0x801b75f8
[<801b75ec>]0x801b75ec
[<801a75b8>]0x801a75b8
[<800e0890>]0x800e0890
[<800e0db0>]0x800e0db0
[<801a7e30>]0x801a7e30
[<800d5344>]0x800d5344
[<800d51c0>]0x800d51c0
[<801a7ebc>]0x801a7ebc
[<800e0e64>]0x800e0e64
[<80062504>]0x80062504
[<80062504>]0x80062504Code: 02a0f809 02042021 8e450008Quoted 9 lines
<34440800> 0220f809 02052821
8e440008 26c211003053fffc
Segmentation fault_______________________________________________
Devel mailing list
[email protected]
http://open80211s.com/mailman/listinfo/devel_______________________________________________
Devel mailing list
[email protected]
http://open80211s.com/mailman/listinfo/devel
Quoted 5 lines · Andrey Yurovsky
With wireless-testing from a couple of days ago, an X86 system, and this patch:
http://osdir.com/ml/linux-wireless/2009-05/msg01241.html
ath9k can bring up a mesh point interface and doesn't crash for me, but there are no mesh beacons, so mesh isn't working. On ath5k, there are also no beacons and mesh doesn't work, but there's no crash.
If no one is really interested in fixing we should just disable mesh for both ath5k and ath9k.
Luis
2009/6/2 Andrey Yurovsky <[email protected]>:
Quoted 6 lines
With wireless-testing from a couple of days ago, an X86 system, and this patch:
http://osdir.com/ml/linux-wireless/2009-05/msg01241.html
ath9k can bring up a mesh point interface and doesn't crash for me, but there are no mesh beacons, so mesh isn't working. ?On ath5k, there are also no beacons and mesh doesn't work, but there's no crash.
Hmm, try adding NL80211_IFTYPE_MESH_POINT here ->
Signature · 3 lines
GPG ID: 0xD21DB2DB As you read this post global entropy rises. Have Fun ;-) Nick
Quoted 9 lines · Nick Kossifidis
2009/6/2 Andrey Yurovsky <[email protected]>:
Quoted 6 lines
With wireless-testing from a couple of days ago, an X86 system, and this patch:
http://osdir.com/ml/linux-wireless/2009-05/msg01241.html
ath9k can bring up a mesh point interface and doesn't crash for me, but there are no mesh beacons, so mesh isn't working. On ath5k, there are also no beacons and mesh doesn't work, but there's no crash.
Quoted 3 lines
Hmm, try adding
NL80211_IFTYPE_MESH_POINThere ->
It's already there, in ath5k_hw_set_opmode. We'll need to trace what's going on and see why we don't get beacons. Last night I had an ath5k MP suddenly start beaconing but I haven't been able to reproduce that yet.
Xiao -- to test beaconing, I set up a second network interface in monitor mode and capture frames with wireshark, in my case that's on a separate PC.
2009/6/3 Andrey Yurovsky <[email protected]>:
Quoted 10 lines · Nick Kossifidis
Quoted 9 lines
2009/6/2 Andrey Yurovsky <[email protected]>:
Quoted 6 lines
With wireless-testing from a couple of days ago, an X86 system, and this patch:
http://osdir.com/ml/linux-wireless/2009-05/msg01241.html
ath9k can bring up a mesh point interface and doesn't crash for me, but there are no mesh beacons, so mesh isn't working. ?On ath5k, there are also no beacons and mesh doesn't work, but there's no crash.
Quoted 8 lines
Quoted 3 lines
Hmm, try adding
NL80211_IFTYPE_MESH_POINThere ->It's already there, in
ath5k_hw_set_opmode. ?We'll need to trace what's going on and see why we don't get beacons. ?Last night I had an ath5k MP suddenly start beaconing but I haven't been able to reproduce that yet.
736 /* When in AP mode zero timer0 to start TSF */
737 if (ah->ah_op_mode == NL80211_IFTYPE_AP)
738 ath5k_hw_reg_write(ah, 0, AR5K_TIMER0);
We need to do this for NL80211_IFTYPE_MESH_POINT or DBA won't fire up and beacon queue wont start...
Signature · 3 lines
GPG ID: 0xD21DB2DB As you read this post global entropy rises. Have Fun ;-) Nick
Quoted 8 lines
736 /* When in AP mode zero timer0 to start TSF */ 737 if (
ah->ah_op_mode==NL80211_IFTYPE_AP) 738ath5k_hw_reg_write(ah, 0, AR5K_TIMER0);We need to do this for
NL80211_IFTYPE_MESH_POINTor DBA won't fire up and beacon queue wont start...
In my case, that is not a solution.
The problem is ath5k_hw_set_opmode() is called before mesh configuration.
Operation mode was set in a function ath5k_add_interface(),
but ath5k_hw_set_opmode() called before it.
So there's no chance to configure h/w in mesh mode.
If I add ath5k_reset() command at the end of ath5k_add_interface(), then beacon starts instantly.
I found what problem is, but I don't know what is neat solution.
So I hope someone who knows well about the atheros driver make a patch.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20090604/26750970/attachment.htm
Quoted 20 lines · Nick Kossifidis
2009/6/3 Andrey Yurovsky <[email protected]>:
Quoted 10 lines · Nick Kossifidis
Quoted 9 lines
2009/6/2 Andrey Yurovsky <[email protected]>:
Quoted 6 lines
With wireless-testing from a couple of days ago, an X86 system, and this patch:
http://osdir.com/ml/linux-wireless/2009-05/msg01241.html
ath9k can bring up a mesh point interface and doesn't crash for me, but there are no mesh beacons, so mesh isn't working. On ath5k, there are also no beacons and mesh doesn't work, but there's no crash.Quoted 8 lines
Quoted 3 lines
Hmm, try adding
NL80211_IFTYPE_MESH_POINThere ->It's already there, in
ath5k_hw_set_opmode. We'll need to trace what's going on and see why we don't get beacons. Last night I had an ath5k MP suddenly start beaconing but I haven't been able to reproduce that yet.
Quoted 6 lines
736 /* When in AP mode zero timer0 to start TSF */ 737 if (
ah->ah_op_mode==NL80211_IFTYPE_AP) 738ath5k_hw_reg_write(ah, 0, AR5K_TIMER0);We need to do this for
NL80211_IFTYPE_MESH_POINTor DBA won't fire up and beacon queue wont start...
Thanks Nik, that gets beaconing going but only after a issuing a scan (we have the same problem on rt2x00).
Quoted 5 lines
--
GPG ID:0xD21DB2DB
As you read this post global entropy rises. Have Fun ;-) Nick
2009/6/4 Andrey Yurovsky <[email protected]>:
Quoted 25 lines · Nick Kossifidis
Quoted 24 lines
2009/6/3 Andrey Yurovsky <[email protected]>:
Quoted 10 lines · Nick Kossifidis
Quoted 9 lines
2009/6/2 Andrey Yurovsky <[email protected]>:
Quoted 6 lines
With wireless-testing from a couple of days ago, an X86 system, and this patch:
http://osdir.com/ml/linux-wireless/2009-05/msg01241.html
ath9k can bring up a mesh point interface and doesn't crash for me, but there are no mesh beacons, so mesh isn't working. On ath5k, there are also no beacons and mesh doesn't work, but there's no crash.Quoted 8 lines
Quoted 3 lines
Hmm, try adding
NL80211_IFTYPE_MESH_POINThere ->It's already there, in
ath5k_hw_set_opmode. We'll need to trace what's going on and see why we don't get beacons. Last night I had an ath5k MP suddenly start beaconing but I haven't been able to reproduce that yet.736 /* When in AP mode zero timer0 to start TSF */ 737 if (
ah->ah_op_mode==NL80211_IFTYPE_AP) 738ath5k_hw_reg_write(ah, 0, AR5K_TIMER0);
Quoted 6 lines
Quoted 2 lines
We need to do this for
NL80211_IFTYPE_MESH_POINTor DBA won't fire up and beacon queue wont start...Thanks Nik, that gets beaconing going but only after a issuing a scan (we have the same problem on rt2x00).
Cool, i'll send a patch for this asap ;-)
Thanks for testing !
Signature · 3 lines
GPG ID: 0xD21DB2DB As you read this post global entropy rises. Have Fun ;-) Nick