You are not logged in.

#1 2020-04-04 18:33:49

sojuz151
Member
Registered: 2020-04-04
Posts: 3

Wifi droping on Qualcomm Atheros QCA9377

When punting wife under stress by speed testing or file downloading it randomly crashes.  Happens only on 5GHz( tested phone hotspot on 2.4 GHz with no crash) . It can be fixed by forcing nmctl to reconnect to Wifi Network.  I use  lenovo S340-14IPS, no problems under windows. 

Ping during typical crash:

    64 bytes from 1.1.1.1: icmp_seq=20 ttl=56 time=32.2 ms
    64 bytes from 1.1.1.1: icmp_seq=21 ttl=56 time=31.1 ms
    64 bytes from 1.1.1.1: icmp_seq=22 ttl=56 time=35.9 ms
    64 bytes from 1.1.1.1: icmp_seq=23 ttl=56 time=48.3 ms
    64 bytes from 1.1.1.1: icmp_seq=24 ttl=56 time=40.6 ms
    64 bytes from 1.1.1.1: icmp_seq=25 ttl=56 time=212 ms
    ping: sendmsg: Brak miejsca w buforze
    ping: sendmsg: Brak miejsca w buforze
    ping: sendmsg: Brak miejsca w buforze
    ping: sendmsg: Brak miejsca w buforze
    ping: sendmsg: Brak miejsca w buforze

where
    Brak miejsca w buforze = No space in buffer.

Some command outputs:

dmesg | grep ath                             
    [    4.166589] ath10k_pci 0000:02:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
    [    4.416299] ath10k_pci 0000:02:00.0: qca9377 hw1.1 target 0x05020001 chip_id 0x003821ff sub 17aa:0901
    [    4.416301] ath10k_pci 0000:02:00.0: kconfig debug 1 debugfs 1 tracing 1 dfs 0 testmode 0
    [    4.416823] ath10k_pci 0000:02:00.0: firmware ver WLAN.TF.2.1-00021-QCARMSWP-1 api 6 features wowlan,ignore-otp crc32 42e41877
    [    4.480489] ath10k_pci 0000:02:00.0: board_file api 2 bmi_id N/A crc32 8aedfa4a
    [    4.555655] ath10k_pci 0000:02:00.0: unsupported HTC service id: 1536
    [    4.573997] ath10k_pci 0000:02:00.0: htt-ver 3.56 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
    [    4.646117] ath: EEPROM regdomain: 0x6c
    [    4.646119] ath: EEPROM indicates we should expect a direct regpair map
    [    4.646122] ath: Country alpha2 being used: 00
    [    4.646123] ath: Regpair used: 0x6c
    [    4.650068] ath10k_pci 0000:02:00.0 wlp2s0: renamed from wlan0
    [    5.725556] ath10k_pci 0000:02:00.0: unsupported HTC service id: 1536
    [    6.052092] ath10k_pci 0000:02:00.0: unsupported HTC service id: 1536
    lspci
    00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Root Complex
    00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 IOMMU
    00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
    00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
    00:01.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
    00:01.7 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
    00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
    00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Internal PCIe GPP Bridge 0 to Bus A
    00:08.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Internal PCIe GPP Bridge 0 to Bus B
    00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 61)
    00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
    00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 0
    00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 1
    00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 2
    00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 3
    00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 4
    00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 5
    00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 6
    00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 7
    01:00.0 SD Host controller: O2 Micro, Inc. SD/MMC Card Reader Controller (rev 01)
    02:00.0 Network controller: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter (rev 31)
    03:00.0 Non-Volatile memory controller: Sandisk Corp Device 5005 (rev 01)
    04:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Picasso (rev c2)
    04:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Raven/Raven2/Fenghuang HDMI/DP Audio Controller
    04:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
    04:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1
    04:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1
    04:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor
    04:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) HD Audio Controller
    05:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 61)

dmesg:
    http://ix.io/2gDU
sudo journalctl -b
    http://ix.io/2gDZ

Last edited by sojuz151 (2020-04-04 19:21:11)

Offline

#2 2020-04-04 18:58:48

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,619

