Modify

Opened 2 years ago

Last modified 22 months ago

#21594 new defect

Atheros WNDR3800 - WiFi regression

Reported by: raz123 Owned by: developers
Priority: normal Milestone: Designated Driver (Trunk)
Component: packages Version: Trunk
Keywords: dma mac beacon r48234 dd wifi Cc:

Description

CC on r48225 is fairly stable.

DD on r48234 is unstable. In fact, WiFi on DD branch has been mostly unstable for me. Here are the relevant logs that I captured on DD r48234. Let me know if more is needed. PS: I am unable to build, so testing on my side is done with the daily builds and/or community releases.

root@OpenWrt:~# cat /tmp/sysinfo/model
NETGEAR WNDR3800
root@OpenWrt:~# uname -a
Linux OpenWrt 4.1.15 #2 Thu Jan 14 14:38:46 EET 2016 mips GNU/Linux
root@OpenWrt:~# uptime
 13:31:13 up 12 min,  load average: 0.16, 0.19, 0.15
root@OpenWrt:~# cat /sys/kernel/debug/ieee80211/phy0/ath9k/reset
    Baseband Hang:  0
Baseband Watchdog:  0
   Fatal HW Error:  0
      TX HW error:  0
 Transmit timeout:  0
     TX Path Hang:  0
      PLL RX Hang:  0
         MAC Hang: 1599
     Stuck Beacon:  0
        MCI Reset:  0
Calibration error:  0
Tx DMA stop error: 1594
Rx DMA stop error:  0
root@OpenWrt:~# cat /sys/kernel/debug/ieee80211/phy0/ath9k/queues
(VO):  qnum: 3 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0
(VI):  qnum: 2 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0
(BE):  qnum: 1 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0
(BK):  qnum: 0 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0
(CAB): qnum: 8 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0
root@OpenWrt:~# cat /sys/kernel/debug/ieee80211/phy0/ath9k/interrupt
                   RX:      58081
                RXEOL:          0
                RXORN:          0
                   TX:      53526
                TXURN:          0
                  MIB:          0
                RXPHY:          0
                RXKCM:          0
                 SWBA:      45583
                BMISS:          0
                  BNR:          0
                  CST:          9
                  GTT:          0
                  TIM:          0
               CABEND:          0
             DTIMSYNC:          0
                 DTIM:          0
               TSFOOR:          0
                  MCI:          0
             GENTIMER:          0
                TOTAL:     154048
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

Waited 10 seconds and tried again:

root@OpenWrt:~# cat /sys/kernel/debug/ieee80211/phy0/ath9k/interrupt
                   RX:      58972
                RXEOL:          0
                RXORN:          0
                   TX:      54039
                TXURN:          0
                  MIB:          0
                RXPHY:          0
                RXKCM:          0
                 SWBA:      46433
                BMISS:          0
                  BNR:          0
                  CST:          9
                  GTT:          0
                  TIM:          0
               CABEND:          0
             DTIMSYNC:          0
                 DTIM:          0
               TSFOOR:          0
                  MCI:          0
             GENTIMER:          0
                TOTAL:     156271
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
root@OpenWrt:~# cat /sys/kernel/debug/ieee80211/phy0/ath9k/xmit
                            BE         BK        VI        VO

MPDUs Queued:               40          0         2      1063
MPDUs Completed:           595          0       118      1234
MPDUs XRetried:             32          0         1        16
Aggregates:              11009          0        27         0
AMPDUs Queued HW:            0          0         0         0
AMPDUs Queued SW:        74908          0      1067       187
AMPDUs Completed:        74280          0       949         0
AMPDUs Retried:           2271          0         5         0
AMPDUs XRetried:            41          0         1         0
TXERR Filtered:              0          0         0         0
FIFO Underrun:               0          0         0         0
TXOP Exceeded:               0          0         0         0
TXTIMER Expiry:              0          0         0         0
DESC CFG Error:              0          0         0         0
DATA Underrun:               0          0         0         0
DELIM Underrun:              0          0         0         0
TX-Pkts-All:             74948          0      1069      1250
TX-Bytes-All:         94440907          0    308488    100754
HW-put-tx-buf:            1369          0       132       308
HW-tx-start:             35033          0      1047      1250
HW-tx-proc-desc:         32783          0      1007      1079
TX-Failed:                   0          0         0         0

