<solved> iwlwifi reporting: "Microcode SW error. Restarting 0x0"

Questions about WIFI networks and devices
Forum rules
Before you post please read how to get help
Post Reply
rightangledball
Level 1
Level 1
Posts: 3
Joined: Fri May 31, 2019 11:26 pm

<solved> iwlwifi reporting: "Microcode SW error. Restarting 0x0"

Post by rightangledball »

I have a fresh install of LM19.1 running on new hardware. I noticed immediately that the wifi was acting strangely with intermittent periods of extreme lag. I ran a ping to 8.8.8.8 and noted significant packet loss (~33%). I upgraded the kernel to 4.18 and while the internet connection was more stable, when it was put into heavier use, (for example, streaming a video), I would see packet loss with subsequent hiccups and stutters in the video. I don't know if the issue is with iwlwifi, but I did notice that it was producing lengthy and inscrutable (to me) error messages. Any help is much appreciated as, though I'm not totally new to linux, I am certainly a casual user though eager to learn more.

inxi -Fxz:

Code: Select all

 
 System:
  Host: home Kernel: 5.0.0-15-generic x86_64 bits: 64 compiler: gcc v: 7.3.0 
  Desktop: Cinnamon 4.0.10 Distro: Linux Mint 19.1 Tessa 
  base: Ubuntu 18.04 bionic 
Machine:
  Type: Desktop System: Gigabyte product: B450 I AORUS PRO WIFI v: N/A 
  serial: <filter> 
  Mobo: Gigabyte model: B450 I AORUS PRO WIFI-CF v: x.x serial: <filter> 
  UEFI: American Megatrends v: F5 date: 01/25/2019 
CPU:
  Topology: 6-Core model: AMD Ryzen 5 2600 bits: 64 type: MT MCP arch: Zen+ 
  rev: 2 L2 cache: 3072 KiB 
  flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm 
  bogomips: 81434 
  Speed: 3892 MHz min/max: 1550/3400 MHz Core speeds (MHz): 1: 3892 2: 3892 
  3: 1375 4: 1375 5: 1556 6: 1552 7: 1556 8: 1552 9: 1375 10: 1371 11: 1375 
  12: 1374 
Graphics:
  Device-1: NVIDIA GK106 [GeForce GTX 660] vendor: eVga.com. driver: nvidia 
  v: 390.116 bus ID: 09:00.0 
  Display: x11 server: X.Org 1.19.6 driver: nvidia 
  unloaded: fbdev,modesetting,nouveau,vesa 
  resolution: 1920x1080~60Hz, 1920x1080~60Hz 
  OpenGL: renderer: GeForce GTX 660/PCIe/SSE2 v: 4.6.0 NVIDIA 390.116 
  direct render: Yes 
Audio:
  Device-1: NVIDIA GK106 HDMI Audio vendor: eVga.com. driver: snd_hda_intel 
  v: kernel bus ID: 09:00.1 
  Device-2: AMD Family 17h HD Audio vendor: Gigabyte driver: snd_hda_intel 
  v: kernel bus ID: 0b:00.3 
  Sound Server: ALSA v: k5.0.0-15-generic 
Network:
  Device-1: Intel Wireless-AC 9260 driver: iwlwifi v: kernel bus ID: 06:00.0 
  IF: wlp6s0 state: up mac: <filter> 
  Device-2: Intel I211 Gigabit Network vendor: Gigabyte driver: igb 
  v: 5.4.0-k port: f000 bus ID: 08:00.0 
  IF: enp8s0 state: down mac: <filter> 
Drives:
  Local Storage: total: 1.14 TiB used: 18.67 GiB (1.6%) 
  ID-1: /dev/sda vendor: A-Data model: SX850 size: 238.47 GiB temp: 42 C 
  ID-2: /dev/sdb vendor: Hitachi model: HUA722010CLA330 size: 931.51 GiB 
  temp: 45 C 
Partition:
  ID-1: / size: 233.24 GiB used: 18.67 GiB (8.0%) fs: ext4 dev: /dev/sda2 
Sensors:
  System Temperatures: cpu: 50.5 C mobo: N/A gpu: nvidia temp: 46 C 
  Fan Speeds (RPM): N/A gpu: nvidia fan: 33% 
