Modify

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#15709 closed defect (no_response)

trunk r40569: ath9k wifi crash - no error, no queues

Reported by: mgondium@… Owned by: developers
Priority: normal Milestone: Attitude Adjustment 12.09.1
Component: packages Version: Trunk
Keywords: Cc:

Description

I'm experiencing wireless loss of connectivity after a few minutes uptime,
running compiled trunk r40569 on a TP-LINK 1043ND v1.

I'm using the full hostapd and wpasupplicant, not wpad-mini.

hostapd seems oblivious, as it happily reported

Fri Apr 25 19:54:06 2014 daemon.info hostapd: wlan0: STA <obscured mac addr> IEEE 802.11: disassociated due to inactivity
Fri Apr 25 19:54:07 2014 daemon.info hostapd: wlan0: STA <obscured mac addr> IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE)

about a client that had lost connectivity.

Found no pending queues, no errors on log. Wireless debugging was on.

Config and dumps from /sys/kernel/debug/ieee80211/phy0/ath9k to follow.

Now testing Attitude Adjustment r40569, no problem yet.

Attachments (4)

config (149.4 KB) - added by mgondium@… 4 years ago.
compile config
logwrt.txt (13.0 KB) - added by mgondium@… 4 years ago.
ath9k debug dumps
stuck_dump.txt (13.0 KB) - added by mgondium@… 4 years ago.
debug dump while stuck
after_kill_dump.txt (13.0 KB) - added by mgondium@… 4 years ago.
debug dump after "killall hostapd"

Download all attachments as: .zip

Change History (23)

Changed 4 years ago by mgondium@…

compile config

Changed 4 years ago by mgondium@…

ath9k debug dumps

comment:1 Changed 4 years ago by mgondium@…

I have found that AA with hostapd/wpasupplicant has the same problem (wifi is gone after a while), again with no errors on log.

wpad-mini remains stable on AA.

This is related to ticket /ticket/15641.html

So far I found this

trunk/wpad-mini/single SSID: stable
trunk/wpad-mini/multiple SSID: high load spikes/freeze/reboot
trunk/hostpad/single SSID: connectivity loss after few minutes
trunk/hostapd/multiple SSID: connectivity loss after few minutes

AA/wpad-mini/single SSID: stable
AA/wpad-mini/multiple SSID: in progress
AA/hostpad/single SSID: connectivity loss after few minutes
AA/hostapd/multiple SSID: no tested

I will try to debug hostapd, but so far I am stuck if I want a guest SSID in trunk.

comment:2 Changed 4 years ago by nbd

please try copying http://nbd.name/950-test3.patch to package/kernel/mac80211/patches, rebuild and test again.

comment:3 Changed 4 years ago by mgondium@…

Thanks.
Now running trunk r40572 plus your patch, full hostapd/wpasupplicant.

I will report my findings, but if there is some specific data that would be useful, please
point it out so I can gather it.

comment:4 Changed 4 years ago by mgondium@…

After about 12 hours uptime I have had no wireless dropouts while running trunk r40572 + nbd's 950 patch, using the full hostapd and a guest SSID.

It's looking good, I will now check with wpad-mini to assess /ticket/15641.html too.

comment:5 Changed 4 years ago by nbd

  • Resolution set to fixed
  • Status changed from new to closed

fix committed in r40573, thanks for testing

comment:6 Changed 4 years ago by mgondium@…

  • Resolution fixed deleted
  • Status changed from closed to reopened

Just had another wifi disapearance act while running trunk r40588, after 13 hours uptime.
Same symptoms, log shows that hostapd "kicks" clients for inactivity, but they had lost connectivity already.
Hostapd continues running but there is no beacon and no other error on logs.
Issuing a "killall hostapd" makes the mac80211 script restart and everything returns to normal.

Dump from /sys/kernel/debug/ieee80211/phy0/ath9k in stuck and unstuck state to follow.

