Skip to content

Latest kernel causes issues with the ath10k driver (SQ1/8/512 - potential regression?) #42

Open

Description

@Deinsti

Greetings!

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

IMG_20221024_220232704

Activity

  1. qzed commented on Oct 25, 2022

    @qzed
    Member

    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.

  2. qzed commented on Nov 3, 2022

    @qzed
    Member

    Okay, so unfortunately I can't get ./scripts/faddr2line to 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.

  3. added
    A: WiFI
    on Nov 10, 2022
  4. qzed commented on Nov 10, 2022

    @qzed
    Member

    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.

  5. qzed commented on Feb 20, 2023

    @qzed
    Member

    @Deinsti Can you still reproduce this on the latest kernel?

  6. Deinsti commented on Feb 22, 2023

    @Deinsti
    Author

    @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

  7. robertijtsma commented on Nov 22, 2026

    @robertijtsma

    Status update from Surface Pro X SQ2 on Linux 7.3.1-1-surface:

    1. 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.

    2. 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.

      We resolved this 100% reliably across cold boots and s2idle cycles with a small rmtfs.service drop-in (daemons/wifi-qrtr/10-modem-preboot.conf):

      • Unloads duplicate in-kernel qcom_pd_mapper (modprobe -r qcom_pd_mapper) so a single PD mapper owns the QRTR service ID.
      • Starts the mss remoteproc (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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A: WiFI

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions