LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Intel centrino advanced 6235 random disconnection on kernel 5.11.11 (https://www.linuxquestions.org/questions/slackware-14/intel-centrino-advanced-6235-random-disconnection-on-kernel-5-11-11-a-4175693198/)

WanderingUnix 04-06-2021 04:26 AM

Intel centrino advanced 6235 random disconnection on kernel 5.11.11
 
Hello. I have been having problems with my wifi for the past few says.
First it was with an ath9k_htc wifi stick and then I decided to test an intel wifi card.
The card would disconnect randomly with it trying to authenticate but failing for some reason. I am starting to think it is a ploblem with possibly my kernel config or the kernel parameters.

Here is the dmesg output:

https://bin.snopyta.org/?0207dad1b35...xH8NRLccy2q3pB

You can see that there seems to be a ploblem with loading iwlwifi. This happens about an hour or two once I leave my computer alone. It is very strange.

Specifically the stack trace that appears:

Code:

[ 1474.219277] wlan1: waiting for beacon from 74:da:da:fa:db:f4
[ 1479.065209] iwlwifi 0000:02:00.0: Error sending REPLY_SCAN_ABORT_CMD: time out after 2000ms.
[ 1479.065222] iwlwifi 0000:02:00.0: Current CMD queue read_ptr 0 write_ptr 1
[ 1479.316239] iwlwifi 0000:02:00.0: Loaded firmware version: 18.168.6.1 6000g2b-6.ucode
[ 1479.316419] iwlwifi 0000:02:00.0: 0x00000000 | OK                         
[ 1479.316424] iwlwifi 0000:02:00.0: 0x00000000 | uPc
[ 1479.316426] iwlwifi 0000:02:00.0: 0x00000000 | branchlink1
[ 1479.316429] iwlwifi 0000:02:00.0: 0x00000000 | branchlink2
[ 1479.316432] iwlwifi 0000:02:00.0: 0x00000000 | interruptlink1
[ 1479.316434] iwlwifi 0000:02:00.0: 0x00000000 | interruptlink2
[ 1479.316437] iwlwifi 0000:02:00.0: 0x00000000 | data1
[ 1479.316439] iwlwifi 0000:02:00.0: 0x00000000 | data2
[ 1479.316442] iwlwifi 0000:02:00.0: 0x00000000 | line
[ 1479.316445] iwlwifi 0000:02:00.0: 0x00000000 | beacon time
[ 1479.316447] iwlwifi 0000:02:00.0: 0x00000000 | tsf low
[ 1479.316450] iwlwifi 0000:02:00.0: 0x00000000 | tsf hi
[ 1479.316452] iwlwifi 0000:02:00.0: 0x00000000 | time gp1
[ 1479.316455] iwlwifi 0000:02:00.0: 0x00000000 | time gp2
[ 1479.316468] iwlwifi 0000:02:00.0: 0x00000000 | time gp3
[ 1479.316471] iwlwifi 0000:02:00.0: 0x00000000 | uCode version
[ 1479.316474] iwlwifi 0000:02:00.0: 0x00000000 | hw version
[ 1479.316476] iwlwifi 0000:02:00.0: 0x00000000 | board version
[ 1479.316479] iwlwifi 0000:02:00.0: 0x00000000 | hcmd
[ 1479.316487] iwlwifi 0000:02:00.0: 0x00000000 | isr0
[ 1479.316489] iwlwifi 0000:02:00.0: 0x00000000 | isr1
[ 1479.316491] iwlwifi 0000:02:00.0: 0x00000000 | isr2
[ 1479.316494] iwlwifi 0000:02:00.0: 0x00000000 | isr3
[ 1479.316496] iwlwifi 0000:02:00.0: 0x00000000 | isr4
[ 1479.316498] iwlwifi 0000:02:00.0: 0x00000000 | isr_pref
[ 1479.316500] iwlwifi 0000:02:00.0: 0x00000000 | wait_event
[ 1479.316503] iwlwifi 0000:02:00.0: 0x00000000 | l2p_control
[ 1479.316505] iwlwifi 0000:02:00.0: 0x00000000 | l2p_duration
[ 1479.316507] iwlwifi 0000:02:00.0: 0x00000000 | l2p_mhvalid
[ 1479.316510] iwlwifi 0000:02:00.0: 0x00000000 | l2p_addr_match
[ 1479.316512] iwlwifi 0000:02:00.0: 0x00000000 | lmpm_pmg_sel
[ 1479.316514] iwlwifi 0000:02:00.0: 0x00000000 | timestamp
[ 1479.316517] iwlwifi 0000:02:00.0: 0x00000000 | flow_handler
[ 1479.316584] iwlwifi 0000:02:00.0: Start IWL Event Log Dump: nothing in log
[ 1479.316597] iwlwifi 0000:02:00.0: Command REPLY_RXON failed: FW Error
[ 1479.316600] iwlwifi 0000:02:00.0: Error clearing ASSOC_MSK on BSS (-5)
[ 1479.328542] ieee80211 phy0: Hardware restart was requested
[ 1479.341668] iwlwifi 0000:02:00.0: Radio type=0x2-0x1-0x0
[ 1479.636586] iwlwifi 0000:02:00.0: Radio type=0x2-0x1-0x0
[ 1479.726311] iwlwifi 0000:02:00.0: Radio type=0x2-0x1-0x0
[ 1485.148196] iwlwifi 0000:02:00.0: Failed to load firmware chunk!
[ 1485.148213] iwlwifi 0000:02:00.0: iwlwifi transaction failed, dumping registers
[ 1485.148217] iwlwifi 0000:02:00.0: iwlwifi device config registers:
[ 1485.148578] iwlwifi 0000:02:00.0: 00000000: 088e8086 00100006 02800024 00000010 8eb00004 00000000 00000000 00000000
[ 1485.148584] iwlwifi 0000:02:00.0: 00000020: 00000000 00000000 00000000 40608086 00000000 000000c8 00000000 0000010b
[ 1485.148588] iwlwifi 0000:02:00.0: 00000040: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1485.148592] iwlwifi 0000:02:00.0: 00000060: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1485.148596] iwlwifi 0000:02:00.0: 00000080: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1485.148599] iwlwifi 0000:02:00.0: 000000a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1485.148603] iwlwifi 0000:02:00.0: 000000c0: 00000000 00000000 c823d001 0d000000 0080e005 00000000 00000000 00000000
[ 1485.148607] iwlwifi 0000:02:00.0: 000000e0: 00010010 10008ec0 00100810 0006ec11 10110040 00000000 00000000 00000000
[ 1485.148611] iwlwifi 0000:02:00.0: 00000100: 14010001 00000000 00000000 00062011 00000000 00002000 00000000 00000000
[ 1485.148615] iwlwifi 0000:02:00.0: 00000120: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1485.148619] iwlwifi 0000:02:00.0: 00000140: 00010003 ffb6d654 b4b676ff 00000000 00000000 00000000 00000000 00000000
[ 1485.148622] iwlwifi 0000:02:00.0: iwlwifi device memory mapped registers:
[ 1485.148678] iwlwifi 0000:02:00.0: 00000000: 00484b00 00000040 08000000 00000000 00000001 00000000 00000030 00000000
[ 1485.148682] iwlwifi 0000:02:00.0: 00000020: 00000001 080403c5 000000b0 00000000 90000801 00030001 80008040 00080046
[ 1485.148689] iwlwifi 0000:02:00.0: iwlwifi device AER capability structure:
[ 1485.148749] iwlwifi 0000:02:00.0: 00000000: 14010001 00000000 00000000 00062011 00000000 00002000 00000000 00000000
[ 1485.148752] iwlwifi 0000:02:00.0: 00000020: 00000000 00000000 00000000
[ 1485.148755] iwlwifi 0000:02:00.0: iwlwifi parent port (0000:00:1c.1) config registers:
[ 1485.148954] iwlwifi 0000:00:1c.1: 00000000: 1e128086 00100106 060400c4 00810010 00000000 00000000 00020200 000000f0
[ 1485.148958] iwlwifi 0000:00:1c.1: 00000020: 8eb08eb0 0001fff1 00000000 00000000 00000000 00000040 00000000 0012020b
[ 1485.148962] iwlwifi 0000:00:1c.1: 00000040: 00428010 00008000 00100000 02113c12 70110040 00040560 01400000 00000000
[ 1485.148965] iwlwifi 0000:00:1c.1: 00000060: 00000000 00000016 00000000 00000000 00010002 00000000 00000000 00000000
[ 1485.148969] iwlwifi 0000:00:1c.1: 00000080: 00009005 00000000 00000000 00000000 0000a00d 21f317aa 00000000 00000000
[ 1485.148973] iwlwifi 0000:00:1c.1: 000000a0: c8020001 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1485.148977] iwlwifi 0000:00:1c.1: 000000c0: 00000000 00000000 00000000 00000000 01000000 00000b02 01118000 00000000
[ 1485.148980] iwlwifi 0000:00:1c.1: 000000e0: 00000300 00000000 00000001 00000000 00000000 00000000 08050f87 00000000
[ 1485.148984] iwlwifi 0000:00:1c.1: 00000100: 00000000 00000000 00000000 00060011 00000000 00002000 00000000 00000000
[ 1485.148988] iwlwifi 0000:00:1c.1: 00000120: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1485.148991] iwlwifi 0000:00:1c.1: 00000140: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1485.148995] iwlwifi 0000:00:1c.1: 00000160: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1485.148999] iwlwifi 0000:00:1c.1: 00000180: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1485.149002] iwlwifi 0000:00:1c.1: 000001a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1485.149006] iwlwifi 0000:00:1c.1: 000001c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1485.149010] iwlwifi 0000:00:1c.1: 000001e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1485.149023] iwlwifi 0000:00:1c.1: 00000200: 00000000 00000000 00000000
[ 1485.149031] iwlwifi 0000:02:00.0: Could not load the [0] uCode section
[ 1485.161384] iwlwifi 0000:02:00.0: Failed to run INIT ucode: -110
[ 1485.161404] iwlwifi 0000:02:00.0: Unable to initialize device.
[ 1485.161406] ------------[ cut here ]------------
[ 1485.161407] Hardware became unavailable during restart.
[ 1485.161423] WARNING: CPU: 2 PID: 3476 at net/mac80211/util.c:2345 ieee80211_reconfig+0xd1/0x12c0
[ 1485.161431] Modules linked in: iwldvm iwlwifi
[ 1485.161437] CPU: 2 PID: 3476 Comm: kworker/2:3 Tainted: G                T 5.11.11 #1
[ 1485.161440] Hardware name: LENOVO 2349JG1/2349JG1, BIOS CBET4000 4.13-1524-g6271dd8459-dirty 01/29/2021
[ 1485.161442] Workqueue: events_freezable ieee80211_restart_work
[ 1485.161448] RIP: 0010:ieee80211_reconfig+0xd1/0x12c0
[ 1485.161452] Code: 16 00 0f 85 3e 03 00 00 c6 85 64 05 00 00 00 48 89 ef e8 b2 a1 fc ff 85 c0 41 89 c4 74 14 48 c7 c7 38 9e af 97 e8 61 2d 05 00 <0f> 0b eb c2 88 5c 24 16 48 8b 45 40 44 8b a0 98 00 00 00 e8 d7 d7
[ 1485.161455] RSP: 0018:ffffb62b006f7df8 EFLAGS: 00010282
[ 1485.161457] RAX: 0000000000000000 RBX: ffffa393f98398e0 RCX: ffffa394e15178d8
[ 1485.161459] RDX: 00000000ffffffd8 RSI: 0000000000000027 RDI: ffffa394e15178d0
[ 1485.161461] RBP: ffffa393f98387c0 R08: 0000000000000000 R09: ffffb62b006f7c30
[ 1485.161462] R10: 0000000000000001 R11: 0000000000000001 R12: 00000000ffffff92
[ 1485.161463] R13: ffffa393f98387c0 R14: 0000000000000000 R15: 0000000000000000
[ 1485.161465] FS:  0000000000000000(0000) GS:ffffa394e1500000(0000) knlGS:0000000000000000
[ 1485.161467] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1485.161468] CR2: 00007f795801d348 CR3: 000000041a010004 CR4: 00000000001706e0
[ 1485.161471] Call Trace:
[ 1485.161475]  ieee80211_restart_work+0xb2/0xe0
[ 1485.161479]  process_one_work+0x1dc/0x370
[ 1485.161485]  worker_thread+0x4e/0x3a0
[ 1485.161488]  ? rescuer_thread+0x380/0x380
[ 1485.161492]  kthread+0x116/0x130
[ 1485.161496]  ? __kthread_bind_mask+0x60/0x60
[ 1485.161499]  ret_from_fork+0x22/0x30
[ 1485.161503] ---[ end trace adcbca16df58359a ]---
[ 1485.161542] ------------[ cut here ]------------
[ 1485.161543] wlan1: Failed check-sdata-in-driver check, flags: 0x4
[ 1485.161557] WARNING: CPU: 2 PID: 3476 at net/mac80211/driver-ops.c:97 drv_remove_interface+0xdc/0xf0
[ 1485.161564] Modules linked in: iwldvm iwlwifi
[ 1485.161568] CPU: 2 PID: 3476 Comm: kworker/2:3 Tainted: G        W      T 5.11.11 #1
[ 1485.161570] Hardware name: LENOVO 2349JG1/2349JG1, BIOS CBET4000 4.13-1524-g6271dd8459-dirty 01/29/2021
[ 1485.161572] Workqueue: events_freezable ieee80211_restart_work
[ 1485.161575] RIP: 0010:drv_remove_interface+0xdc/0xf0
[ 1485.161579] Code: 75 96 48 8b 83 28 02 00 00 48 8d b3 48 02 00 00 48 c7 c7 c0 8e af 97 c6 05 2e b2 cf 00 01 48 85 c0 48 0f 45 f0 e8 36 87 08 00 <0f> 0b e9 67 ff ff ff 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 41 57
[ 1485.161581] RSP: 0018:ffffb62b006f7c88 EFLAGS: 00010282
[ 1485.161583] RAX: 0000000000000000 RBX: ffffa3924f13a880 RCX: ffffa394e15178d8
[ 1485.161584] RDX: 00000000ffffffd8 RSI: 0000000000000027 RDI: ffffa394e15178d0
[ 1485.161586] RBP: ffffa393f98387c0 R08: 0000000000000000 R09: ffffb62b006f7ac0
[ 1485.161587] R10: 0000000000000001 R11: 0000000000000001 R12: ffffa393f9839010
[ 1485.161588] R13: ffffa3924f13b208 R14: ffffa393f9838cb0 R15: ffffa393f98387c0
[ 1485.161590] FS:  0000000000000000(0000) GS:ffffa394e1500000(0000) knlGS:0000000000000000
[ 1485.161592] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1485.161593] CR2: 00007f795801d348 CR3: 000000041a010004 CR4: 00000000001706e0
[ 1485.161595] Call Trace:
[ 1485.161596]  ieee80211_do_stop+0x53c/0x890
[ 1485.161602]  ieee80211_stop+0x11/0x20
[ 1485.161605]  __dev_close_many+0xad/0x120
[ 1485.161610]  dev_close_many+0x9d/0x150
[ 1485.161614]  dev_close+0x8a/0xb0
[ 1485.161617]  cfg80211_shutdown_all_interfaces+0x6c/0xc0
[ 1485.161624]  ieee80211_reconfig+0x9f/0x12c0
[ 1485.161628]  ieee80211_restart_work+0xb2/0xe0
[ 1485.161631]  process_one_work+0x1dc/0x370
[ 1485.161635]  worker_thread+0x4e/0x3a0
[ 1485.161639]  ? rescuer_thread+0x380/0x380
[ 1485.161643]  kthread+0x116/0x130
[ 1485.161646]  ? __kthread_bind_mask+0x60/0x60
[ 1485.161649]  ret_from_fork+0x22/0x30
[ 1485.161652] ---[ end trace adcbca16df58359b ]---
[ 1485.161670] ------------[ cut here ]------------
[ 1485.161671] WARNING: CPU: 2 PID: 3476 at net/mac80211/driver-ops.c:36 drv_stop+0xc6/0xd0
[ 1485.161676] Modules linked in: iwldvm iwlwifi
[ 1485.161679] CPU: 2 PID: 3476 Comm: kworker/2:3 Tainted: G        W      T 5.11.11 #1
[ 1485.161681] Hardware name: LENOVO 2349JG1/2349JG1, BIOS CBET4000 4.13-1524-g6271dd8459-dirty 01/29/2021
[ 1485.161683] Workqueue: events_freezable ieee80211_restart_work
[ 1485.161686] RIP: 0010:drv_stop+0xc6/0xd0
[ 1485.161689] Code: 68 89 c0 48 0f a3 05 59 db d1 00 73 8d 48 8b 05 00 a6 d1 00 48 85 c0 74 0c 48 8b 78 08 48 89 de e8 3f d1 03 00 e9 70 ff ff ff <0f> 0b 5b c3 66 0f 1f 44 00 00 41 54 55 48 89 fd 53 48 89 f3 e8 a1
[ 1485.161690] RSP: 0018:ffffb62b006f7c90 EFLAGS: 00010246
[ 1485.161692] RAX: 0000000000000000 RBX: ffffa393f98387c0 RCX: 0000000000000000
[ 1485.161693] RDX: ffffa392ac9d6940 RSI: 0000000000000296 RDI: ffffa393f98387c0
[ 1485.161695] RBP: ffffa393f9839940 R08: ffffa39180072800 R09: ffffffff97c44db8
[ 1485.161696] R10: 0000000000000000 R11: 0000000000000000 R12: ffffa393f9839010
[ 1485.161697] R13: ffffa3924f13b208 R14: ffffa393f9838cb0 R15: ffffa393f98387c0
[ 1485.161699] FS:  0000000000000000(0000) GS:ffffa394e1500000(0000) knlGS:0000000000000000
[ 1485.161701] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1485.161702] CR2: 00007f795801d348 CR3: 000000041a010004 CR4: 00000000001706e0
[ 1485.161703] Call Trace:
[ 1485.161705]  ieee80211_do_stop+0x56e/0x890
[ 1485.161726]  ieee80211_stop+0x11/0x20
[ 1485.161731]  __dev_close_many+0xad/0x120
[ 1485.161735]  dev_close_many+0x9d/0x150
[ 1485.161738]  dev_close+0x8a/0xb0
[ 1485.161744]  cfg80211_shutdown_all_interfaces+0x6c/0xc0
[ 1485.161749]  ieee80211_reconfig+0x9f/0x12c0
[ 1485.161755]  ieee80211_restart_work+0xb2/0xe0
[ 1485.161759]  process_one_work+0x1dc/0x370
[ 1485.161765]  worker_thread+0x4e/0x3a0
[ 1485.161769]  ? rescuer_thread+0x380/0x380
[ 1485.161774]  kthread+0x116/0x130
[ 1485.161782]  ? __kthread_bind_mask+0x60/0x60
[ 1485.161784]  ret_from_fork+0x22/0x30
[ 1485.161788] ---[ end trace adcbca16df58359c ]---

