[Lenovo ThinkPad 11e] WiFi not working after wake from suspend

Bug #1588637 reported by Niklas Sombert
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

My wifi won't work after I wake my laptop up from standby.

This problem looks quite the same as #1099487 or #944271.

But I experienced this bug on Xenial with 4.4.0-22-generic (amd64).

A `sudo modprobe -r iwlwifi && sudo modprobe iwlwifi` doesn't solve the problem. (A reboot does.)

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: linux-image-4.4.0-22-generic 4.4.0-22.40
ProcVersionSignature: Ubuntu 4.4.0-22.40-generic 4.4.8
Uname: Linux 4.4.0-22-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: niklas 2175 F.... pulseaudio
 /dev/snd/controlC0: niklas 2175 F.... pulseaudio
CurrentDesktop: KDE
Date: Fri Jun 3 08:23:06 2016
InstallationDate: Installed on 2015-12-11 (174 days ago)
InstallationMedia: Kubuntu 14.04.3 LTS "Trusty Tahr" - Beta amd64 (20150805)
IwConfig:
 eth0 no wireless extensions.

 lo no wireless extensions.

 lxcbr0 no wireless extensions.
MachineType: LENOVO 20E8S00600
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/@/boot/vmlinuz-4.4.0-22-generic.efi.signed root=UUID=67485aa6-c665-4c53-bf41-328307d0cbf0 ro rootflags=subvol=@ quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-4.4.0-22-generic N/A
 linux-backports-modules-4.4.0-22-generic N/A
 linux-firmware 1.157
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 02/24/2015
dmi.bios.vendor: LENOVO
dmi.bios.version: JHET20WW (1.00 )
dmi.board.asset.tag: Not Available
dmi.board.name: Intel powered classmate PC
dmi.board.vendor: LENOVO
dmi.board.version: SDK0E50510 WIN
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: None
dmi.modalias: dmi:bvnLENOVO:bvrJHET20WW(1.00):bd02/24/2015:svnLENOVO:pn20E8S00600:pvrThinkPad11e:rvnLENOVO:rnIntelpoweredclassmatePC:rvrSDK0E50510WIN:cvnLENOVO:ct10:cvrNone:
dmi.product.name: 20E8S00600
dmi.product.version: ThinkPad 11e
dmi.sys.vendor: LENOVO

Revision history for this message
Niklas Sombert (ytvwld) wrote :
Revision history for this message
Brad Figg (brad-figg) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Niklas Sombert (ytvwld) wrote : Re: iwlwifi: Microcode SW error detected. Restarting 0x2000000

This error occurs in 4.4.0-21-generic as well, but not in 3.19.0-59-generic.

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v4.7-rc1 kernel[0].

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.7-rc1-yakkety/

Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Incomplete
tags: added: kernel-da-key needs-bisect
penalvch (penalvch)
tags: added: bios-outdated-1.60
Niklas Sombert (ytvwld)
tags: added: kernel-bug-exists-upstream
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
penalvch (penalvch) wrote :

Niklas Sombert, could you please test the latest mainline kernel (4.7-rc2) and advise to the results?

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Niklas Sombert (ytvwld) wrote :

I've tested it with rc2 and rc3.

It does still happen.

Revision history for this message
Niklas Sombert (ytvwld) wrote :
Niklas Sombert (ytvwld)
description: updated
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
penalvch (penalvch) wrote :

Niklas Sombert, the next step is to fully commit bisect from kernel 3.19 to 4.4 in order to identify the last good kernel commit, followed immediately by the first bad one. This will allow for a more expedited analysis of the root cause of your issue. Could you please do this following https://wiki.ubuntu.com/Kernel/KernelBisection ?

Please note, finding adjacent kernel versions is not fully commit bisecting.

Also, the kernel release names are irrelevant for the purposes of bisecting.

After the offending commit (not kernel version) has been identified, then please mark this report Status Confirmed.

Thank you for your understanding.

Helpful bug reporting tips:
https://wiki.ubuntu.com/ReportingBugs

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Niklas Sombert (ytvwld) wrote :

