Project

General

Profile

Bug #10239

iwn(7D) disconnects from wifi networks at random times

Added by Olaf Bohlen 9 months ago. Updated 9 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
driver - device drivers
Start date:
2019-01-14
Due date:
% Done:

0%

Estimated time:
Difficulty:
Hard
Tags:
needs-triage

Description

I run OI/hipster (illumos-2918c4a32d) on my ThinkPad X230 with a iwn compatible wifi card.
After random times of a wifi connection, I see following in dmesg:

Jan 14 22:35:45 x230 iwn: [ID 361227 kern.warning] WARNING: iwn0: iwn_notif_intr(): 51 consecutive beacons missed, disconnecting
Jan 14 22:35:45 x230 mac: [ID 486395 kern.info] NOTICE: iwn0 link down
Jan 14 22:35:45 x230 in.routed[928]: [ID 238047 daemon.warning] interface iwn0 to 10.99.5.75 turned off
Jan 14 22:35:46 x230 iwn: [ID 266864 kern.warning] WARNING: iwn0: fatal firmware error
Jan 14 22:35:46 x230 iwn: [ID 229132 kern.warning] WARNING: iwn0: firmware error log:
Jan 14 22:35:46 x230 iwn: [ID 578370 kern.info] iwn0:   error type      = "UNKNOWN" (0x000014E1)
Jan 14 22:35:46 x230 iwn: [ID 457687 kern.info] iwn0:   program counter = 0x00017144
Jan 14 22:35:46 x230 iwn: [ID 851859 kern.info] iwn0:   source line     = 0x000000A2
Jan 14 22:35:46 x230 iwn: [ID 325976 kern.info] iwn0:   error data      = 0x00000000000000FF
Jan 14 22:35:46 x230 iwn: [ID 323459 kern.info] iwn0:   branch link     = 0x000173EE000173EE
Jan 14 22:35:46 x230 iwn: [ID 680622 kern.info] iwn0:   interrupt link  = 0x0000D6BE00000000
Jan 14 22:35:46 x230 iwn: [ID 836153 kern.info] iwn0:   time            = 1738539843
Jan 14 22:35:46 x230 iwn: [ID 819442 kern.warning] WARNING: iwn0: driver status:
Jan 14 22:35:46 x230 iwn: [ID 301892 kern.warning] WARNING: iwn0:   tx ring  0: qid= 0 cur=  1 queued=  0
Jan 14 22:35:46 x230 iwn: [ID 301892 kern.warning] WARNING: iwn0:   tx ring  1: qid= 1 cur=  0 queued=  0
Jan 14 22:35:46 x230 iwn: [ID 301892 kern.warning] WARNING: iwn0:   tx ring  2: qid= 2 cur=167 queued=  1
Jan 14 22:35:46 x230 iwn: [ID 301892 kern.warning] WARNING: iwn0:   tx ring  3: qid= 3 cur=  0 queued=  0
Jan 14 22:35:46 x230 iwn: [ID 301892 kern.warning] WARNING: iwn0:   tx ring  4: qid= 4 cur= 62 queued=  0
Jan 14 22:35:46 x230 iwn: [ID 301892 kern.warning] WARNING: iwn0:   tx ring  5: qid= 5 cur=  0 queued=  0
Jan 14 22:35:46 x230 iwn: [ID 301892 kern.warning] WARNING: iwn0:   tx ring  6: qid= 6 cur=  0 queued=  0
Jan 14 22:35:46 x230 iwn: [ID 301892 kern.warning] WARNING: iwn0:   tx ring  7: qid= 7 cur=  0 queued=  0
Jan 14 22:35:46 x230 iwn: [ID 301892 kern.warning] WARNING: iwn0:   tx ring  8: qid= 8 cur=  0 queued=  0
Jan 14 22:35:46 x230 iwn: [ID 301892 kern.warning] WARNING: iwn0:   tx ring  9: qid= 9 cur=  0 queued=  0
Jan 14 22:35:46 x230 iwn: [ID 301892 kern.warning] WARNING: iwn0:   tx ring 10: qid=10 cur=  0 queued=  0
Jan 14 22:35:46 x230 iwn: [ID 301892 kern.warning] WARNING: iwn0:   tx ring 11: qid=11 cur=  0 queued=  0
Jan 14 22:35:46 x230 iwn: [ID 301892 kern.warning] WARNING: iwn0:   tx ring 12: qid=12 cur=  0 queued=  0
Jan 14 22:35:46 x230 iwn: [ID 301892 kern.warning] WARNING: iwn0:   tx ring 13: qid=13 cur=  0 queued=  0
Jan 14 22:35:46 x230 iwn: [ID 301892 kern.warning] WARNING: iwn0:   tx ring 14: qid=14 cur=  0 queued=  0
Jan 14 22:35:46 x230 iwn: [ID 301892 kern.warning] WARNING: iwn0:   tx ring 15: qid=15 cur=  0 queued=  0
Jan 14 22:35:46 x230 iwn: [ID 301892 kern.warning] WARNING: iwn0:   tx ring 16: qid=16 cur=  0 queued=  0
Jan 14 22:35:46 x230 iwn: [ID 301892 kern.warning] WARNING: iwn0:   tx ring 17: qid=17 cur=  0 queued=  0
Jan 14 22:35:46 x230 iwn: [ID 301892 kern.warning] WARNING: iwn0:   tx ring 18: qid=18 cur=  0 queued=  0
Jan 14 22:35:46 x230 iwn: [ID 301892 kern.warning] WARNING: iwn0:   tx ring 19: qid=19 cur=  0 queued=  0
Jan 14 22:35:46 x230 iwn: [ID 432971 kern.warning] WARNING: iwn0:   rx ring: cur=24
Jan 14 22:35:46 x230 iwn: [ID 189726 kern.warning] WARNING: iwn0:   802.11 state
 2