Info:
  Processes: 311 Uptime: 20m Memory: 15.67 GiB used: 1.67 GiB (10.7%) 
  Init: systemd runlevel: 5 Compilers: gcc: 7.4.0 Shell: bash v: 4.4.19 
  inxi: 3.0.27 
dmesg |grep iwl:

Code: Select all

[   10.965775] iwlwifi 0000:06:00.0: enabling device (0000 -> 0002)
[   11.001488] iwlwifi 0000:06:00.0: loaded firmware version 43.95eb4e97.0 op_mode iwlmvm
[   11.119077] iwlwifi 0000:06:00.0: Detected Intel(R) Dual Band Wireless AC 9260, REV=0x324
[   11.166322] iwlwifi 0000:06:00.0: base HW address: a4:c3:f0:88:3e:89
[   11.242356] ieee80211 phy0: Selected rate control algorithm 'iwl-mvm-rs'
[   11.243425] iwlwifi 0000:06:00.0 wlp6s0: renamed from wlan0
[   91.235207] iwlwifi 0000:06:00.0: Microcode SW error detected. Restarting 0x0.
[   91.235318] iwlwifi 0000:06:00.0: Start IWL Error Log Dump:
[   91.235322] iwlwifi 0000:06:00.0: Status: 0x00000100, count: 6
[   91.235326] iwlwifi 0000:06:00.0: Loaded firmware version: 43.95eb4e97.0
[   91.235330] iwlwifi 0000:06:00.0: 0x00000942 | ADVANCED_SYSASSERT          
[   91.235334] iwlwifi 0000:06:00.0: 0x000022F0 | trm_hw_status0
[   91.235337] iwlwifi 0000:06:00.0: 0x00000000 | trm_hw_status1
[   91.235339] iwlwifi 0000:06:00.0: 0x004898DA | branchlink2
[   91.235342] iwlwifi 0000:06:00.0: 0x0047AD32 | interruptlink1
[   91.235388] iwlwifi 0000:06:00.0: 0x00000000 | interruptlink2
[   91.235392] iwlwifi 0000:06:00.0: 0x0028FFFD | data1
[   91.235395] iwlwifi 0000:06:00.0: 0x09000100 | data2
[   91.235398] iwlwifi 0000:06:00.0: 0x000F0602 | data3
[   91.235402] iwlwifi 0000:06:00.0: 0xB7814B47 | beacon time
[   91.235405] iwlwifi 0000:06:00.0: 0xB38EE4B7 | tsf low
[   91.235412] iwlwifi 0000:06:00.0: 0x0000011C | tsf hi
[   91.235415] iwlwifi 0000:06:00.0: 0x00000000 | time gp1
[   91.235418] iwlwifi 0000:06:00.0: 0x04AEAAAB | time gp2
[   91.235422] iwlwifi 0000:06:00.0: 0x00000001 | uCode revision type
[   91.235425] iwlwifi 0000:06:00.0: 0x0000002B | uCode version major
[   91.235433] iwlwifi 0000:06:00.0: 0x95EB4E97 | uCode version minor
[   91.235439] iwlwifi 0000:06:00.0: 0x00000321 | hw version
[   91.235446] iwlwifi 0000:06:00.0: 0x00C89004 | board version
[   91.235454] iwlwifi 0000:06:00.0: 0x0000001C | hcmd
[   91.235458] iwlwifi 0000:06:00.0: 0x00023000 | isr0
[   91.235462] iwlwifi 0000:06:00.0: 0x00000000 | isr1
[   91.235465] iwlwifi 0000:06:00.0: 0x08001802 | isr2
[   91.235469] iwlwifi 0000:06:00.0: 0x4041F4C3 | isr3
[   91.235476] iwlwifi 0000:06:00.0: 0x00000000 | isr4
[   91.235482] iwlwifi 0000:06:00.0: 0x0AB4001C | last cmd Id
[   91.235486] iwlwifi 0000:06:00.0: 0x000198B6 | wait_event
[   91.235492] iwlwifi 0000:06:00.0: 0x00000080 | l2p_control
[   91.235498] iwlwifi 0000:06:00.0: 0x00000000 | l2p_duration
[   91.235501] iwlwifi 0000:06:00.0: 0x0000003F | l2p_mhvalid
[   91.235505] iwlwifi 0000:06:00.0: 0x00000080 | l2p_addr_match
[   91.235508] iwlwifi 0000:06:00.0: 0x0000000D | lmpm_pmg_sel
[   91.235512] iwlwifi 0000:06:00.0: 0x29122002 | timestamp
[   91.235515] iwlwifi 0000:06:00.0: 0x000018EC | flow_handler
[   91.235561] iwlwifi 0000:06:00.0: Start IWL Error Log Dump:
[   91.235565] iwlwifi 0000:06:00.0: Status: 0x00000100, count: 7
[   91.235570] iwlwifi 0000:06:00.0: 0x20000070 | NMI_INTERRUPT_LMAC_FATAL
[   91.235573] iwlwifi 0000:06:00.0: 0x00000000 | umac branchlink1
[   91.235577] iwlwifi 0000:06:00.0: 0xC008816E | umac branchlink2
[   91.235580] iwlwifi 0000:06:00.0: 0xC0083DD4 | umac interruptlink1
[   91.235584] iwlwifi 0000:06:00.0: 0xC0083DD4 | umac interruptlink2
[   91.235587] iwlwifi 0000:06:00.0: 0x00000800 | umac data1
[   91.235591] iwlwifi 0000:06:00.0: 0xC0083DD4 | umac data2
[   91.235594] iwlwifi 0000:06:00.0: 0xDEADBEEF | umac data3
[   91.235598] iwlwifi 0000:06:00.0: 0x0000002B | umac major
[   91.235601] iwlwifi 0000:06:00.0: 0x95EB4E97 | umac minor
[   91.235605] iwlwifi 0000:06:00.0: 0x04AEAABD | frame pointer
[   91.235608] iwlwifi 0000:06:00.0: 0xC088627C | stack pointer
[   91.235612] iwlwifi 0000:06:00.0: 0x00CF014E | last host cmd
[   91.235615] iwlwifi 0000:06:00.0: 0x00000000 | isr status reg
On a humorous note: 0xDEADBEEF is quite the memory address :lol: .
Last edited by rightangledball on Sun Jun 02, 2019 12:15 am, edited 1 time in total.
User avatar
Pjotr
Level 22
Level 22
Posts: 16146
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: iwlwifi reporting: "Microcode SW error. Restarting 0x0"

Post by Pjotr »

Tip: 10 things to do after installing Linux Mint 20.1 Ulyssa
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
rightangledball
Level 1
Level 1
Posts: 3
Joined: Fri May 31, 2019 11:26 pm

Re: iwlwifi reporting: "Microcode SW error. Restarting 0x0"

Post by rightangledball »

Thank you Piotr. I followed your instructions. The issue is not resolved. In fact, it appears that the new driver failed to load:

dmesg |grep iwl :

Code: Select all

sudo dmesg |grep iwl 
[   11.335170] iwlwifi 0000:06:00.0: enabling device (0000 -> 0002)
[   11.338224] iwlwifi 0000:06:00.0: Direct firmware load for iwlwifi-9260-th-b0-jf-b0-43.ucode failed with error -2
[   11.341213] iwlwifi 0000:06:00.0: Direct firmware load for iwlwifi-9260-th-b0-jf-b0-42.ucode failed with error -2
[   11.341232] iwlwifi 0000:06:00.0: Direct firmware load for iwlwifi-9260-th-b0-jf-b0-41.ucode failed with error -2
[   11.341241] iwlwifi 0000:06:00.0: Direct firmware load for iwlwifi-9260-th-b0-jf-b0-40.ucode failed with error -2
[   11.344015] iwlwifi 0000:06:00.0: Direct firmware load for iwlwifi-9260-th-b0-jf-b0-39.ucode failed with error -2
[   11.344027] iwlwifi 0000:06:00.0: Direct firmware load for iwlwifi-9260-th-b0-jf-b0-38.ucode failed with error -2
[   11.353407] iwlwifi 0000:06:00.0: Direct firmware load for iwlwifi-9260-th-b0-jf-b0-37.ucode failed with error -2
[   11.373834] iwlwifi 0000:06:00.0: Direct firmware load for iwlwifi-9260-th-b0-jf-b0-36.ucode failed with error -2
[   11.373848] iwlwifi 0000:06:00.0: Direct firmware load for iwlwifi-9260-th-b0-jf-b0-35.ucode failed with error -2
[   11.410641] iwlwifi 0000:06:00.0: loaded firmware version 34.0.0 op_mode iwlmvm
[   11.450184] iwlwifi 0000:06:00.0: Detected Intel(R) Dual Band Wireless AC 9260, REV=0x324
[   11.502011] iwlwifi 0000:06:00.0: base HW address: a4:c3:f0:88:3e:89
[   11.614546] ieee80211 phy0: Selected rate control algorithm 'iwl-mvm-rs'
[   11.615710] iwlwifi 0000:06:00.0 wlp6s0: renamed from wlan0
[  164.644218] iwlwifi 0000:06:00.0: Microcode SW error detected. Restarting 0x0.
[  164.644322] iwlwifi 0000:06:00.0: Start IWL Error Log Dump:
[  164.644324] iwlwifi 0000:06:00.0: Status: 0x00000100, count: 6
[  164.644326] iwlwifi 0000:06:00.0: Loaded firmware version: 34.0.0
[  164.644328] iwlwifi 0000:06:00.0: 0x00000942 | ADVANCED_SYSASSERT          
[  164.644330] iwlwifi 0000:06:00.0: 0x000022F0 | trm_hw_status0
[  164.644331] iwlwifi 0000:06:00.0: 0x00000001 | trm_hw_status1
[  164.644332] iwlwifi 0000:06:00.0: 0x00456C16 | branchlink2
[  164.644334] iwlwifi 0000:06:00.0: 0x0046055A | interruptlink1
[  164.644335] iwlwifi 0000:06:00.0: 0x00000000 | interruptlink2
[  164.644336] iwlwifi 0000:06:00.0: 0xFFC2FF4A | data1
[  164.644338] iwlwifi 0000:06:00.0: 0x09000100 | data2
[  164.644339] iwlwifi 0000:06:00.0: 0x000F0602 | data3
[  164.644340] iwlwifi 0000:06:00.0: 0x5A80FC16 | beacon time
[  164.644342] iwlwifi 0000:06:00.0: 0xF477C3ED | tsf low
[  164.644343] iwlwifi 0000:06:00.0: 0x00000126 | tsf hi
[  164.644344] iwlwifi 0000:06:00.0: 0x00000000 | time gp1
[  164.644345] iwlwifi 0000:06:00.0: 0x090AE28D | time gp2
[  164.644347] iwlwifi 0000:06:00.0: 0x00000001 | uCode revision type
[  164.644348] iwlwifi 0000:06:00.0: 0x00000022 | uCode version major
[  164.644349] iwlwifi 0000:06:00.0: 0x00000000 | uCode version minor
[  164.644351] iwlwifi 0000:06:00.0: 0x00000321 | hw version
[  164.644352] iwlwifi 0000:06:00.0: 0x00C89004 | board version
[  164.644353] iwlwifi 0000:06:00.0: 0x0000001C | hcmd
[  164.644354] iwlwifi 0000:06:00.0: 0x00023002 | isr0
[  164.644356] iwlwifi 0000:06:00.0: 0x00001800 | isr1
[  164.644357] iwlwifi 0000:06:00.0: 0x0800180A | isr2
[  164.644358] iwlwifi 0000:06:00.0: 0x404154C0 | isr3
[  164.644359] iwlwifi 0000:06:00.0: 0x00000000 | isr4
[  164.644361] iwlwifi 0000:06:00.0: 0x0ABC001C | last cmd Id
[  164.644362] iwlwifi 0000:06:00.0: 0x00000000 | wait_event
[  164.644363] iwlwifi 0000:06:00.0: 0x000000D4 | l2p_control
[  164.644364] iwlwifi 0000:06:00.0: 0x00000000 | l2p_duration
[  164.644366] iwlwifi 0000:06:00.0: 0x00000007 | l2p_mhvalid
[  164.644367] iwlwifi 0000:06:00.0: 0x00000000 | l2p_addr_match
[  164.644368] iwlwifi 0000:06:00.0: 0x0000000D | lmpm_pmg_sel
[  164.644369] iwlwifi 0000:06:00.0: 0x12111728 | timestamp
[  164.644371] iwlwifi 0000:06:00.0: 0x00007070 | flow_handler
[  164.644412] iwlwifi 0000:06:00.0: Start IWL Error Log Dump:
[  164.644414] iwlwifi 0000:06:00.0: Status: 0x00000100, count: 7
[  164.644415] iwlwifi 0000:06:00.0: 0x00000070 | NMI_INTERRUPT_LMAC_FATAL
[  164.644416] iwlwifi 0000:06:00.0: 0x00000000 | umac branchlink1
[  164.644418] iwlwifi 0000:06:00.0: 0xC0087D38 | umac branchlink2
[  164.644419] iwlwifi 0000:06:00.0: 0xC0083A30 | umac interruptlink1
[  164.644420] iwlwifi 0000:06:00.0: 0xC0083A30 | umac interruptlink2
[  164.644421] iwlwifi 0000:06:00.0: 0x00000800 | umac data1
[  164.644423] iwlwifi 0000:06:00.0: 0xC0083A30 | umac data2
[  164.644424] iwlwifi 0000:06:00.0: 0xDEADBEEF | umac data3
[  164.644425] iwlwifi 0000:06:00.0: 0x00000022 | umac major
[  164.644426] iwlwifi 0000:06:00.0: 0x00000000 | umac minor
[  164.644427] iwlwifi 0000:06:00.0: 0xC088628C | frame pointer
[  164.644429] iwlwifi 0000:06:00.0: 0xC088628C | stack pointer
[  164.644430] iwlwifi 0000:06:00.0: 0x0050010C | last host cmd
[  164.644431] iwlwifi 0000:06:00.0: 0x00000000 | isr status reg
User avatar
thx-1138
Level 8
Level 8
Posts: 2105
Joined: Fri Mar 10, 2017 12:15 pm
Location: Athens, Greece

