Discussion:
Wifi getting disconnected randomly
(too old to reply)
Unni
2024-05-09 16:50:01 UTC
Permalink
Hello,

Wifi is getting disconnected randomly on debian. dmesg shows


--

[  278.360346] iwlwifi 0000:09:00.0: Queue 5 is stuck 8 21
[  278.360447] iwlwifi 0000:09:00.0: Microcode SW error detected.
Restarting 0x0.
[  278.360566] iwlwifi 0000:09:00.0: Start IWL Error Log Dump:
[  278.360568] iwlwifi 0000:09:00.0: Transport status: 0x0000004A, valid: 6
[  278.360571] iwlwifi 0000:09:00.0: Loaded firmware version:
72.daa05125.0 cc-a0-72.ucode
[  278.360573] iwlwifi 0000:09:00.0: 0x00000084 | NMI_INTERRUPT_UNKNOWN
[  278.360576] iwlwifi 0000:09:00.0: 0x000022F0 | trm_hw_status0
[  278.360578] iwlwifi 0000:09:00.0: 0x00000001 | trm_hw_status1
[  278.360579] iwlwifi 0000:09:00.0: 0x004FBE16 | branchlink2
[  278.360581] iwlwifi 0000:09:00.0: 0x004F23FE | interruptlink1
[  278.360583] iwlwifi 0000:09:00.0: 0x004F23FE | interruptlink2
[  278.360585] iwlwifi 0000:09:00.0: 0x00005CEA | data1
[  278.360587] iwlwifi 0000:09:00.0: 0x01000000 | data2
[  278.360589] iwlwifi 0000:09:00.0: 0x00000000 | data3
[  278.360590] iwlwifi 0000:09:00.0: 0x86C0496C | beacon time
[  278.360592] iwlwifi 0000:09:00.0: 0x72E106A0 | tsf low
[  278.360594] iwlwifi 0000:09:00.0: 0x000000E2 | tsf hi
[  278.360596] iwlwifi 0000:09:00.0: 0x00000000 | time gp1
[  278.360598] iwlwifi 0000:09:00.0: 0x1009BFB7 | time gp2
[  278.360600] iwlwifi 0000:09:00.0: 0x00000001 | uCode revision type
[  278.360601] iwlwifi 0000:09:00.0: 0x00000048 | uCode version major
[  278.360603] iwlwifi 0000:09:00.0: 0xDAA05125 | uCode version minor
[  278.360605] iwlwifi 0000:09:00.0: 0x00000340 | hw version
[  278.360607] iwlwifi 0000:09:00.0: 0x00C89000 | board version
[  278.360609] iwlwifi 0000:09:00.0: 0x8045FC0B | hcmd
[  278.360610] iwlwifi 0000:09:00.0: 0x00020000 | isr0
[  278.360612] iwlwifi 0000:09:00.0: 0x00000000 | isr1
[  278.360614] iwlwifi 0000:09:00.0: 0x08F00002 | isr2
[  278.360616] iwlwifi 0000:09:00.0: 0x00C3038C | isr3
[  278.360618] iwlwifi 0000:09:00.0: 0x00000000 | isr4
[  278.360619] iwlwifi 0000:09:00.0: 0x0507001C | last cmd Id
[  278.360621] iwlwifi 0000:09:00.0: 0x00005CEA | wait_event
[  278.360623] iwlwifi 0000:09:00.0: 0x00000080 | l2p_control
[  278.360625] iwlwifi 0000:09:00.0: 0x00000020 | l2p_duration
[  278.360627] iwlwifi 0000:09:00.0: 0x0000003F | l2p_mhvalid
[  278.360629] iwlwifi 0000:09:00.0: 0x00000080 | l2p_addr_match
[  278.360630] iwlwifi 0000:09:00.0: 0x00000009 | lmpm_pmg_sel
[  278.360632] iwlwifi 0000:09:00.0: 0x00000000 | timestamp
[  278.360634] iwlwifi 0000:09:00.0: 0x000070D0 | flow_handler
[  278.360680] iwlwifi 0000:09:00.0: Start IWL Error Log Dump:
[  278.360682] iwlwifi 0000:09:00.0: Transport status: 0x0000004A, valid: 7
[  278.360684] iwlwifi 0000:09:00.0: 0x20000066 | NMI_INTERRUPT_HOST
[  278.360686] iwlwifi 0000:09:00.0: 0x00000000 | umac branchlink1
[  278.360688] iwlwifi 0000:09:00.0: 0x80455E3C | umac branchlink2
[  278.360690] iwlwifi 0000:09:00.0: 0x80472146 | umac interruptlink1
[  278.360692] iwlwifi 0000:09:00.0: 0x80472146 | umac interruptlink2
[  278.360693] iwlwifi 0000:09:00.0: 0x01000000 | umac data1
[  278.360695] iwlwifi 0000:09:00.0: 0x80472146 | umac data2
[  278.360697] iwlwifi 0000:09:00.0: 0x00000000 | umac data3
[  278.360699] iwlwifi 0000:09:00.0: 0x00000048 | umac major
[  278.360701] iwlwifi 0000:09:00.0: 0xDAA05125 | umac minor
[  278.360702] iwlwifi 0000:09:00.0: 0x1009BFB5 | frame pointer
[  278.360704] iwlwifi 0000:09:00.0: 0xC0886264 | stack pointer
[  278.360706] iwlwifi 0000:09:00.0: 0x00E8019C | last host cmd
[  278.360708] iwlwifi 0000:09:00.0: 0x00000000 | isr status reg
[  278.360722] iwlwifi 0000:09:00.0: IML/ROM dump:
[  278.360724] iwlwifi 0000:09:00.0: 0x00000003 | IML/ROM error/state
[  278.360738] iwlwifi 0000:09:00.0: 0x0000578F | IML/ROM data1
[  278.360752] iwlwifi 0000:09:00.0: 0x00000080 | IML/ROM WFPM_AUTH_KEY_0
[  278.360761] iwlwifi 0000:09:00.0: Fseq Registers:
[  278.360765] iwlwifi 0000:09:00.0: 0x60000000 | FSEQ_ERROR_CODE
[  278.360770] iwlwifi 0000:09:00.0: 0x00290021 | FSEQ_TOP_INIT_VERSION
[  278.360775] iwlwifi 0000:09:00.0: 0x00050008 | FSEQ_CNVIO_INIT_VERSION
[  278.360780] iwlwifi 0000:09:00.0: 0x0000A503 | FSEQ_OTP_VERSION
[  278.360785] iwlwifi 0000:09:00.0: 0x80000003 | FSEQ_TOP_CONTENT_VERSION
[  278.360790] iwlwifi 0000:09:00.0: 0x4552414E | FSEQ_ALIVE_TOKEN
[  278.360794] iwlwifi 0000:09:00.0: 0x00100530 | FSEQ_CNVI_ID
[  278.360799] iwlwifi 0000:09:00.0: 0x00000532 | FSEQ_CNVR_ID
[  278.360804] iwlwifi 0000:09:00.0: 0x00100530 | CNVI_AUX_MISC_CHIP
[  278.360811] iwlwifi 0000:09:00.0: 0x00000532 | CNVR_AUX_MISC_CHIP
[  278.360818] iwlwifi 0000:09:00.0: 0x05B0905B |
CNVR_SCU_SD_REGS_SD_REG_DIG_DCDC_VTRIM
[  278.360825] iwlwifi 0000:09:00.0: 0x0000025B |
CNVR_SCU_SD_REGS_SD_REG_ACTIVE_VDIG_MIRROR
--


--

unni-debian:~# cat /etc/debian_version
12.5
unni-debian:~# uname -a
Linux unni-debian 6.1.0-21-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.90-1
(2024-05-03) x86_64 GNU/Linux
unni-debian:~#

--


It started working after disabling and enabling wifi in Gnome.


Regards,

Unni
Jeffrey Walton
2024-05-09 23:10:01 UTC
Permalink
Post by Unni
Hello,
Wifi is getting disconnected randomly on debian. dmesg shows
--
[ 278.360346] iwlwifi 0000:09:00.0: Queue 5 is stuck 8 21
[ 278.360447] iwlwifi 0000:09:00.0: Microcode SW error detected.
Restarting 0x0.
[ 278.360568] iwlwifi 0000:09:00.0: Transport status: 0x0000004A, valid: 6
72.daa05125.0 cc-a0-72.ucode
[ 278.360573] iwlwifi 0000:09:00.0: 0x00000084 | NMI_INTERRUPT_UNKNOWN
[ 278.360576] iwlwifi 0000:09:00.0: 0x000022F0 | trm_hw_status0
[ 278.360578] iwlwifi 0000:09:00.0: 0x00000001 | trm_hw_status1
[ 278.360579] iwlwifi 0000:09:00.0: 0x004FBE16 | branchlink2
[ 278.360581] iwlwifi 0000:09:00.0: 0x004F23FE | interruptlink1
[ 278.360583] iwlwifi 0000:09:00.0: 0x004F23FE | interruptlink2
[ 278.360585] iwlwifi 0000:09:00.0: 0x00005CEA | data1
[ 278.360587] iwlwifi 0000:09:00.0: 0x01000000 | data2
[ 278.360589] iwlwifi 0000:09:00.0: 0x00000000 | data3
[ 278.360590] iwlwifi 0000:09:00.0: 0x86C0496C | beacon time
[ 278.360592] iwlwifi 0000:09:00.0: 0x72E106A0 | tsf low
[ 278.360594] iwlwifi 0000:09:00.0: 0x000000E2 | tsf hi
[ 278.360596] iwlwifi 0000:09:00.0: 0x00000000 | time gp1
[ 278.360598] iwlwifi 0000:09:00.0: 0x1009BFB7 | time gp2
[ 278.360600] iwlwifi 0000:09:00.0: 0x00000001 | uCode revision type
[ 278.360601] iwlwifi 0000:09:00.0: 0x00000048 | uCode version major
[ 278.360603] iwlwifi 0000:09:00.0: 0xDAA05125 | uCode version minor
[ 278.360605] iwlwifi 0000:09:00.0: 0x00000340 | hw version
[ 278.360607] iwlwifi 0000:09:00.0: 0x00C89000 | board version
[ 278.360609] iwlwifi 0000:09:00.0: 0x8045FC0B | hcmd
[ 278.360610] iwlwifi 0000:09:00.0: 0x00020000 | isr0
[ 278.360612] iwlwifi 0000:09:00.0: 0x00000000 | isr1
[ 278.360614] iwlwifi 0000:09:00.0: 0x08F00002 | isr2
[ 278.360616] iwlwifi 0000:09:00.0: 0x00C3038C | isr3
[ 278.360618] iwlwifi 0000:09:00.0: 0x00000000 | isr4
[ 278.360619] iwlwifi 0000:09:00.0: 0x0507001C | last cmd Id
[ 278.360621] iwlwifi 0000:09:00.0: 0x00005CEA | wait_event
[ 278.360623] iwlwifi 0000:09:00.0: 0x00000080 | l2p_control
[ 278.360625] iwlwifi 0000:09:00.0: 0x00000020 | l2p_duration
[ 278.360627] iwlwifi 0000:09:00.0: 0x0000003F | l2p_mhvalid
[ 278.360629] iwlwifi 0000:09:00.0: 0x00000080 | l2p_addr_match
[ 278.360630] iwlwifi 0000:09:00.0: 0x00000009 | lmpm_pmg_sel
[ 278.360632] iwlwifi 0000:09:00.0: 0x00000000 | timestamp
[ 278.360634] iwlwifi 0000:09:00.0: 0x000070D0 | flow_handler
[ 278.360682] iwlwifi 0000:09:00.0: Transport status: 0x0000004A, valid: 7
[ 278.360684] iwlwifi 0000:09:00.0: 0x20000066 | NMI_INTERRUPT_HOST
[ 278.360686] iwlwifi 0000:09:00.0: 0x00000000 | umac branchlink1
[ 278.360688] iwlwifi 0000:09:00.0: 0x80455E3C | umac branchlink2
[ 278.360690] iwlwifi 0000:09:00.0: 0x80472146 | umac interruptlink1
[ 278.360692] iwlwifi 0000:09:00.0: 0x80472146 | umac interruptlink2
[ 278.360693] iwlwifi 0000:09:00.0: 0x01000000 | umac data1
[ 278.360695] iwlwifi 0000:09:00.0: 0x80472146 | umac data2
[ 278.360697] iwlwifi 0000:09:00.0: 0x00000000 | umac data3
[ 278.360699] iwlwifi 0000:09:00.0: 0x00000048 | umac major
[ 278.360701] iwlwifi 0000:09:00.0: 0xDAA05125 | umac minor
[ 278.360702] iwlwifi 0000:09:00.0: 0x1009BFB5 | frame pointer
[ 278.360704] iwlwifi 0000:09:00.0: 0xC0886264 | stack pointer
[ 278.360706] iwlwifi 0000:09:00.0: 0x00E8019C | last host cmd
[ 278.360708] iwlwifi 0000:09:00.0: 0x00000000 | isr status reg
[ 278.360724] iwlwifi 0000:09:00.0: 0x00000003 | IML/ROM error/state
[ 278.360738] iwlwifi 0000:09:00.0: 0x0000578F | IML/ROM data1
[ 278.360752] iwlwifi 0000:09:00.0: 0x00000080 | IML/ROM WFPM_AUTH_KEY_0
[ 278.360765] iwlwifi 0000:09:00.0: 0x60000000 | FSEQ_ERROR_CODE
[ 278.360770] iwlwifi 0000:09:00.0: 0x00290021 | FSEQ_TOP_INIT_VERSION
[ 278.360775] iwlwifi 0000:09:00.0: 0x00050008 | FSEQ_CNVIO_INIT_VERSION
[ 278.360780] iwlwifi 0000:09:00.0: 0x0000A503 | FSEQ_OTP_VERSION
[ 278.360785] iwlwifi 0000:09:00.0: 0x80000003 | FSEQ_TOP_CONTENT_VERSION
[ 278.360790] iwlwifi 0000:09:00.0: 0x4552414E | FSEQ_ALIVE_TOKEN
[ 278.360794] iwlwifi 0000:09:00.0: 0x00100530 | FSEQ_CNVI_ID
[ 278.360799] iwlwifi 0000:09:00.0: 0x00000532 | FSEQ_CNVR_ID
[ 278.360804] iwlwifi 0000:09:00.0: 0x00100530 | CNVI_AUX_MISC_CHIP
[ 278.360811] iwlwifi 0000:09:00.0: 0x00000532 | CNVR_AUX_MISC_CHIP
[ 278.360818] iwlwifi 0000:09:00.0: 0x05B0905B |
CNVR_SCU_SD_REGS_SD_REG_DIG_DCDC_VTRIM
[ 278.360825] iwlwifi 0000:09:00.0: 0x0000025B |
CNVR_SCU_SD_REGS_SD_REG_ACTIVE_VDIG_MIRROR
--
unni-debian:~# cat /etc/debian_version
12.5
unni-debian:~# uname -a
Linux unni-debian 6.1.0-21-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.90-1
(2024-05-03) x86_64 GNU/Linux
unni-debian:~#
--
It started working after disabling and enabling wifi in Gnome.
Install the latest UEFI firmware for the machine, and then re-run the tests.

