New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iwlwifi sometimes needs reload on suspend with kernel 4.9 #3008

Open
dmoerner opened this Issue Aug 10, 2017 · 11 comments

Comments

Projects
None yet
8 participants
@dmoerner

Qubes OS version (e.g., R3.2):

R3.2, with kernel-4.9.35-19.pvops.qubes

Affected TemplateVMs (e.g., fedora-23, if applicable):

fedora-25

After today's upgrade to kernel-4.9 from kernel-4.4, I sometimes lose wireless on suspend. I have an Intel AC 7265 chip. I need to unload and reload the module in sys-net to get wireless back. I see the following in dmesg after suspend:

[ 4434.400132] iwlwifi 0000:00:01.0: Failed to load firmware chunk!
[ 4434.400169] iwlwifi 0000:00:01.0: Could not load the [0] uCode section
[ 4434.400211] iwlwifi 0000:00:01.0: Failed to start INIT ucode: -110
[ 4434.400234] iwlwifi 0000:00:01.0: Failed to run INIT ucode: -110

This does not always seem to occur, but I can't isolate why it fails.

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Aug 10, 2017

Member

I can reproduce it on Qubes 4.0, with 4.9.35 in sys-net.
For now the workaround is to add the driver (iwlmvm in my case) to /rw/config/suspend-module-blacklist

Member

marmarek commented Aug 10, 2017

I can reproduce it on Qubes 4.0, with 4.9.35 in sys-net.
For now the workaround is to add the driver (iwlmvm in my case) to /rw/config/suspend-module-blacklist

@micahflee

This comment has been minimized.

Show comment
Hide comment
@micahflee

micahflee Aug 17, 2017

I think I'm having this same problem. I haven't tried blacklisting iwlmvm yet though. Here's what happens after waking up from suspend:

[user@sys-net ~]$ iwconfig wlp0s1 
wlp0s1    IEEE 802.11  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=22 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:on
          
[user@sys-net ~]$ iwlist wlp0s1 scan
wlp0s1    Failed to read scan data : Network is down

[user@sys-net ~]$ ifconfig wlp0s1
wlp0s1: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 0a:16:47:09:50:23  txqueuelen 1000  (Ethernet)
        RX packets 473208  bytes 520017957 (495.9 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 290478  bytes 55321101 (52.7 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

[user@sys-net ~]$ sudo ifconfig wlp0s1 up
SIOCSIFFLAGS: Connection timed out
[user@sys-net ~]$ sudo service network restart
Restarting network (via systemctl):                        [  OK  ]
[user@sys-net ~]$ sudo ifconfig wlp0s1 up
SIOCSIFFLAGS: Connection timed out

I think I'm having this same problem. I haven't tried blacklisting iwlmvm yet though. Here's what happens after waking up from suspend:

[user@sys-net ~]$ iwconfig wlp0s1 
wlp0s1    IEEE 802.11  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=22 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:on
          
[user@sys-net ~]$ iwlist wlp0s1 scan
wlp0s1    Failed to read scan data : Network is down

[user@sys-net ~]$ ifconfig wlp0s1
wlp0s1: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 0a:16:47:09:50:23  txqueuelen 1000  (Ethernet)
        RX packets 473208  bytes 520017957 (495.9 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 290478  bytes 55321101 (52.7 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

[user@sys-net ~]$ sudo ifconfig wlp0s1 up
SIOCSIFFLAGS: Connection timed out
[user@sys-net ~]$ sudo service network restart
Restarting network (via systemctl):                        [  OK  ]
[user@sys-net ~]$ sudo ifconfig wlp0s1 up
SIOCSIFFLAGS: Connection timed out
@dmoerner

This comment has been minimized.

Show comment
Hide comment
@dmoerner

dmoerner Aug 17, 2017

@blissjoe

This comment has been minimized.

Show comment
Hide comment
@blissjoe

blissjoe Aug 19, 2017

I'm also having the same problem but using a debian-9 template for sys-net.

blissjoe commented Aug 19, 2017

I'm also having the same problem but using a debian-9 template for sys-net.

@andrewdavidwong

This comment has been minimized.

Show comment
Hide comment
@andrewdavidwong

andrewdavidwong Aug 21, 2017

Member

Blacklisting iwlmvm also fixes it for me.

Member

andrewdavidwong commented Aug 21, 2017

Blacklisting iwlmvm also fixes it for me.

@DrWhax

This comment has been minimized.

Show comment
Hide comment
@DrWhax

DrWhax Sep 29, 2017

I still have the same problem even though I blacklisted iwlwifi.

DrWhax commented Sep 29, 2017

I still have the same problem even though I blacklisted iwlwifi.

@blissjoe

This comment has been minimized.

Show comment
Hide comment
@blissjoe

blissjoe Oct 18, 2017

@DrWhax I would double-check this page: https://www.qubes-os.org/doc/wireless-troubleshooting/

My system needed iwldvm blacklisted instead of iwlmvm. It appears to be working well so far.

@DrWhax I would double-check this page: https://www.qubes-os.org/doc/wireless-troubleshooting/

My system needed iwldvm blacklisted instead of iwlmvm. It appears to be working well so far.

@radicaldrew

This comment has been minimized.

Show comment
Hide comment
@radicaldrew

radicaldrew Oct 18, 2017

Thanks adding the driver iwlmvm to /rw/config/suspend-module-blacklist
as marmarek has said worked for me!

Thanks adding the driver iwlmvm to /rw/config/suspend-module-blacklist
as marmarek has said worked for me!

@tasket

This comment has been minimized.

Show comment
Hide comment
@tasket

tasket Nov 6, 2017

@DrWhax Also added iwldvm in addition to iwlwifi and that worked for me, but not consistently.

tasket commented Nov 6, 2017

@DrWhax Also added iwldvm in addition to iwlwifi and that worked for me, but not consistently.

@DrWhax

This comment has been minimized.

Show comment
Hide comment
@DrWhax

DrWhax Nov 6, 2017

@tasket this works for me 1 out of 10 times. It probably is easier if I just buy an Atheros card since it's getting really unworkable.

DrWhax commented Nov 6, 2017

@tasket this works for me 1 out of 10 times. It probably is easier if I just buy an Atheros card since it's getting really unworkable.

@tasket

This comment has been minimized.

Show comment
Hide comment
@tasket

tasket Nov 6, 2017

@DrWhax I had better luck with both modules listed, iwldvm first.

tasket commented Nov 6, 2017

@DrWhax I had better luck with both modules listed, iwldvm first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment