Re: [ath9k-devel] [Cerowrt-devel] Wireless failures 3.10.17-3

2013-12-14 Thread Dave Taht
On Fri, Dec 13, 2013 at 8:00 PM, Sujith Manoharan suj...@msujith.org wrote:
 Dave Taht wrote:
 OK, I couldn't help myself but boot up that release. Wet paint! It
 successfully brought up
 the 5ghz radio, but did not manage to assign an ip address to it
 (netifd bug?) and failed on the 2ghz radio utterly.

 trying to restart it manually fails to bring up the 5ghz radio as well.
 Here's an strace of that.

 http://snapon.lab.bufferbloat.net/~d/hostapd.strace.txt

 I don't see it beacon, either.

 Now, I don't have a grip on what started happening two releases back
 (I was out of town) but I figure it is perhaps more relevant than
 chasing the DMA tx thing. And ENOTIME for me on this til sunday. I
 will revert this patch and bisect backwards.

 I am not sure how the patch would break things.

 Booting OpenWrt trunk (with the patch) on an AP96 reference board seems
 to work fine: http://pastebin.com/3rPSfuad

 Sujith

We appear to have a deeper problem. I reverted your patch, moved my build back
to 3.10.21 to match openwrt, felix reverted some stuff in netifd...

... and on first boot, somehow, all the wireless interfaces come up.

After a reboot, most don't. doing openwrt's wifi up is also
interesting with all sorts of failures trying to bring up different
interfaces.

So I suspect netifd has a race still.

Afer we get that sorted, we can move onto trying to poke into the DMA
tx error, or since it seems by hammering on it I can get an interface
up I can move forward a bit, in parallel.

-- 
Dave Täht

Fixing bufferbloat with cerowrt: http://www.teklibre.com/cerowrt/subscribe.html
___
ath9k-devel mailing list
ath9k-devel@lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel


Re: [ath9k-devel] [Cerowrt-devel] Wireless failures 3.10.17-3

2013-12-13 Thread Sujith Manoharan
Sebastian Moeller wrote:
 It is a net gear WNDR3700 v2, so according to:
 http://wiki.openwrt.org/toh/netgear/wndr3700 it is a Atheros AR7161 rev 2 680
 MHz soc with the following wireless parts: Atheros AR9223 802.11bgn / Atheros
 AR9220 802.11an.
 
 Sure, I hope I got the right one. Now this is not from the same boot as the
 one with the errors, but I assume that does not make a difference… Since I am
 located in Germany I set the regulatory domain to DE. please let me know if I
 you need any additional information or testing (note I am not set up to build
 cerowrt myself, so I would need Dave Täht's help to build a modified firmware)

Can you try this patch ?

diff --git a/drivers/net/wireless/ath/ath9k/ar9002_mac.c 
b/drivers/net/wireless/ath/ath9k/ar9002_mac.c
index 8d78253..0337de7 100644
--- a/drivers/net/wireless/ath/ath9k/ar9002_mac.c
+++ b/drivers/net/wireless/ath/ath9k/ar9002_mac.c
@@ -76,9 +76,16 @@ static bool ar9002_hw_get_isr(struct ath_hw *ah, enum 
ath9k_int *masked)
mask2 |= ATH9K_INT_CST;
if (isr2  AR_ISR_S2_TSFOOR)
mask2 |= ATH9K_INT_TSFOOR;
+
+   if (!(pCap-hw_caps  ATH9K_HW_CAP_RAC_SUPPORTED)) {
+   REG_WRITE(ah, AR_ISR_S2, isr2);
+   isr = ~AR_ISR_BCNMISC;
+   }
}
 
