Qualcomm Atheros QCA6174 [168c:003e] Subsystem: Killer 1435 Wireless-AC [1a56:143a]: Disabling wifi causes kernel warning in __sta_info_destroy_part2

Bug #1872351 reported by Nikolaj Løbner Sheller
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
OEM Priority Project
New
High
Unassigned
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I have multiple issues with wifi on my Dell XPS 9380.
This error was triggered when I tried to disable my wifi.

[ 3634.322471] ------------[ cut here ]------------
[ 3634.322524] WARNING: CPU: 3 PID: 1188 at net/mac80211/sta_info.c:1057 __sta_info_destroy_part2+0x14e/0x160 [mac80211]
[ 3634.322525] Modules linked in: rfcomm vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) ccm typec_displayport cmac algif_hash algif_skcipher af_alg bnep binfmt_misc nls_iso8859_1 mei_hdcp intel_rapl_msr snd_hda_codec_hdmi dell_laptop snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio snd_hda_intel snd_intel_nhlt snd_hda_codec snd_hda_core snd_usb_audio ath10k_pci x86_pkg_temp_thermal snd_usbmidi_lib snd_seq_midi snd_hwdep snd_seq_midi_event ath10k_core intel_powerclamp coretemp cdc_ether snd_rawmidi usbnet btusb kvm_intel r8152 ath btrtl mii btbcm kvm snd_seq uvcvideo videobuf2_vmalloc btintel videobuf2_memops intel_cstate videobuf2_v4l2 joydev snd_seq_device snd_pcm dell_wmi intel_rapl_perf videobuf2_common bluetooth mac80211 dell_smbios videodev snd_timer dcdbas mc input_leds ecdh_generic ecc wmi_bmof snd dell_wmi_descriptor serio_raw intel_wmi_thunderbolt cfg80211 soundcore rtsx_pci_ms libarc4 memstick hid_multitouch processor_thermal_device ucsi_acpi typec_ucsi mei_me intel_rapl_common
[ 3634.322564] intel_xhci_usb_role_switch mei typec intel_soc_dts_iosf intel_pch_thermal roles int3403_thermal int340x_thermal_zone int3400_thermal mac_hid acpi_pad intel_hid acpi_thermal_rel sparse_keymap sch_fq_codel parport_pc ppdev lp parport ip_tables x_tables autofs4 mmc_block dm_crypt usbhid hid_generic crct10dif_pclmul crc32_pclmul rtsx_pci_sdmmc i915 ghash_clmulni_intel aesni_intel crypto_simd cryptd i2c_algo_bit glue_helper drm_kms_helper psmouse syscopyarea sysfillrect nvme sysimgblt i2c_i801 fb_sys_fops nvme_core drm intel_lpss_pci rtsx_pci intel_lpss idma64 i2c_hid virt_dma wmi hid pinctrl_sunrisepoint video pinctrl_intel
[ 3634.322599] CPU: 3 PID: 1188 Comm: NetworkManager Tainted: G OE 5.4.0-21-generic #25-Ubuntu
[ 3634.322600] Hardware name: Dell Inc. XPS 13 9370/0F6P3V, BIOS 1.12.1 12/11/2019
[ 3634.322633] RIP: 0010:__sta_info_destroy_part2+0x14e/0x160 [mac80211]
[ 3634.322635] Code: 24 0c 01 00 00 00 0f 84 52 ff ff ff 45 31 c0 b9 01 00 00 00 4c 89 e2 48 89 de 4c 89 ef e8 0a a6 ff ff 85 c0 0f 84 34 ff ff ff <0f> 0b e9 2d ff ff ff 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00
[ 3634.322636] RSP: 0018:ffffa70c009c3918 EFLAGS: 00010282
[ 3634.322638] RAX: 00000000ffffff94 RBX: ffff9006104cc8c0 RCX: 0000000000000000
[ 3634.322640] RDX: ffff90061ba3c740 RSI: 0000000000000000 RDI: ffff900613a62f48
[ 3634.322641] RBP: ffffa70c009c3938 R08: ffff90061e4d78c8 R09: 0000000000000004
[ 3634.322642] R10: 0000000000000000 R11: 0000000000000000 R12: ffff900613f28000
[ 3634.322643] R13: ffff900613a607a0 R14: ffff9006104cc8c0 R15: ffff900613a60d68
[ 3634.322644] FS: 00007f596b396240(0000) GS:ffff90061e4c0000(0000) knlGS:0000000000000000
[ 3634.322645] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 3634.322646] CR2: 00000db00945f000 CR3: 0000000494824005 CR4: 00000000003606e0
[ 3634.322647] Call Trace:
[ 3634.322670] __sta_info_flush+0x128/0x180 [mac80211]
[ 3634.322696] ieee80211_set_disassoc+0xc0/0x5f0 [mac80211]
[ 3634.322719] ieee80211_mgd_deauth+0x104/0x490 [mac80211]
[ 3634.322743] ieee80211_deauth+0x18/0x20 [mac80211]
[ 3634.322782] cfg80211_mlme_deauth+0xb6/0x1e0 [cfg80211]
[ 3634.322804] cfg80211_mlme_down+0x66/0x80 [cfg80211]
[ 3634.322823] cfg80211_disconnect+0x127/0x1e0 [cfg80211]
[ 3634.322827] ? _raw_spin_unlock_bh+0x1e/0x20
[ 3634.322845] __cfg80211_leave+0x133/0x1b0 [cfg80211]
[ 3634.322862] cfg80211_leave+0x2c/0x40 [cfg80211]
[ 3634.322879] cfg80211_netdev_notifier_call+0x1b2/0x590 [cfg80211]
[ 3634.322902] ? ath10k_warn.cold+0x1a/0x1f [ath10k_core]
[ 3634.322911] ? ath10k_config_ps+0x52/0x70 [ath10k_core]
[ 3634.322913] ? rtnl_is_locked+0x15/0x20
[ 3634.322917] ? inetdev_event+0x47/0x560
[ 3634.322919] ? skb_dequeue+0x5a/0x70
[ 3634.322923] notifier_call_chain+0x55/0x80
[ 3634.322925] raw_notifier_call_chain+0x16/0x20
[ 3634.322927] call_netdevice_notifiers_info+0x2e/0x60
[ 3634.322929] __dev_close_many+0x63/0x120
[ 3634.322931] dev_close_many+0x91/0x150
[ 3634.322933] dev_close.part.0+0x4a/0x70
[ 3634.322936] dev_close+0x18/0x20
[ 3634.322955] cfg80211_shutdown_all_interfaces+0x77/0xd0 [cfg80211]
[ 3634.322971] cfg80211_rfkill_set_block+0x26/0x30 [cfg80211]
[ 3634.322974] rfkill_set_block+0x9b/0x150
[ 3634.322976] rfkill_fop_write+0x136/0x1e0
[ 3634.322979] __vfs_write+0x1b/0x40
[ 3634.322981] vfs_write+0xb9/0x1a0
[ 3634.322983] ksys_write+0xb1/0xe0
[ 3634.322985] __x64_sys_write+0x1a/0x20
[ 3634.322988] do_syscall_64+0x57/0x190
[ 3634.322991] entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 3634.322993] RIP: 0033:0x7f596c8062cf
[ 3634.322995] Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 29 fd ff ff 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 2d 44 89 c7 48 89 44 24 08 e8 5c fd ff ff 48
[ 3634.322996] RSP: 002b:00007ffc165340c0 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
[ 3634.322998] RAX: ffffffffffffffda RBX: 0000559d02bf45c5 RCX: 00007f596c8062cf
[ 3634.322999] RDX: 0000000000000008 RSI: 00007ffc165340f8 RDI: 0000000000000020
[ 3634.323000] RBP: 0000000000000020 R08: 0000000000000000 R09: 0000000000000001
[ 3634.323001] R10: 0000000000000000 R11: 0000000000000293 R12: 0000559d03d01040
[ 3634.323002] R13: 0000000000000000 R14: 0000000000000000 R15: 0000559d03cf8820
[ 3634.323004] ---[ end trace 3dc4d97c4ae22dea ]---

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: linux-image-5.4.0-21-generic 5.4.0-21.25
ProcVersionSignature: Ubuntu 5.4.0-21.25-generic 5.4.27
Uname: Linux 5.4.0-21-generic x86_64
ApportVersion: 2.20.11-0ubuntu26
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: nikolaj 1961 F.... pulseaudio
 /dev/snd/controlC0: nikolaj 1961 F.... pulseaudio