Jan 14 22:35:46 x230 iwn: [ID 930177 kern.warning] WARNING: iwn0: trying to rest
ore previous state

and

Jan 14 22:36:22 x230 iwn: [ID 266864 kern.warning] WARNING: iwn0: fatal firmware
 error
Jan 14 22:36:22 x230 iwn: [ID 229132 kern.warning] WARNING: iwn0: firmware error
 log:
Jan 14 22:36:22 x230 iwn: [ID 578370 kern.info] iwn0:   error type      = "UNKNOWN" (0x000014E1)
Jan 14 22:36:22 x230 iwn: [ID 457687 kern.info] iwn0:   program counter = 0x00017144
Jan 14 22:36:22 x230 iwn: [ID 851859 kern.info] iwn0:   source line     = 0x000000A2
Jan 14 22:36:22 x230 iwn: [ID 325976 kern.info] iwn0:   error data      = 0x00000000000000FF
Jan 14 22:36:22 x230 iwn: [ID 323459 kern.info] iwn0:   branch link     = 0x000173EE000173EE
Jan 14 22:36:22 x230 iwn: [ID 680622 kern.info] iwn0:   interrupt link  = 0x0000D6BE00000000
Jan 14 22:36:22 x230 iwn: [ID 836153 kern.info] iwn0:   time            = 1774059497
Jan 14 22:36:22 x230 iwn: [ID 819442 kern.warning] WARNING: iwn0: driver status:
Jan 14 22:36:22 x230 iwn: [ID 301892 kern.warning] WARNING: iwn0:   tx ring  0: 
qid= 0 cur=  1 queued=  0
Jan 14 22:36:22 x230 iwn: [ID 301892 kern.warning] WARNING: iwn0:   tx ring  1: 
qid= 1 cur=  0 queued=  0
Jan 14 22:36:22 x230 iwn: [ID 301892 kern.warning] WARNING: iwn0:   tx ring  2: 
qid= 2 cur=  6 queued=  1
Jan 14 22:36:22 x230 iwn: [ID 301892 kern.warning] WARNING: iwn0:   tx ring  3: 
qid= 3 cur=  0 queued=  0
Jan 14 22:36:22 x230 iwn: [ID 301892 kern.warning] WARNING: iwn0:   tx ring  4: 
qid= 4 cur= 87 queued=  0
Jan 14 22:36:22 x230 iwn: [ID 301892 kern.warning] WARNING: iwn0:   tx ring  5: 
qid= 5 cur=  0 queued=  0
Jan 14 22:36:22 x230 iwn: [ID 301892 kern.warning] WARNING: iwn0:   tx ring  6: 
qid= 6 cur=  0 queued=  0
Jan 14 22:36:22 x230 iwn: [ID 301892 kern.warning] WARNING: iwn0:   tx ring  7: 
qid= 7 cur=  0 queued=  0
Jan 14 22:36:22 x230 iwn: [ID 301892 kern.warning] WARNING: iwn0:   tx ring  8: 
qid= 8 cur=  0 queued=  0
Jan 14 22:36:22 x230 iwn: [ID 301892 kern.warning] WARNING: iwn0:   tx ring  9: 
qid= 9 cur=  0 queued=  0
Jan 14 22:36:22 x230 iwn: [ID 301892 kern.warning] WARNING: iwn0:   tx ring 10: qid=10 cur=  0 queued=  0
Jan 14 22:36:22 x230 iwn: [ID 301892 kern.warning] WARNING: iwn0:   tx ring 11: qid=11 cur=  0 queued=  0
Jan 14 22:36:22 x230 iwn: [ID 301892 kern.warning] WARNING: iwn0:   tx ring 12: qid=12 cur=  0 queued=  0
Jan 14 22:36:22 x230 iwn: [ID 301892 kern.warning] WARNING: iwn0:   tx ring 13: qid=13 cur=  0 queued=  0
Jan 14 22:36:22 x230 iwn: [ID 301892 kern.warning] WARNING: iwn0:   tx ring 14: qid=14 cur=  0 queued=  0
Jan 14 22:36:22 x230 iwn: [ID 301892 kern.warning] WARNING: iwn0:   tx ring 15: qid=15 cur=  0 queued=  0
Jan 14 22:36:22 x230 iwn: [ID 301892 kern.warning] WARNING: iwn0:   tx ring 16: qid=16 cur=  0 queued=  0
Jan 14 22:36:22 x230 iwn: [ID 301892 kern.warning] WARNING: iwn0:   tx ring 17: qid=17 cur=  0 queued=  0
Jan 14 22:36:22 x230 iwn: [ID 301892 kern.warning] WARNING: iwn0:   tx ring 18: qid=18 cur=  0 queued=  0
Jan 14 22:36:22 x230 iwn: [ID 301892 kern.warning] WARNING: iwn0:   tx ring 19: qid=19 cur=  0 queued=  0
Jan 14 22:36:22 x230 iwn: [ID 432971 kern.warning] WARNING: iwn0:   rx ring: cur=11
Jan 14 22:36:22 x230 iwn: [ID 189726 kern.warning] WARNING: iwn0:   802.11 state 2
Jan 14 22:36:22 x230 iwn: [ID 930177 kern.warning] WARNING: iwn0: trying to restore previous state
Jan 14 22:36:27 x230 iwn: [ID 641862 kern.warning] WARNING: iwn0: could not load firmware .text section
Jan 14 22:36:27 x230 iwn: [ID 911786 kern.warning] WARNING: iwn0: could not load firmware
Jan 14 22:36:27 x230 iwn: [ID 826901 kern.warning] WARNING: iwn0: could not initialize hardware

scanpci reports the card as:

pci bus 0x0003 cardnum 0x00 function 0x00: vendor 0x8086 device 0x0085
 Intel Corporation Centrino Advanced-N 6205 [Taylor Peak]
 CardVendor 0x8086 card 0x1311 (Intel Corporation, Centrino Advanced-N 6205 (802.11a/b/g/n))
  STATUS    0x0010  COMMAND 0x0046
  CLASS     0x02 0x80 0x00  REVISION 0x34
  BIST      0x00  HEADER 0x00  LATENCY 0x00  CACHE 0x10
  BASE0     0x00000000f1c00000 SIZE 8192  MEM64
  MAX_LAT   0x00  MIN_GNT 0x00  INT_PIN 0x01  INT_LINE 0x07

The timings vary and it happens on a lot of different wifi networks.
Maybe it is also a firmware bug, I have hitted?

History

#1

Updated by Olaf Bohlen 9 months ago

00:33 < Woodstock> Agnar: i've seen those two, some days i get several in a row 
                   and then not at all for weeks. for all i know it's caused by 
                   the driver doing something wrong that the firmware is 
                   incapable of handling properly.
00:33 < Woodstock> Agnar: but i have no idea what that would be or how to fix 
                   it, sorry
00:34 < Woodstock> Agnar: when it's locking up hard it can usually be revived 
                   by unloading the iwn module. there's probably some issue 
                   with timing on the reinitialization, perhaps i need to add a 
                   delay there

Also available in: Atom PDF