You are not logged in.

#1 2021-08-15 05:13:37

darris
Member
Registered: 2012-04-29
Posts: 23

[SOLVED] On occasional boot, QCA6174 wifi doesn't work. ath10k driver

Also probably unrelated, but my trackpad also doesn't work on occasional startups. But both are causing me headaches. They don't always happen at the same time. Sometimes the wifi card works but the mouse doesn't. Sometimes the mouse works but the wifi doesn't. Today, the trackpad works and the wifi doesn't.

Laptop: Acer Nitro 5 AN515-42-R5ED (the AMD one)

$ uname -a
Linux darris-nitroan51542 5.13.6-zen1-1-zen #1 ZEN SMP PREEMPT Thu, 29 Jul 2021 00:21:08 +0000 x86_64 GNU/Linux

Issue: Sometimes I boot up and the wifi scan will see all of the nearby networks for about three seconds before it indicates that there are no networks available.
Note: When it does work, it works permanently. There are no intermittent drops or slow speeds. My workaround has been restarting my computer over and over until both the mouse and the wifi work and then avoiding shutting down. Obviously this is not ideal lol

wlp3s0 is down.

$ iplink 
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp2s0f1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN mode DEFAULT group default qlen 1000
    link/ether 98:28:a6:30:84:11 brd ff:ff:ff:ff:ff:ff
3: wlp3s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noqueue state DOWN mode DORMANT group default qlen 1000
    link/ether ea:99:e1:93:1f:76 brd ff:ff:ff:ff:ff:ff permaddr f8:a2:d6:55:24:a7
5: enp4s0f3u1c4i2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
    link/ether be:fe:d9:37:f4:bb brd ff:ff:ff:ff:ff:ff

ath10k driver is being used, though modified to no effect (more on that below).

$ lspci -kv 
03:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter (rev 32)
	Subsystem: Lite-On Communications Inc Device 0807
	Flags: bus master, fast devsel, latency 0, IRQ 65, IOMMU group 10
	Memory at e0200000 (64-bit, non-prefetchable) [size=2M]
	Capabilities: [40] Power Management version 3
	Capabilities: [50] MSI: Enable+ Count=1/8 Maskable+ 64bit-
	Capabilities: [70] Express Endpoint, MSI 00
	Capabilities: [100] Advanced Error Reporting
	Capabilities: [148] Virtual Channel
	Capabilities: [168] Device Serial Number 00-00-00-00-00-00-00-00
	Capabilities: [178] Latency Tolerance Reporting
	Capabilities: [180] L1 PM Substates
	Kernel driver in use: ath10k_pci
	Kernel modules: ath10k_pci

When I searched the dmesg log for ath10k, everything is failing.

# dmesg | grep ath10k
[ 4059.023621] ath10k_pci 0000:03:00.0: failed to receive initialized event from target: 00000000
[ 4059.023627] ath10k_pci 0000:03:00.0: failed to wait for target after cold reset: -110
[ 4059.023631] ath10k_pci 0000:03:00.0: failed to reset chip: -110
[ 4059.023634] ath10k_pci 0000:03:00.0: Could not init hif: -110
[ 4475.040158] ath10k_pci 0000:03:00.0: failed to receive initialized event from target: 00000000
[ 4475.040163] ath10k_pci 0000:03:00.0: failed to wait for target after cold reset: -110
[ 4475.040167] ath10k_pci 0000:03:00.0: failed to reset chip: -110
[ 4475.040169] ath10k_pci 0000:03:00.0: Could not init hif: -110

I have ath10k driver installed, but I messed with it to try to fix this. I have reversed and reimplemented the change to no effect.

# pacman -Fl linux | grep ath10k
linux usr/lib/modules/5.13.10-arch1-1/kernel/drivers/net/wireless/ath/ath10k/
linux usr/lib/modules/5.13.10-arch1-1/kernel/drivers/net/wireless/ath/ath10k/ath10k_core.ko.zst
linux usr/lib/modules/5.13.10-arch1-1/kernel/drivers/net/wireless/ath/ath10k/ath10k_pci.ko.zst
linux usr/lib/modules/5.13.10-arch1-1/kernel/drivers/net/wireless/ath/ath10k/ath10k_sdio.ko.zst
linux usr/lib/modules/5.13.10-arch1-1/kernel/drivers/net/wireless/ath/ath10k/ath10k_usb.ko.zst

