Skip to contentSkip to conversation

ath9k/ath5k + 80211s crash

ath9k-devel austinxxh-ath9k at yahoo.com 6 participants 10 messages Jun 2, 2009 – Jun 5, 2009

lore
Share & tools
lore
#0 lore raw

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 PM

Below 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 Xiao

BusyBox 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 S

S   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>] 0x80062504
Code: 02a0f809  02042021  8e450008

<34440800> 0220f809  02052821
8e440008  26c21100  3053fffc
Segmentation fault

_______________________________________________
Devel mailing list
[email protected]
http://open80211s.com/mailman/listinfo/devel

#1 lore raw
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
#2 lore raw
In reply to austinxxh-ath9k at yahoo.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 PM

Below 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 Xiao

BusyBox 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 S

S   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>] 0x80062504

Code: 02a0f809  02042021  8e450008
Quoted 9 lines

<34440800> 0220f809  02052821
8e440008  26c21100  3053fffc
Segmentation fault

_______________________________________________
Devel mailing list
[email protected]
http://open80211s.com/mailman/listinfo/devel

_______________________________________________
Devel mailing list
[email protected]
http://open80211s.com/mailman/listinfo/devel

#3 lore raw
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

#4 lore raw
In reply to Andrey Yurovsky

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 ->

http://git.kernel.org/?p=linux/kernel/git/linville/wireless-testing.git;a=blob;f=drivers/net/wireless/ath/ath5k/pcu.c;h=ec35503f6a40e6b6a1cc4323287b31e7cdd3a428;hb=HEAD#l733

Signature · 3 lines
GPG ID: 0xD21DB2DB
As you read this post global entropy rises. Have Fun ;-)
Nick
#5 lore raw
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_POINT here ->

http://git.kernel.org/?p=linux/kernel/git/linville/wireless-testing.git;a=blob;f=drivers/net/wireless/ath/ath5k/pcu.c;h=ec35503f6a40e6b6a1cc4323287b31e7cdd3a428;hb=HEAD#l733

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.

#6 lore raw

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_POINT here ->

http://git.kernel.org/?p=linux/kernel/git/linville/wireless-testing.git;a=blob;f=drivers/net/wireless/ath/ath5k/pcu.c;h=ec35503f6a40e6b6a1cc4323287b31e7cdd3a428;hb=HEAD#l733

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
#7 lore raw
Quoted 8 lines

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...

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

#8 lore raw
In reply to Nick Kossifidis
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_POINT here ->

http://git.kernel.org/?p=linux/kernel/git/linville/wireless-testing.git;a=blob;f=drivers/net/wireless/ath/ath5k/pcu.c;h=ec35503f6a40e6b6a1cc4323287b31e7cdd3a428;hb=HEAD#l733

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) 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...

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

#9 lore raw

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_POINT here ->

http://git.kernel.org/?p=linux/kernel/git/linville/wireless-testing.git;a=blob;f=drivers/net/wireless/ath/ath5k/pcu.c;h=ec35503f6a40e6b6a1cc4323287b31e7cdd3a428;hb=HEAD#l733

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);

Quoted 6 lines
Quoted 2 lines

We need to do this for NL80211_IFTYPE_MESH_POINT or 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