Changed 4 years ago by mgondium@…

debug dump while stuck

Changed 4 years ago by mgondium@…

debug dump after "killall hostapd"

comment:7 Changed 4 years ago by mgondium@…

now testing trunk r40600

comment:8 Changed 4 years ago by gvalkov

I have TL-WR1043ND v1.8, for me the old Backfire r33081 is stable.
https://dev.openwrt.org/ticket/9654#comment:485

I know a lot of changes have been made since, but it will be nice if someone can find what made the wifi on TL-WR1043ND v1.8 so broken.

I have tested a lot of trunk releases before 2014-03-23 and they were all unstable: very often the wifi stops working, sometimes the speed is reduced. I have seen messages like "disassociated due to inactivity", and also "TX DMA" / "RX DMA failed to stop". I have not tried to run "killall hostapd", but running the "wifi" from a terminal resumes normal operation until the next crash. I have not tested the new trunk releases, so I can't comment on them. Even the official TP-LINK firmware disconnects every 15 minutes.

comment:9 Changed 4 years ago by mgondium@…

In 18 hours uptime trunk r40600 had no wifi dropouts yet.
The TL-WR1043ND I'm using is an old unit, HW v1.2 I believe.
I'm using a script that pings a wireless printer every 10 seconds to detect a malfunction and recover,
but it hadn't done any work yet.

comment:10 Changed 4 years ago by anonymous

can you please publish your script

comment:11 Changed 4 years ago by mgondium@…

At 22 hours uptime got this:

Wed Apr 30 20:44:42 2014 kern.warn kernel: [79363.090000] ------------[ cut here ]------------
Wed Apr 30 20:44:42 2014 kern.warn kernel: [79363.090000] WARNING: at /media/STORE_XFS/trunk-1043/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/compat-wireless-2014-03-31/net/mac80211/rx.c:3368 mac80211_ieee80211_rx+0x13c/0x7f8 [mac80211]()
Wed Apr 30 20:44:42 2014 kern.warn kernel: [79363.110000] Rate marked as an HT rate but passed status->rate_idx is not an MCS index [0-76]: 77 (0x4d)
Wed Apr 30 20:44:42 2014 kern.warn kernel: [79363.120000] Modules linked in: ifb ath9k ath9k_common pppoe ppp_async option iptable_nat ath9k_hw ath usb_wwan rndis_host pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv4 mac80211 ipt_MASQUERADE cfg80211 cdc_ether xt_time xt_tcpudp xt_tcpmss xt_string xt_statistic xt_state xt_recent xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_hl xt_helper xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_HL Wed Apr 30 20:44:42 2014 kern.warn kernel: [79363.250000] CPU: 0 PID: 0 Comm: swapper Not tainted 3.10.36 #37
Wed Apr 30 20:44:42 2014 kern.warn kernel: [79363.260000] Stack : 00000000 00000000 00000000 00000000 80362eba 00000033 8030d498 80e45d70
Wed Apr 30 20:44:42 2014 kern.warn kernel: [79363.260000] 802bf3a4 8030d21b 00000000 80362664 8030d498 80e45d70 81884010 00000000
Wed Apr 30 20:44:42 2014 kern.warn kernel: [79363.260000] 00000001 80078f38 00000003 800769bc 80f49d80 80e45d70 802c0c64 80307ba4
Wed Apr 30 20:44:42 2014 kern.warn kernel: [79363.260000] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Wed Apr 30 20:44:42 2014 kern.warn kernel: [79363.260000] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 80307b30
Wed Apr 30 20:44:42 2014 kern.warn kernel: [79363.260000] ...
Wed Apr 30 20:44:42 2014 kern.warn kernel: [79363.300000] Call Trace:
Wed Apr 30 20:44:42 2014 kern.warn kernel: [79363.300000] [<8006e200>] show_stack+0x48/0x70
Wed Apr 30 20:44:42 2014 kern.warn kernel: [79363.300000] [<80076ab8>] warn_slowpath_common+0x78/0xa8
Wed Apr 30 20:44:42 2014 kern.warn kernel: [79363.310000] [<80076b14>] warn_slowpath_fmt+0x2c/0x38
Wed Apr 30 20:44:42 2014 kern.warn kernel: [79363.310000] [<80f1f378>] mac80211_ieee80211_rx+0x13c/0x7f8 [mac80211]
Wed Apr 30 20:44:42 2014 kern.warn kernel: [79363.320000] [<80fe6f7c>] ath_rx_tasklet+0xa40/0xa7c [ath9k]
Wed Apr 30 20:44:42 2014 kern.warn kernel: [79363.330000] [<80fe444c>] ath9k_tasklet+0x23c/0x2c8 [ath9k]
Wed Apr 30 20:44:42 2014 kern.warn kernel: [79363.330000] [<8007e034>] tasklet_action+0x84/0xcc
Wed Apr 30 20:44:42 2014 kern.warn kernel: [79363.340000] [<8007d834>] do_softirq+0xd0/0x1b8
Wed Apr 30 20:44:42 2014 kern.warn kernel: [79363.340000] [<8007d9bc>] do_softirq+0x48/0x68
Wed Apr 30 20:44:42 2014 kern.warn kernel: [79363.340000] [<8007dbf0>] irq_exit+0x54/0x70
Wed Apr 30 20:44:42 2014 kern.warn kernel: [79363.350000] [<80060830>] ret_from_irq+0x0/0x4
Wed Apr 30 20:44:42 2014 kern.warn kernel: [79363.350000] [<80060a80>]
r4k_wait+0x20/0x40
Wed Apr 30 20:44:42 2014 kern.warn kernel: [79363.360000] [<8009ee80>] cpu_startup_entry+0xa4/0x104
Wed Apr 30 20:44:42 2014 kern.warn kernel: [79363.360000] [<80323910>] start_kernel+0x38c/0x3a4
Wed Apr 30 20:44:42 2014 kern.warn kernel: [79363.370000]
Wed Apr 30 20:44:42 2014 kern.warn kernel: [79363.370000] ---[ end trace 8023afe21f02f129 ]---