-   isr = REG_READ(ah, AR_ISR_RAC);
+   if (pCap-hw_caps  ATH9K_HW_CAP_RAC_SUPPORTED)
+   isr = REG_READ(ah, AR_ISR_RAC);
+
if (isr == 0x) {
*masked = 0;
return false;
@@ -97,11 +104,23 @@ static bool ar9002_hw_get_isr(struct ath_hw *ah, enum 
ath9k_int *masked)
 
*masked |= ATH9K_INT_TX;
 
-   s0_s = REG_READ(ah, AR_ISR_S0_S);
+   if (pCap-hw_caps  ATH9K_HW_CAP_RAC_SUPPORTED) {
+   s0_s = REG_READ(ah, AR_ISR_S0_S);
+   s1_s = REG_READ(ah, AR_ISR_S1_S);
+   } else {
+   s0_s = REG_READ(ah, AR_ISR_S0);
+   REG_WRITE(ah, AR_ISR_S0, s0_s);
+   s1_s = REG_READ(ah, AR_ISR_S1);
+   REG_WRITE(ah, AR_ISR_S1, s1_s);
+
+   isr = ~(AR_ISR_TXOK |
+AR_ISR_TXDESC |
+AR_ISR_TXERR |
+AR_ISR_TXEOL);
+   }
+
ah-intr_txqs |= MS(s0_s, AR_ISR_S0_QCU_TXOK);
ah-intr_txqs |= MS(s0_s, AR_ISR_S0_QCU_TXDESC);
-
-   s1_s = REG_READ(ah, AR_ISR_S1_S);
ah-intr_txqs |= MS(s1_s, AR_ISR_S1_QCU_TXERR);
ah-intr_txqs |= MS(s1_s, AR_ISR_S1_QCU_TXEOL);
}
@@ -120,7 +139,12 @@ static bool ar9002_hw_get_isr(struct ath_hw *ah, enum 
ath9k_int *masked)
if (isr  AR_ISR_GENTMR) {
u32 s5_s;
 
-   s5_s = REG_READ(ah, AR_ISR_S5_S);
+   if (pCap-hw_caps  ATH9K_HW_CAP_RAC_SUPPORTED) {
+   s5_s = REG_READ(ah, AR_ISR_S5_S);
+   } else {
+   s5_s = REG_READ(ah, AR_ISR_S5);
+   }
+
ah-intr_gen_timer_trigger =
MS(s5_s, AR_ISR_S5_GENTIMER_TRIG);
 
@@ -133,6 +157,16 @@ static bool ar9002_hw_get_isr(struct ath_hw *ah, enum 
ath9k_int *masked)
if ((s5_s  AR_ISR_S5_TIM_TIMER) 
!(pCap-hw_caps  ATH9K_HW_CAP_AUTOSLEEP))
*masked |= ATH9K_INT_TIM_TIMER;
+
+   if (!(pCap-hw_caps  ATH9K_HW_CAP_RAC_SUPPORTED)) {
+   REG_WRITE(ah, AR_ISR_S5, s5_s);
+   isr = ~AR_ISR_GENTMR;
+   }
+   }
+
+   if (!(pCap-hw_caps  ATH9K_HW_CAP_RAC_SUPPORTED)) {
+   REG_WRITE(ah, AR_ISR, isr);
+   REG_READ(ah, AR_ISR);
}
 