Re: Wifi droping on Qualcomm Atheros QCA9377

Please wrap those outputs in [ code ]  [ /code ] tags without the spaces.

Offline

#3 2020-04-04 19:26:44

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: Wifi droping on Qualcomm Atheros QCA9377

You could try disabling hardware encryption (hwcrypto=0 module option) or disable power saving:

# iw dev wlp2s0 set power_save off

^ If that works make a udev rule to set it permanently: https://wiki.archlinux.org/index.php/Po … interfaces ← that rule enables power saving so invert the boolean for your case.

But I had one of those cards in my ThinkPad and it ran *very* hot and degraded in performance over time so it might be best to just replace it. I'm using an Intel AC 9260 now, which only cost £20 and performs faultlessly.

EDIT: you have recurrent coredumps from KDE's activity manager in that log, might be worth investigating (but probably unrelated to your network issue).

Last edited by Head_on_a_Stick (2020-04-04 19:30:24)

Offline

#4 2020-04-04 20:02:46

sojuz151
Member
Registered: 2020-04-04
Posts: 3

Re: Wifi droping on Qualcomm Atheros QCA9377

So i tired

sudo modprobe  ath10k_core nohwcrypt=1 skip_otp=y hwcrypto=0
sudo modprobe  ath10k_pci nohwcrypt=1 skip_otp=y hwcrypto=0

nohwcrypt=1 skip_otp=y are other options i have seen being suggested online.  Unfortunate neither of thous modules seems to understated no hardware encryption. 

[    4.074139] ath10k_pci 0000:02:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[    4.322192] ath10k_pci 0000:02:00.0: qca9377 hw1.1 target 0x05020001 chip_id 0x003821ff sub 17aa:0901
[    4.322196] ath10k_pci 0000:02:00.0: kconfig debug 1 debugfs 1 tracing 1 dfs 0 testmode 0
[    4.322895] ath10k_pci 0000:02:00.0: firmware ver WLAN.TF.2.1-00021-QCARMSWP-1 api 6 features wowlan,ignore-otp crc32 42e41877
[    4.386606] ath10k_pci 0000:02:00.0: board_file api 2 bmi_id N/A crc32 8aedfa4a
[    4.461579] ath10k_pci 0000:02:00.0: unsupported HTC service id: 1536
[    4.480004] ath10k_pci 0000:02:00.0: htt-ver 3.56 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
[    4.556387] ath10k_pci 0000:02:00.0 wlp2s0: renamed from wlan0
[    5.494495] ath10k_pci 0000:02:00.0: unsupported HTC service id: 1536
[    5.820584] ath10k_pci 0000:02:00.0: unsupported HTC service id: 1536
[   42.624684] ath10k_core: unknown parameter 'nohwcrypt' ignored
[  143.489845] ath10k_core: unknown parameter 'nohwcrypt' ignored
[  143.489848] ath10k_core: unknown parameter 'hwcrypto' ignored
[  190.599105] ath10k_pci 0000:02:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[  190.865483] ath10k_pci 0000:02:00.0: qca9377 hw1.1 target 0x05020001 chip_id 0x003821ff sub 17aa:0901
[  190.865485] ath10k_pci 0000:02:00.0: kconfig debug 1 debugfs 1 tracing 1 dfs 0 testmode 0
[  190.866007] ath10k_pci 0000:02:00.0: firmware ver WLAN.TF.2.1-00021-QCARMSWP-1 api 6 features wowlan,ignore-otp crc32 42e41877
[  190.930733] ath10k_pci 0000:02:00.0: board_file api 2 bmi_id N/A crc32 8aedfa4a
[  191.005693] ath10k_pci 0000:02:00.0: unsupported HTC service id: 1536
[  191.024100] ath10k_pci 0000:02:00.0: htt-ver 3.56 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
[  191.101874] ath10k_pci 0000:02:00.0 wlp2s0: renamed from wlan0
[  191.366774] ath10k_pci 0000:02:00.0: unsupported HTC service id: 1536
[  191.683305] ath10k_pci 0000:02:00.0: unsupported HTC service id: 1536
[  192.006648] ath10k_pci 0000:02:00.0: unsupported HTC service id: 1536
[  197.220276] ath10k_pci 0000:02:00.0: unsupported HTC service id: 1536
[  208.114465] ath10k_pci: unknown parameter 'nohwcrypt' ignored
[  208.114467] ath10k_pci: unknown parameter 'skip_otp' ignored
[  208.114467] ath10k_pci: unknown parameter 'hwcrypto' ignored
[  208.117458] ath10k_pci 0000:02:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[  208.385488] ath10k_pci 0000:02:00.0: qca9377 hw1.1 target 0x05020001 chip_id 0x003821ff sub 17aa:0901
[  208.385491] ath10k_pci 0000:02:00.0: kconfig debug 1 debugfs 1 tracing 1 dfs 0 testmode 0
[  208.386013] ath10k_pci 0000:02:00.0: firmware ver WLAN.TF.2.1-00021-QCARMSWP-1 api 6 features wowlan,ignore-otp crc32 42e41877
[  208.450743] ath10k_pci 0000:02:00.0: board_file api 2 bmi_id N/A crc32 8aedfa4a
[  208.525749] ath10k_pci 0000:02:00.0: unsupported HTC service id: 1536
[  208.544263] ath10k_pci 0000:02:00.0: htt-ver 3.56 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
[  208.625033] ath10k_pci 0000:02:00.0 wlp2s0: renamed from wlan0
[  208.870317] ath10k_pci 0000:02:00.0: unsupported HTC service id: 1536
[  209.190476] ath10k_pci 0000:02:00.0: unsupported HTC service id: 1536
[  209.510072] ath10k_pci 0000:02:00.0: unsupported HTC service id: 1536
[  214.746633] ath10k_pci 0000:02:00.0: unsupported HTC service id: 1536

