Skip to contentSkip to conversation

minstrel_ht crashing kernel on IXP4xx platform during iperf throughput test

ath9k-devel oiioeu at aol.com 2 participants 5 messages Apr 14, 2010 – Apr 20, 2010 mac80211

lore
Share & tools
lore
#0 lore raw

maybe I should report to openwrt-devel list, but I think it is the problem of ath9k, caused by using the module minstrel_ht.
the reason I try minstrel_ht is I could only get around 50Mbps throughput rate by using ath9k for my AR9280 card. some developer said the low throughput is a known problem for ath9k on IPX4xx platform, it was kind of optimizing work. I still cannot see any light on this problem since last year.

I saw the crashing on several trunk since OpenWrt r20294, till r20851, yes it was caused by iperf test while it was just nice by ping test.
topology: PC1 - STA - AP - PC2

iperf/ping was form PC1 to PC2, the crash happened on both AP and STA,

see attachment for the log, Thank You !!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20100414/53743d89/attachment.htm
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: minstrel_ht_crashing.log
Url: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20100414/53743d89/attachment.txt

#1 lore raw
Quoted 2 lines

maybe I should report to openwrt-devel list, but I think it is the problem of ath9k, caused by using the module minstrel_ht.

I have the same issue using ath9k/minstrel_ht. I think the problem is due to the way the "streams" variable is calculated in minstrel_ht_get_group_idx(). I printed some info when the warning occurs:

minstrel_ht_get_group_idx[120]: streams 12 rate->flags & flags 32
minstrel_ht_get_group_idx[125]: minstrel_mcs_groups[0].streams 1
minstrel_mcs_groups[0].flags 0
minstrel_ht_get_group_idx[125]: minstrel_mcs_groups[1].streams 2
minstrel_mcs_groups[1].flags 0
minstrel_ht_get_group_idx[125]: minstrel_mcs_groups[2].streams 1
minstrel_mcs_groups[2].flags 128
minstrel_ht_get_group_idx[125]: minstrel_mcs_groups[3].streams 2
minstrel_mcs_groups[3].flags 128
minstrel_ht_get_group_idx[125]: minstrel_mcs_groups[4].streams 1
minstrel_mcs_groups[4].flags 32
minstrel_ht_get_group_idx[125]: minstrel_mcs_groups[5].streams 2
minstrel_mcs_groups[5].flags 32
minstrel_ht_get_group_idx[125]: minstrel_mcs_groups[6].streams 1
minstrel_mcs_groups[6].flags 160
minstrel_ht_get_group_idx[125]: minstrel_mcs_groups[7].streams 2
minstrel_mcs_groups[7].flags 160

------------[ cut here ]------------
WARNING: at /home/lorenzo/src/openwrt/buildroot/build_dir/linux-ar71xx/compat-wireless-2010-03-03/net/mac80211/rc80211_minstrel_ht.c:127
0x81f)
Modules linked in: ath9k ath9k_common ath9k_hw ath mac80211 cfg80211
compat_firmware_class compat deflate
cbc
Call Trace:[<80069d48>] 0x80069d48

[<80069d48>] 0x80069d48
[<81fa32f4>] 0x81fa32f4
[<80082d58>] 0x80082d58
[<81fa32f4>] 0x81fa32f4
[<81fa32f4>] 0x81fa32f4
[<800b9f90>] 0x800b9f90
[<8006de40>] 0x8006de40
[<81f81cbc>] 0x81f81cbc
[<81f280b4>] 0x81f280b4
[<81f2a26c>] 0x81f2a26c
[<800ba25c>] 0x800ba25c
[<81fc11f0>] 0x81fc11f0
[<81f2aa3c>] 0x81f2aa3c
[<81f273c8>] 0x81f273c8
[<81f262c4>] 0x81f262c4
[<8020b214>] 0x8020b214
[<81f23570>] 0x81f23570
[<800891d0>] 0x800891d0
[<800897e4>] 0x800897e4
[<80089e54>] 0x80089e54
[<8006082c>] 0x8006082c
[<800897e4>] 0x800897e4
[<804179e8>] 0x804179e8
[<81f23570>] 0x81f23570
[<80060820>] 0x80060820
[<80074024>] 0x80074024
[<80060820>] 0x80060820
[<8052bb0c>] 0x8052bb0c
[<804179e8>] 0x804179e8
[<80417a08>] 0x80417a08
[<8050f6e8>] 0x8050f6e8
[<80417a08>] 0x80417a08
[<8056c0fc>] 0x8056c0fc
[<8055be90>] 0x8055be90
[<80445428>] 0x80445428
[<805705f4>] 0x805705f4
[<8006f730>] 0x8006f730
[<805704c8>] 0x805704c8
[<8006f720>] 0x8006f720