Nothing seems particularly relevant in dmesg.

Attachments (0)

Change History (10)

comment:1 Changed 2 years ago by raz123

Forgot my wireless configuration:

root@OpenWrt:~#  cat /etc/config/wireless

config wifi-device 'radio0'
        option type 'mac80211'
        option hwmode '11g'
        option path 'pci0000:00/0000:00:11.0'
        option htmode 'HT20'
        option txpower '26'
        option country 'US'
        option channel '11'

config wifi-iface
        option device 'radio0'
        option network 'lan'
        option mode 'ap'
        option ssid 'ABCD-guest'
        option encryption 'psk2'
        option key 'mypassword'
        option wps_pushbutton '0'

config wifi-device 'radio1'
        option type 'mac80211'
        option channel '36'
        option hwmode '11a'
        option path 'pci0000:00/0000:00:12.0'
        option htmode 'HT20'
        option txpower '17'
        option country 'US'

config wifi-iface
        option device 'radio1'
        option network 'lan'
        option mode 'ap'
        option ssid 'ABCD-guest-5'
        option encryption 'psk2'
        option key 'mypassword'
        option wps_pushbutton '0'

comment:2 Changed 2 years ago by anonymous

Well, looks like CC r48225 just spat this out:

[ 3168.380000] Data bus error, epc == 86a6fb7c, ra == 86a6fb78
[ 3168.380000] Oops[#1]:
[ 3168.380000] CPU: 0 PID: 11168 Comm: cat Not tainted 3.18.23 #1
[ 3168.380000] task: 86767548 ti: 86ba0000 task.ti: 86ba0000
[ 3168.380000] $ 0   : 00000000 00000000 deadc0de 00000001
[ 3168.380000] $ 4   : b00008e8 000008e8 86a70000 00000000
[ 3168.380000] $ 8   : 0000000a 00000003 00000001 00000000
[ 3168.380000] $12   : 7fd18308 77e503a0 00000000 61747465
[ 3168.380000] $16   : 86919720 0000023a 00002c88 c0d1c000
[ 3168.380000] $20   : 00002d41 00038915 000008e8 00035c8d
[ 3168.380000] $24   : 6e324d61 8007acf0
[ 3168.380000] $28   : 86ba0000 86ba1d08 c0d1ec88 86a6fb78
[ 3168.380000] Hi    : 00000003
[ 3168.380000] Lo    : 00000000
[ 3168.380000] epc   : 86a6fb7c ath9k_dfs_process_phyerr+0x22e8/0x2d08 [ath9k]
[ 3168.380000]     Not tainted
[ 3168.380000] ra    : 86a6fb78 ath9k_dfs_process_phyerr+0x22e4/0x2d08 [ath9k]
[ 3168.380000] Status: 1000fc03 KERNEL EXL IE
[ 3168.380000] Cause : 0080001c
[ 3168.380000] PrId  : 00019374 (MIPS 24Kc)
[ 3168.380000] Modules linked in: ath9k ath9k_common pppoe ppp_async iptable_nat ath9k_hw ath pptp pppox ppp_mppe ppp_generic n           f_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 mac80211 ipt_REJECT ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_tcpmss xt_stati           stic xt_state xt_recent xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_id xt_hl xt_helper xt_esp xt_ecn xt_dscp xt_co           nntrack xt_connmark xt_connlimit xt_connbytes xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_HL xt_DSCP xt_CT xt_CLASSIFY usbserial            slhc nf_reject_ipv4 nf_nat_rtsp nf_nat_masquerade_ipv4 nf_nat_ftp nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrac           k_rtsp nf_conntrack_rtcache nf_conntrack_ftp nf_conntrack iptable_raw iptable_mangle iptable_filter ipt_ah ipt_ECN ip_tables cr           c_ccitt compat em_nbyte sch_dsmark sch_pie sch_codel em_meta sch_gred sch_htb sch_teql cls_basic act_ipt sch_prio em_text sch_t           bf sch_sfq sch_fq act_police em_cmp sch_red act_skbedit act_mirred em_u32 cls_u32 cls_tcindex cls_flow cls_route cls_fw sch_hfs           c sch_ingress leds_wndr3700_usb ledtrig_usbdev xt_set ip_set_list_set ip_set_hash_netiface ip_set_hash_netport ip_set_hash_netn           et ip_set_hash_net ip_set_hash_netportnet ip_set_hash_mac ip_set_hash_ipportnet ip_set_hash_ipportip ip_set_hash_ipport ip_set_           hash_ipmark ip_set_hash_ip ip_set_bitmap_port ip_set_bitmap_ipmac ip_set_bitmap_ip ip_set nfnetlink ip6t_REJECT nf_reject_ipv6            nf_log_ipv6 nf_log_common ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables msdos ip_gre gre ifb sit tunnel4 ip_           tunnel tun vfat fat ntfs hfsplus cifs nls_utf8 nls_iso8859_15 nls_iso8859_1 nls_cp850 nls_cp437 nls_cp1250 ipv6 sha256_generic            sha1_generic md5 md4 hmac ecb des_generic arc4 crypto_blkcipher usb_storage ohci_platform ohci_hcd ehci_platform ehci_hcd sd_mo           d scsi_mod gpio_button_hotplug ext4 jbd2 mbcache usbcore nls_base usb_common crc16 aead crypto_hash
[ 3168.380000] Process cat (pid: 11168, threadinfo=86ba0000, task=86767548, tls=77ed7440)
[ 3168.380000] Stack : 34383832 864d7640 86ba1e60 000008e4 00000000 00000001 864d75a0 87517818
[ 3168.380000]    86ba1e10 86a6fad0 864d75a0 864d75a8 86ba1e18 86ba1ef0 00000000 800f9a84
[ 3168.380000]    87517818 864d75a0 00000000 80105e88 86ba1e10 86ba1e60 00000000 86ba1e10
[ 3168.380000]    00000000 864d75a0 00000001 801088e8 86ba1e60 00000000 86baf037 86ba1ef0
[ 3168.380000]    fffffff6 86ba1e60 87bb49d0 875135d8 87517818 80106a04 00002000 00000000
[ 3168.380000]    ...
[ 3168.380000] Call Trace:
[ 3168.380000] [<86a6fb7c>] ath9k_dfs_process_phyerr+0x22e8/0x2d08 [ath9k]
[ 3168.380000]
[ 3168.380000]
[ 3168.380000] Code: 0040f809  02b2b823  3c0686a7 <afa20010> 03c02021  02e02821  24c63e4c  0c066c31  02c03821
[ 3168.700000] ---[ end trace 1c6a32bb5c47c185 ]---

comment:3 Changed 2 years ago by hnyman

Based on forum discussion, raz123 is running my community build.

After running several gigabytes of wifi traffic via either radio0 or radio1 on my trunk 48238 build, I have seen 0 hangs at /sys/kernel/debug/ieee80211/phy1/ath9k/reset (and /phy0/ ) with my WNDR3700v2.

So I am not quite that sure that the wifi driver is so unstable for WNDR3700/3800, in general. (however, I am currently running WNDR3700v2, not 3800 like raz123. But they should have identical radios, I think.)

comment:4 Changed 2 years ago by raz123

Hey hnyman :)