Jeff
Max Nikulin
2024-05-10 15:10:02 UTC
Permalink
Post by Unni
[  278.360447] iwlwifi 0000:09:00.0: Microcode SW error detected.
Restarting 0x0.
72.daa05125.0 cc-a0-72.ucode
[...]
Post by Unni
Install the latest UEFI firmware for the machine, and then re-run the tests.
I do not mind that it is a useful suggestion in general and should be
followed, but I am curious if it has ever helped you in specific cases
of intel wifi cards.

My experience with it is far from being positive. Some days firmware
crashes are rare, some periods of time they happen every minute. I have
not identified reasons, so results of debugging attempts would be
unreliable. Sometimes restarting of the router helps. That is why I
suspect that access points around may affect my connection.

My impression is that version of driver in backports kernel is more
stable, however in addition I downloaded firmware newer than 72.

There are enough discussions, bugs, various suggestions concerning
parameters of kernel modules. Downgrading firmware did not helped me. I
have not noticed any improvements from disabling power save mode.

Some links:
https://wireless.wiki.kernel.org/en/users/drivers/iwlwifi#about_platform_noise
https://bugzilla.kernel.org/show_bug.cgi?id=205123
https://bugs.debian.org/1026906
https://wiki.debian.org/iwlwifi

The relevant line from