Re: iwlwifi reporting: "Microcode SW error. Restarting 0x0"

Post by thx-1138 »

...first apt reinstall linux-firmware, so that you're sure you have there all of the Canonical-approved firmware...
ls /lib/firmware/ | grep 9260 should return then:
iwlwifi-9260-th-b0-jf-b0-33.ucode
iwlwifi-9260-th-b0-jf-b0-34.ucode
iwlwifi-9260-th-b0-jf-b0-38.ucode
iwlwifi-9260-th-b0-jf-b0-41.ucode
iwlwifi-9260-th-b0-jf-b0-43.ucode
Upstream there has been submitted a *46 version on 14 May, which isn't included in the linux-firmware package above.
It might or it not behave better, it's certainly something that worths a shot however.
wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/iwlwifi-9260-th-b0-jf-b0-46.ucode
sudo mv iwlwifi-9260-th-b0-jf-b0-46.ucode /lib/firmware/iwlwifi-9260-th-b0-jf-b0-46.ucode

sudo rm /lib/firmware/iwlwifi-9260-th-b0-jf-b0-46.ucode will obviously remove the manually added firmware.

I'd then follow tbg's nice mini-tutorial from here, testing different parameters & see if any combination makes a difference.
If you find a combination that does the trick / improves the situation, then, to make such permanent...
echo 'options iwlwifi parameter=1 parameter=2 parameter=3 | sudo tee /etc/modprobe.d/mod-iwlwifi.conf
Ie. say in the op's case in that aformentioned thread, such would be:
echo 'options iwlwifi swcrypto=0 bt_coex_active=0 power_save=0' | sudo tee /etc/modprobe.d/mod-iwlwifi.conf
sudo rm /etc/modprobe.d/mod-iwlwifi.conf to remove the config file if needed...

This is the general gist of what i'd personally try out
(and bugzilla has various reports for 9260 at the moment for someone to further dig into...)
In that sense, and depending on your luck / patience, if kernel 4.18 currently gives you less grief with iwlwifi...
rightangledball
Level 1
Level 1
Posts: 3
Joined: Fri May 31, 2019 11:26 pm

Re: iwlwifi reporting: "Microcode SW error. Restarting 0x0"

Post by rightangledball »

Thank you thx-1138. I reinstalled linux-firmware and updated to iwlwifi-9260-th-b0-jf-b0-46.ucode. By goofing around with the parameters, i am no longer getting microcode error. I settled on:

Code: Select all

modprobe iwlwifi 11n_disable=1 bt_coex_active=0
Thanks so much to the forums!
ipetruniv
Level 1
Level 1
Posts: 1
Joined: Mon Sep 30, 2019 11:13 pm

Re: <solved> iwlwifi reporting: "Microcode SW error. Restarting 0x0"

Post by ipetruniv »

Try to create configuration file:
echo "options cfg80211 cfg80211_disable_40mhz_24ghz=Y" > /etc/modprobe.d/cfg80211.conf
Post Reply

Return to “Wireless”