I suppose that it might have to do with the particular devices that are connecting to my WNDR3800, or perhaps the fact that I am running a 2.4 Ghz *and* a 5 Ghz AP?

All I know is that the difference in stability is day-and-night between CC and DD. The "Tx DMA stop error" count flies in DD. Flashing CC fixes that, along with the stability issue.

I have about 20-30 clients connected at any one time. All consumer device types (Apple, Android, Mac, Windows, Linux, etc.).

comment:5 Changed 2 years ago by raz123

DESIGNATED DRIVER (Bleeding Edge, r48259)

root@OpenWrt:/etc# uptime
 17:25:10 up 7 min,  load average: 0.07, 0.22, 0.17
root@OpenWrt:/etc# for W in reset interrupt queues;do for F in /sys/kernel/debug/ieee80211/phy*/ath9k/$W; do echo "### $F"; cat $F; done; done
### /sys/kernel/debug/ieee80211/phy0/ath9k/reset
    Baseband Hang:  0
Baseband Watchdog:  0
   Fatal HW Error:  0
      TX HW error:  0
 Transmit timeout:  0
     TX Path Hang:  0
      PLL RX Hang:  0
         MAC Hang: 29
     Stuck Beacon:  0
        MCI Reset:  0
Calibration error:  0
Tx DMA stop error: 28
Rx DMA stop error:  0
### /sys/kernel/debug/ieee80211/phy1/ath9k/reset
    Baseband Hang:  0