Here are my kernel parameter in lilo:

Code:

append = "vt.default_utf8=1 resume=/dev/cryptvg/swap slab_nomerge slub_debug=FZ init_on_alloc=1 init_on_free=1 page_alloc.shuffle=1 pti=on vsyscall=none debugfs=off module.sig_enforce=1 spectre_v2=on spec_store_bypass_disable=on tsx=off tsx_async_abort=full,nosmt mds=full,nosmt l1tf=full,force nosmt=force kvm.nx_huge_pages=force ipv6.disable=1
random.trust_cpu=off efi=disable_early_pci_dma intel_iommu=on"

Mainly security mitigations and some stuff for encryption (where resume is for example). Also disabling ipv6 since I heard that could fix it. It didn't but I kept it anyway since my network does not even support ipv6.

Here is my kernel config. I do not think it could be a ploblem in the config since I have been using this for a month but the problem appeared about a week ago.

https://bin.snopyta.org/?c6f1e864f1c...PEtVHNuiKjptAM

I have only enabled drivers I need and some security options. I do not have any extra patches on top of the kernel and I am currently using a standard kernel (non libre) since intel wifi won't work on a libre kernel.

The stack traces seem to show some issue with loading the firmware. This happend before the recent update of linux-firmware as well.

I am using coreboot with seabios if that makes a difference.
I do not really know what is happening. I found this fix on iwlwifi fixes git repo which my point to some solution as it does mention beacons:
https://git.kernel.org/pub/scm/linux...mit/?h=pending

Honestly I have no idea what is happening. This happend on usb with a TL-WN422G and with a intel card. May be a problem with my network config? I do not know. I have tried:

- disabling power save
- disabling wireless ac and wireless n
- disabling bt coexist
- using dhcp rather than dhcpd
- disabling iommu

I am very lost. I thought this was specific to th9k_htc but no. Seems to me I configured something wrong in my kernel config. Possibly a security option? I do not know.

Hopefully I find a solution.

EDIT: Switching to 4.19 fixes the issue.

bassmadrigal 04-06-2021 12:16 PM

Have you tried the 5.10 kernel in -current? 4.19 is a few years old (although, still an actively maintained LTS kernel).


All times are GMT -5. The time now is 09:32 AM.