Still, no forced wifi restarts were needed.

@anonymous:
I'm using these:

/etc/init.d/watch_wifi:

#!/bin/sh /etc/rc.common

START=99
start() {

/root/watch_script.sh & 1>/dev/null 2>&1

}

/root/watch_script.sh:

#! /bin/sh

PERIOD=10
MISS=0
MISS_LIMIT=3
TARGET=your.permanently.connected.client's.IP.here

while [ 1 ]; do

sleep $PERIOD
ping -c 1 $TARGET 1>/dev/null 2>&1
PONG=$?

if [ $PONG -eq 1 ]; then
MISS=$(($MISS+1))
else
MISS=0
fi

if [ $MISS -eq $MISS_LIMIT ]; then
MISS=0
logger " ....... KILLED HOSTAPD ......."
killall hostapd
fi

done

Can't guarantee they'll work...

comment:12 Changed 4 years ago by mgondium@…

50 hours uptime running trunk r40600, radio remains solid. =)

comment:13 Changed 4 years ago by bittorf@…

Here a 1043ND v1.0 with r40624 / wifimode = adhoc+ap.
WiFi gets very slow suddenly, _nothing_ in the log,
but this was 2 hours earlier (unsure if related):

[ 1955.430000] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020 DMADBG_7=0x000084c0
[ 1955.440000] ath: phy0: Could not stop RX, we could be confusing the DMA engine when we start RX up
[ 1955.450000] ------------[ cut here ]------------
[ 1955.450000] WARNING: at /home/bastian/owrtbuild/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/compat-wireless-2014-03-31/drivers/net/wireless/ath/ath9k/recv.c:491 ath_stoprecv+0x108/0x1318 [ath9k]()
[ 1955.470000] Modules linked in: ath9k ath9k_common pppoe ppp_async iptable_nat ath9k_hw ath snd_usb_audio pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv4 mac80211 ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_tcpmss xt_statistic xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_hl xt_ecn xt_dscp xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_NETMAP xt_LOG xt_HL xt_DSCP xt_CT xt_CLASSIFY snd_usbmidi_lib slhc nf_nat_irc nf_nat_ftp nf_nat nf_defrag_ipv4 nf_conntrack_irc nf_conntrack_ftp libcrc32c iptable_raw iptable_mangle iptable_filter ipt_ULOG ipt_REJECT ipt_ECN ip_tables crc16 crc_ccitt compat sch_teql sch_tbf sch_sfq sch_red sch_prio sch_htb sch_gred sch_dsmark sch_codel em_text em_nbyte em_meta em_cmp cls_basic act_police act_ipt act_skbedit act_mirred em_u32 cls_u32 cls_tcindex cls_flow cls_route cls_fw sch_hfsc sch_ingress ledtrig_usbdev ip6t_REJECT ip6t_rt ip6t_hbh ip6t_mh ip6t_ipv6header ip6t_frag ip6t_eui64 ip6t_ah ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables nf_conntrack_ipv6 nf_conntrack nf_defrag_ipv6 tun snd_compress snd_pcm_oss snd_mixer_oss snd_pcm snd_page_alloc snd_timer snd_rawmidi snd_seq_device snd_hwdep snd soundcore ipv6 arc4 crypto_blkcipher zram lzo_compress lzo_decompress zsmalloc ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common crc32c crypto_hash
[ 1955.590000] CPU: 0 PID: 8 Comm: kworker/u2:1 Not tainted 3.10.36 #1
[ 1955.600000] Workqueue: phy0 ath_reset_work [ath9k]
[ 1955.600000] Stack : 81846580 802c6c88 80f670c0 000001eb 80f76a90 81886030 80eca700 81838810
[ 1955.600000] 	  00000088 80078f38 00000008 800931e8 81829ef8 81886030 802d57f8 81849d04
[ 1955.600000] 	  81849d04 80078f38 00000003 8008f518 80f76a90 00000000 00000005 801ad0f0
[ 1955.600000] 	  00000000 00000000 00000000 00000000 00000000 00000000 70687930 00000000
[ 1955.600000] 	  00000000 00000000 00000000 00000000 80e70b00 80e70c00 80f64f6c 81849cb0
[ 1955.600000] 	  ...
[ 1955.640000] Call Trace:
[ 1955.640000] [<8006e200>] show_stack+0x48/0x70
[ 1955.640000] [<80076ab8>] warn_slowpath_common+0x78/0xa8
[ 1955.650000] [<80076b70>] warn_slowpath_null+0x18/0x24
[ 1955.650000] [<80f670c0>] ath_stoprecv+0x108/0x1318 [ath9k]
[ 1955.660000] [<80f6295c>] ath9k_deinit_device+0x2b0/0xa8c [ath9k]
[ 1955.670000] [<80f64e1c>] ath9k_p2p_ps_timer+0x31c/0x424 [ath9k]
[ 1955.670000] 
[ 1955.670000] ---[ end trace 6084a271d49ff088 ]---