Also potentially relevant: the "ath10k_core" is used by "ath10k_pci" and "ath10k_pci" isn't used by anything when I run

$ lsmod 
...
ath10k_pci             57344  0
uvcvideo              126976  0
ath10k_core           684032  1 ath10k_pci
...

and searching for ath10k finds other things that seem messy.

$ lsmod | grep ath10k
ath10k_pci             57344  0
ath10k_core           684032  1 ath10k_pci
ath                    36864  1 ath10k_core
mac80211             1241088  1 ath10k_core
cfg80211             1069056  3 ath,mac80211,ath10k_core

Note that I have (perhaps foolishly) messed with the ath10k driver following a post here ( https://bbs.archlinux.org/viewtopic.php?id=208874 ), but it did not solve the problem.

I do have linux-firmware installed.

I'll make a separate topic for the trackpad thing because I'm 90% sure it's unrelated lol

Last edited by darris (2021-08-17 16:26:39)

Offline

#2 2021-08-15 06:00:22

seth
Member
Registered: 2012-09-03
Posts: 61,056

Re: [SOLVED] On occasional boot, QCA6174 wifi doesn't work. ath10k driver

Also probably unrelated: how many windows installations do you have on the system?

Offline

#3 2021-08-15 15:05:47

darris
Member
Registered: 2012-04-29
Posts: 23

Re: [SOLVED] On occasional boot, QCA6174 wifi doesn't work. ath10k driver

seth wrote:

Also probably unrelated: how many windows installations do you have on the system?

I have one Windows VM in Gnome Boxes and I run Windows from a USB harddrive when I need Windows software, but I don't have any Windows partitions

Offline

#4 2021-08-15 15:13:44

seth
Member
Registered: 2012-09-03
Posts: 61,056

Re: [SOLVED] On occasional boot, QCA6174 wifi doesn't work. ath10k driver

I run Windows from a USB harddrive when I need Windows software, but I don't have any Windows partitions

Whether the partition is on an internal or external drive doesn't matter. Ensure that it's not hibernating (or using "fast start", which is the same)

Offline

#5 2021-08-15 15:25:10

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] On occasional boot, QCA6174 wifi doesn't work. ath10k driver

Post the output of...

find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f

No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#6 2021-08-16 04:12:30

darris
Member
Registered: 2012-04-29
Posts: 23

Re: [SOLVED] On occasional boot, QCA6174 wifi doesn't work. ath10k driver

Slithery wrote:

Post the output of...

find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f

Here's the output:

avahi-daemon.service                     | multi-user.target.wants
avahi-daemon.socket                      | sockets.target.wants
bluetooth-autoconnect.service            | bluetooth.service.wants
bluetooth.service                        | bluetooth.target.wants
btrfs-balance.timer                      | timers.target.wants
btrfs-defrag.timer                       | timers.target.wants
btrfs-scrub.timer                        | timers.target.wants
btrfs-trim.timer                         | timers.target.wants
cronie.service                           | multi-user.target.wants
cups.socket                              | sockets.target.wants
dbus-org.bluez.service                   | system
dbus-org.freedesktop.Avahi.service       | system
dbus-org.freedesktop.ModemManager1.service | system
dbus-org.freedesktop.nm-dispatcher.service | system
dbus-org.freedesktop.timesync1.service   | system
dirmngr.socket                           | sockets.target.wants
display-manager.service                  | system
fstrim.timer                             | timers.target.wants
getty@tty1.service                       | getty.target.wants
gpg-agent-browser.socket                 | sockets.target.wants
gpg-agent-extra.socket                   | sockets.target.wants
gpg-agent.socket                         | sockets.target.wants
gpg-agent-ssh.socket                     | sockets.target.wants
grub-btrfs.path                          | run-timeshift-backup.mount.wants
haveged.service                          | sysinit.target.wants
ipp-usb.service                          | multi-user.target.wants
joycond.service                          | multi-user.target.wants
libvirtd-ro.socket                       | sockets.target.wants
libvirtd.service                         | multi-user.target.wants
libvirtd.socket                          | sockets.target.wants
linux-modules-cleanup.service            | basic.target.wants
memavaild.service                        | multi-user.target.wants
ModemManager.service                     | multi-user.target.wants
NetworkManager.service                   | multi-user.target.wants
NetworkManager-wait-online.service       | network-online.target.wants
nmb.service                              | multi-user.target.wants
nohang-desktop.service                   | multi-user.target.wants
p11-kit-server.socket                    | sockets.target.wants
pamac-cleancache.timer                   | timers.target.wants
pipewire-media-session.service           | pipewire.service.wants
pipewire-pulse.socket                    | sockets.target.wants
pipewire.socket                          | sockets.target.wants
preload.service                          | multi-user.target.wants
prelockd.service                         | multi-user.target.wants
remote-fs.target                         | multi-user.target.wants
saned.socket                             | sockets.target.wants
script.service                           | multi-user.target.wants
smb.service                              | multi-user.target.wants
systemd-timesyncd.service                | sysinit.target.wants
virtlockd.socket                         | sockets.target.wants
virtlogd.socket                          | sockets.target.wants
xdg-user-dirs-update.service             | default.target.wants

