From mexas@bristol.ac.uk  Wed Feb 13 11:36:07 2013
Return-Path: <mexas@bristol.ac.uk>
Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115])
	by hub.freebsd.org (Postfix) with ESMTP id 8D26E7D8
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 13 Feb 2013 11:36:07 +0000 (UTC)
	(envelope-from mexas@bristol.ac.uk)
Received: from dirj.bris.ac.uk (dirj.bris.ac.uk [137.222.10.78])
	by mx1.freebsd.org (Postfix) with ESMTP id 3EDEFBF4
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 13 Feb 2013 11:36:06 +0000 (UTC)
Received: from irix.bris.ac.uk ([137.222.10.39] helo=ncs.bris.ac.uk)
	by dirj.bris.ac.uk with esmtp (Exim 4.72)
	(envelope-from <mexas@bristol.ac.uk>)
	id 1U5aci-0006sq-PO
	for FreeBSD-gnats-submit@freebsd.org; Wed, 13 Feb 2013 11:36:00 +0000
Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241])
	by ncs.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256)
	(Exim 4.72)
	(envelope-from <mexas@bris.ac.uk>)
	id 1U5aci-0002PP-LK
	for FreeBSD-gnats-submit@freebsd.org; Wed, 13 Feb 2013 11:35:36 +0000
Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1])
	by mech-cluster241.men.bris.ac.uk (8.14.6/8.14.6) with ESMTP id r1DBZaVi095200
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 13 Feb 2013 11:35:36 GMT
	(envelope-from mexas@mech-cluster241.men.bris.ac.uk)
Received: (from mexas@localhost)
	by mech-cluster241.men.bris.ac.uk (8.14.6/8.14.6/Submit) id r1DBZa2h095199;
	Wed, 13 Feb 2013 11:35:36 GMT
	(envelope-from mexas)
Message-Id: <201302131135.r1DBZa2h095199@mech-cluster241.men.bris.ac.uk>
Date: Wed, 13 Feb 2013 11:35:36 GMT
From: Anton Shterenlikht <mexas@bristol.ac.uk>
Reply-To: Anton Shterenlikht <mexas@bristol.ac.uk>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: iwn0: iwn_intr: fatal firmware error
X-Send-Pr-Version: 3.114
X-GNATS-Notify:

>Number:         176104
>Category:       kern
>Synopsis:       [iwn] iwn0: iwn_intr: fatal firmware error
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-wireless
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 13 11:40:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Wed May 14 14:00:01 UTC 2014
>Originator:     Anton Shterenlikht
>Release:        FreeBSD 10.0-CURRENT ia64
>Organization:
University of Bristol
>Environment:
FreeBSD zzz 10.0-CURRENT FreeBSD 10.0-CURRENT #4 r246552: Sun Feb 10 00:37:33 GM
T 2013     root@zzz:/usr/obj/usr/src/sys/T61p  amd64

	
>Description:
At some, seemingly random points, the iwn driver
will stop working with this message:

iwn0: iwn_intr: fatal firmware error
firmware error log:
  error type      = "NMI_INTERRUPT_WDG" (0x00000004)
  program counter = 0x0000046C
  source line     = 0x000000D0
  error data      = 0x0000000207030000
  branch link     = 0x00008370000004C2
  interrupt link  = 0x000006DA000018B8
  time            = 200035
driver status:
  tx ring  0: qid=0  cur=0   queued=0
  tx ring  1: qid=1  cur=0   queued=0
  tx ring  2: qid=2  cur=0   queued=0
  tx ring  3: qid=3  cur=2   queued=1
  tx ring  4: qid=4  cur=67  queued=0
  tx ring  5: qid=5  cur=0   queued=0
  tx ring  6: qid=6  cur=0   queued=0
  tx ring  7: qid=7  cur=0   queued=0
  tx ring  8: qid=8  cur=0   queued=0
  tx ring  9: qid=9  cur=0   queued=0
  tx ring 10: qid=10 cur=0   queued=0
  tx ring 11: qid=11 cur=0   queued=0
  tx ring 12: qid=12 cur=0   queued=0
  tx ring 13: qid=13 cur=0   queued=0
  tx ring 14: qid=14 cur=0   queued=0
  tx ring 15: qid=15 cur=0   queued=0
  rx ring: cur=13