here the stats during extremely slow wireless, even SSH was only working with several seconds delay for each typed char:o

root@box:~ cat /sys/kernel/debug/ieee80211/phy0/ath9k/queues
(VO):  qnum: 0 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0
(VI):  qnum: 1 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0
(BE):  qnum: 2 qdepth:  2 ampdu-depth:  2 pending:  10 stopped: 0
(BK):  qnum: 3 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0
(CAB): qnum: 8 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0
root@box:~ cat /sys/kernel/debug/ieee80211/phy0/ath9k/reset
    Baseband Hang:  0
Baseband Watchdog:  0
   Fatal HW Error:  0
      TX HW error:  0
     TX Path Hang:  0
      PLL RX Hang:  0
         MAC Hang:  0
     Stuck Beacon:  2
        MCI Reset:  0
root@box:~ cat /sys/kernel/debug/ieee80211/phy0/ath9k/interrupt 
                   RX:    1115127
                RXEOL:          0
                RXORN:          0
                   TX:     615798
                TXURN:          0
                  MIB:          0
                RXPHY:          0
                RXKCM:          0
                 SWBA:     979084
                BMISS:          0
                  BNR:          0
                  CST:        152
                  GTT:          0
                  TIM:          0
               CABEND:          0
             DTIMSYNC:          0
                 DTIM:          0
               TSFOOR:          0
                  MCI:          0
             GENTIMER:          0
                TOTAL:    2346106