---[ end trace 454674867bb3dfb4 ]---
Quoted 12 lines

the reason I try minstrel_ht is I could only get around 50Mbps throughput rate by using ath9k for my AR9280 card. some developer said the low throughput is a known problem for ath9k on IPX4xx platform, it was kind of optimizing work. I still cannot see any light on this problem since last year.

I saw the crashing on several trunk since OpenWrt r20294, till r20851, yes it was caused by iperf test while it was just nice by ping test.
topology: PC1 - STA - AP - PC2

iperf/ping was form PC1 to PC2, the crash happened on both AP and STA,

Quoted 10 lines

see attachment for the log, Thank You !!

_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

Regards

Lorenzo

#2 lore raw
Quoted 96 lines
Quoted 2 lines

maybe I should report to openwrt-devel list, but I think it is the problem of ath9k, caused by using the module minstrel_ht.

I have the same issue using ath9k/minstrel_ht. I think the problem is due to the way the "streams" variable is calculated in minstrel_ht_get_group_idx(). I printed some info when the warning occurs:

minstrel_ht_get_group_idx[120]: streams 12 ? ? ?rate->flags & flags 32 minstrel_ht_get_group_idx[125]: minstrel_mcs_groups[0].streams 1 ?minstrel_mcs_groups[0].flags 0 minstrel_ht_get_group_idx[125]: minstrel_mcs_groups[1].streams 2 ?minstrel_mcs_groups[1].flags 0 minstrel_ht_get_group_idx[125]: minstrel_mcs_groups[2].streams 1 ?minstrel_mcs_groups[2].flags 128 minstrel_ht_get_group_idx[125]: minstrel_mcs_groups[3].streams 2 ?minstrel_mcs_groups[3].flags 128 minstrel_ht_get_group_idx[125]: minstrel_mcs_groups[4].streams 1 ?minstrel_mcs_groups[4].flags 32 minstrel_ht_get_group_idx[125]: minstrel_mcs_groups[5].streams 2 ?minstrel_mcs_groups[5].flags 32 minstrel_ht_get_group_idx[125]: minstrel_mcs_groups[6].streams 1 ?minstrel_mcs_groups[6].flags 160 minstrel_ht_get_group_idx[125]: minstrel_mcs_groups[7].streams 2 ?minstrel_mcs_groups[7].flags 160

------------[ cut here ]------------
WARNING: at /home/lorenzo/src/openwrt/buildroot/build_dir/linux-ar71xx/compat-wireless-2010-03-03/net/mac80211/rc80211_minstrel_ht.c:127
0x81f)
Modules linked in: ath9k ath9k_common ath9k_hw ath mac80211 cfg80211
compat_firmware_class compat deflate
cbc
Call Trace:[<80069d48>] 0x80069d48

[<80069d48>] 0x80069d48
[<81fa32f4>] 0x81fa32f4
[<80082d58>] 0x80082d58
[<81fa32f4>] 0x81fa32f4
[<81fa32f4>] 0x81fa32f4
[<800b9f90>] 0x800b9f90
[<8006de40>] 0x8006de40
[<81f81cbc>] 0x81f81cbc
[<81f280b4>] 0x81f280b4
[<81f2a26c>] 0x81f2a26c
[<800ba25c>] 0x800ba25c
[<81fc11f0>] 0x81fc11f0
[<81f2aa3c>] 0x81f2aa3c
[<81f273c8>] 0x81f273c8
[<81f262c4>] 0x81f262c4
[<8020b214>] 0x8020b214
[<81f23570>] 0x81f23570
[<800891d0>] 0x800891d0
[<800897e4>] 0x800897e4
[<80089e54>] 0x80089e54
[<8006082c>] 0x8006082c
[<800897e4>] 0x800897e4
[<804179e8>] 0x804179e8
[<81f23570>] 0x81f23570
[<80060820>] 0x80060820
[<80074024>] 0x80074024
[<80060820>] 0x80060820
[<8052bb0c>] 0x8052bb0c
[<804179e8>] 0x804179e8
[<80417a08>] 0x80417a08
[<8050f6e8>] 0x8050f6e8
[<80417a08>] 0x80417a08
[<8056c0fc>] 0x8056c0fc
[<8055be90>] 0x8055be90
[<80445428>] 0x80445428
[<805705f4>] 0x805705f4
[<8006f730>] 0x8006f730
[<805704c8>] 0x805704c8
[<8006f720>] 0x8006f720

