FS#59811 - [linux] Random iwlwifi crash leading to kernel panic

Attached to Project: Arch Linux
Opened by Mathieu (AgentMat) - Sunday, 26 August 2018, 12:01 GMT
Last edited by Andreas Radke (AndyRTR) - Tuesday, 30 March 2021, 12:24 GMT
Task Type Bug Report
Category Kernel
Status Closed
Assigned To Tobias Powalowski (tpowa)
Jan Alexander Steffens (heftig)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Hosting a wifi hotspot using hostapd iwlwifi randomly crashes after some time (could be 10mn or several hours). The crash leads to a kernel panic/machine freeze.


Additional info:

wifi card is:
04:00.0 Network controller: Intel Corporation Wireless 7260 (rev 73)

using:
Linux Gnosis 4.18.4-arch1-1-ARCH #1 SMP PREEMPT Wed Aug 22 07:33:26 UTC 2018 x86_64 GNU/Linux
core/linux-firmware 20180821.1d17c18-3

$ dmesg | grep -i wifi
[ 0.000000] DMI: Gigabyte Technology Co., Ltd. Z97N-WIFI/Z97N-WIFI, BIOS F7 09/18/2015
[ 2.641335] Intel(R) Wireless WiFi driver for Linux
[ 2.641379] iwlwifi 0000:04:00.0: enabling device (0000 -> 0002)
[ 2.652150] iwlwifi 0000:04:00.0: loaded firmware version 17.948900127.0 op_mode iwlmvm
[ 2.762787] iwlwifi 0000:04:00.0: Detected Intel(R) Dual Band Wireless AC 7260, REV=0x144
[ 2.780233] iwlwifi 0000:04:00.0: base HW address: f8:16:54:3b:0c:77
[ 3.019269] iwlwifi 0000:04:00.0 wlp4s0: renamed from wlan0

