Skip to contentSkip to conversation

ath10k kernel cannot allocate memory after some ifupdown cycles

DISCUSSION Patrick Daume 1 participant 1 message Jun 13, 2019 Qualcomm Atheros ATH10K wireless driver

lore
Share & tools
lore
#0 lore raw

I've an SparkLan WPEQ-261ACN(BT) Qualcomm Atheros QCA6174 chipset on an 4.4.38 Kernel with the newest kernel backport 'v5.1-rc2'. When i toggle the wlan0 interface in 10s cycles then the kernel cannot allocate memory after a while.
Can anyone point out which patches may be relavant to fix this issue?

watch -n 10 sudo ./toggle.sh
+ sudo ifup wlan0
RTNETLINK answers: Cannot allocate memory
+ sleep 10s
+ sudo ifdown wlan0

dmesg

[ 1917.775193] ath10k_pci 0000:01:00.0: unsupported HTC service id: 1536
[ 1917.812460] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 1943.467822] ath10k_pci 0000:01:00.0: unsupported HTC service id: 1536
[ 1943.508383] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 1969.157238] ath10k_pci 0000:01:00.0: unsupported HTC service id: 1536
[ 1969.196090] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 1994.850710] ath10k_pci 0000:01:00.0: unsupported HTC service id: 1536
[ 1994.891609] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 2020.546382] ath10k_pci 0000:01:00.0: unsupported HTC service id: 1536
[ 2020.587174] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 2046.241897] ath10k_pci 0000:01:00.0: unsupported HTC service id: 1536
[ 2046.283581] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 2071.937823] ath10k_pci 0000:01:00.0: unsupported HTC service id: 1536
[ 2071.979395] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 2097.633628] ath10k_pci 0000:01:00.0: unsupported HTC service id: 1536
[ 2097.675403] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 2123.330689] ath10k_pci 0000:01:00.0: unsupported HTC service id: 1536
[ 2123.381449] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 2149.033861] ath10k_pci 0000:01:00.0: unsupported HTC service id: 1536
[ 2149.080214] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 2174.734434] ath10k_pci 0000:01:00.0: unsupported HTC service id: 1536
[ 2174.776393] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 2200.413865] ath10k_pci 0000:01:00.0: failed to write diag value at 0xa7000: -12
[ 2200.423219] ath10k_pci 0000:01:00.0: failed to download firmware via diag interface:-12
[ 2200.433298] ath10k_pci 0000:01:00.0: failed to upload firmware via diag ce, trying BMI: -12
[ 2200.992785] ath10k_pci 0000:01:00.0: unsupported HTC service id: 1536
[ 2201.034673] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 2216.242340] ath10k_pci 0000:01:00.0: failed to read hi_board_data address: -12
[ 2226.622023] ath10k_pci 0000:01:00.0: Failed to get pcie state addr: -12
[ 2226.629859] ath10k_pci 0000:01:00.0: failed to setup init config: -12
[ 2226.637622] ath10k_pci 0000:01:00.0: Could not init hif: -12

hwinfo
description: Ethernet interface
product: QCA6174 802.11ac Wireless Network Adapter
vendor: Qualcomm Atheros
physical id: 0
bus info: pci@0000:01:00.0
logical name: wlan0
version: 32
serial: [REMOVED]
width: 64 bits
clock: 33MHz
capabilities: bus_master cap_list ethernet physical
configuration: broadcast=yes driver=ath10k_pci driverversion=4.4.38 firmware=WLAN.RM.4.4.1.c3-00030 latency=0 link=no multicast=yes
resources: irq:452 memory:50200000-503fffff

Quoted 1 line
Quoted 1 line

#/bin/bash

set -x

sudo ifup wlan0
sleep 10s
sudo ifdown wlan0
<<
_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k