You are not logged in.

#1 2019-05-20 21:54:53

lervag
Member
Registered: 2013-11-04
Posts: 25

[Solved] Wireless won't connect on kernel 5.1.x

I'm having trouble connecting my wifi after updating to kernel 5.1.x. Downgrading fixes things, but is not a proper solution.

I'm on a Thinkpad X1 G6, and I use netctl-auto to handle connections. Below I have attached output of lspci and what seems to be the relevant parts of the error messages in the log.

Any help would be very much appreciated!

> lspci -v
02:00.0 Network controller: Intel Corporation Wireless 8265 / 8275 (rev 78)
	Subsystem: Intel Corporation Dual Band Wireless-AC 8265
	Flags: bus master, fast devsel, latency 0, IRQ 134
	Memory at e0300000 (64-bit, non-prefetchable) [size=8K]
	Capabilities: <access denied>
	Kernel driver in use: iwlwifi
	Kernel modules: iwlwifi

Below are some exerpts of the output of "sudo journalctl -xe" that seems relevant. First, the part related directly to "netctl-auto" and what seems to be the error message from the kernel:

May 20 21:58:25 lotti systemd[1]: Starting Automatic wireless network connection using netctl profiles...
-- Subject: A start job for unit netctl-auto@wlp2s0.service has begun execution
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- A start job for unit netctl-auto@wlp2s0.service has begun execution.
-- 
-- The job identifier is 1693.
May 20 21:58:25 lotti netctl-auto[21261]: Included profile 'Hjemme'
May 20 21:58:25 lotti kernel: ------------[ cut here ]------------
May 20 21:58:25 lotti kernel: Adding active MAC d4:6d:6d:33:0d:a6/2
May 20 21:58:25 lotti kernel: WARNING: CPU: 7 PID: 21345 at drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c:1237 iwl_mvm_mac_ctxt_add+0xae/0xc0 [iwlmvm]
May 20 21:58:25 lotti kernel: Modules linked in: msr rfcomm bnep hid_multitouch hid_generic joydev mousedev btusb btrtl btbcm btintel bluetooth usbhid hid ecdh_generic uvcvideo rmi_smbus rmi_core videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_common videodev media nf_tables nfnetlink snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic arc4 intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel iwlmvm kvm mac80211 irqbypass i915 nls_iso8859_1 nls_cp437 vfat fat crct10dif_pclmul crc32_pclmul ghash_clmulni_intel iwlwifi snd_soc_skl snd_soc_hdac_hda snd_hda_ext_core snd_soc_skl_ipc snd_soc_sst_ipc snd_soc_sst_dsp snd_soc_acpi_intel_match i2c_algo_bit snd_soc_acpi drm_kms_helper mei_wdt mei_hdcp snd_soc_core cfg80211 iTCO_wdt iTCO_vendor_support drm snd_compress intel_wmi_thunderbolt ac97_bus wmi_bmof snd_pcm_dmaengine snd_hda_intel aesni_intel input_leds snd_hda_codec aes_x86_64 crypto_simd psmouse snd_hda_core intel_gtt thinkpad_acpi cryptd glue_helper mei_me snd_hwdep
May 20 21:58:25 lotti kernel:  tpm_crb nvram intel_cstate intel_xhci_usb_role_switch mei snd_pcm e1000e roles idma64 ledtrig_audio intel_uncore agpgart syscopyarea tpm_tis sysfillrect intel_rapl_perf sysimgblt i2c_i801 snd_timer fb_sys_fops tpm_tis_core rfkill ucsi_acpi tpm snd typec_ucsi intel_lpss_pci processor_thermal_device typec wmi intel_lpss intel_soc_dts_iosf intel_pch_thermal rng_core soundcore battery int3403_thermal ac int340x_thermal_zone int3400_thermal evdev acpi_thermal_rel mac_hid pcc_cpufreq crypto_user ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 serio_raw atkbd libps2 xhci_pci xhci_hcd crc32c_intel i8042 serio
May 20 21:58:25 lotti kernel: CPU: 7 PID: 21345 Comm: wpa_supplicant Tainted: G     U            5.1.3-arch1-1-ARCH #1
May 20 21:58:25 lotti kernel: Hardware name: LENOVO 20KGS0N400/20KGS0N400, BIOS N23ET55W (1.30 ) 08/31/2018
May 20 21:58:25 lotti kernel: RIP: 0010:iwl_mvm_mac_ctxt_add+0xae/0xc0 [iwlmvm]
May 20 21:58:25 lotti kernel: Code: bd 1f 05 00 01 74 10 83 fa 02 74 27 83 fa 03 b8 09 00 00 00 0f 44 d0 48 8d b5 40 01 00 00 48 c7 c7 3d 54 1a c1 e8 3c 86 51 db <0f> 0b b8 fb ff ff ff eb 8b ba 08 00 00 00 eb dd 66 90 0f 1f 44 00
May 20 21:58:25 lotti kernel: RSP: 0018:ffffab2d02043b00 EFLAGS: 00010286
May 20 21:58:25 lotti kernel: RAX: 0000000000000000 RBX: ffff8add9ee3d560 RCX: 0000000000000000
May 20 21:58:25 lotti kernel: RDX: 0000000000000007 RSI: 0000000000000082 RDI: 00000000ffffffff
May 20 21:58:25 lotti kernel: RBP: ffff8add9ee3d3e8 R08: 0000000000001c91 R09: 0000000000000004
May 20 21:58:25 lotti kernel: R10: 0000000000000000 R11: 0000000000000001 R12: ffff8add8fb45608
May 20 21:58:25 lotti kernel: R13: ffff8add8fb45600 R14: ffff8add8fb447a0 R15: 0000000000000000
May 20 21:58:25 lotti kernel: FS:  00007fa18cd544c0(0000) GS:ffff8adda15c0000(0000) knlGS:0000000000000000
May 20 21:58:25 lotti kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
May 20 21:58:25 lotti kernel: CR2: 00005638e151d318 CR3: 00000003da26c001 CR4: 00000000003606e0
May 20 21:58:25 lotti kernel: DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
May 20 21:58:25 lotti kernel: DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
May 20 21:58:25 lotti kernel: Call Trace:
May 20 21:58:25 lotti kernel:  iwl_mvm_mac_add_interface+0x140/0x2a0 [iwlmvm]
May 20 21:58:25 lotti kernel:  drv_add_interface+0x49/0x150 [mac80211]
May 20 21:58:25 lotti kernel:  ieee80211_do_open+0x280/0x870 [mac80211]
May 20 21:58:25 lotti kernel:  __dev_open+0xcd/0x160
May 20 21:58:25 lotti kernel:  __dev_change_flags+0x183/0x1f0
May 20 21:58:25 lotti kernel:  dev_change_flags+0x21/0x60
May 20 21:58:25 lotti kernel:  devinet_ioctl+0x57c/0x6e0
May 20 21:58:25 lotti kernel:  ? netlink_recvmsg+0x355/0x420
May 20 21:58:25 lotti kernel:  inet_ioctl+0x143/0x220
May 20 21:58:25 lotti kernel:  ? dev_get_by_name_rcu+0x73/0x90
May 20 21:58:25 lotti kernel:  ? dev_get_by_name_rcu+0x73/0x90
May 20 21:58:25 lotti kernel:  ? dev_ioctl+0x38e/0x560
May 20 21:58:25 lotti kernel:  sock_do_ioctl+0x43/0x140
May 20 21:58:25 lotti kernel:  sock_ioctl+0x19e/0x320
May 20 21:58:25 lotti kernel:  do_vfs_ioctl+0xa4/0x630
May 20 21:58:25 lotti kernel:  ? syscall_trace_enter+0x1d3/0x2d0
May 20 21:58:25 lotti kernel:  ksys_ioctl+0x60/0x90
May 20 21:58:25 lotti kernel:  __x64_sys_ioctl+0x16/0x20
May 20 21:58:25 lotti kernel:  do_syscall_64+0x5b/0x180
May 20 21:58:25 lotti kernel:  entry_SYSCALL_64_after_hwframe+0x44/0xa9
May 20 21:58:25 lotti kernel: RIP: 0033:0x7fa18d29acbb
May 20 21:58:25 lotti kernel: Code: 0f 1e fa 48 8b 05 a5 d1 0c 00 64 c7 00 26 00 00 00 48 c7 c0 ff ff ff ff c3 66 0f 1f 44 00 00 f3 0f 1e fa b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 75 d1 0c 00 f7 d8 64 89 01 48
May 20 21:58:25 lotti kernel: RSP: 002b:00007ffcf89c2dd8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
May 20 21:58:25 lotti kernel: RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fa18d29acbb
May 20 21:58:25 lotti kernel: RDX: 00007ffcf89c2de0 RSI: 0000000000008914 RDI: 0000000000000006
May 20 21:58:25 lotti kernel: RBP: 0000000000000006 R08: 00007ffcf89c2def R09: 00005638e150bbc0
May 20 21:58:25 lotti kernel: R10: 0000000000000007 R11: 0000000000000246 R12: 00007ffcf89c2de0
May 20 21:58:25 lotti kernel: R13: 00005638e1512fe0 R14: 0000000000000001 R15: 0000000000000000
May 20 21:58:25 lotti kernel: ---[ end trace 34e957d1266326eb ]---
May 20 21:58:25 lotti netctl-auto[21261]: Could not set interface wlp2s0 flags (UP): Input/output error
May 20 21:58:25 lotti netctl-auto[21261]: nl80211: Could not set interface 'wlp2s0' UP
May 20 21:58:26 lotti netctl-auto[21261]: Could not set interface wlp2s0 flags (UP): Input/output error
May 20 21:58:26 lotti netctl-auto[21261]: WEXT: Could not set interface 'wlp2s0' UP
May 20 21:58:26 lotti netctl-auto[21261]: wlp2s0: Failed to initialize driver interface
May 20 21:58:27 lotti systemd[1]: netctl-auto@wlp2s0.service: Control process exited, code=exited, status=1/FAILURE

