[OpenWrt-Devel] [RFC/RFT PATCH] ath9k: implement kthread entropy collection for AR5008 and AR9002 PHYs.

Rui Salvaterra rsalvaterra at gmail.com
Thu Feb 13 04:28:15 EST 2020


Hi again, Felix,

On Mon, 10 Feb 2020 at 15:46, Rui Salvaterra <rsalvaterra at gmail.com> wrote:
>
> As an aside, this WZR-HP-AG300H is running as an AP, at a public
> institution, with 12 STAs connected, at the moment (8 at 2,4 GHz, 4 at
> 5 GHz), without any reported issues.

So, since Tuesday, I've been running cat /dev/random > /dev/null on
this router to stress the ADC entropy collection as much as possible.
Everything's working just fine, though I'm seeing this in
/sys/kernel/debug/ieee80211/phy?/ath9k/reset:

phy0 (2.4 GHz):
    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: 76
        MCI Reset:  0
Calibration error:  0
Tx DMA stop error: 69
Rx DMA stop error:  0

phy1 (5 GHz):
    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:  1
        MCI Reset:  0
Calibration error:  0
Tx DMA stop error:  0
Rx DMA stop error:  0

I suspect these errors might be related to the DMA stop sequence
(which you actually fixed/mitigated [1], as I seem to recall having
this issue on my TL-WDR3600), not the entropy collection. In any case,
I'm going to test an image which reverses the stop sequence also on
AR9002, to see if this has any effect. Note that
/sys/kernel/debug/ieee80211/phy?/ath9k/queues are completely clean on
both PHYs:

phy0 (2.4 GHz):
(VO):  qnum: 3 qdepth:  0 ampdu-depth:  0 pending:   0
(VI):  qnum: 2 qdepth:  0 ampdu-depth:  0 pending:   0
(BE):  qnum: 1 qdepth:  0 ampdu-depth:  0 pending:   0
(BK):  qnum: 0 qdepth:  0 ampdu-depth:  0 pending:   0
(CAB): qnum: 8 qdepth:  0 ampdu-depth:  0 pending:   0

phy1 (5 GHz):
(VO):  qnum: 3 qdepth:  0 ampdu-depth:  0 pending:   0
(VI):  qnum: 2 qdepth:  0 ampdu-depth:  0 pending:   0
(BE):  qnum: 1 qdepth:  0 ampdu-depth:  0 pending:   0
(BK):  qnum: 0 qdepth:  0 ampdu-depth:  0 pending:   0
(CAB): qnum: 8 qdepth:  0 ampdu-depth:  0 pending:   0

Thanks,
Rui

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/net/wireless/ath/ath9k?id=300f77c08ded96d33f492aaa02549103852f0c12

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



More information about the openwrt-devel mailing list