From what i seen on other forums Lenovo has a wiki card whitelist. It can be bypassed by dumping bios and editing it in IDA Pro what is not a great solution.
Enabling power saving did not help. I still get crashes.   Will try to cannibalize wifi card from old laptop, it did work well with Linux.

Offline

#5 2020-04-04 20:08:19

loqs
Member
Registered: 2014-03-06
Posts: 17,304

Re: Wifi droping on Qualcomm Atheros QCA9377

You can find the options a module supports with

modinfo modulename

Edit:
For the ath10k it should be
cryptmode=1 https://github.com/torvalds/linux/blob/ … core.c#L53

Last edited by loqs (2020-04-04 20:12:19)

Offline

#6 2020-04-04 20:12:49

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: Wifi droping on Qualcomm Atheros QCA9377

sojuz151 wrote:

nohwcrypt=1 skip_otp=y are other options i have seen being suggested online.  Unfortunate neither of thous modules seems to understated no hardware encryption.

No need to guess, look at /sys/module/ath10k_pci/parameters/ to find all of the available options and their currently applied parameters. EDIT: or try loqs' suggestion /EDIT

You posted dmesg(1) output seems to show that the hwcrypto=1 option is currently applied, hence my suggestion. I can't remember what I tried with my card though, unfortunately.

sojuz151 wrote:

From what i seen on other forums Lenovo has a wiki card whitelist.

Well the Intel card works fine on my Lenovo. Perhaps ask on the official support channels for a list of "approved" hardware.

sojuz151 wrote:

Enabling power saving did not help

My suggestion was to disable power saving. There may be a module option for that.

Last edited by Head_on_a_Stick (2020-04-04 20:15:05)

Offline

#7 2020-04-04 20:47:33

sojuz151
Member
Registered: 2020-04-04
Posts: 3

Re: Wifi droping on Qualcomm Atheros QCA9377

Yes i did disable power saving, what didn't help.
I tired to disable hw crypto with
sudo modprobe ath10k_core  cryptmode=1
but that gives you errors in dmesg and not working wifi.

[ 180.416551] ath10k_pci 0000:02:00.0: cryptmode > 0 requires raw mode support from firmware
[  180.416554] ath10k_pci 0000:02:00.0: fatal problem with firmware features: -22
[  180.416599] ath10k_pci 0000:02:00.0: could not probe fw (-22)

Offline

Board footer

Powered by FluxBB