SYNC_CAUSE stats:
             Sync-All:          0
              RTC-IRQ:          0
              MAC-IRQ:          0
EEPROM-Illegal-Access:          0
          APB-Timeout:          0
    PCI-Mode-Conflict:          0
          HOST1-Fatal:          0
           HOST1-Perr:          0
       TRCV-FIFO-Perr:          0
          RADM-CPL-EP:          0
  RADM-CPL-DLLP-Abort:          0
   RADM-CPL-TLP-Abort:          0
    RADM-CPL-ECRC-Err:          0
     RADM-CPL-Timeout:          0
    Local-Bus-Timeout:          0
            PM-Access:          0
            MAC-Awake:          0
           MAC-Asleep:          0
     MAC-Sleep-Access:          0

config:

root@box:~ uci show wireless
wireless.radio0=wifi-device
wireless.radio0.type=mac80211
wireless.radio0.country=US
wireless.radio0.frag=off
wireless.radio0.path=platform/ath9k
wireless.radio0.hwmode=11ng
wireless.radio0.htmode=HT20
wireless.radio0.ht_capab=SHORT-GI-40 DSSS_CCK-40
wireless.radio0.channel=5
wireless.radio0.beacon_int=100
wireless.@wifi-iface[0]=wifi-iface
wireless.@wifi-iface[0].device=radio0
wireless.@wifi-iface[0].network=wlanadhoc
wireless.@wifi-iface[0].mode=adhoc
wireless.@wifi-iface[0].mcast_rate=6000
wireless.@wifi-iface[0].ssid=weimarnetz
wireless.@wifi-iface[0].bssid=02:ca:ff:ee:ba:be
wireless.@wifi-iface[1]=wifi-iface
wireless.@wifi-iface[1].device=radio0
wireless.@wifi-iface[1].network=wlan
wireless.@wifi-iface[1].encryption=none
wireless.@wifi-iface[1].mode=ap
wireless.@wifi-iface[1].ssid=weimarnetz (F36stube)

comment:14 Changed 4 years ago by bittorf@…

Again with r40803 on TP-LINK TL-WR1043ND - 2 clients: 1 x 80211n + 1 x 80211g
No manual executing of 'wifi' involved. Very slow wireless (ping >1s) seems to recover themself.