CasperMD5CheckResult: skip
CurrentDesktop: ubuntu:GNOME
Date: Sun Apr 12 22:42:46 2020
InstallationDate: Installed on 2019-11-15 (149 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
MachineType: Dell Inc. XPS 13 9370
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-5.4.0-21-generic root=/dev/mapper/vgubuntu-root ro quiet splash mem_sleep_default=deep vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-5.4.0-21-generic N/A
 linux-backports-modules-5.4.0-21-generic N/A
 linux-firmware 1.187
SourcePackage: linux
UpgradeStatus: Upgraded to focal on 2020-04-04 (8 days ago)
dmi.bios.date: 12/11/2019
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 1.12.1
dmi.board.name: 0F6P3V
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 10
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvr1.12.1:bd12/11/2019:svnDellInc.:pnXPS139370:pvr:rvnDellInc.:rn0F6P3V:rvrA00:cvnDellInc.:ct10:cvr:
dmi.product.family: XPS
dmi.product.name: XPS 13 9370
dmi.product.sku: 07E6
dmi.sys.vendor: Dell Inc.

Revision history for this message
Nikolaj Løbner Sheller (nikolaj-l) wrote :
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Alex Hung (alexhung) wrote : Re: Disabling wifi causes kernel error

This is a warning message generated by sta_info.c (See details @ https://elixir.bootlin.com/linux/v5.4.32/source/net/mac80211/sta_info.c#L1059)

Does your wifi return to normal after disabling and enabling?

You-Sheng Yang (vicamo)
summary: - Disabling wifi causes kernel error
+ Qualcomm Atheros QCA6174 Killer 1435 Wireless-AC: Disabling wifi causes
+ kernel warning in __sta_info_destroy_part2
tags: added: hwe-networking-wifi
Revision history for this message
Nikolaj Løbner Sheller (nikolaj-l) wrote : Re: Qualcomm Atheros QCA6174 Killer 1435 Wireless-AC: Disabling wifi causes kernel warning in __sta_info_destroy_part2

I cannot disable and re-enable my wifi as the wifi does not respond to changes in NetworkManager after this error. My wifi does not return to normal.

Revision history for this message
Alex Hung (alexhung) wrote :

try "rfkill list" to list all radio devices, such as

$ rfkill list
0: hci0: Bluetooth
 Soft blocked: no
 Hard blocked: no
2: phy0: Wireless LAN
 Soft blocked: no
 Hard blocked: no

run "rfkill block 2" to disable it, and "run kill unblock 2" to enable it, assuming your wifi is also (2).

Revision history for this message
Nikolaj Løbner Sheller (nikolaj-l) wrote :
Download full text (26.3 KiB)

The error has not occurred after boot:

$ rfkill list
0: hci0: Bluetooth
 Soft blocked: no
 Hard blocked: no
1: phy0: Wireless LAN
 Soft blocked: no
 Hard blocked: no

$ rfkill block 1

The command did not terminate and generated the following output in dmesg:

[16394.658215] ath10k_pci 0000:02:00.0: wmi command 16387 timeout, restarting hardware
[16394.658221] ath10k_pci 0000:02:00.0: failed to set 5g txpower 30: -11
[16394.658223] ath10k_pci 0000:02:00.0: failed to setup tx power 30: -11
[16394.658225] ath10k_pci 0000:02:00.0: failed to recalc tx power: -11
[16394.658348] ath10k_pci 0000:02:00.0: failed to set inactivity time for vdev 0: -108
[16394.658350] ath10k_pci 0000:02:00.0: failed to setup powersave: -108
[16394.658376] wlp2s0: deauthenticating from 5a:ef:68:b7:22:f2 by local choice (Reason: 3=DEAUTH_LEAVING)
[16394.658386] ath10k_pci 0000:02:00.0: failed to set inactivity time for vdev 0: -108
[16394.658388] ath10k_pci 0000:02:00.0: failed to setup powersave: -108
[16394.658391] ath10k_pci 0000:02:00.0: failed to set PS Mode 0 for vdev 0: -108
[16394.658393] ath10k_pci 0000:02:00.0: failed to setup powersave: -108
[16397.715380] ath10k_pci 0000:02:00.0: failed to receive initialized event from target: 00000000
[16400.747627] ath10k_pci 0000:02:00.0: failed to receive initialized event from target: 00000000
[16400.747631] ath10k_warn: 2 callbacks suppressed
[16400.747632] ath10k_pci 0000:02:00.0: failed to wait for target init: -110
[16400.749353] ieee80211 phy0: Hardware restart was requested
[16400.749369] ath10k_pci 0000:02:00.0: failed to flush transmit queue (skip 1 ar-state 2): 1250
[16400.749566] ath10k_pci 0000:02:00.0: failed to delete peer 5a:ef:68:b7:22:f2 for vdev 0: -108
[16400.749603] ------------[ cut here ]------------
[16400.749630] WARNING: CPU: 3 PID: 17861 at net/mac80211/sta_info.c:1057 __sta_info_destroy_part2+0x14e/0x160 [mac80211]
[16400.749631] Modules linked in: uas usb_storage usbhid thunderbolt rfcomm vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) ccm typec_displayport cmac algif_hash algif_skcipher af_alg bnep binfmt_misc mei_hdcp intel_rapl_msr snd_hda_codec_hdmi cdc_ether usbnet nls_iso8859_1 snd_hda_codec_realtek snd_hda_codec_generic snd_hda_intel dell_laptop snd_intel_nhlt ledtrig_audio snd_hda_codec r8152 mii snd_usb_audio ath10k_pci snd_hda_core snd_usbmidi_lib ath10k_core snd_hwdep snd_seq_midi snd_seq_midi_event ath snd_pcm joydev x86_pkg_temp_thermal snd_rawmidi btusb intel_powerclamp btrtl coretemp btbcm btintel kvm_intel uvcvideo bluetooth videobuf2_vmalloc videobuf2_memops dell_wmi mac80211 dell_smbios videobuf2_v4l2 dcdbas videobuf2_common kvm videodev intel_cstate ecdh_generic mc input_leds ecc snd_seq intel_rapl_perf wmi_bmof dell_wmi_descriptor serio_raw intel_wmi_thunderbolt cfg80211 snd_seq_device snd_timer rtsx_pci_ms snd intel_xhci_usb_role_switch processor_thermal_device intel_rapl_common memstick
[16400.749659] libarc4 soundcore mei_me ucsi_acpi typec_ucsi hid_multitouch roles intel_pch_thermal mei typec intel_soc_dts_iosf intel_hid int3403_thermal int340x_thermal_zone int3400_thermal sparse_keymap acpi_thermal_rel acpi_pad mac_hid sch_fq_codel parport_pc ppdev lp parport ip_tables x_t...

Revision history for this message
Nikolaj Løbner Sheller (nikolaj-l) wrote :

After rebooting:

$ rfkill list
0: hci0: Bluetooth
 Soft blocked: no
 Hard blocked: no
1: phy0: Wireless LAN
 Soft blocked: no
 Hard blocked: no

$ rfkill block 1

This time 'rfkill block 1' terminated correctly and dmesg logged:

[ 430.126399] wlp2s0: deauthenticating from 5a:ef:68:b7:22:f2 by local choice (Reason: 3=DEAUTH_LEAVING)

Revision history for this message
Alex Hung (alexhung) wrote :

The same wifi used on one of the system I have, and I was able to reproduce the same error once a while. When this warning message occurred, the system wouldn't connect to my router, either.

I was able to workaround this by "sudo modprobe -r ath10k_pci ; sudo modprobe ath10k_pci"

I compared kernel 5.4 (used in Ubuntu 20.04) and 5.7-rc1, and there aren't fixes for this problem. The only patch that touches "__sta_info_destroy_part2" is commit b16798f5b907733 (see https://lore.kernel.org/linux-wireless/20200326155133.ccb4fb0bb356.If48f0f0504efdcf16b8921f48c6d3bb2cb763c99@changeid/)

This patch has cc'ed stable, and it will eventually be included in 5.4. A test kernel (Ubuntu-5.4.0-21.25 + b16798f5b907733) was built and is available @ https://people.canonical.com/~alexhung/LP1872351/

Revision history for this message
Nikolaj Løbner Sheller (nikolaj-l) wrote :

I am using OpenWRT on my WRT120AC AP.

It is a shame there are no fixes for this issue.
How can I contribute for finding a solution for this?

Any ideas?

Revision history for this message
Nikolaj Løbner Sheller (nikolaj-l) wrote :
Revision history for this message
Alex Tu (alextu) wrote :

for reference:
I did not see this issue on my XPS 9380 on Focal + kernel 5.6.0-1008-oem

02:00.0 Network controller [0280]: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter [168c:003e] (rev 32)
        Subsystem: Bigfoot Networks, Inc. Killer 1435 Wireless-AC [1a56:143a]
        Kernel driver in use: ath10k_pci

Rex Tsai (chihchun)
Changed in oem-priority:
importance: Undecided → High
Revision history for this message
Pedro Lara Benitez (pedrolarben) wrote :

I had the same problem https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1875437
I have found several possible solutions on the web, but none of them worked for me until yesterday.
I tried adding in grub the parameter pcie_aspm=off. It is too early to confirm that the problem is solved, but the error has not appeared again since then (finger crossed).

You-Sheng Yang (vicamo)
summary: - Qualcomm Atheros QCA6174 Killer 1435 Wireless-AC: Disabling wifi causes
- kernel warning in __sta_info_destroy_part2
+ Qualcomm Atheros QCA6174 [168c:003e] Subsystem: Killer 1435 Wireless-AC
+ [1a56:143a]: Disabling wifi causes kernel warning in
+ __sta_info_destroy_part2
Revision history for this message
You-Sheng Yang (vicamo) wrote :

I'm recently able to reproduce that with an Intel 9260 by a wifi-onoff stress script.

Rex Tsai (chihchun)
tags: added: oem-priority
Jeff Lane  (bladernr)
tags: added: ubuntu-certified
Revision history for this message
Alex Hung (alexhung) wrote :

Perhaps vicamo's comments #19 on LP:1891405 will help

Revision history for this message
Nikolaj Løbner Sheller (nikolaj-l) wrote :

Sadly, the fix from LP:1891405 this does not seem to help in my case.

I did the following:
sudo add-apt-repository ppa:vicamo/ppa-1891405
sudo apt-get update
sudo apt upgrade
sudo reboot

After reboot I enabled WiFi and disabled Wired networking.

Wifi ran for 20 minutes before disconnecting.

Dmesg:
[ 97.823914] pcieport 0000:04:02.0: BAR 15: failed to assign [mem size 0x00200000 64bit pref]
[ 1339.858946] ath10k_pci 0000:02:00.0: failed to receive scan abortion completion: timed out

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.