if (sync_cause) {


A version that applies over OpenWrt trunk is here:
http://msujith.org/dir/patches/wl/Dec-13-2013/0001-ath9k-Interrupt-handling-fix-for-AR9002-family.patch

Sujith
___
ath9k-devel mailing list
ath9k-devel@lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel


Re: [ath9k-devel] [Cerowrt-devel] Wireless failures 3.10.17-3

2013-12-13 Thread Sebastian Moeller
Hi Sujith,

On Dec 13, 2013, at 10:27 , Sujith Manoharan suj...@msujith.org wrote:

 Sebastian Moeller wrote:
 It is a net gear WNDR3700 v2, so according to:
 http://wiki.openwrt.org/toh/netgear/wndr3700 it is a Atheros AR7161 rev 2 680
 MHz soc with the following wireless parts: Atheros AR9223 802.11bgn / Atheros
 AR9220 802.11an.
 
 Sure, I hope I got the right one. Now this is not from the same boot as the
 one with the errors, but I assume that does not make a difference… Since I am
 located in Germany I set the regulatory domain to DE. please let me know if I
 you need any additional information or testing (note I am not set up to build
 cerowrt myself, so I would need Dave Täht's help to build a modified 
 firmware)
 
 Can you try this patch ?

I will, but it will take some time, as I cannot build the firmware for 
this device myself, but need help. So I let you know once I tested the patched 
kernel.

Best Regards  many thanks
Sebastian


 
 diff --git a/drivers/net/wireless/ath/ath9k/ar9002_mac.c 
 b/drivers/net/wireless/ath/ath9k/ar9002_mac.c
 index 8d78253..0337de7 100644
 --- a/drivers/net/wireless/ath/ath9k/ar9002_mac.c
 +++ b/drivers/net/wireless/ath/ath9k/ar9002_mac.c
 @@ -76,9 +76,16 @@ static bool ar9002_hw_get_isr(struct ath_hw *ah, enum 
 ath9k_int *masked)
   mask2 |= ATH9K_INT_CST;
   if (isr2  AR_ISR_S2_TSFOOR)
   mask2 |= ATH9K_INT_TSFOOR;
 +
 + if (!(pCap-hw_caps  ATH9K_HW_CAP_RAC_SUPPORTED)) {
 + REG_WRITE(ah, AR_ISR_S2, isr2);
 + isr = ~AR_ISR_BCNMISC;
 + }
   }
 
 - isr = REG_READ(ah, AR_ISR_RAC);
 + if (pCap-hw_caps  ATH9K_HW_CAP_RAC_SUPPORTED)
 + isr = REG_READ(ah, AR_ISR_RAC);
 +
   if (isr == 0x) {
   *masked = 0;
   return false;
 @@ -97,11 +104,23 @@ static bool ar9002_hw_get_isr(struct ath_hw *ah, enum 
 ath9k_int *masked)
 
   *masked |= ATH9K_INT_TX;
 
 - s0_s = REG_READ(ah, AR_ISR_S0_S);
 + if (pCap-hw_caps  ATH9K_HW_CAP_RAC_SUPPORTED) {
 + s0_s = REG_READ(ah, AR_ISR_S0_S);
 + s1_s = REG_READ(ah, AR_ISR_S1_S);
 + } else {
 + s0_s = REG_READ(ah, AR_ISR_S0);
 + REG_WRITE(ah, AR_ISR_S0, s0_s);
 + s1_s = REG_READ(ah, AR_ISR_S1);
 + REG_WRITE(ah, AR_ISR_S1, s1_s);
 +
 + isr = ~(AR_ISR_TXOK |
 +  AR_ISR_TXDESC |
 +  AR_ISR_TXERR |
 +  AR_ISR_TXEOL);
 + }
 +
   ah-intr_txqs |= MS(s0_s, AR_ISR_S0_QCU_TXOK);
   ah-intr_txqs |= MS(s0_s, AR_ISR_S0_QCU_TXDESC);
 -
 - s1_s = REG_READ(ah, AR_ISR_S1_S);
   ah-intr_txqs |= MS(s1_s, AR_ISR_S1_QCU_TXERR);
   ah-intr_txqs |= MS(s1_s, AR_ISR_S1_QCU_TXEOL);
   }
 @@ -120,7 +139,12 @@ static bool ar9002_hw_get_isr(struct ath_hw *ah, enum 
 ath9k_int *masked)
   if (isr  AR_ISR_GENTMR) {
   u32 s5_s;
 
 - s5_s = REG_READ(ah, AR_ISR_S5_S);
 + if (pCap-hw_caps  ATH9K_HW_CAP_RAC_SUPPORTED) {
 + s5_s = REG_READ(ah, AR_ISR_S5_S);
 + } else {
 + s5_s = REG_READ(ah, AR_ISR_S5);
 + }
 +
   ah-intr_gen_timer_trigger =
   MS(s5_s, AR_ISR_S5_GENTIMER_TRIG);
 
 @@ -133,6 +157,16 @@ static bool ar9002_hw_get_isr(struct ath_hw *ah, enum 
 ath9k_int *masked)
   if ((s5_s  AR_ISR_S5_TIM_TIMER) 
   !(pCap-hw_caps  ATH9K_HW_CAP_AUTOSLEEP))
   *masked |= ATH9K_INT_TIM_TIMER;
 +
 + if (!(pCap-hw_caps  ATH9K_HW_CAP_RAC_SUPPORTED)) {
 + REG_WRITE(ah, AR_ISR_S5, s5_s);
 + isr = ~AR_ISR_GENTMR;
 + }
 + }
 +
 + if (!(pCap-hw_caps  ATH9K_HW_CAP_RAC_SUPPORTED)) {
 + REG_WRITE(ah, AR_ISR, isr);
 + REG_READ(ah, AR_ISR);
   }
 
   if (sync_cause) {
 
 
 A version that applies over OpenWrt trunk is here:
 http://msujith.org/dir/patches/wl/Dec-13-2013/0001-ath9k-Interrupt-handling-fix-for-AR9002-family.patch
 
 Sujith

-- 
Sandra, Okko, Joris,  Sebastian Moeller
Telefon: +49 7071 96 49 783, +49 7071 96 49 784, +49 7071 96 49 785
GSM: +49-1577-190 31 41
GSM: +49-1517-00 70 355

Moltkestrasse 6
72072 Tuebingen
Deutschland

___
ath9k-devel mailing list
ath9k-devel@lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel


Re: [ath9k-devel] [Cerowrt-devel] Wireless failures 3.10.17-3

2013-12-13 Thread Felix Fietkau
On 2013-12-13 10:48, Sebastian Moeller wrote:
 Hi Sujith,
 
 On Dec 13, 2013, at 10:27 , Sujith Manoharan suj...@msujith.org wrote:
 
 Sebastian Moeller wrote:
 It is a net gear WNDR3700 v2, so according to:
 http://wiki.openwrt.org/toh/netgear/wndr3700 it is a Atheros AR7161 rev 2 
 680
 MHz soc with the following wireless parts: Atheros AR9223 802.11bgn / 
 Atheros
 AR9220 802.11an.
 
 Sure, I hope I got the right one. Now this is not from the same boot as the
 one with the errors, but I assume that does not make a difference… Since I 
 am
 located in Germany I set the regulatory domain to DE. please let me know if 
 I
 you need any additional information or testing (note I am not set up to 
 build
 cerowrt myself, so I would need Dave Täht's help to build a modified 
 firmware)
 
 Can you try this patch ?
 
   I will, but it will take some time, as I cannot build the firmware for 
 this device myself, but need help. So I let you know once I tested the 
 patched kernel.
On OpenWrt/CeroWrt you should not patch it into the kernel. You need to
add it as a patch for package/kernel/mac80211.

- Felix
___
ath9k-devel mailing list
ath9k-devel@lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel


Re: [ath9k-devel] [Cerowrt-devel] Wireless failures 3.10.17-3

2013-12-13 Thread Sebastian Moeller
Hello Felix,


On Dec 13, 2013, at 17:51 , Felix Fietkau n...@openwrt.org wrote:

 On 2013-12-13 10:48, Sebastian Moeller wrote:
 Hi Sujith,
 
 On Dec 13, 2013, at 10:27 , Sujith Manoharan suj...@msujith.org wrote:
 
 Sebastian Moeller wrote:
 It is a net gear WNDR3700 v2, so according to:
 http://wiki.openwrt.org/toh/netgear/wndr3700 it is a Atheros AR7161 rev 2 
 680
 MHz soc with the following wireless parts: Atheros AR9223 802.11bgn / 
 Atheros
 AR9220 802.11an.
 
 Sure, I hope I got the right one. Now this is not from the same boot as the
 one with the errors, but I assume that does not make a difference… Since I 
 am
 located in Germany I set the regulatory domain to DE. please let me know 
 if I
 you need any additional information or testing (note I am not set up to 
 build
 cerowrt myself, so I would need Dave Täht's help to build a modified 
 firmware)
 
 Can you try this patch ?
 
  I will, but it will take some time, as I cannot build the firmware for 
 this device myself, but need help. So I let you know once I tested the 
 patched kernel.
 On OpenWrt/CeroWrt you should not patch it into the kernel. You need to
 add it as a patch for package/kernel/mac80211.

Ah, thanks, good to know. Vielen Dank. (I still need Dave's help in 
integrating this patch into a firmware image so I can actually test it...)

Best Regards
Sebastian

 
 - Felix
 ___
 Cerowrt-devel mailing list
 cerowrt-de...@lists.bufferbloat.net
 https://lists.bufferbloat.net/listinfo/cerowrt-devel

___
ath9k-devel mailing list
ath9k-devel@lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel


Re: [ath9k-devel] [Cerowrt-devel] Wireless failures 3.10.17-3

2013-12-13 Thread Dave Taht
OK, I couldn't help myself but boot up that release. Wet paint! It
successfully brought up
the 5ghz radio, but did not manage to assign an ip address to it
(netifd bug?) and failed on the 2ghz radio utterly.

trying to restart it manually fails to bring up the 5ghz radio as well.
Here's an strace of that.

http://snapon.lab.bufferbloat.net/~d/hostapd.strace.txt

I don't see it beacon, either.

Now, I don't have a grip on what started happening two releases back
(I was out of town) but I figure it is perhaps more relevant than
chasing the DMA tx thing. And ENOTIME for me on this til sunday. I
will revert this patch and bisect backwards.

root@CMTS:~# wifi enable
command failed: Device or resource busy (-16)
Configuration file: /var/run/hostapd-phy0.conf
nl80211: Could not configure driver mode
nl80211 driver initialization failed.
hostapd_free_hapd_data: Interface gw00 wasn't started
hostapd_free_hapd_data: Interface gw00 wasn't started
hostapd_free_hapd_data: Interface sw00 wasn't started
Failed to start hostapd for phy0
command failed: Too many open files in system (-23)
command failed: Too many open files in system (-23)
ifconfig: SIOCSIFHWADDR: Device or resource busy
command failed: Device or resource busy (-16)
Configuration file: /var/run/hostapd-phy1.conf
nl80211: Could not configure driver mode
nl80211 driver initialization failed.
hostapd_free_hapd_data: Interface gw10 wasn't started
hostapd_free_hapd_data: Interface sw10 wasn't started
Failed to start hostapd for phy1
netifd: Interface 'sw10' is enabled



On Fri, Dec 13, 2013 at 12:56 PM, Dave Taht dave.t...@gmail.com wrote:
 On Fri, Dec 13, 2013 at 1:27 AM, Sujith Manoharan suj...@msujith.org wrote:
 Sebastian Moeller wrote:
 It is a net gear WNDR3700 v2, so according to:
 http://wiki.openwrt.org/toh/netgear/wndr3700 it is a Atheros AR7161 rev 2 
 680
 MHz soc with the following wireless parts: Atheros AR9223 802.11bgn / 
 Atheros
 AR9220 802.11an.

 Sure, I hope I got the right one. Now this is not from the same boot as the
 one with the errors, but I assume that does not make a difference… Since I 
 am
 located in Germany I set the regulatory domain to DE. please let me know if 
 I
 you need any additional information or testing (note I am not set up to 
 build
 cerowrt myself, so I would need Dave Täht's help to build a modified 
 firmware)

 THANK YOU!

 I have applied the patch to the next build of cerowrt-3.10.24-1 for
 the wndr3700v2 and 3800 which will be here when the build completes:

 http://snapon.lab.bufferbloat.net/~cero2/cerowrt/wndr/3.10.24-1

 100% completely untested by me til sunday! Don't try this on your
 default home router.

 While I'm here on linux-wireless:

 Cerowrt really needs a new maintainer and more people able to build
 it. I am generally working on some queuing theory (in wireless/wifi)
 right now, fixing a new chipset in a new box that I can't talk about
 (yet), and low on free time, and working on standardizing fq_codel in
 the ietf is eating what little spare time I have left.

 Although dedicating my sundays to Cero, I'm losing the general purpose
 skill set required to keep the continuous integration phase from
 openwrt to cero on the wndr3800 going. I care about keeping cero
 going, but after 3 years of building it and after struggling to make
 it stable since august, I'm feeling washed up and burned out on it. I
 think we are very close to a stable release, though, and I'll feel
 much better about things after this bug is gone…

 But while I'm limping along...

 Any volunteers to help get the next release after this one out? Any
 suggestions for doing it mo better? Or a better strategy for testing
 more fixes for bufferbloat?

 There MIGHT be some funding for Cero next year. There never has been
 before, and there have been too many broken promises, sooo the only
 true reward I know of for working on bufferbloat with cerowrt (and it
 is major!) is doing bleeding edge research on the Internet's most
 nagging problems…. and *solving them*.

 OK, then there's also the user base, which is wonderful. And the
 notoriety. And kicking the vendors and ISPs making crappy routers in
 the shins on a regular basis. Etc.

 I'd like to add a next-generation bleeding edge chip to the effort but
 can't without more funding and more volunteers.

 Can you try this patch ?

 I have folded this into cerowrt-3.10.24-1. Note that in addition to
 this problem the last couple builds have been testing dnsmasq 2.68
 which may have also broke at the same time, and I am far from the
 yurtlab right now so I am unable to test before sunday. (use fixed ip
 addrs if it's still busted)

 :Crossed fingers:

 I note that I don't know if there is a cause or effect relationship in
 the DMA tx bug to what we are actually seeing, with radios falling off
 the net. I have a similar long-standing bug with babel doing ipv6
 ad-hoc mode multicasts and receives and seeing other nodes, but no
 actual unicast traffic being capable of being 

Re: [ath9k-devel] [Cerowrt-devel] Wireless failures 3.10.17-3

2013-12-13 Thread Sujith Manoharan
Dave Taht wrote:
 OK, I couldn't help myself but boot up that release. Wet paint! It
 successfully brought up
 the 5ghz radio, but did not manage to assign an ip address to it
 (netifd bug?) and failed on the 2ghz radio utterly.
 
 trying to restart it manually fails to bring up the 5ghz radio as well.
 Here's an strace of that.
 
 http://snapon.lab.bufferbloat.net/~d/hostapd.strace.txt
 
 I don't see it beacon, either.
 
 Now, I don't have a grip on what started happening two releases back
 (I was out of town) but I figure it is perhaps more relevant than
 chasing the DMA tx thing. And ENOTIME for me on this til sunday. I
 will revert this patch and bisect backwards.

I am not sure how the patch would break things.

Booting OpenWrt trunk (with the patch) on an AP96 reference board seems
to work fine: http://pastebin.com/3rPSfuad

Sujith
___
ath9k-devel mailing list
ath9k-devel@lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel


Re: [ath9k-devel] [Cerowrt-devel] Wireless failures 3.10.17-3

2013-12-12 Thread Sebastian Moeller
Hi Sujith,

On Dec 12, 2013, at 06:28 , Sujith Manoharan suj...@msujith.org wrote:

 Hi Sebastian,
 
 I think I can make tho error appear at will by running netperf-wrapper
 against my wndr3700v2, just tested under 3.10.21-1:
 /netperf-wrapper -l 300 -H gw.home.lan rrul -p all -t 
 hms-beagle_cerowrt3.10.21-1_2_nacktmulle
 
 dmesg on the router:
 [   53.007812] IPv6: ADDRCONF(NETDEV_CHANGE): gw11: link becomes ready
 [28792.039062] ath: phy1: Failed to stop TX DMA, queues=0x00e!
 [28794.078125] ath: phy1: Failed to stop TX DMA, queues=0x00e!
 [28807.164062] ath: phy1: Failed to stop TX DMA, queues=0x00e!
 [28809.191406] ath: phy1: Failed to stop TX DMA, queues=0x002!
 [28823.269531] ath: phy1: Failed to stop TX DMA, queues=0x00e!
 
 What board is this ?

It is a net gear WNDR3700 v2, so according to: 
http://wiki.openwrt.org/toh/netgear/wndr3700 it is a Atheros AR7161 rev 2 680 
MHz soc with the following wireless parts:
Atheros AR9223 802.11bgn / Atheros AR9220 802.11an.

root@nacktmulle:~# uname -a
Linux nacktmulle 3.10.21 #2 Mon Dec 2 11:38:59 PST 2013 mips GNU/Linux


 Can you post the initial bootleg ?

Sure, I hope I got the right one. Now this is not from the same boot as the one 
with the errors, but I assume that does not make a difference… Since I am 
located in Germany I set the regulatory domain to DE. please let me know if I 
you need any additional information or testing (note I am not set up to build 
cerowrt myself, so I would need Dave Täht's help to build a modified firmware)

[0.00] Linux version 3.10.21 (cero2@snapon) (gcc version 4.6.4 
(OpenWrt/Linaro GCC 4.6-2013.05 r38226) ) #2 Mon Dec 2 11:38:59 PST 2013
[0.00] MyLoader: sysp=5554, boardp=5554, parts=5554
[0.00] bootconsole [early0] enabled
[0.00] CPU revision is: 00019374 (MIPS 24Kc)
[0.00] SoC: Atheros AR7161 rev 2
[0.00] Clocks: CPU:680.000MHz, DDR:340.000MHz, AHB:170.000MHz, 
Ref:40.000MHz
[0.00] Determined physical RAM map:
[0.00]  memory: 0400 @  (usable)
[0.00] Initrd not found or empty - disabling initrd
[0.00] Zone ranges:
[0.00]   Normal   [mem 0x-0x03ff]
[0.00] Movable zone start for each node
[0.00] Early memory node ranges
[0.00]   node   0: [mem 0x-0x03ff]
[0.00] On node 0 totalpages: 16384
[0.00] free_area_init_node: node 0, pgdat 80330eb0, node_mem_map 
8100
[0.00]   Normal zone: 128 pages used for memmap
[0.00]   Normal zone: 0 pages reserved
[0.00]   Normal zone: 16384 pages, LIFO batch:3
[0.00] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[0.00] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 
bytes
[0.00] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[0.00] pcpu-alloc: [0] 0 
[0.00] Built 1 zonelists in Zone order, mobility grouping on.  Total 
pages: 16256
[0.00] Kernel command line:  board=WNDR3700 console=ttyS0,115200 
mtdparts=spi0.0:320k(u-boot)ro,128k(u-boot-env)ro,15872k(firmware),64k(art)ro 
rootfstype=squashfs,jffs2 noinitrd
[0.00] PID hash table entries: 256 (order: -2, 1024 bytes)
[0.00] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[0.00] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[0.00] Writing ErrCtl register=
[0.00] Readback ErrCtl register=
[0.00] Memory: 61144k/65536k available (2361k kernel code, 4392k 
reserved, 612k data, 224k init, 0k highmem)
[0.00] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[0.00] NR_IRQS:51
[0.027343] Calibrating delay loop... 451.57 BogoMIPS (lpj=882688)
[0.027343] pid_max: default: 32768 minimum: 301
[0.031250] Mount-cache hash table entries: 512
[0.035156] NET: Registered protocol family 16
[0.039062] MIPS: machine is NETGEAR WNDR3700/WNDR3800/WNDRMAC
[2.640625] registering PCI controller with io_map_base unset
[2.648437] bio: create slab bio-0 at 0
[2.652343] PCI host bridge to bus :00
[2.656250] pci_bus :00: root bus resource [mem 0x1000-0x16ff]
[2.660156] pci_bus :00: root bus resource [io  0x]
[2.664062] pci_bus :00: No busn resource found for root bus, will use 
[bus 00-ff]
[2.667968] pci :00:11.0: [168c:ff1d] type 00 class 0x02
[2.667968] pci :00:11.0: fixup device configuration
[2.671875] pci :00:11.0: reg 10: [mem 0x-0x]
[2.671875] pci :00:11.0: PME# supported from D0 D3hot
[2.671875] pci :00:12.0: [168c:ff1d] type 00 class 0x02
[2.671875] pci :00:12.0: fixup device configuration
[2.675781] pci :00:12.0: reg 10: [mem 0x-0x]
[2.675781] pci :00:12.0: PME# supported from D0 D3hot
[2.675781] pci_bus :00: busn_res: [bus 00-ff] end is updated to 00
[2.675781] pci 

Re: [ath9k-devel] [Cerowrt-devel] Wireless failures 3.10.17-3

2013-12-12 Thread Stephen Hemminger
On Thu, 12 Dec 2013 10:09:14 +0100
Sebastian Moeller sebastian.moel...@gmail.com wrote:

 Hi Sujith,
 
 On Dec 12, 2013, at 06:28 , Sujith Manoharan suj...@msujith.org wrote:
 
  Hi Sebastian,
  
  I think I can make tho error appear at will by running netperf-wrapper
  against my wndr3700v2, just tested under 3.10.21-1:
  /netperf-wrapper -l 300 -H gw.home.lan rrul -p all -t 
  hms-beagle_cerowrt3.10.21-1_2_nacktmulle
  
  dmesg on the router:
  [   53.007812] IPv6: ADDRCONF(NETDEV_CHANGE): gw11: link becomes ready
  [28792.039062] ath: phy1: Failed to stop TX DMA, queues=0x00e!
  [28794.078125] ath: phy1: Failed to stop TX DMA, queues=0x00e!
  [28807.164062] ath: phy1: Failed to stop TX DMA, queues=0x00e!
  [28809.191406] ath: phy1: Failed to stop TX DMA, queues=0x002!
  [28823.269531] ath: phy1: Failed to stop TX DMA, queues=0x00e!
  
  What board is this ?
 
 It is a net gear WNDR3700 v2, so according to: 
 http://wiki.openwrt.org/toh/netgear/wndr3700 it is a Atheros AR7161 rev 2 680 
 MHz soc with the following wireless parts:
 Atheros AR9223 802.11bgn / Atheros AR9220 802.11an.
 
 root@nacktmulle:~# uname -a
 Linux nacktmulle 3.10.21 #2 Mon Dec 2 11:38:59 PST 2013 mips GNU/Linux
 
 
  Can you post the initial bootleg ?
 
 Sure, I hope I got the right one. Now this is not from the same boot as the 
 one with the errors, but I assume that does not make a difference… Since I am 
 located in Germany I set the regulatory domain to DE. please let me know if I 
 you need any additional information or testing (note I am not set up to build 
 cerowrt myself, so I would need Dave Täht's help to build a modified firmware)
 
 [0.00] Linux version 3.10.21 (cero2@snapon) (gcc version 4.6.4 
 (OpenWrt/Linaro GCC 4.6-2013.05 r38226) ) #2 Mon Dec 2 11:38:59 PST 2013
 [0.00] MyLoader: sysp=5554, boardp=5554, parts=5554
 [0.00] bootconsole [early0] enabled
 [0.00] CPU revision is: 00019374 (MIPS 24Kc)
 [0.00] SoC: Atheros AR7161 rev 2
 [0.00] Clocks: CPU:680.000MHz, DDR:340.000MHz, AHB:170.000MHz, 
 Ref:40.000MHz
 [0.00] Determined physical RAM map:
 [0.00]  memory: 0400 @  (usable)
 [0.00] Initrd not found or empty - disabling initrd
 [0.00] Zone ranges:
 [0.00]   Normal   [mem 0x-0x03ff]
 [0.00] Movable zone start for each node
 [0.00] Early memory node ranges
 [0.00]   node   0: [mem 0x-0x03ff]
 [0.00] On node 0 totalpages: 16384
 [0.00] free_area_init_node: node 0, pgdat 80330eb0, node_mem_map 
 8100
 [0.00]   Normal zone: 128 pages used for memmap
 [0.00]   Normal zone: 0 pages reserved
 [0.00]   Normal zone: 16384 pages, LIFO batch:3
 [0.00] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
 [0.00] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 
 32 bytes
 [0.00] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
 [0.00] pcpu-alloc: [0] 0 
 [0.00] Built 1 zonelists in Zone order, mobility grouping on.  Total 
 pages: 16256
 [0.00] Kernel command line:  board=WNDR3700 console=ttyS0,115200 
 mtdparts=spi0.0:320k(u-boot)ro,128k(u-boot-env)ro,15872k(firmware),64k(art)ro 
 rootfstype=squashfs,jffs2 noinitrd
 [0.00] PID hash table entries: 256 (order: -2, 1024 bytes)
 [0.00] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
 [0.00] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
 [0.00] Writing ErrCtl register=
 [0.00] Readback ErrCtl register=
 [0.00] Memory: 61144k/65536k available (2361k kernel code, 4392k 
 reserved, 612k data, 224k init, 0k highmem)
 [0.00] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
 [0.00] NR_IRQS:51
 [0.027343] Calibrating delay loop... 451.57 BogoMIPS (lpj=882688)
 [0.027343] pid_max: default: 32768 minimum: 301
 [0.031250] Mount-cache hash table entries: 512
 [0.035156] NET: Registered protocol family 16
 [0.039062] MIPS: machine is NETGEAR WNDR3700/WNDR3800/WNDRMAC
 [2.640625] registering PCI controller with io_map_base unset
 [2.648437] bio: create slab bio-0 at 0
 [2.652343] PCI host bridge to bus :00
 [2.656250] pci_bus :00: root bus resource [mem 0x1000-0x16ff]
 [2.660156] pci_bus :00: root bus resource [io  0x]
 [2.664062] pci_bus :00: No busn resource found for root bus, will use 
 [bus 00-ff]
 [2.667968] pci :00:11.0: [168c:ff1d] type 00 class 0x02
 [2.667968] pci :00:11.0: fixup device configuration
 [2.671875] pci :00:11.0: reg 10: [mem 0x-0x]
 [2.671875] pci :00:11.0: PME# supported from D0 D3hot
 [2.671875] pci :00:12.0: [168c:ff1d] type 00 class 0x02
 [2.671875] pci :00:12.0: fixup device configuration
 [2.675781] pci :00:12.0: reg 10: [mem