Baseband Watchdog:  0
   Fatal HW Error:  0
      TX HW error:  0
 Transmit timeout:  0
     TX Path Hang:  0
      PLL RX Hang:  0
         MAC Hang:  0
     Stuck Beacon:  1
        MCI Reset:  0
Calibration error:  0
Tx DMA stop error:  0
Rx DMA stop error:  0
### /sys/kernel/debug/ieee80211/phy0/ath9k/interrupt
                   RX:      68253
                RXEOL:          0
                RXORN:          0
                   TX:      94708
                TXURN:          0
                  MIB:          0
                RXPHY:          0
                RXKCM:          0
                 SWBA:      29984
                BMISS:          0
                  BNR:          0
                  CST:         35
                  GTT:          0
                  TIM:          0
               CABEND:          0
             DTIMSYNC:          0
                 DTIM:          0
               TSFOOR:          0
                  MCI:          0
             GENTIMER:          0
                TOTAL:     187241
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
### /sys/kernel/debug/ieee80211/phy1/ath9k/interrupt
                   RX:         76
                RXEOL:          0
                RXORN:          0
                   TX:         54
                TXURN:          0
                  MIB:          0
                RXPHY:          0
                RXKCM:          0
                 SWBA:      30149
                BMISS:          0
                  BNR:          0
                  CST:          2
                  GTT:          0
                  TIM:          0
               CABEND:          0
             DTIMSYNC:          0
                 DTIM:          0
               TSFOOR:          0
                  MCI:          0
             GENTIMER:          0
                TOTAL:      30279
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
### /sys/kernel/debug/ieee80211/phy0/ath9k/queues
(VO):  qnum: 3 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0
(VI):  qnum: 2 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0
(BE):  qnum: 1 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0
(BK):  qnum: 0 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0
(CAB): qnum: 8 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0
### /sys/kernel/debug/ieee80211/phy1/ath9k/queues
(VO):  qnum: 3 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0
(VI):  qnum: 2 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0
(BE):  qnum: 1 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0
(BK):  qnum: 0 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0
(CAB): qnum: 8 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0

comment:6 Changed 2 years ago by nbd

Aside from the logs, did the behavior of the clients change with that new build?

comment:7 Changed 2 years ago by raz123

nbd, (some) clients appear to experience turtle-slow internet. Is there a particular log that might reflect this behavior?

Fresh logs below. This is from DD r48259. Notice the DMA errors.

root@OpenWrt:~# uptime
 19:33:26 up 16:42,  load average: 0.17, 0.24, 0.13
root@OpenWrt:~# for W in reset interrupt queues;do for F in /sys/kernel/debug/ieee80211/phy*/ath9k/$W /sys/kernel/debug/ieee80211/phy*/queues; do echo "### $F"; cat $F; done; done
### /sys/kernel/debug/ieee80211/phy0/ath9k/reset
    Baseband Hang:  0