So, I'm done with versions bisecting. The issue has been introduced somewhere between 4.0.0-4 and 4.1.0-1.

I'll commit bisect later.

Revision history for this message
Niklas Sombert (ytvwld) wrote :

I can't build the second commit to test.
The build fails with the following:

II: Checking modules for generic...
   reading new modules...read 4341 modules.
   reading old modules...
      MISS: bcm_sf2
      MISS: dsa_core
      MISS: hid-huion
      MISS: intel_mid_dma
      MISS: mv88e6060
      MISS: mv88e6xxx_drv
      MISS: phy-generic
      MISS: snd-soc-atmel-pcm
      MISS: snd-soc-sst-bytcr-dpcm-rt5640
      MISS: snd-soc-wm8804
      MISS: tc3589x-keypad
      MISS: tpm_i2c_stm_st33
      NEW : spi-cadence
      NEW : comedi_8254
      NEW : nhc_hop
      NEW : btbcm
      NEW : nhc_routing
      NEW : snd-soc-sst-bytcr-rt5640
      NEW : vfio_virqfd
      NEW : nhc_dest
      NEW : nhc_udp
      NEW : snd-soc-sst-ipc
      NEW : btintel
      NEW : nhc_mobility
      NEW : usb_f_printer
      NEW : nhc_fragment
      NEW : snd-hda-core
      NEW : nhc_ipv6
      read 4337 modules : new(16) missing(12)
EE: Missing modules (start begging for mercy)

I'm at d0a3997.

Revision history for this message
penalvch (penalvch) wrote :

Niklas Sombert, then mark it as bad, and move on to testing the next bisection point.

Revision history for this message
Niklas Sombert (ytvwld) wrote :

I didn't manage to bisect the commits because every version failed to build.

Then I started from 4.1.0-1 and reverted commits with "iwlwifi" in the title.

http://kernel.ubuntu.com/git/ubuntu/ubuntu-wily.git/commit/?id=8d193ca26cc28019e760b77830295a0c349d90dc seems to be the culprit. (Resuming from standby works without and not with it.)

Revision history for this message
penalvch (penalvch) wrote :

Niklas Sombert, to keep this relevant to upstream, could you please test the latest mainline kernel (4.7-rc6) and advise to the results?

tags: added: bisect-done kernel-bug-exists-upstream-4.7-rc3
removed: needs-bisect
Revision history for this message
Niklas Sombert (ytvwld) wrote :

Yes, this problem still occurs with 4.7-rc6.

Revision history for this message
penalvch (penalvch) wrote :

Niklas Sombert, the issue you are reporting is an upstream one. Could you please report this problem following the instructions verbatim at https://wiki.ubuntu.com/Bugs/Upstream/kernel to the appropriate mailing list (TO: Eran Harary, and Emmanuel Grumbach CC linuxwifi and linux-wireless)?

Please provide a direct URL to your post to the mailing list when it becomes available so that it may be tracked.

Thank you for your understanding.

tags: added: kernel-bug-exists-upstream-4.7-rc6
removed: kernel-bug-exists-upstream-4.7-rc3
Changed in linux (Ubuntu):
status: Incomplete → Triaged
Revision history for this message
Niklas Sombert (ytvwld) wrote :

This is the thread on the mailing list: https://marc.info/?t=146814170500001&r=1&w=2

Revision history for this message
Niklas Sombert (ytvwld) wrote :

So, this seems to be the same bug as https://bugzilla.kernel.org/show_bug.cgi?id=114501.

Revision history for this message
Valentin Neacsu (valentin.neacsu) wrote :

I had the same issue as reported here. I noticed at boot that the driver was failing to load its primary firmware choice, falling back to a different version:

[ 3.538299] iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-7260-17.ucode failed with error -2
[ 3.541299] iwlwifi 0000:04:00.0: loaded firmware version 16.242414.0 op_mode iwlmvm

I checked /lib/firmware and the highest version I had there was iwlwifi-7260-16.ucode, which corresponds to 16.242414.0 in the logs above. I decided to rename iwlwifi-7260-16.ucode to prevent it from being loaded, as this would allow the driver to fall back onto the next best firmware file, iwlwifi-7260-13.ucode. This didn't help.

To fix this problem I looked at https://wireless.wiki.kernel.org/en/users/drivers/iwlwifi#firmware and downloaded iwlwifi-7260-17.ucode (via git) and copied it into /lib/firmware, then rebooted. I haven't had any issue since applying this fix, where previously I'd be getting a firmware crash once every 15-30 minutes.

This new firmware file is not present in linux-firmware 1.157.3 that I have on my Xenial box, but it does seem to be included in linux-firmware 1.161 as part of Yakkety, so I suggest downloading and installing it:
https://launchpad.net/ubuntu/yakkety/amd64/linux-firmware/1.161

It would be great if this update was pushed to Xenial as well in order to mitigate the issues we're seeing.

Judging by the fact that downgrading to a previous firmware version didn't seem to help (so the issue was not caused by a firmware upgrade), but upgrading did help, I suspect that a recent change in iwlwifi or the kernel is causing the wifi to fail unless it is using the new firmware in iwlwifi-7260-17.ucode.

Revision history for this message
Niklas Sombert (ytvwld) wrote :

This doesn't work for me. (But I've got a 7265D and not a 7260.)

Revision history for this message
Niklas Sombert (ytvwld) wrote :

Since I've upgraded to yakkety, this issue seems to be gone.

But the weird thing is: I'm not even able to reproduce it with a live version of xenial with the exact same software I ran when I first encountered the bug.

Revision history for this message
penalvch (penalvch) wrote :

Niklas Sombert, this bug report is being closed due to your last comment https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1588637/comments/20 regarding this being fixed with an update. For future reference you can manage the status of your own bugs by clicking on the current status in the yellow line and then choosing a new status in the revealed drop down box. You can learn more about bug statuses at https://wiki.ubuntu.com/Bugs/Status. Thank you again for taking the time to report this bug and helping to make Ubuntu better. Please submit any future bugs you may find.

Changed in linux (Ubuntu):
status: Triaged → Invalid
Revision history for this message
Rob Peters (makitso) wrote :

On release 17.04 After today's update from kernel 4.10.0-30-generic to 4.10.0-32-generic the problem is again with us.

Revision history for this message
Fredrik Normann (smartypants) wrote :
Download full text (5.2 KiB)

17.10 and this shows up in syslog:

Oct 23 10:32:43 normann kernel: [16449.935879] ieee80211 phy0: Hardware restart was requested
Oct 23 10:33:04 normann kernel: [16470.892551] iwlwifi 0000:03:00.0: regular scan timed out
Oct 23 10:33:04 normann kernel: [16470.893902] iwlwifi 0000:03:00.0: Microcode SW error detected. Restarting 0x2000000.
Oct 23 10:33:04 normann kernel: [16470.894261] iwlwifi 0000:03:00.0: Start IWL Error Log Dump:
Oct 23 10:33:04 normann kernel: [16470.894267] iwlwifi 0000:03:00.0: Status: 0x00000200, count: 6
Oct 23 10:33:04 normann kernel: [16470.894271] iwlwifi 0000:03:00.0: Loaded firmware version: 31.532993.0
Oct 23 10:33:04 normann kernel: [16470.894275] iwlwifi 0000:03:00.0: 0x00000084 | NMI_INTERRUPT_UNKNOWN
Oct 23 10:33:04 normann kernel: [16470.894279] iwlwifi 0000:03:00.0: 0x002002F2 | trm_hw_status0
Oct 23 10:33:04 normann kernel: [16470.894283] iwlwifi 0000:03:00.0: 0x00000000 | trm_hw_status1
Oct 23 10:33:04 normann kernel: [16470.894286] iwlwifi 0000:03:00.0: 0x0002484C | branchlink2
Oct 23 10:33:04 normann kernel: [16470.894289] iwlwifi 0000:03:00.0: 0x0003936E | interruptlink1
Oct 23 10:33:04 normann kernel: [16470.894293] iwlwifi 0000:03:00.0: 0x00002BB4 | interruptlink2
Oct 23 10:33:04 normann kernel: [16470.894296] iwlwifi 0000:03:00.0: 0x00000000 | data1
Oct 23 10:33:04 normann kernel: [16470.894300] iwlwifi 0000:03:00.0: 0x00000080 | data2
Oct 23 10:33:04 normann kernel: [16470.894303] iwlwifi 0000:03:00.0: 0x07830000 | data3
Oct 23 10:33:04 normann kernel: [16470.894307] iwlwifi 0000:03:00.0: 0x20802E9C | beacon time
Oct 23 10:33:04 normann kernel: [16470.894310] iwlwifi 0000:03:00.0: 0xEC6AC168 | tsf low
Oct 23 10:33:04 normann kernel: [16470.894313] iwlwifi 0000:03:00.0: 0x0000022E | tsf hi
Oct 23 10:33:04 normann kernel: [16470.894317] iwlwifi 0000:03:00.0: 0x00000000 | time gp1
Oct 23 10:33:04 normann kernel: [16470.894320] iwlwifi 0000:03:00.0: 0x012F924B | time gp2
Oct 23 10:33:04 normann kernel: [16470.894324] iwlwifi 0000:03:00.0: 0x00000001 | uCode revision type
Oct 23 10:33:04 normann kernel: [16470.894327] iwlwifi 0000:03:00.0: 0x0000001F | uCode version major
Oct 23 10:33:04 normann kernel: [16470.894330] iwlwifi 0000:03:00.0: 0x00082201 | uCode version minor
Oct 23 10:33:04 normann kernel: [16470.894334] iwlwifi 0000:03:00.0: 0x00000230 | hw version
Oct 23 10:33:04 normann kernel: [16470.894337] iwlwifi 0000:03:00.0: 0x00C89000 | board version
Oct 23 10:33:04 normann kernel: [16470.894340] iwlwifi 0000:03:00.0: 0x0058019C | hcmd
Oct 23 10:33:04 normann kernel: [16470.894344] iwlwifi 0000:03:00.0: 0x22F22000 | isr0
Oct 23 10:33:04 normann kernel: [16470.894347] iwlwifi 0000:03:00.0: 0x00804000 | isr1
Oct 23 10:33:04 normann kernel: [16470.894350] iwlwifi 0000:03:00.0: 0x08001802 | isr2
Oct 23 10:33:04 normann kernel: [16470.894353] iwlwifi 0000:03:00.0: 0x00400080 | isr3
Oct 23 10:33:04 normann kernel: [16470.894357] iwlwifi 0000:03:00.0: 0x00000000 | isr4
Oct 23 10:33:04 normann kernel: [16470.894360] iwlwifi 0000:03:00.0: 0x0058019C | last cmd Id
Oct 23 10:33:04 normann kernel: [16470.894363] iwlwifi 0000:03:00.0: 0x00000000 | wait_event
Oct 23 10:33:04 normann kernel: [16470.89...

Read more...

Revision history for this message
Tim Tierney (timtierney) wrote :

I'm having this issue with a fresh install of 17.10. I completely loose wifi with this dmesg log (attached). Running kernel '4.13.0-16-generic'.

Revision history for this message
penalvch (penalvch) wrote :

Tim Tierney, this report is closed, as it was resolved for the original reporter by an update. If you are having a a WiFi problem, you likely have a different root cause for a similar error message.

Hence, it will help immensely if you use the computer the problem is reproducible with, and file a new report with Ubuntu by using the default repository kernel (not mainline/upstream/3rd party) via a terminal:
ubuntu-bug linux

Please feel free to subscribe me to it.

summary: - iwlwifi: Microcode SW error detected. Restarting 0x2000000
+ [Lenovo ThinkPad 11e] WiFi not working after wake from suspend
Changed in linux (Ubuntu):
importance: Medium → Undecided
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.