[25842.250000] ------------[ cut here ]------------
[25842.250000] WARNING: at /home/bastian/owrtbuild/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/compat-wireless-2014-05-19/net/mac80211/rx.c:3370 ieee80211_rx+0x13c/0x7f8 [mac80211]()
[25842.270000] Rate marked as an HT rate but passed status->rate_idx is not an MCS index [0-76]: 79 (0x4f)
[25842.280000] Modules linked in: ath9k ath9k_common pppoe ppp_async iptable_nat ath9k_hw ath pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv4 mac80211 ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_tcpmss xt_statistic xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_hl xt_ecn xt_dscp xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_NETMAP xt_LOG xt_HL xt_DSCP xt_CT xt_CLASSIFY slhc nf_nat_irc nf_nat_ftp nf_nat nf_defrag_ipv4 nf_conntrack_irc nf_conntrack_ftp libcrc32c iptable_raw iptable_mangle iptable_filter ipt_REJECT ipt_ECN ip_tables crc16 crc_ccitt compat sch_teql sch_tbf sch_sfq sch_red sch_prio sch_htb sch_gred sch_dsmark sch_codel em_text em_nbyte em_meta em_cmp cls_basic act_police act_ipt act_skbedit act_mirred em_u32 cls_u32 cls_tcindex cls_flow cls_route cls_fw sch_hfsc sch_ingress ledtrig_usbdev ip6t_REJECT ip6t_rt ip6t_hbh ip6t_mh ip6t_ipv6header ip6t_frag ip6t_eui64 ip6t_ah ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables nf_conntrack_ipv6 nf_conntrack nf_defrag_ipv6 tun ipv6 arc4 crypto_blkcipher zram lzo_compress lzo_decompress zsmalloc ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common crc32c crypto_hash
[25842.390000] CPU: 0 PID: 0 Comm: swapper Not tainted 3.10.36 #1
[25842.390000] Stack : 00000000 00000000 00000000 00000000 80372eba 00000032 80315578 80f7dd70
[25842.390000] 	  802c6cb8 803152fb 00000000 80372664 80315578 80f7dd70 80ca0010 000000ec
[25842.390000] 	  00000001 80078f34 00000003 800769b4 80ebf66c 80f7dd70 802c8578 8030fba4
[25842.390000] 	  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[25842.390000] 	  00000000 00000000 00000000 00000000 00000000 00000000 00000000 8030fb30
[25842.390000] 	  ...
[25842.430000] Call Trace:
[25842.430000] [<8006e200>] show_stack+0x48/0x70
[25842.430000] [<80076ab0>] warn_slowpath_common+0x78/0xa8
[25842.440000] [<80076b0c>] warn_slowpath_fmt+0x2c/0x38
[25842.440000] [<80e9dd60>] ieee80211_rx+0x13c/0x7f8 [mac80211]
[25842.450000] [<80f67098>] ath_rx_tasklet+0xa84/0xad0 [ath9k]
[25842.460000] [<80f64508>] ath9k_tasklet+0x23c/0x2c8 [ath9k]
[25842.460000] [<8007e040>] tasklet_action+0x84/0xcc
[25842.470000] [<8007d83c>] __do_softirq+0xd0/0x1bc
[25842.470000] [<8007d9c8>] do_softirq+0x48/0x68
[25842.480000] [<8007dbfc>] irq_exit+0x54/0x70
[25842.480000] [<80060830>] ret_from_irq+0x0/0x4
[25842.480000] [<80060a80>] __r4k_wait+0x20/0x40
[25842.490000] [<8009ee78>] cpu_startup_entry+0xa4/0x104
[25842.490000] [<8032b910>] start_kernel+0x38c/0x3a4
[25842.500000] 
[25842.500000] ---[ end trace 46f637cecb82861b ]---
[27965.810000] nf_conntrack: automatic helper assignment is deprecated and it will be removed soon. Use the iptables CT target to attach helpers instead.
[44386.980000] ath: phy0: Timeout while waiting for nf to load: AR_PHY_AGC_CONTROL=0x40d22
[44387.140000] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020 DMADBG_7=0x000084c0
[44387.150000] ath: phy0: Could not stop RX, we could be confusing the DMA engine when we start RX up
[44387.160000] ------------[ cut here ]------------
[44387.170000] WARNING: at /home/bastian/owrtbuild/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/compat-wireless-2014-05-19/drivers/net/wireless/ath/ath9k/recv.c:493 ath_stoprecv+0x108/0x131c [ath9k]()
[44387.190000] Modules linked in: ath9k ath9k_common pppoe ppp_async iptable_nat ath9k_hw ath pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv4 mac80211 ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_tcpmss xt_statistic xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_hl xt_ecn xt_dscp xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_NETMAP xt_LOG xt_HL xt_DSCP xt_CT xt_CLASSIFY slhc nf_nat_irc nf_nat_ftp nf_nat nf_defrag_ipv4 nf_conntrack_irc nf_conntrack_ftp libcrc32c iptable_raw iptable_mangle iptable_filter ipt_REJECT ipt_ECN ip_tables crc16 crc_ccitt compat sch_teql sch_tbf sch_sfq sch_red sch_prio sch_htb sch_gred sch_dsmark sch_codel em_text em_nbyte em_meta em_cmp cls_basic act_police act_ipt act_skbedit act_mirred em_u32 cls_u32 cls_tcindex cls_flow cls_route cls_fw sch_hfsc sch_ingress ledtrig_usbdev ip6t_REJECT ip6t_rt ip6t_hbh ip6t_mh ip6t_ipv6header ip6t_frag ip6t_eui64 ip6t_ah ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables nf_conntrack_ipv6 nf_conntrack nf_defrag_ipv6 tun ipv6 arc4 crypto_blkcipher zram lzo_compress lzo_decompress zsmalloc ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common crc32c crypto_hash
[44387.290000] CPU: 0 PID: 12775 Comm: kworker/u2:2 Tainted: G        W    3.10.36 #1
[44387.300000] Workqueue: phy0 ath_reset_work [ath9k]
[44387.300000] Stack : 816c4380 802c6cb8 80f671ec 000001ed 80f75fe0 80ca0030 80f7e700 81838810
[44387.300000] 	  00000088 80078f34 000031e7 800931e4 80bf41a8 80ca0030 802d5818 815c9d04
[44387.300000] 	  815c9d04 80078f34 00000003 8008f514 80f75fe0 00000000 00000005 801acfd0
[44387.300000] 	  00000000 00000000 00000000 00000000 00000000 00000000 70687930 00000000
[44387.300000] 	  00000000 00000000 00000000 00000000 80d47b00 80d47c00 80f65028 815c9cb0
[44387.300000] 	  ...
[44387.340000] Call Trace:
[44387.340000] [<8006e200>] show_stack+0x48/0x70
[44387.350000] [<80076ab0>] warn_slowpath_common+0x78/0xa8
[44387.350000] [<80076b68>] warn_slowpath_null+0x18/0x24
[44387.360000] [<80f671ec>] ath_stoprecv+0x108/0x131c [ath9k]
[44387.360000] [<80f6296c>] ath9k_deinit_device+0x2a8/0xb0c [ath9k]
[44387.370000] [<80f64ed8>] ath9k_p2p_ps_timer+0x31c/0x424 [ath9k]
[44387.370000] 
[44387.380000] ---[ end trace 46f637cecb82861c ]---