---[ end trace 454674867bb3dfb4 ]---
Quoted 12 lines

the reason I try minstrel_ht is I could only get around 50Mbps throughput rate by using ath9k for my AR9280 card. some developer said the low throughput is a known problem for ath9k on IPX4xx platform, it was kind of optimizing work. I still cannot see any light on this problem since last year.

I saw the crashing on several trunk since OpenWrt r20294, till r20851, yes it was caused by iperf test while it was just nice by ping test.
topology: PC1 - STA - AP - PC2

iperf/ping was form PC1 to PC2, the crash happened on both AP and STA,

Quoted 10 lines

see attachment for the log, Thank You !!

_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

Quoted 4 lines

Regards

Lorenzo

Could you please try this??

---

net/mac80211/rc80211_minstrel_ht.c +2 -2
@@ -318,9 +318,9 @@
 		if (!mg->supported)
 			continue;
 
-		if (++mg->index > MCS_GROUP_RATES) {
+		if (++mg->index >= MCS_GROUP_RATES) {
 			mg->index = 0;
-			if (++mg->column > ARRAY_SIZE(sample_table))
+			if (++mg->column >= ARRAY_SIZE(sample_table))
 				mg->column = 0;
 		}
 		break;

--

Regards

Lorenzo

#3 lore raw

YES, that basically solved the problem, I'm sorry being late, Thank you very much !!!
However, I still got 12Mbps of the throughput rate by iperf testing with AR9280(11na) on the IXP425 platform, that's incredible, I used to have around 60Mbps throughput, what makes the big difference of the latest trunk and the old trunk? do you have any idea?

-----Original Message-----
From: Lorenzo Bianconi <[email protected]>
To: oiioeu at aol.com
Cc: ath9k-devel at lists.ath9k.org; Matteo Croce <[email protected]>; nbd at openwrt.org
Sent: Fri, Apr 16, 2010 11:27 pm
Subject: Re: [ath9k-devel] minstrel_ht crashing kernel on IXP4xx platform during iperf throughput test

Quoted 96 lines
Quoted 2 lines

maybe I should report to openwrt-devel list, but I think it is the problem of ath9k, caused by using the module minstrel_ht.

I have the same issue using ath9k/minstrel_ht. I think the problem is due to the way the "streams" variable is calculated in minstrel_ht_get_group_idx(). I printed some info when the warning occurs:

minstrel_ht_get_group_idx[120]: streams 12 rate->flags & flags 32
minstrel_ht_get_group_idx[125]: minstrel_mcs_groups[0].streams 1
minstrel_mcs_groups[0].flags 0
minstrel_ht_get_group_idx[125]: minstrel_mcs_groups[1].streams 2
minstrel_mcs_groups[1].flags 0
minstrel_ht_get_group_idx[125]: minstrel_mcs_groups[2].streams 1
minstrel_mcs_groups[2].flags 128
minstrel_ht_get_group_idx[125]: minstrel_mcs_groups[3].streams 2
minstrel_mcs_groups[3].flags 128
minstrel_ht_get_group_idx[125]: minstrel_mcs_groups[4].streams 1
minstrel_mcs_groups[4].flags 32
minstrel_ht_get_group_idx[125]: minstrel_mcs_groups[5].streams 2
minstrel_mcs_groups[5].flags 32
minstrel_ht_get_group_idx[125]: minstrel_mcs_groups[6].streams 1
minstrel_mcs_groups[6].flags 160
minstrel_ht_get_group_idx[125]: minstrel_mcs_groups[7].streams 2
minstrel_mcs_groups[7].flags 160

------------[ cut here ]------------
WARNING: at /home/lorenzo/src/openwrt/buildroot/build_dir/linux-ar71xx/compat-wireless-2010-03-03/net/mac80211/rc80211_minstrel_ht.c:127
0x81f)
Modules linked in: ath9k ath9k_common ath9k_hw ath mac80211 cfg80211
compat_firmware_class compat deflate
cbc
Call Trace:[<80069d48>] 0x80069d48

[<80069d48>] 0x80069d48
[<81fa32f4>] 0x81fa32f4
[<80082d58>] 0x80082d58
[<81fa32f4>] 0x81fa32f4
[<81fa32f4>] 0x81fa32f4
[<800b9f90>] 0x800b9f90
[<8006de40>] 0x8006de40
[<81f81cbc>] 0x81f81cbc
[<81f280b4>] 0x81f280b4
[<81f2a26c>] 0x81f2a26c
[<800ba25c>] 0x800ba25c
[<81fc11f0>] 0x81fc11f0
[<81f2aa3c>] 0x81f2aa3c
[<81f273c8>] 0x81f273c8
[<81f262c4>] 0x81f262c4
[<8020b214>] 0x8020b214
[<81f23570>] 0x81f23570
[<800891d0>] 0x800891d0
[<800897e4>] 0x800897e4
[<80089e54>] 0x80089e54
[<8006082c>] 0x8006082c
[<800897e4>] 0x800897e4
[<804179e8>] 0x804179e8
[<81f23570>] 0x81f23570
[<80060820>] 0x80060820
[<80074024>] 0x80074024
[<80060820>] 0x80060820
[<8052bb0c>] 0x8052bb0c
[<804179e8>] 0x804179e8
[<80417a08>] 0x80417a08
[<8050f6e8>] 0x8050f6e8
[<80417a08>] 0x80417a08
[<8056c0fc>] 0x8056c0fc
[<8055be90>] 0x8055be90
[<80445428>] 0x80445428
[<805705f4>] 0x805705f4
[<8006f730>] 0x8006f730
[<805704c8>] 0x805704c8
[<8006f720>] 0x8006f720

---[ end trace 454674867bb3dfb4 ]---
Quoted 12 lines

the reason I try minstrel_ht is I could only get around 50Mbps throughput rate by using ath9k for my AR9280 card. some developer said the low throughput is a known problem for ath9k on IPX4xx platform, it was kind of optimizing work. I still cannot see any light on this problem since last year.

I saw the crashing on several trunk since OpenWrt r20294, till r20851, yes it was caused by iperf test while it was just nice by ping test.
topology: PC1 - STA - AP - PC2

iperf/ping was form PC1 to PC2, the crash happened on both AP and STA,

Quoted 10 lines

see attachment for the log, Thank You !!

_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

Quoted 4 lines

Regards

Lorenzo

Could you please try this??

---

net/mac80211/rc80211_minstrel_ht.c +2 -2
@@ -318,9 +318,9 @@
        if (!mg->supported)
            continue;
 
-       if (++mg->index > MCS_GROUP_RATES) {
+       if (++mg->index >= MCS_GROUP_RATES) {
            mg->index = 0;
-           if (++mg->column > ARRAY_SIZE(sample_table))
+           if (++mg->column >= ARRAY_SIZE(sample_table))
                mg->column = 0;
        }
        break;

--

Regards

Lorenzo

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20100419/5d5115c6/attachment.htm

#4 lore raw
In reply to Lorenzo Bianconi

Yes, that basically solved this problem, there was no kernel crash anymore, thank you very much.
since you had the same problem before, would mind telling me what is your throughput rate now? here I only have avg. 12Mbps, by iperf testing, AR9280( 11na ), HT40, IXP425, openwrt r20851

-----Original Message-----
From: Lorenzo Bianconi <[email protected]>
To: oiioeu at aol.com
Cc: ath9k-devel at lists.ath9k.org; Matteo Croce <[email protected]>; nbd at openwrt.org
Sent: Fri, Apr 16, 2010 11:27 pm
Subject: Re: [ath9k-devel] minstrel_ht crashing kernel on IXP4xx platform during iperf throughput test

Quoted 96 lines
Quoted 2 lines

maybe I should report to openwrt-devel list, but I think it is the problem of ath9k, caused by using the module minstrel_ht.

I have the same issue using ath9k/minstrel_ht. I think the problem is due to the way the "streams" variable is calculated in minstrel_ht_get_group_idx(). I printed some info when the warning occurs:

minstrel_ht_get_group_idx[120]: streams 12 rate->flags & flags 32
minstrel_ht_get_group_idx[125]: minstrel_mcs_groups[0].streams 1
minstrel_mcs_groups[0].flags 0
minstrel_ht_get_group_idx[125]: minstrel_mcs_groups[1].streams 2
minstrel_mcs_groups[1].flags 0
minstrel_ht_get_group_idx[125]: minstrel_mcs_groups[2].streams 1
minstrel_mcs_groups[2].flags 128
minstrel_ht_get_group_idx[125]: minstrel_mcs_groups[3].streams 2
minstrel_mcs_groups[3].flags 128
minstrel_ht_get_group_idx[125]: minstrel_mcs_groups[4].streams 1
minstrel_mcs_groups[4].flags 32
minstrel_ht_get_group_idx[125]: minstrel_mcs_groups[5].streams 2
minstrel_mcs_groups[5].flags 32
minstrel_ht_get_group_idx[125]: minstrel_mcs_groups[6].streams 1
minstrel_mcs_groups[6].flags 160
minstrel_ht_get_group_idx[125]: minstrel_mcs_groups[7].streams 2
minstrel_mcs_groups[7].flags 160

------------[ cut here ]------------
WARNING: at /home/lorenzo/src/openwrt/buildroot/build_dir/linux-ar71xx/compat-wireless-2010-03-03/net/mac80211/rc80211_minstrel_ht.c:127
0x81f)
Modules linked in: ath9k ath9k_common ath9k_hw ath mac80211 cfg80211
compat_firmware_class compat deflate
cbc
Call Trace:[<80069d48>] 0x80069d48

[<80069d48>] 0x80069d48
[<81fa32f4>] 0x81fa32f4
[<80082d58>] 0x80082d58
[<81fa32f4>] 0x81fa32f4
[<81fa32f4>] 0x81fa32f4
[<800b9f90>] 0x800b9f90
[<8006de40>] 0x8006de40
[<81f81cbc>] 0x81f81cbc
[<81f280b4>] 0x81f280b4
[<81f2a26c>] 0x81f2a26c
[<800ba25c>] 0x800ba25c
[<81fc11f0>] 0x81fc11f0
[<81f2aa3c>] 0x81f2aa3c
[<81f273c8>] 0x81f273c8
[<81f262c4>] 0x81f262c4
[<8020b214>] 0x8020b214
[<81f23570>] 0x81f23570
[<800891d0>] 0x800891d0
[<800897e4>] 0x800897e4
[<80089e54>] 0x80089e54
[<8006082c>] 0x8006082c
[<800897e4>] 0x800897e4
[<804179e8>] 0x804179e8
[<81f23570>] 0x81f23570
[<80060820>] 0x80060820
[<80074024>] 0x80074024
[<80060820>] 0x80060820
[<8052bb0c>] 0x8052bb0c
[<804179e8>] 0x804179e8
[<80417a08>] 0x80417a08
[<8050f6e8>] 0x8050f6e8
[<80417a08>] 0x80417a08
[<8056c0fc>] 0x8056c0fc
[<8055be90>] 0x8055be90
[<80445428>] 0x80445428
[<805705f4>] 0x805705f4
[<8006f730>] 0x8006f730
[<805704c8>] 0x805704c8
[<8006f720>] 0x8006f720

---[ end trace 454674867bb3dfb4 ]---
Quoted 12 lines

the reason I try minstrel_ht is I could only get around 50Mbps throughput rate by using ath9k for my AR9280 card. some developer said the low throughput is a known problem for ath9k on IPX4xx platform, it was kind of optimizing work. I still cannot see any light on this problem since last year.

I saw the crashing on several trunk since OpenWrt r20294, till r20851, yes it was caused by iperf test while it was just nice by ping test.
topology: PC1 - STA - AP - PC2

iperf/ping was form PC1 to PC2, the crash happened on both AP and STA,

Quoted 10 lines

see attachment for the log, Thank You !!

_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

Quoted 4 lines

Regards

Lorenzo

Could you please try this??

---

net/mac80211/rc80211_minstrel_ht.c +2 -2
@@ -318,9 +318,9 @@
        if (!mg->supported)
            continue;
 
-       if (++mg->index > MCS_GROUP_RATES) {
+       if (++mg->index >= MCS_GROUP_RATES) {
            mg->index = 0;
-           if (++mg->column > ARRAY_SIZE(sample_table))
+           if (++mg->column >= ARRAY_SIZE(sample_table))
                mg->column = 0;
        }
        break;

--

Regards

Lorenzo

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20100419/e7d0db6a/attachment-0001.htm