Bug 214435 - controller panic: iwn0: iwn_intr: fatal firmware error error type = "BAD_COMMAND" (0x00000007)
Summary: controller panic: iwn0: iwn_intr: fatal firmware error error type = "BAD_COMM...
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: wireless (show other bugs)
Version: 11.0-RELEASE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-wireless (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-12 09:15 UTC by Markus Graf
Modified: 2018-10-03 03:48 UTC (History)
2 users (show)

See Also:


Attachments
dmesg printout (15.91 KB, text/plain)
2016-11-12 09:15 UTC, Markus Graf
no flags Details
rc.conf (517 bytes, text/plain)
2016-11-12 09:16 UTC, Markus Graf
no flags Details
loader.conf (52 bytes, text/plain)
2016-11-12 09:17 UTC, Markus Graf
no flags Details
iwn0 on Intel Centrino Ultimate-N 6300 (1.88 KB, text/plain)
2017-11-07 20:35 UTC, zy
no flags Details
iwn0: iwn_intr: fatal firmware error (1.39 KB, text/plain)
2018-10-03 03:48 UTC, Vladimir Botka
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Graf 2016-11-12 09:15:19 UTC
Created attachment 176910 [details]
dmesg printout

Hi all,

I am new to freebsd, thank you for a wonderful system!

I keep getting iwn controller panic while booting.
Eventually the machine does come up and does connect to the wireless network.
But it takes quite long to boot and has most of the time one, sometimes up to 4 rounds of iwn controller panic. Sometimes, but rarely, it does not panic.

The relevant lines from rc.conf around the panic are below and I attach dmesg, rc.conf and loader.conf

The panic might have something to do with dhcp since I do not get it when I use dhclient after boot.

Thank you in advance for all tips

Best regards

Markus

** my system

I am on a Lenovo SL520 Laptop
the wlan is identified as
iwn0: <Intel Centrino Wireless-N 1000> mem 0xf2200000-0xf2201fff irq 19 at device 0.0 on pci3

uname -a
FreeBSD ########## 11.0-RELEASE-p2 FreeBSD 11.0-RELEASE-p2 #0: Mon Oct 24 06:55:27 UTC 2016
root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64

freebsd-version
11.0-RELEASE-p3

** when does the panic show up

I only get this error when booting.
I cannot remember having seen this panic when I delete the DHCP from ifconfig_wlan0="WPA DHCP" and use dhclient later.
When I play around manually, I never get the panic.

Oddly. when I use SYNDHCP instead of DHCP I get an errormessage while booting about some wrong pararameter, but *no panic either*.
This errormessage flashes by, to fast to read, and does not show up in either dmesg or messages.

Putting
if_iwn_load="YES"
iwn1000fw_load="YES"
into loader.conf, does not change anything except reporting "module iwn already present!" in line 9 of dmesg.
The result without the two lines is the same.

btw
The wlan worked fine when I had PC-BSD 10.3 on the Laptop for a couple of weeks, but being new to BSD maybe I just didn't notice.


** Excerpt from dmesg
----------------------------------------------------------------------
iwn0: <Intel Centrino Wireless-N 1000> mem 0xf2200000-0xf2201fff irq 19 at device 0.0 on pci3
.
.
.
wlan0: Ethernet address: ##:##:##:##:##:##
...
iwn0: iwn_read_firmware: ucode rev=0x271f0501
wlan0: link state changed to UP
re0: link state changed to UP
...
wlan0: link state changed to DOWN
iwn0: device timeout
iwn0: iwn_read_firmware: ucode rev=0x271f0501
iwn0: scan timeout
iwn0: iwn_read_firmware: ucode rev=0x271f0501
wlan0: link state changed to UP
iwn0: iwn_intr: fatal firmware error
firmware error log:
  error type      = "BAD_COMMAND" (0x00000007)
  program counter = 0x000024D8
  source line     = 0x00000446
  error data      = 0x0000000000000000
  branch link     = 0x000024D6000024D6
  interrupt link  = 0x0000082600000000
  time            = 8365
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=0  
  tx ring  4: qid=4  cur=58  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  
  tx ring 16: qid=16 cur=0   queued=0  
  tx ring 17: qid=17 cur=0   queued=0  
  tx ring 18: qid=18 cur=0   queued=0  
  tx ring 19: qid=19 cur=0   queued=0  
  rx ring: cur=19
iwn0: iwn_panicked: controller panicked, iv_state = 5; restarting
wlan0: link state changed to DOWN
iwn0: iwn_read_firmware: ucode rev=0x271f0501
wlan0: link state changed to UP
Comment 1 Markus Graf 2016-11-12 09:16:04 UTC
Created attachment 176911 [details]
rc.conf
Comment 2 Markus Graf 2016-11-12 09:17:16 UTC
Created attachment 176912 [details]
loader.conf
Comment 3 zy 2017-11-07 20:32:25 UTC
The same problem also happens on Intel Centrino Ultimate-N 6300.  I'll attach a dmesg output later.
Comment 4 zy 2017-11-07 20:35:33 UTC
Created attachment 187828 [details]
iwn0 on Intel Centrino Ultimate-N 6300
Comment 5 Vladimir Botka 2018-10-03 03:48:39 UTC
Created attachment 197727 [details]
iwn0: iwn_intr: fatal firmware error

+1

iwn0: iwn_intr: fatal firmware error
firmware error log:
  error type      = "UNKNOWN" (0x00002085)

iwn0@pci0:3:0:0:	class=0x028000 card=0x13118086 chip=0x00858086 rev=0x34 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Centrino Advanced-N 6205 [Taylor Peak]'

FreeBSD <sanitized> 11.2-RELEASE FreeBSD 11.2-RELEASE #0 r335510: Fri Jun 22 04:09:26 UTC 2018     root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  i386