NetBSD Problem Report #45899

From reed@reedmedia.net  Tue Jan 31 15:34:20 2012
Return-Path: <reed@reedmedia.net>
Received: from mail.netbsd.org (unknown [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id C55CE63DEED
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 31 Jan 2012 15:34:20 +0000 (UTC)
Message-Id: <13470-1328021689@reedmedia.net>
Date: Tue, 31 Jan 2012 08:54:49 -0600
From: reed@reedmedia.net
Reply-To: reed@reedmedia.net
To: gnats-bugs@gnats.NetBSD.org
Subject: iwn Intel Centrino Wireless-N 1030 not working
X-Send-Pr-Version: 3.95

>Number:         45899
>Category:       kern
>Synopsis:       iwn Intel Centrino Wireless-N 1030 not working
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 31 15:35:00 +0000 2012
>Originator:     reed@reedmedia.net
>Release:        NetBSD 5.99.60
>Organization:
>Environment:


System: NetBSD 5.99.60 (GENERIC) #0: Fri Jan 20 06:22:08 UTC 2012 builds@b6.netbsd.org:/home/builds/ab/HEAD/amd64/201201200410Z-obj/home/builds/ab/HEAD/src/sys/arch/amd64/compile/GENERIC
Architecture: x86_64
Machine: amd64
>Description:
The iwn doesn't work for me with an Intel Centrino Wireless-N 1030.

This is head from 201201200410Z on amd64.

It also does not work on FreeBSD 9.0 (but it can scan networks
and be configured, but running dhclient drops the connection). It works
fine on some LinuxMint 12(?) version.

The NetBSD dmesg output shows:

iwn0 at pci2 dev 0 function 0: vendor 0x8086 product 0x008a (rev. 0x34)
iwn0: interrupting at ioapic0 pin 17
iwn0: MIMO 1T2R, BGN, address ac:72:89:ec:3b:1e
iwn0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
iwn0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 
24Mbps 36Mbps 48Mbps 54Mbps

iwn0: fatal firmware error
firmware error log:
  error type      = "UNKNOWN" (0x00001999)
  program counter = 0x00013688
  source line     = 0x0000012F
  error data      = 0x00000001000000A4
  branch link     = 0x0001367C0001367C
  interrupt link  = 0x0000C17A00000000
  time            = 28087
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=0   queued=0  
  tx ring  4: qid=4  cur=2   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=2
  802.11 state 0
iwn0: crystal calibration failed
iwn0: could not initialize hardware

I next installed the firmware files:

iwlwifi-6000g2b-6.ucode
iwlwifi-6000g2b-5.ucode

I see these weren't mentioned in code. So I tried patch from email 
http://mail-index.netbsd.org/tech-kern/2011/08/06/msg011131.html

Now I get:

iwn0: could not configure bluetooth coexistence
iwn0: could not configure device
iwn0: cannot assign link-local address

I can set the ssid and nwkey even though ifconfig complains:
ifconfig: exec_matches: Resource temporarily unavailable

dhcpcd times out waiting for carrier. dhclient fails with:
ifconfig: exec_matches: Resource temporarily unavailable
iwn0: not found

ifconfig iwn0 shows me:

iwn0: flags=8803<UP,BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        ssid 5FYA8 nwkey 0x--------
        powersave off
        address: ac:72:89:ec:3b:1e
        media: IEEE802.11 autoselect
        status: no network

(I strike out nwkey.)

The following is with debugging output:

iwn0 at pci2 dev 0 function 0: vendor 0x8086 product 0x008a (rev. 0x34)
iwn0: interrupting at ioapic0 pin 17
OTPROM found
SKU capabilities=0x0150
radio config=0x311a
adding chan 1 flags=0x6f maxpwr=0
adding chan 2 flags=0x6f maxpwr=0
adding chan 3 flags=0x6f maxpwr=0
adding chan 4 flags=0x6f maxpwr=0
adding chan 5 flags=0x6f maxpwr=0
adding chan 6 flags=0x6f maxpwr=0
adding chan 7 flags=0x6f maxpwr=0
adding chan 8 flags=0x6f maxpwr=0
adding chan 9 flags=0x6f maxpwr=0
adding chan 10 flags=0x6f maxpwr=0
adding chan 11 flags=0x6f maxpwr=0
adding chan 12 flags=0x61 maxpwr=0
adding chan 13 flags=0x61 maxpwr=0
enhinfo 0, maxpwr=14
enhinfo 1, maxpwr=14
enhinfo 2, maxpwr=15
enhinfo 3, maxpwr=15
enhinfo 5, maxpwr=0
enhinfo 6, maxpwr=0
enhinfo 7, maxpwr=0
enhinfo 8, maxpwr=0
enhinfo 9, maxpwr=0
enhinfo 10, maxpwr=0
enhinfo 11, maxpwr=0
enhinfo 12, maxpwr=0
enhinfo 13, maxpwr=0
enhinfo 14, maxpwr=0
enhinfo 15, maxpwr=14
enhinfo 16, maxpwr=13
enhinfo 17, maxpwr=12
enhinfo 18, maxpwr=15
enhinfo 19, maxpwr=15
enhinfo 20, maxpwr=15
enhinfo 21, maxpwr=15
enhinfo 22, maxpwr=12
enhinfo 23, maxpwr=11
enhinfo 24, maxpwr=14
enhinfo 25, maxpwr=13
enhinfo 26, maxpwr=13
calib version=6 pa type=0 voltage=3318
crystal calibration 0x00720072
iwn0: MIMO 1T2R, BGN, address ac:72:89:ec:3b:1e
iwn0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
iwn0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36M
bps 48Mbps 54Mbps


This is when trying to bring the interface up with ifconfig:

FW: "6000g2b fw v17.168.5.2 build 35905
", build 0x8c41
using alternative 0
TLV type 6 not handled
TLV type 7 not handled
TLV type 8 not handled
TLV type 9 not handled
TLV type 10 not handled
TLV type 11 not handled
TLV type 12 not handled
TLV type 13 not handled
TLV type 14 not handled
TLV type 15 not handled
notification qid=0 idx=0 flags=0 type=1
microcode alive notification version=17.168 subtype=9 alive=1
enabling ICT
Configuring WiMAX coexistence
iwn_cmd 90 size=68 
notification qid=4 idx=0 flags=0 type=90
sending crystal calibration 114, 114
iwn_cmd 176 size=8 
notification qid=0 idx=1 flags=0 type=98
notification qid=4 idx=1 flags=0 type=176
sending calibration query
iwn_cmd 101 size=92 
notification qid=4 idx=2 flags=0 type=101
notification qid=0 idx=2 flags=0 type=102
saving calibration result code=16 len=8
notification qid=0 idx=3 flags=0 type=102
notification qid=0 idx=4 flags=0 type=102
saving calibration result code=9 len=1348
notification qid=0 idx=5 flags=0 type=102
saving calibration result code=11 len=88
notification qid=0 idx=6 flags=0 type=103
notification qid=0 idx=0 flags=0 type=1
microcode alive notification version=17.168 subtype=0 alive=1
enabling ICT
Configuring WiMAX coexistence
iwn_cmd 90 size=68 
notification qid=4 idx=0 flags=0 type=90
sending crystal calibration 114, 114
iwn_cmd 176 size=8 
notification qid=0 idx=1 flags=0 type=98
notification qid=4 idx=1 flags=0 type=176
send calibration result idx=1 len=1348
iwn_cmd 176 size=1348 
notification qid=4 idx=2 flags=0 type=176
send calibration result idx=2 len=88
iwn_cmd 176 size=88 
notification qid=4 idx=3 flags=0 type=176
send calibration result idx=4 len=8
iwn_cmd 176 size=8 
notification qid=4 idx=4 flags=0 type=176
configuring runtime calibration
iwn_cmd 101 size=92 
notification qid=4 idx=5 flags=0 type=101
configuring valid TX chains 0x1
iwn_cmd 152 size=4 
notification qid=4 idx=6 flags=0 type=152
configuring bluetooth coexistence
iwn_cmd 155 size=12 
iwn0: could not configure bluetooth coexistence

**** at this point I patched it to not error out ****

setting configuration
iwn_cmd 16 size=50 
iwn0: fatal firmware error
firmware error log:
  error type      = "UNKNOWN" (0x00000034)
  program counter = 0x000106E4
  source line     = 0x00002144
  error data      = 0x0000000207030000
  branch link     = 0x000106D000010702
  interrupt link  = 0x0000DC1A0002481E
  time            = 1033589
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=0   queued=0  
  tx ring  4: qid=4  cur=9   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=9
  802.11 state 0
iwn0: RXON command failed
iwn0: could not configure device
iwn0: cannot assign link-local address
FW: "6000g2b fw v17.168.5.2 build 35905
", build 0x8c41
using alternative 0
TLV type 6 not handled
TLV type 7 not handled
TLV type 8 not handled
TLV type 9 not handled
TLV type 10 not handled
TLV type 11 not handled
TLV type 12 not handled
TLV type 13 not handled
TLV type 14 not handled
TLV type 15 not handled
notification qid=0 idx=0 flags=0 type=1
microcode alive notification version=17.168 subtype=9 alive=1
enabling ICT
Configuring WiMAX coexistence
iwn_cmd 90 size=68 
notification qid=4 idx=0 flags=0 type=90
sending crystal calibration 114, 114
iwn_cmd 176 size=8 
notification qid=0 idx=1 flags=0 type=98
notification qid=4 idx=1 flags=0 type=176
sending calibration query
iwn_cmd 101 size=92 
notification qid=4 idx=2 flags=0 type=101
notification qid=0 idx=2 flags=0 type=102
saving calibration result code=16 len=8
notification qid=0 idx=3 flags=0 type=102
notification qid=0 idx=4 flags=0 type=102
saving calibration result code=9 len=1348
notification qid=0 idx=5 flags=0 type=102
saving calibration result code=11 len=88
notification qid=0 idx=6 flags=0 type=103
notification qid=0 idx=0 flags=0 type=1
microcode alive notification version=17.168 subtype=0 alive=1
enabling ICT
Configuring WiMAX coexistence
iwn_cmd 90 size=68 
notification qid=4 idx=0 flags=0 type=90
sending crystal calibration 114, 114
iwn_cmd 176 size=8 
notification qid=0 idx=1 flags=0 type=98
notification qid=4 idx=1 flags=0 type=176
send calibration result idx=1 len=1348
iwn_cmd 176 size=1348 
notification qid=4 idx=2 flags=0 type=176
send calibration result idx=2 len=88
iwn_cmd 176 size=88
notification qid=4 idx=3 flags=0 type=176
send calibration result idx=4 len=8
iwn_cmd 176 size=8 
notification qid=4 idx=4 flags=0 type=176
configuring runtime calibration
iwn_cmd 101 size=92 
notification qid=4 idx=5 flags=0 type=101
configuring valid TX chains 0x1
iwn_cmd 152 size=4 
notification qid=4 idx=6 flags=0 type=152
configuring bluetooth coexistence
iwn_cmd 155 size=12 
iwn0: could not configure bluetooth coexistence
setting configuration
iwn_cmd 16 size=50 
iwn0: fatal firmware error
firmware error log:
  error type      = "UNKNOWN" (0x00000034)
  program counter = 0x000106E4
  source line     = 0x00002144
  error data      = 0x0000000207030000
  branch link     = 0x000106D000010702
  interrupt link  = 0x0000DC1A0002481E
  time            = 1037728
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=0   queued=0  
  tx ring  4: qid=4  cur=9   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=9
  802.11 state 0
iwn0: RXON command failed
iwn0: could not configure device

>How-To-Repeat:

>Fix:


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.