lspci -nn

output should help to identify wifi adapter model.
Max Nikulin
2024-05-10 15:20:01 UTC
Permalink
Post by Jeffrey Walton
     [  278.360447] iwlwifi 0000:09:00.0: Microcode SW error detected.
     Restarting 0x0.
     72.daa05125.0 cc-a0-72.ucode
[...]
Install the latest UEFI firmware for the machine, and then re-run
the tests.
I do not mind that it is a useful suggestion in general and should be
followed, but I am curious if it has ever helped you in specific cases
of intel wifi cards.
My bad. I was talking about the manufacturer's UEFI firmware; not a
linux-firmware package.
I am not trying to dispute your suggestion, I had a hope to get a data
point with a success story.

To be precise concerning packages, it is firmware-iwlwifi
(src:firmware-nonfree). Even unstable currently have a year old package,
so for experiments it is better to take files from an upstream git
repository. It requires kernel upgrade since the range of supported
firmware versions is hardcoded.
Jeffrey Walton
2024-05-11 03:10:01 UTC
Permalink
Post by Unni
Post by Jeffrey Walton
Post by Unni
[ 278.360447] iwlwifi 0000:09:00.0: Microcode SW error
detected.
Post by Jeffrey Walton
Post by Unni
Restarting 0x0.
72.daa05125.0 cc-a0-72.ucode
[...]
Post by Unni
Install the latest UEFI firmware for the machine, and then re-run
the tests.
I do not mind that it is a useful suggestion in general and should be
followed, but I am curious if it has ever helped you in specific
cases
Post by Jeffrey Walton
of intel wifi cards.
My bad. I was talking about the manufacturer's UEFI firmware; not a
linux-firmware package.
I am not trying to dispute your suggestion, I had a hope to get a data
point with a success story.
Hi Max.

Sorry to go off the list.

In 2006 I was doing sysadmin work for the Nuclear Energy Institute. NEI
performed a hardware refresh, and supplied ~50 employees with new Dell
laptops. I don't recall the model, but they had integrated Intel wifi. The
laptops would connect via wifi, and disconnect after about 10 minutes. Dell
support told us we needed to update the BiOS or UEFI. It fixed the problem.

About 6 months ago, I bought a used Intel NUC model NUC5PPYB. It was
running Fedora 39 at the time. A `sudo reboot && exit` over SSH would cause
the machine to hang on shutdown. I had to walk over to the machine and
cycle the power. The NUC had UEFI from 2015. I updated to the 2022 version
of the UEFI (version PYBSWCEL.86A.0081.2022.0823.1419), and the hang on
reboot was fixed. Apparently there was some problem around ACPI.

Jeff
Max Nikulin
2024-05-11 16:20:01 UTC
Permalink
Post by Max Nikulin
I am not trying to dispute your suggestion, I had a hope to get a data
point with a success story.
In 2006 I was doing sysadmin work for the Nuclear Energy Institute. NEI
performed a hardware refresh, and supplied ~50 employees with new Dell
laptops. I don't recall the model, but they had integrated Intel wifi.
The laptops would connect via wifi, and disconnect after about 10
minutes. Dell support told us we needed to update the BiOS or UEFI. It
fixed the problem.
So the data point is unrelated to 72.daa05125.0 cc-a0-72.ucode or to
some other recent intel wifi card. It was my fault that I was not clear
enough asking for details.

I think, 2 decades ago balance between platform firmware and per-device
firmware loaded by drivers was different. A few years ago I have seen
recommendations of intel wifi cards as reliable ones.

In bookworm, driver spits a warning that it can not find a firmware
file. Actually it is not available and it is impossible to just download
the "missed" file. It is intended for debugging and one has to request
it and then has to send gathered data to intel developers. It is
discouraging from my point of view.

Jeffrey Walton
2024-05-10 15:20:01 UTC
Permalink
Post by Jeffrey Walton
Post by Unni
[ 278.360447] iwlwifi 0000:09:00.0: Microcode SW error detected.
Restarting 0x0.
72.daa05125.0 cc-a0-72.ucode
[...]
Post by Unni
Install the latest UEFI firmware for the machine, and then re-run the
tests.
I do not mind that it is a useful suggestion in general and should be
followed, but I am curious if it has ever helped you in specific cases
of intel wifi cards.
My bad. I was talking about the manufacturer's UEFI firmware; not a
linux-firmware package.

Jeff
Loading...