Bug 218955 - ath12k: High bandwidth usage causes driver freeze, when attempting to disable/enable Wi-Fi kernel hangs
Summary: ath12k: High bandwidth usage causes driver freeze, when attempting to disable...
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: network-wireless (show other bugs)
Hardware: Intel Linux
: P3 normal
Assignee: networking_wireless@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-11 22:20 UTC by Ethan
Modified: 2024-07-15 16:13 UTC (History)
2 users (show)

See Also:
Kernel Version: 6.10-rc3
Subsystem:
Regression: No
Bisected commit-id:


Attachments
Compressed journalctl logs from relevant boots (170.53 KB, application/zip)
2024-06-11 22:20 UTC, Ethan
Details

Description Ethan 2024-06-11 22:20:23 UTC
Created attachment 306453 [details]
Compressed journalctl logs from relevant boots

I have been running into this issue when trying to transfer files at high bandwidth speeds across Wi-Fi.

lspci reports my network card being the following, using the kernel driver ath12k_pci

06:00.0 Network controller: Qualcomm Technologies, Inc WCN785x Wi-Fi 7(802.11be) 320MHz 2x2 [FastConnect 7800] (rev 01)

Kernel 6.10.0-rc3, compiled 6/11/24

Steps to reproduce:
1) Mount a network file share
2) Attempt to transfer a large (20gb+) file

Attempting to toggle wi-fi will cause the kernel to hang. Attempting to shutdown will cause cifs to hang, waiting on the network endpoint. You will need to force the machine off.

Forcing the machine off will cause the Wi-Fi card to disappear completely from the system, until the PSU is turned off and the power button is held for ~10 seconds. This is technically a second bug, though it is somewhat tied with this first one.

Originally posted on the arch forum, traced to be a kernel issue. The logs attached to this bug report are captured with a kernel built from the kernel.org source, and default config: https://bbs.archlinux.org/viewtopic.php?pid=2175851

The logs.zip archive contains the following logs, captured using journalctl:
crash.log: The boot that the issue was initially triggered.
nowifi_boot.log: The boot that the Wi-Fi disappears from the system.
working_boot.log: The boot after the no wifi boot, Wi-Fi working as expected.

Additional notes:
- Windows is not installed and has not been for months, this is not a dual boot.
- My motherboard firmware is up to date.
- Running mkinitcpio -P shows no missing firmware messages.
- The Wi-Fi disappearing issue was not an issue in Windows.
- I have sleep disabled via masking the relevant systemd targets.
- All attached logs were collected and reproduced as soon at the system starts up.
- (This has not been tested since I originally made the move from Windows to arch, though I assume there has been no change): When the Wi-Fi disappears in Linux, it also disappears in Windows.
Comment 1 GreyXor 2024-06-26 09:02:42 UTC
I experience the same issue: whenever I upload more than ~5MB/s contiuously (more than 10 seconds), ath12k driver and Linux system completely freeze. Dosn't happen with high speed download, only upload.

Wifi chipset: wcn7850 hw2.0 (QC_IMAGE_VERSION_STRING=WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3)
OS: Arch Linux mainline (6.10.0-rc5) compiled 26 june 2024.
Laptop : Framework 13 AMD Ryzen 7 7840U (bios 3.05)
Comment 2 Anonymix007 2024-07-15 16:13:44 UTC
This patch seems to fix it: https://lore.kernel.org/ath12k/20240715023814.20242-1-quic_bqiang@quicinc.com/T/#u

With it applied on top of 6.10 I was able to upload 2.8 GiB file. It definitely would've freezed by that time on 6.10-rc3 without the patch.
It didn't apply to 6.10, so had to rebase it: https://paste.debian.net/1323347/

Note You need to log in before you can comment on or make changes to this bug.