After that a restart of the network is
required, i.e. /etc/rc.d/netif restart

It seems sometimes flipping the radio
switch a few times will lead to the same
problem.

Sometimes restarting network doesn't help,
and in some cases I have to restart it
3-4-5 times before the iwn works again:

wlan0: link state changed to DOWN
wlan0: link state changed to UP
wlan0: link state changed to DOWN
wlan0: link state changed to UP
iwn0: iwn_intr: fatal firmware error
firmware error log:
  error type      = "NMI_INTERRUPT_WDG" (0x00000004)
  program counter = 0x0000046C
  source line     = 0x000000D0
  error data      = 0x0000000207430000
  branch link     = 0x00008370000004C2
  interrupt link  = 0x000006DA000018B8
  time            = 2357321991
driver status:
  tx ring  0: qid=0  cur=19  queued=0
  tx ring  1: qid=1  cur=0   queued=0
  tx ring  2: qid=2  cur=0   queued=0
  tx ring  3: qid=3  cur=79  queued=0
  tx ring  4: qid=4  cur=220 queued=0
  tx ring  5: qid=5  cur=0   queued=0
  tx ring  6: qid=6  cur=0   queued=0
  tx ring  7: qid=7  cur=0   queued=0
  tx ring  8: qid=8  cur=0   queued=0
  tx ring  9: qid=9  cur=0   queued=0
  tx ring 10: qid=10 cur=0   queued=0
  tx ring 11: qid=11 cur=0   queued=0
  tx ring 12: qid=12 cur=0   queued=0
  tx ring 13: qid=13 cur=0   queued=0
  tx ring 14: qid=14 cur=0   queued=0
  tx ring 15: qid=15 cur=0   queued=0
  rx ring: cur=12
in6_purgeaddr: err=65, destination address delete failed
wlan0: link state changed to DOWN
wlan0: Ethernet address: 00:21:5c:50:68:c3
iwn0: iwn_intr: fatal firmware error
firmware error log:
  error type      = "NMI_INTERRUPT_WDG" (0x00000004)
  program counter = 0x0000046C
  source line     = 0x000000D0
  error data      = 0x0000000202030000
  branch link     = 0x00005CEE000004C2
  interrupt link  = 0x000006DE00007386
  time            = 10259240
driver status:
  tx ring  0: qid=0  cur=0   queued=0
  tx ring  1: qid=1  cur=0   queued=0
  tx ring  2: qid=2  cur=0   queued=0
  tx ring  3: qid=3  cur=1   queued=0
  tx ring  4: qid=4  cur=41  queued=0
  tx ring  5: qid=5  cur=0   queued=0
  tx ring  6: qid=6  cur=0   queued=0
  tx ring  7: qid=7  cur=0   queued=0
  tx ring  8: qid=8  cur=0   queued=0
  tx ring  9: qid=9  cur=0   queued=0
  tx ring 10: qid=10 cur=0   queued=0
  tx ring 11: qid=11 cur=0   queued=0
  tx ring 12: qid=12 cur=0   queued=0
  tx ring 13: qid=13 cur=0   queued=0
  tx ring 14: qid=14 cur=0   queued=0
  tx ring 15: qid=15 cur=0   queued=0
  rx ring: cur=38
in6_purgeaddr: err=65, destination address delete failed
wlan0: Ethernet address: 00:21:5c:50:68:c3
iwn0: iwn_intr: fatal firmware error
firmware error log:
  error type      = "NMI_INTERRUPT_WDG" (0x00000004)
  program counter = 0x0000046C
  source line     = 0x000000D0
  error data      = 0x0000000207030000
  branch link     = 0x00008370000004C2
  interrupt link  = 0x000006DA000018B8
  time            = 200035
driver status:
  tx ring  0: qid=0  cur=0   queued=0
  tx ring  1: qid=1  cur=0   queued=0
  tx ring  2: qid=2  cur=0   queued=0
  tx ring  3: qid=3  cur=2   queued=1
  tx ring  4: qid=4  cur=67  queued=0
  tx ring  5: qid=5  cur=0   queued=0
  tx ring  6: qid=6  cur=0   queued=0
  tx ring  7: qid=7  cur=0   queued=0
  tx ring  8: qid=8  cur=0   queued=0
  tx ring  9: qid=9  cur=0   queued=0
  tx ring 10: qid=10 cur=0   queued=0
  tx ring 11: qid=11 cur=0   queued=0
  tx ring 12: qid=12 cur=0   queued=0
  tx ring 13: qid=13 cur=0   queued=0
  tx ring 14: qid=14 cur=0   queued=0
  tx ring 15: qid=15 cur=0   queued=0
  rx ring: cur=0
in6_purgeaddr: err=65, destination address delete failed
wlan0: Ethernet address: 00:21:5c:50:68:c3
wlan0: link state changed to UP
wlan0: link state changed to DOWN
iwn0: iwn_intr: fatal firmware error
firmware error log:
  error type      = "NMI_INTERRUPT_WDG" (0x00000004)
  program counter = 0x0000046C
  source line     = 0x000000D0
  error data      = 0x0000000207430000
  branch link     = 0x00008370000004C2
  interrupt link  = 0x000006DE000018B8
  time            = 11958181
driver status:
  tx ring  0: qid=0  cur=229 queued=0
  tx ring  1: qid=1  cur=0   queued=0
  tx ring  2: qid=2  cur=0   queued=0
  tx ring  3: qid=3  cur=17  queued=1
  tx ring  4: qid=4  cur=109 queued=0
  tx ring  5: qid=5  cur=0   queued=0
  tx ring  6: qid=6  cur=0   queued=0
  tx ring  7: qid=7  cur=0   queued=0
  tx ring  8: qid=8  cur=0   queued=0
  tx ring  9: qid=9  cur=0   queued=0
  tx ring 10: qid=10 cur=0   queued=0
  tx ring 11: qid=11 cur=0   queued=0
  tx ring 12: qid=12 cur=0   queued=0
  tx ring 13: qid=13 cur=0   queued=0
  tx ring 14: qid=14 cur=0   queued=0
  tx ring 15: qid=15 cur=0   queued=0
  rx ring: cur=15
in6_purgeaddr: err=65, destination address delete failed
wlan0: Ethernet address: 00:21:5c:50:68:c3
wlan0: link state changed to UP
iwn0: iwn_intr: fatal firmware error
firmware error log:
  error type      = "NMI_INTERRUPT_WDG" (0x00000004)
  program counter = 0x0000046C
  source line     = 0x000000D0
  error data      = 0x0000000207030000
  branch link     = 0x00008370000004C2
  interrupt link  = 0x000006DE000018B8
  time            = 1412239977
driver status:
  tx ring  0: qid=0  cur=41  queued=0
  tx ring  1: qid=1  cur=0   queued=0
  tx ring  2: qid=2  cur=0   queued=0
  tx ring  3: qid=3  cur=15  queued=0
  tx ring  4: qid=4  cur=81  queued=0
  tx ring  5: qid=5  cur=0   queued=0
  tx ring  6: qid=6  cur=0   queued=0
  tx ring  7: qid=7  cur=0   queued=0
  tx ring  8: qid=8  cur=0   queued=0
  tx ring  9: qid=9  cur=0   queued=0
  tx ring 10: qid=10 cur=0   queued=0
  tx ring 11: qid=11 cur=0   queued=0
  tx ring 12: qid=12 cur=0   queued=0
  tx ring 13: qid=13 cur=0   queued=0
  tx ring 14: qid=14 cur=0   queued=0
  tx ring 15: qid=15 cur=0   queued=0
  rx ring: cur=53
in6_purgeaddr: err=65, destination address delete failed
wlan0: link state changed to DOWN
wlan0: Ethernet address: 00:21:5c:50:68:c3
wlan0: link state changed to UP


	
>How-To-Repeat:

Build a kernel with
device          iwn             # Intel 4965/1000/5000/6000 wireless NICs.
device iwn4965fw

Initialise the wlan device:

iwn0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
        ether 00:21:5c:50:68:c3
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11g
        status: associated
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 00:21:5c:50:68:c3
        inet 172.21.222.82 netmask 0xfffffc00 broadcast 255.255.255.255
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: IEEE 802.11 Wireless Ethernet OFDM/36Mbps mode 11g
        status: associated
        ssid eduroam channel 1 (2412 MHz 11g) bssid 00:3a:98:62:cd:a0
        country US authmode WPA2/802.11i privacy ON deftxkey UNDEF
        AES-CCM 3:128-bit txpower 14 bmiss 10 scanvalid 450 bgscan
        bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS
        wme roaming MANUAL

Then use the wireless and see.
Maybe it crumbles more under load.
Try flipping the radio switch on and off
few times.


	
>Fix:

This has been discussed briefly in this
thread:
http://lists.freebsd.org/pipermail/freebsd-mobile/2013-February/012748.html

It seems 9.1-release is also affected.

	


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-wireless 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Wed Feb 13 16:01:42 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=176104 

From: Anton Shterenlikht <mexas@bris.ac.uk>
To: bug-followup@freebsd.org
Cc:  
Subject: RE: kern/176104: [iwn] iwn0: iwn_intr: fatal firmware error
Date: Mon, 24 Jun 2013 09:07:42 +0100 (BST)

 This problem still persists in r252033:
 
 iwn0: iwn_intr: fatal firmware error
 firmware error log:
   error type      = "NMI_INTERRUPT_WDG" (0x00000004)
   program counter = 0x0000046C
   source line     = 0x000000D0
   error data      = 0x0000000207030000
   branch link     = 0x00008370000004C2
   interrupt link  = 0x000006DA000018B8
   time            = 200035
 driver status:
   tx ring  0: qid=0  cur=0   queued=0  
   tx ring  1: qid=1  cur=0   queued=0  
   tx ring  2: qid=2  cur=0   queued=0  
   tx ring  3: qid=3  cur=2   queued=1  
   tx ring  4: qid=4  cur=67  queued=0  
   tx ring  5: qid=5  cur=0   queued=0  
   tx ring  6: qid=6  cur=0   queued=0  
   tx ring  7: qid=7  cur=0   queued=0  
   tx ring  8: qid=8  cur=0   queued=0  
   tx ring  9: qid=9  cur=0   queued=0  
   tx ring 10: qid=10 cur=0   queued=0  
   tx ring 11: qid=11 cur=0   queued=0  
   tx ring 12: qid=12 cur=0   queued=0  
   tx ring 13: qid=13 cur=0   queued=0  
   tx ring 14: qid=14 cur=0   queued=0  
   tx ring 15: qid=15 cur=0   queued=0  
   rx ring: cur=5
 NVRM: GPU at 0000:01:00: GPU-a1a1491c-c546-eda9-3b1f-54ec998e9441
 ifa_del_loopback_route: deletion failed: 48
 wlan0: Ethernet address: 00:21:5c:50:68:c3
 wlan0: link state changed to UP
 wlan0: link state changed to DOWN
 iwn0: device timeout
 
 
 iwn0: iwn_intr: fatal firmware error
 firmware error log:
   error type      = "NMI_INTERRUPT_WDG" (0x00000004)
   program counter = 0x0000046C
   source line     = 0x000000D0
   error data      = 0x0000000207030000
   branch link     = 0x00008370000004C2
   interrupt link  = 0x000006DA000018B8
   time            = 200035
 driver status:
   tx ring  0: qid=0  cur=0   queued=0  
   tx ring  1: qid=1  cur=0   queued=0  
   tx ring  2: qid=2  cur=0   queued=0  
   tx ring  3: qid=3  cur=2   queued=1  
   tx ring  4: qid=4  cur=67  queued=0  
   tx ring  5: qid=5  cur=0   queued=0  
   tx ring  6: qid=6  cur=0   queued=0  
   tx ring  7: qid=7  cur=0   queued=0  
   tx ring  8: qid=8  cur=0   queued=0  
   tx ring  9: qid=9  cur=0   queued=0  
   tx ring 10: qid=10 cur=0   queued=0  
   tx ring 11: qid=11 cur=0   queued=0  
   tx ring 12: qid=12 cur=0   queued=0  
   tx ring 13: qid=13 cur=0   queued=0  
   tx ring 14: qid=14 cur=0   queued=0  
   tx ring 15: qid=15 cur=0   queued=0  
   rx ring: cur=22
 ifa_del_loopback_route: deletion failed: 48
 wlan0: Ethernet address: 00:21:5c:50:68:c3
 
 
 iwn0: iwn_intr: fatal firmware error
 firmware error log:
   error type      = "NMI_INTERRUPT_WDG" (0x00000004)
   program counter = 0x0000046C
   source line     = 0x000000D0
   error data      = 0x0000000202030000
   branch link     = 0x00005CEE000004C2
   interrupt link  = 0x000006DE00007386
   time            = 220366
 driver status:
   tx ring  0: qid=0  cur=0   queued=0  
   tx ring  1: qid=1  cur=0   queued=0  
   tx ring  2: qid=2  cur=0   queued=0  
   tx ring  3: qid=3  cur=4   queued=0  
   tx ring  4: qid=4  cur=97  queued=0  
   tx ring  5: qid=5  cur=0   queued=0  
   tx ring  6: qid=6  cur=0   queued=0  
   tx ring  7: qid=7  cur=0   queued=0  
   tx ring  8: qid=8  cur=0   queued=0  
   tx ring  9: qid=9  cur=0   queued=0  
   tx ring 10: qid=10 cur=0   queued=0  
   tx ring 11: qid=11 cur=0   queued=0  
   tx ring 12: qid=12 cur=0   queued=0  
   tx ring 13: qid=13 cur=0   queued=0  
   tx ring 14: qid=14 cur=0   queued=0  
   tx ring 15: qid=15 cur=0   queued=0  
   rx ring: cur=42
 ifa_del_loopback_route: deletion failed: 48
 wlan0: Ethernet address: 00:21:5c:50:68:c3
 
 etc.
 

From: hiren panchasara <hiren@FreeBSD.org>
To: bug-followup@FreeBSD.org, mexas@bristol.ac.uk
Cc:  
Subject: Re: kern/176104: [iwn] iwn0: iwn_intr: fatal firmware error
Date: Mon, 24 Jun 2013 11:09:18 -0700

 Assuming you have 4965 chipset, this seems to be some weird firmware
 error. I see many users (including linux) reporting similar issues but
 could not find any definitive solution.
 
 At most you can try getting the latest firmware for your chipset and try it out.
 Probably from http://wireless.kernel.org/en/users/Drivers/iwlegacy
 
 Good luck,
 Hiren

From: Anton Shterenlikht <mexas@bris.ac.uk>
To: bug-followup@FreeBSD.org, hiren@FreeBSD.org, mexas@bristol.ac.uk
Cc:  
Subject: Re: kern/176104: [iwn] iwn0: iwn_intr: fatal firmware error
Date: Tue, 25 Jun 2013 12:48:16 +0100 (BST)

 	From hiren.panchasara@gmail.com Mon Jun 24 19:31:55 2013
 
 	Assuming you have 4965 chipset,
 
 yes, I do:
 
 iwn0@pci0:3:0:0:        class=0x028000 card=0x11108086 chip=0x42308086 rev=0x61 hdr=0x00
     vendor     = 'Intel Corporation'
     device     = 'PRO/Wireless 4965 AG or AGN [Kedron] Network Connection'
     class      = network
 
 iwn0: <Intel Wireless WiFi Link 4965> mem 0xdf2fe000-0xdf2fffff irq 17 at device 0.0 on pci3
 
 and I have:
 
 device          iwn             # Intel 4965/1000/5000/6000 wireless NICs.
 device iwn4965fw
 
 in the kernel config.
 
 	this seems to be some weird firmware
 	error. I see many users (including linux) reporting similar issues but
 	could not find any definitive solution.
 
 	At most you can try getting the latest firmware for your chipset and try it out.
 	Probably from http://wireless.kernel.org/en/users/Drivers/iwlegacy
 
 # cat /usr/src/sys/modules/iwnfw/iwn4965/Makefile 
 # $FreeBSD: head/sys/modules/iwnfw/iwn4965/Makefile 201209 2009-12-29 19:47:34Z rpaulo $
 
 KMOD=   iwn4965fw
 IMG=    iwlwifi-4965-228.61.2.24
 
 .include <bsd.kmod.mk>
 #
 
 According to your link, this is the latest version.
 However, there is a question mark (?) against it.
 I don't know what it means, perhaps that they are
 not sure if it works correctly.
 I wonder if an earlier  version should be used instead?
 
 Thanks
 
 Anton
 
 

From: hiren panchasara <hiren@FreeBSD.org>
To: mexas <mexas@bristol.ac.uk>
Cc: bug-followup@freebsd.org
Subject: Re: kern/176104: [iwn] iwn0: iwn_intr: fatal firmware error
Date: Tue, 25 Jun 2013 08:52:43 -0700

 On Tue, Jun 25, 2013 at 4:48 AM, Anton Shterenlikht <mexas@bris.ac.uk> wrote:
 >         From hiren.panchasara@gmail.com Mon Jun 24 19:31:55 2013
 >
 >         Assuming you have 4965 chipset,
 >
 > yes, I do:
 >
 > iwn0@pci0:3:0:0:        class=0x028000 card=0x11108086 chip=0x42308086 rev=0x61 hdr=0x00
 >     vendor     = 'Intel Corporation'
 >     device     = 'PRO/Wireless 4965 AG or AGN [Kedron] Network Connection'
 >     class      = network
 >
 > iwn0: <Intel Wireless WiFi Link 4965> mem 0xdf2fe000-0xdf2fffff irq 17 at device 0.0 on pci3
 >
 > and I have:
 >
 > device          iwn             # Intel 4965/1000/5000/6000 wireless NICs.
 > device iwn4965fw
 >
 > in the kernel config.
 >
 >         this seems to be some weird firmware
 >         error. I see many users (including linux) reporting similar issues but
 >         could not find any definitive solution.
 >
 >         At most you can try getting the latest firmware for your chipset and try it out.
 >         Probably from http://wireless.kernel.org/en/users/Drivers/iwlegacy
 >
 > # cat /usr/src/sys/modules/iwnfw/iwn4965/Makefile
 > # $FreeBSD: head/sys/modules/iwnfw/iwn4965/Makefile 201209 2009-12-29 19:47:34Z rpaulo $
 >
 > KMOD=   iwn4965fw
 > IMG=    iwlwifi-4965-228.61.2.24
 >
 > .include <bsd.kmod.mk>
 > #
 >
 > According to your link, this is the latest version.
 > However, there is a question mark (?) against it.
 > I don't know what it means, perhaps that they are
 > not sure if it works correctly.
 > I wonder if an earlier  version should be used instead?
 
 Yeah, no harm in trying. :-)
 
 cheers,
 Hiren
 >
 > Thanks
 >
 > Anton
 >
 >

From: Anton Shterenlikht <mexas@bris.ac.uk>
To: bug-followup@freebsd.org
Cc:  
Subject: RE: kern/176104: [iwn] iwn0: iwn_intr: fatal firmware error
Date: Tue, 25 Jun 2013 14:28:51 +0100 (BST)

 One thing I noticed is that this problem occurs
 more often when running on battery, and less
 frequently when running from mains. Could this
 be related to some energy saving code?

From: Michael Gmelin <freebsd@grem.de>
To: bug-followup@FreeBSD.org, mexas@bristol.ac.uk
Cc:  
Subject: Re: kern/176104: [iwn] iwn0: iwn_intr: fatal firmware error
Date: Thu, 26 Dec 2013 17:56:39 +0000

 Did you ever find a solution to this? I'm experiencing the same issue
 and it's happening way too often to ignore it.

From: Anton Shterenlikht <mexas@bris.ac.uk>
To: bug-followup@freebsd.org
Cc:  
Subject: kern/176104: [iwn] iwn0: iwn_intr: fatal firmware error
Date: Thu, 17 Apr 2014 11:33:24 +0100 (BST)

 Still the same in r264294 amd64:
 
 iwn0: <Intel Wireless WiFi Link 4965> mem 0xdf2fe000-0xdf2fffff irq 17 at device 0.0 on pci3
 
 iwn0: device timeout
 wlan0: link state changed to UP
 wlan0: link state changed to DOWN
 iwn0: iwn_intr: fatal firmware error
 firmware error log:
   error type      = "NMI_INTERRUPT_WDG" (0x00000004)
   program counter = 0x0000046C
   source line     = 0x000000D0
   error data      = 0x0000000203430000
   branch link     = 0x00007A10000004C2
   interrupt link  = 0x000006DE00007A4C
   time            = 201920
 driver status:
   tx ring  0: qid=0  cur=20  queued=0  
   tx ring  1: qid=1  cur=0   queued=0  
   tx ring  2: qid=2  cur=0   queued=0  
   tx ring  3: qid=3  cur=23  queued=0  
   tx ring  4: qid=4  cur=111 queued=0  
   tx ring  5: qid=5  cur=0   queued=0  
   tx ring  6: qid=6  cur=0   queued=0  
   tx ring  7: qid=7  cur=0   queued=0  
   tx ring  8: qid=8  cur=0   queued=0  
   tx ring  9: qid=9  cur=0   queued=0  
   tx ring 10: qid=10 cur=0   queued=0  
   tx ring 11: qid=11 cur=0   queued=0  
   tx ring 12: qid=12 cur=0   queued=0  
   tx ring 13: qid=13 cur=0   queued=0  
   tx ring 14: qid=14 cur=0   queued=0  
   tx ring 15: qid=15 cur=0   queued=0  
   rx ring: cur=29
 wlan0: Ethernet address: 00:21:5c:50:68:c3
 iwn0: iwn_intr: fatal firmware error
 firmware error log:
   error type      = "NMI_INTERRUPT_WDG" (0x00000004)
   program counter = 0x0000046C
   source line     = 0x000000D0
   error data      = 0x0000000202030000
   branch link     = 0x00005CEE000004C2
   interrupt link  = 0x000006DE00007386
   time            = 270960
 driver status:
   tx ring  0: qid=0  cur=0   queued=0  
   tx ring  1: qid=1  cur=0   queued=0  
   tx ring  2: qid=2  cur=0   queued=0  
   tx ring  3: qid=3  cur=3   queued=0  
   tx ring  4: qid=4  cur=67  queued=0  
   tx ring  5: qid=5  cur=0   queued=0  
   tx ring  6: qid=6  cur=0   queued=0  
   tx ring  7: qid=7  cur=0   queued=0  
   tx ring  8: qid=8  cur=0   queued=0  
   tx ring  9: qid=9  cur=0   queued=0  
   tx ring 10: qid=10 cur=0   queued=0  
   tx ring 11: qid=11 cur=0   queued=0  
   tx ring 12: qid=12 cur=0   queued=0  
   tx ring 13: qid=13 cur=0   queued=0  
   tx ring 14: qid=14 cur=0   queued=0  
   tx ring 15: qid=15 cur=0   queued=0  
   rx ring: cur=45
 wlan0: Ethernet address: 00:21:5c:50:68:c3
 wlan0: link state changed to UP
 iwn0: iwn_intr: fatal firmware error
 firmware error log:
   error type      = "NMI_INTERRUPT_WDG" (0x00000004)
   program counter = 0x0000046C
   source line     = 0x000000D0
   error data      = 0x0000000207030000
   branch link     = 0x00003BBA000004C2
   interrupt link  = 0x000006DE00003C5A
   time            = 3270454051
 driver status:
   tx ring  0: qid=0  cur=0   queued=0  
   tx ring  1: qid=1  cur=0   queued=0  
   tx ring  2: qid=2  cur=0   queued=0  
   tx ring  3: qid=3  cur=3   queued=0  
   tx ring  4: qid=4  cur=78  queued=0  
   tx ring  5: qid=5  cur=0   queued=0  
   tx ring  6: qid=6  cur=0   queued=0  
   tx ring  7: qid=7  cur=0   queued=0  
   tx ring  8: qid=8  cur=0   queued=0  
   tx ring  9: qid=9  cur=0   queued=0  
   tx ring 10: qid=10 cur=0   queued=0  
   tx ring 11: qid=11 cur=0   queued=0  
   tx ring 12: qid=12 cur=0   queued=0  
   tx ring 13: qid=13 cur=0   queued=0  
   tx ring 14: qid=14 cur=0   queued=0  
   tx ring 15: qid=15 cur=0   queued=0  
   rx ring: cur=23
 wlan0: link state changed to DOWN
 wlan0: Ethernet address: 00:21:5c:50:68:c3
 wlan0: Ethernet address: 00:21:5c:50:68:c3
 iwn0: iwn_intr: fatal firmware error
 firmware error log:
   error type      = "NMI_INTERRUPT_WDG" (0x00000004)
   program counter = 0x0000046C
   source line     = 0x000000D0
   error data      = 0x0000000207030000
   branch link     = 0x00008370000004C2
   interrupt link  = 0x000006DE000018B8
   time            = 11589053
 driver status:
   tx ring  0: qid=0  cur=0   queued=0  
   tx ring  1: qid=1  cur=0   queued=0  
   tx ring  2: qid=2  cur=0   queued=0  
   tx ring  3: qid=3  cur=1   queued=0  
   tx ring  4: qid=4  cur=45  queued=0  
   tx ring  5: qid=5  cur=0   queued=0  
   tx ring  6: qid=6  cur=0   queued=0  
   tx ring  7: qid=7  cur=0   queued=0  
   tx ring  8: qid=8  cur=0   queued=0  
   tx ring  9: qid=9  cur=0   queued=0  
   tx ring 10: qid=10 cur=0   queued=0  
   tx ring 11: qid=11 cur=0   queued=0  
   tx ring 12: qid=12 cur=0   queued=0  
   tx ring 13: qid=13 cur=0   queued=0  
   tx ring 14: qid=14 cur=0   queued=0  
   tx ring 15: qid=15 cur=0   queued=0  
   rx ring: cur=42
 wlan0: Ethernet address: 00:21:5c:50:68:c3
 wlan0: link state changed to UP
 

From: Anton Shterenlikht <mexas@bris.ac.uk>
To: bug-followup@freebsd.org
Cc:  
Subject: kern/176104: [iwn] iwn0: iwn_intr: fatal firmware error
Date: Wed, 14 May 2014 14:54:22 +0100 (BST)

 See also
 http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/189802
 
 
 Seems iwn causes panic now.
>Unformatted:
