greearb / ath10k-ct

Stand-alone ath10k driver based on Candela Technologies Linux kernel.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WIFI freeze on TP Link C7 - Many hash collisions

clebersantz opened this issue · comments

Please provide this info. See this link for more info on how to gather debug
info: http://www.candelatech.com/ath10k-bugs.php

Description of the problem (how to configure, how to reproduce, how often it happens).
My 2.4Ghz WIFI is freezing constantly, as described in post https://forum.openwrt.org/t/archer-c7-2-4-ghz-wireless-dies-in-24-48-hours/. This happen when transfering large files (more than 4Gb) or watch 4K streaming movies.
As they suggest in the lasts posts, I change memory limit to less than 2M iw phy phy1 set txq memory_limit 2000000. With 2M or more it still freeze even browsing internet after few hours, now with 2M it just keep freezing with large files or streaming.

Investigating a little more I find that when I browse internet for a long time the command iw phy phy1 get txq dont show hash collisions, but when start transfering a big file it grows very quickly from 0 to almost 2M:
Hash collisions: 1904738

I read that hash collisions is “normal” and can be caused by many wlan interferences, but it seems very strange that it grown so fast and only in high WIFI usage, using only Firefox the hash collisions keeps the same for a long time.

Software (OS, Firmware version, kernel, driver, etc)
Linux OpenWrt 4.14.221 #0 Mon Feb 15 15:22:37 2021 mips GNU/Linux
OpenWrt 19.07.7

ath10k-firmware-qca988x-ct / 2020-07-02-1
kmod-ath10k-ct / 4.14.221+4.19.161-1-1

TP Link Archer C7 AC7500 v2 US

Hardware (NIC chipset, platform, etc)
00:00.0 Network controller: Qualcomm Atheros QCA986x/988x 802.11ac Wireless Network Adapter
Qualcomm Atheros QCA9558 ver 1 rev 0

Logs (dmesg, maybe and/or hostap)
root@OpenWrt:~# dmesg | grep pci
[ 0.130372] PCI host bridge /ahb/pcie-controller@18250000 ranges:
[ 0.166176] pci_bus 0000:00: root bus resource [mem 0x12000000-0x13ffffff]
[ 0.173525] pci_bus 0000:00: root bus resource [io 0x0001]
[ 0.179450] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 0.186681] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.195133] pci 0000:00:00.0: [168c:003c] type 00 class 0x028000
[ 0.195187] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
[ 0.195241] pci 0000:00:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[ 0.195313] pci 0000:00:00.0: supports D1 D2
[ 0.195485] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[ 0.195508] pci 0000:00:00.0: BAR 0: assigned [mem 0x12000000-0x121fffff 64bit]
[ 0.203330] pci 0000:00:00.0: BAR 6: assigned [mem 0x12200000-0x1220ffff pref]
[ 12.495965] ath10k 4.19 driver, optimized for CT firmware, probing pci device: 0x3c.
[ 12.520002] ath10k_pci 0000:00:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
[ 12.833763] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/fwcfg-pci-0000:00:00.0.txt failed with error -2
[ 12.844476] ath10k_pci 0000:00:00.0: Falling back to user helper
[ 13.132388] firmware ath10k!fwcfg-pci-0000:00:00.0.txt: firmware_loading_store: map pages failed
[ 13.141578] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:00:00.0.bin failed with error -2
[ 13.152457] ath10k_pci 0000:00:00.0: Falling back to user helper
[ 13.528560] firmware ath10k!pre-cal-pci-0000:00:00.0.bin: firmware_loading_store: map pages failed
[ 13.539892] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/ct-firmware-5.bin failed with error -2
[ 13.551052] ath10k_pci 0000:00:00.0: Falling back to user helper
[ 13.943683] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/ct-firmware-2.bin failed with error -2

Please attach 'dmesg' output after you get a freeze and before you reboot/recover from that freeze. Possibly you need a serial console in order to get this if your entire AP dies?