You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Latest kernel causes issues with the ath10k driver (SQ1/8/512 - potential regression?) #42
I have been testing Arch Linux on my SQ1 Surface Pro X for a while now and generally experimented with a variety of areas such as GPU, CPU behaviour, etc.
However recently, the latest kernel (seemingly) has a regression which causes the kernel to constantly panic after connecting to a Wi-Fi network (not instantly, this usually takes a random amount of time, ranging from a single minute up to 20 minutes)
SError Interrupt on CPU0, code 0x00000000be000011 ... pc : ath10k_snoc_napi_poll+0x84/0x150 [ath10k_snoc]
Suggests that the WiFi driver in the kernel is acting up, but I wonder why?
As far as I know, this issue was not present in the previous kernel versions... Any ideas as to the cause? I can add extra details if you wish, just ask!
[System Specs] - Surface Pro X
CPU: SQ1
RAM: 8GB
SSD: 512GB
Kernel Ver: linux-surface 6.0.3-1
Boot method: USB with DTB
Thanks for reporting this. I had some spurious issues with wifi already in 6.0.1. In particular it freezed the desktop, but I assume they're the same problem as I was able to confirm your log by dropping to a tty in 6.0.3 (which also has these issues). Unfortunately I haven't had the time yet to dig into this more.
I'm having some difficulties debugging this... It seems that since it's asynchronous we can't rely on the program counter or stack trace to point us to the specific place where it's failing. I do get some variation with the PC, but ath10k_snoc_napi_poll is always in the backtrace, so I'm assuming it's got something to do with that.
Status update from Surface Pro X SQ2 on Linux 7.3.1-1-surface:
The old 6.0 SError Interrupt in ath10k_snoc_napi_poll no longer occurs on current 7.x kernels when the &wifi node has its proper iommus = <&apps_smmu 0x1c40 0x1> / MSA memory regions and rmtfs is active before ath10k_snoc completes its QMI handshake.
Linux 7.3+ QRTR / qcom_pd_mapper cold-boot race:
On newer kernels (Linux 7.x) that include the in-kernel qcom_pd_mapper module (CONFIG_QCOM_PD_MAPPER=m), running user-space pd-mapper.service alongside in-kernel qcom_pd_mapper causes a QRTR service registration collision (qrtr: failed to announce new service: -11 / -EAGAIN) during cold boot, which can leave MPSS (remoteproc0) / ath10k_snoc waiting for QMI WLFW or dropping out right after boot.
Unloads duplicate in-kernel qcom_pd_mapper (modprobe -r qcom_pd_mapper) so a single PD mapper owns the QRTR service ID.
Starts the mssremoteproc (echo start > /sys/class/remoteproc/remoteproc0/state) 0.7 s before rmtfs opens its QMI socket so the modem storage server and ath10k_snoc (WCN3998, 866 Mbps 802.11ac) come up cleanly on every cold boot.
Activity
qzed commentedon Oct 25, 2022
Thanks for reporting this. I had some spurious issues with wifi already in 6.0.1. In particular it freezed the desktop, but I assume they're the same problem as I was able to confirm your log by dropping to a tty in 6.0.3 (which also has these issues). Unfortunately I haven't had the time yet to dig into this more.
qzed commentedon Nov 3, 2022
Okay, so unfortunately I can't get
./scripts/faddr2lineto print the line where it fails:$ ./scripts/faddr2line drivers/net/wireless/ath/ath10k/ath10k_snoc.ko ath10k_snoc_napi_poll+0x84 ath10k_snoc_napi_poll+0x84/0x150: ath10k_snoc_napi_poll at snoc.c:?Looks like we'll have to debug it the old-fashioned way.
qzed commentedon Nov 10, 2022
I'm having some difficulties debugging this... It seems that since it's asynchronous we can't rely on the program counter or stack trace to point us to the specific place where it's failing. I do get some variation with the PC, but
ath10k_snoc_napi_pollis always in the backtrace, so I'm assuming it's got something to do with that.qzed commentedon Feb 20, 2023
@Deinsti Can you still reproduce this on the latest kernel?
Deinsti commentedon Feb 22, 2023
@qzed I currently do not have an Arch install ready to test, but either tomorrow or the weekend I'll re-install it and give it a go
robertijtsma commentedon Nov 22, 2026
Status update from Surface Pro X SQ2 on Linux
7.3.1-1-surface:The old 6.0
SError Interruptinath10k_snoc_napi_pollno longer occurs on current 7.x kernels when the&wifinode has its properiommus = <&apps_smmu 0x1c40 0x1>/ MSA memory regions andrmtfsis active beforeath10k_snoccompletes its QMI handshake.Linux 7.3+ QRTR /
qcom_pd_mappercold-boot race:On newer kernels (Linux 7.x) that include the in-kernel
qcom_pd_mappermodule (CONFIG_QCOM_PD_MAPPER=m), running user-spacepd-mapper.servicealongside in-kernelqcom_pd_mappercauses a QRTR service registration collision (qrtr: failed to announce new service: -11/-EAGAIN) during cold boot, which can leave MPSS (remoteproc0) /ath10k_snocwaiting for QMI WLFW or dropping out right after boot.We resolved this 100% reliably across cold boots and
s2idlecycles with a smallrmtfs.servicedrop-in (daemons/wifi-qrtr/10-modem-preboot.conf):qcom_pd_mapper(modprobe -r qcom_pd_mapper) so a single PD mapper owns the QRTR service ID.mssremoteproc(echo start > /sys/class/remoteproc/remoteproc0/state) 0.7 s beforermtfsopens its QMI socket so the modem storage server andath10k_snoc(WCN3998, 866 Mbps 802.11ac) come up cleanly on every cold boot.