comment:15 Changed 4 years ago by gvalkov

Just to remind those of you who still have slow speed issues, disconnects and TX DMA errors with TL-WR1043ND v1.8 -> use the good old Backfire! :) Additional notes here:
https://dev.openwrt.org/ticket/9654#comment:485

update:
14 days uptime, no errors or disconnects, the wifi speed is still good: > 6MB/s and I'm using it as a WDS client+AP to extend the range of my wireless network.
Note: The laptop I just used for this test is two rooms away from this extender and the extender is two more rooms away from the main AP. The maximum speed I was able to achieve is about 19 MB/s stable for 7 hours, between a wi-fi client and a gigabit server hooked to the same router.

comment:16 Changed 4 years ago by nbd

also, please test r40834

comment:17 Changed 4 years ago by nbd

  • Resolution set to no_response
  • Status changed from reopened to closed

comment:18 Changed 4 years ago by bittorf@…

Tests with r40842 in 1043ND show the same issue (slow speed, high ping), but there is nothing in the log. It's easy reproduceable: stream a movie with ~100 Kilobytes/sec, after 30 minutes it will stuck. Laptop is connected with -45 dBm. It does not recover, only with a manual 'wifi'-call.

comment:19 Changed 4 years ago by bittorf@…

with r40826 on 1043ND v1 in AP-Mode - only 1 client, low traffic:

[ 4358.360000] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020 DMADBG_7=0x000084c0
[ 4358.370000] ath: phy0: Could not stop RX, we could be confusing the DMA engine when we start RX up
[ 4358.370000] ------------[ cut here ]------------
[ 4358.380000] WARNING: at /home/bastian/owrtbuild/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/compat-wireless-2014-05-19/drivers/net/wireless/ath/ath9k/recv.c:493 ath_stoprecv+0x108/0x131c [ath9k]()
[ 4358.400000] Modules linked in: ath9k ath9k_common pppoe ppp_async iptable_nat ath9k_hw ath pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv4 mac80211 ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_tcpmss xt_statistic xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_hl xt_ecn xt_dscp xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_NETMAP xt_LOG xt_HL xt_DSCP xt_CT xt_CLASSIFY slhc nf_nat_irc nf_nat_ftp nf_nat nf_defrag_ipv4 nf_conntrack_irc nf_conntrack_ftp libcrc32c iptable_raw iptable_mangle iptable_filter ipt_REJECT ipt_ECN ip_tables crc16 crc_ccitt compat sch_teql sch_tbf sch_sfq sch_red sch_prio sch_htb sch_gred sch_dsmark sch_codel em_text em_nbyte em_meta em_cmp cls_basic act_police act_ipt act_skbedit act_mirred em_u32 cls_u32 cls_tcindex cls_flow cls_route cls_fw sch_hfsc sch_ingress ledtrig_usbdev ip6t_REJECT ip6t_rt ip6t_hbh ip6t_mh ip6t_ipv6header ip6t_frag ip6t_eui64 ip6t_ah ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables nf_conntrack_ipv6 nf_conntrack nf_defrag_ipv6 tun ipv6 arc4 crypto_blkcipher zram lzo_compress lzo_decompress zsmalloc ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common crc32c crypto_hash
[ 4358.500000] CPU: 0 PID: 161 Comm: kworker/u2:2 Not tainted 3.10.36 #4
[ 4358.510000] Workqueue: phy0 ath_reset_work [ath9k]
[ 4358.520000] Stack : 8190b480 802c6cb8 80fe71ec 000001ed 80ff5fe0 81896030 80e02700 81838810
[ 4358.520000]    00000088 80078f34 000000a1 800931e4 81888a08 81896030 802d5818 8190dd04
[ 4358.520000]    8190dd04 80078f34 00000003 8008f514 80ff5fe0 00000000 00000005 801acfd0
[ 4358.520000]    00000000 00000000 00000000 00000000 00000000 00000000 70687930 00000000
[ 4358.520000]    00000000 00000000 00000000 00000000 80d61600 80d61700 80fe5028 8190dcb0
[ 4358.520000]    ...
[ 4358.550000] Call Trace:
[ 4358.550000] [<8006e200>] show_stack+0x48/0x70
[ 4358.560000] [<80076ab0>] warn_slowpath_common+0x78/0xa8
[ 4358.560000] [<80076b68>] warn_slowpath_null+0x18/0x24
[ 4358.570000] [<80fe71ec>] ath_stoprecv+0x108/0x131c [ath9k]
[ 4358.570000] [<80fe296c>] ath9k_deinit_device+0x2a8/0xb0c [ath9k]
[ 4358.580000] [<80fe4ed8>] ath9k_p2p_ps_timer+0x31c/0x424 [ath9k]
[ 4358.590000] 
[ 4358.590000] ---[ end trace affd01e13e546fcd ]---

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.