Baseband Watchdog:  0
   Fatal HW Error:  0
      TX HW error:  0
 Transmit timeout:  0
     TX Path Hang:  0
      PLL RX Hang:  0
         MAC Hang: 2806
     Stuck Beacon: 68
        MCI Reset:  0
Calibration error:  4
Tx DMA stop error: 2644
Rx DMA stop error:  2
### /sys/kernel/debug/ieee80211/phy1/ath9k/reset
    Baseband Hang:  0
Baseband Watchdog:  0
   Fatal HW Error:  0
      TX HW error:  0
 Transmit timeout:  0
     TX Path Hang:  0
      PLL RX Hang:  0
         MAC Hang:  0
     Stuck Beacon:  0
        MCI Reset:  0
Calibration error:  0
Tx DMA stop error:  0
Rx DMA stop error:  0
### /sys/kernel/debug/ieee80211/phy0/queues
00: 0x00000000/0
01: 0x00000000/0
02: 0x00000000/0
03: 0x00000000/0
### /sys/kernel/debug/ieee80211/phy1/queues
00: 0x00000000/0
01: 0x00000000/0
02: 0x00000000/0
03: 0x00000000/0
### /sys/kernel/debug/ieee80211/phy0/ath9k/interrupt
                   RX:   11998713
                RXEOL:          0
                RXORN:          0
                   TX:   18524571
                TXURN:          0
                  MIB:          0
                RXPHY:          0
                RXKCM:          0
                 SWBA:    4664178
                BMISS:          0
                  BNR:          0
                  CST:       7716
                  GTT:          0
                  TIM:          0
               CABEND:          0
             DTIMSYNC:          0
                 DTIM:          0
               TSFOOR:          0
                  MCI:          0
             GENTIMER:          0
                TOTAL:   34017505
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
### /sys/kernel/debug/ieee80211/phy1/ath9k/interrupt
                   RX:          0
                RXEOL:          0
                RXORN:          0
                   TX:          0
                TXURN:          0
                  MIB:          0
                RXPHY:          0
                RXKCM:          0
                 SWBA:          0
                BMISS:          0
                  BNR:          0
                  CST:          0
                  GTT:          0
                  TIM:          0
               CABEND:          0
             DTIMSYNC:          0
                 DTIM:          0
               TSFOOR:          0
                  MCI:          0
             GENTIMER:          0
                TOTAL:          0
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
### /sys/kernel/debug/ieee80211/phy0/queues
00: 0x00000000/0
01: 0x00000000/0
02: 0x00000000/0
03: 0x00000000/0
### /sys/kernel/debug/ieee80211/phy1/queues
00: 0x00000000/0
01: 0x00000000/0
02: 0x00000000/0
03: 0x00000000/0
### /sys/kernel/debug/ieee80211/phy0/ath9k/queues
(VO):  qnum: 3 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0
(VI):  qnum: 2 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0
(BE):  qnum: 1 qdepth:  2 ampdu-depth:  2 pending:  11 stopped: 0
(BK):  qnum: 0 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0
(CAB): qnum: 8 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0
### /sys/kernel/debug/ieee80211/phy1/ath9k/queues
(VO):  qnum: 3 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0
(VI):  qnum: 2 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0
(BE):  qnum: 1 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0
(BK):  qnum: 0 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0
(CAB): qnum: 8 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0
### /sys/kernel/debug/ieee80211/phy0/queues
00: 0x00000000/0
01: 0x00000000/0
02: 0x00000000/0
03: 0x00000000/0
### /sys/kernel/debug/ieee80211/phy1/queues
00: 0x00000000/0
01: 0x00000000/0
02: 0x00000000/0
03: 0x00000000/0
root@OpenWrt:~# cat /sys/kernel/debug/ieee80211/phy0/ath9k/dump_nfcal
Channel Noise Floor : -95
Chain | privNF | # Readings | NF Readings
 0       -108    5               -108 -108 -108 -109 -108
 1       -112    5               -112 -112 -112 -112 -112

comment:8 Changed 2 years ago by raz123

Forgot this:

[45351.931809] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42100020 DMADBG_7=0x000084c0
[58740.764926] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42100020 DMADBG_7=0x000084c0

comment:9 Changed 2 years ago by nbd

please try if r48744 works better for you

comment:10 Changed 22 months ago by raz123

Tried Designated Driver r49088. Connected devices experience frequent intermittent hiccups. I'm investigating.

Also: 2.4 Ghz appears to be much less stable than 5 Ghz.

Logs after 32 hours of uptime:

[45814.013009] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42100020 DMADBG_7=0x000084c0
[63977.573949] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42100020 DMADBG_7=0x000084c0
[66884.718715] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42100020 DMADBG_7=0x000084c0
[67645.040097] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42100020 DMADBG_7=0x000084c0
[69108.443669] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42100020 DMADBG_7=0x000084c0
[116877.326368] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42100020 DMADBG_7=0x000082c0

root@OpenWrt:~# for W in reset interrupt queues;do for F in /sys/kernel/debug/ie
ee80211/phy*/ath9k/$W; do echo "### $F"; cat $F; done; done
### /sys/kernel/debug/ieee80211/phy0/ath9k/reset
    Baseband Hang:  0
Baseband Watchdog:  0
   Fatal HW Error:  0
      TX HW error:  0
 Transmit timeout:  0
     TX Path Hang:  0
      PLL RX Hang:  0
         MAC Hang: 592
     Stuck Beacon: 113
        MCI Reset:  0
Calibration error:  1
Tx DMA stop error: 13
Rx DMA stop error:  6
### /sys/kernel/debug/ieee80211/phy1/ath9k/reset
    Baseband Hang:  0
Baseband Watchdog:  0
   Fatal HW Error:  0
      TX HW error:  0
 Transmit timeout:  0
     TX Path Hang:  0
      PLL RX Hang:  0
         MAC Hang:  1
     Stuck Beacon: 92
        MCI Reset:  0
Calibration error:  0
Tx DMA stop error:  0
Rx DMA stop error:  0
### /sys/kernel/debug/ieee80211/phy0/ath9k/interrupt
                   RX:   19098528
                RXEOL:          0
                RXORN:          0
                   TX:   27124101
                TXURN:          0
                  MIB:          0
                RXPHY:          0
                RXKCM:          0
                 SWBA:    9154044
                BMISS:          0
                  BNR:          0
                  CST:     227024
                  GTT:          0
                  TIM:          0
               CABEND:          0
             DTIMSYNC:          0
                 DTIM:          0
               TSFOOR:          0
                  MCI:          0
             GENTIMER:          0
                TOTAL:   54093266
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
### /sys/kernel/debug/ieee80211/phy1/ath9k/interrupt
                   RX:    1278542
                RXEOL:          0
                RXORN:          0
                   TX:    3041826
                TXURN:          0
                  MIB:          0
                RXPHY:          0
                RXKCM:          0
                 SWBA:    9157610
                BMISS:          0
                  BNR:          0
                  CST:        330
                  GTT:          0
                  TIM:          0
               CABEND:          0
             DTIMSYNC:          0
                 DTIM:          0
               TSFOOR:          0
                  MCI:          0
             GENTIMER:          0
                TOTAL:   13278834
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
### /sys/kernel/debug/ieee80211/phy0/ath9k/queues
(VO):  qnum: 3 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0
(VI):  qnum: 2 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0
(BE):  qnum: 1 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0
(BK):  qnum: 0 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0
(CAB): qnum: 8 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0
### /sys/kernel/debug/ieee80211/phy1/ath9k/queues
(VO):  qnum: 3 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0
(VI):  qnum: 2 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0
(BE):  qnum: 1 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0
(BK):  qnum: 0 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0
(CAB): qnum: 8 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0
Last edited 22 months ago by raz123 (previous) (diff)

Add Comment

Modify Ticket

Action
as new .
Author


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

 
Note: See TracTickets for help on using tickets.