Next are messages related to the "iwlwifi" driver. The following listing appears multiple times in the log:

# The following repeats several times in the log
May 20 21:57:05 lotti kernel: iwlwifi 0000:02:00.0: 0xC00868A4 | umac branchlink2
May 20 21:57:05 lotti kernel: iwlwifi 0000:02:00.0: 0xC0083A94 | umac interruptlink1
May 20 21:57:05 lotti kernel: iwlwifi 0000:02:00.0: 0xC0083A94 | umac interruptlink2
May 20 21:57:05 lotti kernel: iwlwifi 0000:02:00.0: 0x00000800 | umac data1
May 20 21:57:05 lotti kernel: iwlwifi 0000:02:00.0: 0xC0083A94 | umac data2
May 20 21:57:05 lotti kernel: iwlwifi 0000:02:00.0: 0xDEADBEEF | umac data3
May 20 21:57:05 lotti kernel: iwlwifi 0000:02:00.0: 0x00000024 | umac major
May 20 21:57:05 lotti kernel: iwlwifi 0000:02:00.0: 0x9F0A2D68 | umac minor
May 20 21:57:05 lotti kernel: iwlwifi 0000:02:00.0: 0xC088628C | frame pointer
May 20 21:57:05 lotti kernel: iwlwifi 0000:02:00.0: 0xC088628C | stack pointer
May 20 21:57:05 lotti kernel: iwlwifi 0000:02:00.0: 0x002B010D | last host cmd
May 20 21:57:05 lotti kernel: iwlwifi 0000:02:00.0: 0x00000000 | isr status reg
May 20 21:57:05 lotti kernel: ieee80211 phy0: Hardware restart was requested
May 20 21:57:05 lotti kernel: iwlwifi 0000:02:00.0: Scan failed! ret -110
May 20 21:57:06 lotti kernel: iwlwifi 0000:02:00.0: Queue 0 is active on fifo 7 and stuck for 2500 ms. SW [43, 44] HW [44, 44] FH TRB=0x070002b
May 20 21:57:11 lotti kernel: iwlwifi 0000:02:00.0: Error sending SCAN_REQ_UMAC: time out after 2000ms.
May 20 21:57:11 lotti kernel: iwlwifi 0000:02:00.0: Current CMD queue read_ptr 43 write_ptr 44
May 20 21:57:11 lotti kernel: iwlwifi 0000:02:00.0: Start IWL Error Log Dump:
May 20 21:57:11 lotti kernel: iwlwifi 0000:02:00.0: Status: 0x00000100, count: 6
May 20 21:57:11 lotti kernel: iwlwifi 0000:02:00.0: Loaded firmware version: 36.9f0a2d68.0
May 20 21:57:11 lotti kernel: iwlwifi 0000:02:00.0: 0x00000084 | NMI_INTERRUPT_UNKNOWN       
May 20 21:57:11 lotti kernel: iwlwifi 0000:02:00.0: 0x000002F0 | trm_hw_status0
May 20 21:57:11 lotti kernel: iwlwifi 0000:02:00.0: 0x00000000 | trm_hw_status1
May 20 21:57:11 lotti kernel: iwlwifi 0000:02:00.0: 0x0002485C | branchlink2
May 20 21:57:11 lotti kernel: iwlwifi 0000:02:00.0: 0x0003A7CA | interruptlink1
May 20 21:57:11 lotti kernel: iwlwifi 0000:02:00.0: 0x0003A7CA | interruptlink2
May 20 21:57:11 lotti kernel: iwlwifi 0000:02:00.0: 0x00000000 | data1
May 20 21:57:11 lotti kernel: iwlwifi 0000:02:00.0: 0x00000080 | data2
May 20 21:57:11 lotti kernel: iwlwifi 0000:02:00.0: 0x07830000 | data3
May 20 21:57:11 lotti kernel: iwlwifi 0000:02:00.0: 0x001710E6 | beacon time
May 20 21:57:11 lotti kernel: iwlwifi 0000:02:00.0: 0x004699C4 | tsf low
May 20 21:57:11 lotti kernel: iwlwifi 0000:02:00.0: 0x00000000 | tsf hi
May 20 21:57:11 lotti kernel: iwlwifi 0000:02:00.0: 0x00000000 | time gp1
May 20 21:57:11 lotti kernel: iwlwifi 0000:02:00.0: 0x004699C5 | time gp2
May 20 21:57:11 lotti kernel: iwlwifi 0000:02:00.0: 0x00000001 | uCode revision type
May 20 21:57:11 lotti kernel: iwlwifi 0000:02:00.0: 0x00000024 | uCode version major
May 20 21:57:11 lotti kernel: iwlwifi 0000:02:00.0: 0x9F0A2D68 | uCode version minor
May 20 21:57:11 lotti kernel: iwlwifi 0000:02:00.0: 0x00000230 | hw version
May 20 21:57:11 lotti kernel: iwlwifi 0000:02:00.0: 0x00080000 | board version
May 20 21:57:11 lotti kernel: iwlwifi 0000:02:00.0: 0x0000001C | hcmd
May 20 21:57:11 lotti kernel: iwlwifi 0000:02:00.0: 0x00022000 | isr0
May 20 21:57:11 lotti kernel: iwlwifi 0000:02:00.0: 0x00800000 | isr1
May 20 21:57:11 lotti kernel: iwlwifi 0000:02:00.0: 0x08005802 | isr2
May 20 21:57:11 lotti kernel: iwlwifi 0000:02:00.0: 0x0041FCC0 | isr3
May 20 21:57:11 lotti kernel: iwlwifi 0000:02:00.0: 0x00000000 | isr4
May 20 21:57:11 lotti kernel: iwlwifi 0000:02:00.0: 0x8029FB03 | last cmd Id
May 20 21:57:11 lotti kernel: iwlwifi 0000:02:00.0: 0x00000000 | wait_event
May 20 21:57:11 lotti kernel: iwlwifi 0000:02:00.0: 0x00000000 | l2p_control
May 20 21:57:11 lotti kernel: iwlwifi 0000:02:00.0: 0x00000020 | l2p_duration
May 20 21:57:11 lotti kernel: iwlwifi 0000:02:00.0: 0x00000000 | l2p_mhvalid
May 20 21:57:11 lotti kernel: iwlwifi 0000:02:00.0: 0x00000000 | l2p_addr_match
May 20 21:57:11 lotti kernel: iwlwifi 0000:02:00.0: 0x0000000D | lmpm_pmg_sel
May 20 21:57:11 lotti kernel: iwlwifi 0000:02:00.0: 0x04120134 | timestamp
May 20 21:57:11 lotti kernel: iwlwifi 0000:02:00.0: 0x00342040 | flow_handler
May 20 21:57:11 lotti kernel: iwlwifi 0000:02:00.0: Start IWL Error Log Dump:
May 20 21:57:11 lotti kernel: iwlwifi 0000:02:00.0: Status: 0x00000100, count: 7
May 20 21:57:11 lotti kernel: iwlwifi 0000:02:00.0: 0x00000070 | NMI_INTERRUPT_LMAC_FATAL
May 20 21:57:11 lotti kernel: iwlwifi 0000:02:00.0: 0x00000000 | umac branchlink1
...
May 20 21:58:23 lotti kernel: iwlwifi 0000:02:00.0: Failed to remove MAC context: -110
May 20 21:58:23 lotti kernel: iwlwifi 0000:02:00.0: Collecting data: trigger 2 fired.
May 20 21:58:23 lotti kernel: iwlwifi 0000:02:00.0: Firmware not running - cannot dump error

Last edited by lervag (2019-05-22 21:56:16)

Offline

#2 2019-05-20 22:14:37

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved] Wireless won't connect on kernel 5.1.x

Rather than dump the entire journal, connect manually and paste the exact commands and output/errors when the connection fails...


Moving to NC.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2019-05-21 06:18:43

lervag
Member
Registered: 2013-11-04
Posts: 25

Re: [Solved] Wireless won't connect on kernel 5.1.x

@jasonwryan I'm sorry for not taking more time in my initial posting. I've updated now. I think this belongs in the Kernel and Hardware section, not NC. If you think I'm wrong, please let me know why.

Offline

#4 2019-05-21 06:47:08

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved] Wireless won't connect on kernel 5.1.x

It belongs in NC. Please act on my initial request and connect manually; it is the most effective way to debug wireless issues.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2019-05-22 19:57:06

lervag
Member
Registered: 2013-11-04
Posts: 25

Re: [Solved] Wireless won't connect on kernel 5.1.x

Thanks! I disabled the netctl-auto service, then rebooted and connected manually. This worked. With netctl-auto enabled, it did not work, but I was now able to find some more info, e.g.

> ip link set wlp2s0 up
RTNETLINK answers: Input/output error

I searched for more information on this, and did not find anything directly relevant. I don't have conflicting services. But with some time, I found that I had the following module options for iwlwifi:

options iwlwifi power_save=1 d0i3_disable=0 uapsd_disable=0

I added these when installing based on some suggestions for how to tune power saving on the Thinkpad X1 Carbon. If I remove these options, then everything works as expected.

I would be very happy to learn more about what may have been wrong, but I'm also just happy to have things working.

Again, thanks. Your pointer on connecting manually was key to finding relevant search terms for finding a solution.

Offline

#6 2019-05-22 20:40:08

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved] Wireless won't connect on kernel 5.1.x

You can read about the parameters here: https://www.kernel.org/doc/html/v4.14/a … eters.html

Glad you got it sorted. Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2019-05-24 17:34:38

lervag
Member
Registered: 2013-11-04
Posts: 25

Re: [Solved] Wireless won't connect on kernel 5.1.x

> You can read about the parameters here: https://www.kernel.org/doc/html/v4.14/a … eters.html

Again, thanks!

Offline

Board footer

Powered by FluxBB