journalctl:
Aug 26 07:06:49 Gnosis kernel: iwlwifi 0000:04:00.0: enabling device (0000 -> 0002)
Aug 26 07:06:49 Gnosis kernel: iwlwifi 0000:04:00.0: loaded firmware version 17.948900127.0 op_mode iwlmvm
Aug 26 07:06:49 Gnosis kernel: iwlwifi 0000:04:00.0: Detected Intel(R) Dual Band Wireless AC 7260, REV=0x144
Aug 26 07:06:49 Gnosis kernel: iwlwifi 0000:04:00.0: base HW address: f8:16:54:3b:0c:77
Aug 26 07:06:49 Gnosis kernel: iwlwifi 0000:04:00.0 wlp4s0: renamed from wlan0
Aug 26 13:41:38 Gnosis kernel: WARNING: CPU: 0 PID: 0 at drivers/net/wireless/intel/iwlwifi/pcie/trans.c:2008 iwl_trans_pcie_grab_nic_access+0x1e1/0x220 [iwlwifi]
Aug 26 13:41:38 Gnosis kernel: arc4 nvidia_drm(PO) nvidia_modeset(PO) nvidia(PO) intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel hid_generic kvm iTCO_wdt iTCO_vendor_support gpio_ich iwlmvm mac80211 usbh>
Aug 26 13:41:38 Gnosis kernel: RIP: 0010:iwl_trans_pcie_grab_nic_access+0x1e1/0x220 [iwlwifi]
Aug 26 13:41:38 Gnosis kernel: iwl_read_prph+0x32/0x80 [iwlwifi]
Aug 26 13:41:38 Gnosis kernel: iwl_trans_pcie_log_scd_error+0x11c/0x1e0 [iwlwifi]
Aug 26 13:41:38 Gnosis kernel: iwl_pcie_txq_stuck_timer+0x44/0x60 [iwlwifi]
Aug 26 13:41:38 Gnosis kernel: ? iwl_pcie_txq_inc_wr_ptr+0x100/0x100 [iwlwifi]
Aug 26 13:41:38 Gnosis kernel: ? iwl_pcie_txq_inc_wr_ptr+0x100/0x100 [iwlwifi]
Aug 26 13:41:38 Gnosis kernel: ? iwl_pcie_txq_inc_wr_ptr+0x100/0x100 [iwlwifi]
Aug 26 13:41:38 Gnosis kernel: iwlwifi 0000:04:00.0: iwlwifi transaction failed, dumping registers
Aug 26 13:41:38 Gnosis kernel: iwlwifi 0000:04:00.0: iwlwifi device config registers:
Aug 26 13:41:38 Gnosis kernel: iwlwifi 0000:04:00.0: 00000000: 08b18086 00100000 02800073 00000000 00000004 00000000 00000000 00000000
Aug 26 13:41:38 Gnosis kernel: iwlwifi 0000:04:00.0: 00000020: 00000000 00000000 00000000 40708086 00000000 000000c8 00000000 00000100
Aug 26 13:41:38 Gnosis kernel: iwlwifi 0000:04:00.0: iwlwifi device memory mapped registers:
Aug 26 13:41:38 Gnosis kernel: iwlwifi 0000:04:00.0: 00000000: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
Aug 26 13:41:38 Gnosis kernel: iwlwifi 0000:04:00.0: 00000020: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
Aug 26 13:41:38 Gnosis kernel: iwlwifi 0000:04:00.0: iwlwifi device AER capability structure:
Aug 26 13:41:38 Gnosis kernel: iwlwifi 0000:04:00.0: 00000000: 14010001 00100000 00000000 00462031 000020c1 00002000 00000014 40000001
Aug 26 13:41:38 Gnosis kernel: iwlwifi 0000:04:00.0: 00000020: 0000000f f7800460 00000000
Aug 26 13:41:38 Gnosis kernel: iwlwifi 0000:04:00.0: iwlwifi parent port (0000:00:1c.4) config registers:
Aug 26 13:41:38 Gnosis kernel: iwlwifi 0000:00:1c.4: 00000000: 8c988086 00100007 060400d0 00810010 00000000 00000000 00040400 200000f0
Aug 26 13:41:38 Gnosis kernel: iwlwifi 0000:00:1c.4: 00000020: f780f780 0001fff1 00000000 00000000 00000000 00000040 00000000 0010010b
Aug 26 13:41:38 Gnosis kernel: iwlwifi 0000:04:00.0: Queue 12 is active on fifo 2 and stuck for 10000 ms. SW [85, 95] HW [90, 90] FH TRB=0x05a5a5a5a
Aug 26 13:41:52 Gnosis kernel: iwlwifi 0000:04:00.0: Queue 3 is active on fifo 2 and stuck for 10000 ms. SW [89, 95] HW [90, 90] FH TRB=0x05a5a5a5a

Steps to reproduce:

Start hostapd, will fail after some time. Seems more traffic equals quicker failing, but even if the hotspot is mainly idle it will eventually crash.
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Tuesday, 30 March 2021, 12:24 GMT
Reason for closing:  Upstream
Comment by Martins Mozeiko (mmozeiko) - Saturday, 01 September 2018, 10:16 GMT
I have exactly same issue with my laptop wireless - "Intel Corporation Wireless 8260 (rev 3a)". The issue happens without using hostapd. Just regular wifi client + wpa_supplicant.
But it happens only with kernel version 4.18.4.arch1-1-ARCH and 4.18.5.arch1-1-ARCH. From my testing so far, downgrading kernel to 4.18.1 or 4.18.3 does not produce this issue and wireless works fine.

EDIT: Same crash happened with 4.18.1. I'm downgrading to 4.17.*
Comment by Armand (Kewl) - Monday, 15 February 2021, 13:41 GMT
I experienced similar issues with my Intel 8260 but I have noticed improvements in 5.10 and have not experienced a related kernel freeze for a few weeks.
There are similar bugs being tracked upstream for iwlwifi.
Given this is an old and vaguely described ticket I am proposing to close it.

Loading...