Offline

#7 2021-08-16 04:14:59

darris
Member
Registered: 2012-04-29
Posts: 23

Re: [SOLVED] On occasional boot, QCA6174 wifi doesn't work. ath10k driver

seth wrote:

I run Windows from a USB harddrive when I need Windows software, but I don't have any Windows partitions

Whether the partition is on an internal or external drive doesn't matter. Ensure that it's not hibernating (or using "fast start", which is the same)

I think I had disabled fast start on it recently, but I accidentally did a stupid rm command when I was trying to take fonts from it for my Arch installation and now it won't boot, but I am pretty sure I had turned off the fast start already. smile

Offline

#8 2021-08-16 06:00:24

seth
Member
Registered: 2012-09-03
Posts: 61,056

Re: [SOLVED] On occasional boot, QCA6174 wifi doesn't work. ath10k driver

The fact that random devices don't show up at random boots is too weird…

Please post some system journals covering bad boots and goot boots

sudo journalctl -b -1 # previous boot

You can conveniently pipe them into ix.io with the tip in the first link below.

Offline

#9 2021-08-16 07:42:17

darris
Member
Registered: 2012-04-29
Posts: 23

Re: [SOLVED] On occasional boot, QCA6174 wifi doesn't work. ath10k driver

seth wrote:

The fact that random devices don't show up at random boots is too weird…

Please post some system journals covering bad boots and goot boots

sudo journalctl -b -1 # previous boot

You can conveniently pipe them into ix.io with the tip in the first link below.

For some reason, maybe because I'm doing it wrong at 2:40 am, the ix.io command is giving me a

curl: (52) Empty reply from server 

error.

This is what I ran:

 sudo journalctl -b -1 | curl -F 'f:1=<-' ix.io http://ix.io/darris 

This boot is good, so I have -b -0 also, but I can only copy the first 10,000 lines manually

Offline

#10 2021-08-16 07:45:53

seth
Member
Registered: 2012-09-03
Posts: 61,056

Re: [SOLVED] On occasional boot, QCA6174 wifi doesn't work. ath10k driver

Whether you've an ix.io account or not, the trailing "http://ix.io/darris" isn't supposed to be there.
"http://ix.io/fpW" in the tl;dr is an example URL you get in return and where your upload is.

Offline

#11 2021-08-16 17:27:14

darris
Member
Registered: 2012-04-29
Posts: 23

Re: [SOLVED] On occasional boot, QCA6174 wifi doesn't work. ath10k driver

I found a solution! (I think)
ath10k adapters often have issues not initializing at boot and dropping connections. I fixed it by adding this kernel boot parameter in grub.

For anyone else with this issue:
Create a backup of grub

# cp /etc/default/grub /etc/default/grub.bak

Edit the file /etc/default/grub with whatever editor you like.

At the end of the string in the quotes at the GRUB_CMDLINE_LINUX_DEFAULT="" add

pcie_aspm=off ath10k_core.skip_otp=y 

This makes it avoid going into powersaving mode, which I think must be the source of the issue.

Then update grub of course.

# update-grub

After doing this, I have rebooted five times and have not had the wifi issue again yet.
Should I add this to the wiki?

Offline

#12 2021-08-16 20:42:39

seth
Member
Registered: 2012-09-03
Posts: 61,056

Re: [SOLVED] On occasional boot, QCA6174 wifi doesn't work. ath10k driver

It's somewhat mentioned in https://wiki.archlinux.org/title/Alienware_13#Wireless
Assuming this is the definitve cause, it'd certainly be a relevant entry to https://wiki.archlinux.org/title/Laptop/Acer#Nitro

Offline

Board footer

Powered by FluxBB