Finished: CALL FOR TESTERS Intel wireless 5100/5300 iwn(4) driver for FreeBSD

It's unusable now with rev 17.

Code:
[B]uname[/B]

FreeBSD 8.0-STABLE #0: Wed Dec  2 18:11:00 CET 2009     acheron@:/usr/obj/usr/src/sys/GENERIC

[B]ifconfig[/B]

wlan0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 00:21:5d:f3:8b:8c
        media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
        status: no carrier
        ssid "" channel 9 (2452 Mhz 11g)
        country US authmode OPEN privacy OFF txpower 15 bmiss 10 scanvalid 60
        bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5
        protmode CTS wme bintval 0


[B]dmesg[/B]

iwn0: device timeout
iwn0: iwn5000_post_alive: could not configure WiMAX coexistence, error 35
iwn0: iwn_init_locked: could not initialize hardware, error 35


[B]debug[/B]

wlan0: ieee80211_vap_detach: STA parent iwn0
wlan0: stop running, 0 vaps running
wlan0: ieee80211_new_state_locked: INIT -> INIT (nrunning 0 nscanning 0)
wlan0: ieee80211_newstate_cb: INIT -> INIT arg -1
iwn_newstate: INIT -> INIT
wlan0: sta_newstate: INIT -> INIT (-1)
wlan0: sta_newstate: unexpected state transition INIT -> INIT
wlan0: _ieee80211_crypto_delkey: NONE keyix 65535 flags 0x3 rsc 0 tsc 0 len 0
wlan0: _ieee80211_crypto_delkey: NONE keyix 65535 flags 0x3 rsc 0 tsc 0 len 0
wlan0: _ieee80211_crypto_delkey: NONE keyix 65535 flags 0x3 rsc 0 tsc 0 len 0
wlan0: _ieee80211_crypto_delkey: NONE keyix 65535 flags 0x3 rsc 0 tsc 0 len 0
wlan0: node_reclaim: remove 0xffffff8001cdb000<00:21:5d:f3:8b:8c> from station table, refcnt 1
wlan0: Ethernet address: 00:21:5d:f3:8b:8c
interrupt reg1=8000000 reg2=1
interrupt reg1=8000000 reg2=1
interrupt reg1=80000001 reg2=40010000
iwn_notif_intr: qid 0 idx 0 flags 0 type 0(UNKNOWN INTR NOTIF/CMD) len 0
iwn5000_ict_reset: enabling ICT
iwn5000_send_wimax_coex: Configuring WiMAX coexistence
iwn_cmd: IWN5000_CMD_WIMAX_COEX (0x5a) flags 0 qid 4 idx 0
interrupt reg1=80000000 reg2=0
iwn_notif_intr: qid 0 idx 0 flags 1 type 49(UNKNOWN INTR NOTIF/CMD) len 61
interrupt reg1=10000000 reg2=0
iwn0: iwn5000_post_alive: could not configure WiMAX coexistence, error 35
iwn0: iwn_init_locked: could not initialize hardware, error 35
 
with rev 17. the systems freezes hard on my Lenovo N 500, FreeeBD 8.0 amd64, with a kernal panic after i enable rthe radio switch.

I can not obtain any dump.

Code:
pci0:4:0:0: reprobing on driver added
iwn0: <Intel(R) PRO/Wireless 5100> mem 0xf4700000-0xf4701fff irq 18 at device 0.0 on pci4
pcib3: iwn0 requested memory range 0xf4700000-0xf4701fff: good
iwn0: attempting to allocate 1 MSI vectors (1 supported)
msi: routing MSI IRQ 256 to local APIC 0 vector 48
iwn0: using IRQ 256 for MSI
iwn0: MIMO 1T2R, MoW, address 00:21:6b:a9:e4:22
iwn0: [MPSAFE]
iwn0: [ITHREAD]
iwn0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
iwn0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
iwn0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbp
wlan0: bpf attached
wlan0: bpf attached
wlan0: Ethernet address: 00:21:6b:a9:e4:22
if_delmulti_locked: detaching ifnet instance 0xffffff011f5c0000
last message repeated 11 times
Expensive timeout(9) function: 0xffffffff8060c4e0(0) 0.076722181 siwn0: 
kernel: radio is disabled by hardware switch
wpa_supplicant[2033]: Failed to initiate AP scan.
iwn0: radio is disabled by hardware switch
wpa_supplicant[2033]: Failed to initiate AP scan.

wpa_supplicant[2033]: Failed to initiate AP scan.
wpa_supplicant[2033]: Failed to initiate AP scan.
kernel: iwn0: RF switch: radio enabled
kernel: firmware: 'iwn5000fw' version 0: 353240 bytes loaded at 0xffffffff812bb0b0
kernel: ugen0.2: <Broadcom Corp> at usbus0
syslogd: restart

With full "Debugging On" the computer does not crash.
It seems to work a little. But it can't hold the conenction.

Code:
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 00:21:6b:a9:e4:22
        inet6 fe80::221:6bff:fea9:e422%wlan0 prefixlen 64 scopeid 0x6 
        inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255
        media: IEEE 802.11 Wireless Ethernet OFDM/36Mbps mode 11g
        status: associated
        ssid dinoex-hbw2 channel 13 (2472 Mhz 11g) bssid 00:23:08:4e:07:08
        regdomain ETSI country DE authmode WPA2/802.11i privacy ON
        deftxkey UNDEF txpower 30 bmiss 10 scanvalid 450 bgscan
        bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS
        wme roaming MANUAL

full log in http://people.freebsd.org/~dinoex/logs/iwn0.log
 
I committed several changes a minute ago, which also changes a bus_dmamap_sync() call. This might fix a bunch of initialization and random firmware errors. It also prevents a deadlock condition.

for the last 14 hours, with that version, I had no connection loss, no packet loss, no LOR and no dead lock using a 5100 over a WPA connection.


dinoex@ said:
with rev 17. the systems freezes hard on my Lenovo N 500, FreeeBD 8.0 amd64, with a kernal panic after i enable rthe radio switch.

I can not obtain any dump.

Not even a backtrace?

dinoex@ said:
With full "Debugging On" the computer does not crash.
It seems to work a little. But it can't hold the conenction.

Firmware errors re-init the driver almost completely, dropping connection is expected. So we must prevent any of this.

Let me know whether those still occur in rev20, if they do, we have to find the cause.
 
oliverh said:
Well, I had a panic (at least I suppose so) after about an hour. I didn't find anything in the logs.

Let me know if that still happens with rev23. You might also want to add
Code:
dumpdev=AUTO
to /etc/rc.conf to get a vmcore to analyse.
 
Tried rev23 but still no success. The machine paniced after about 10 minutes.

Code:
[B]uname[/B]

FreeBSD skarabrae 8.0-STABLE FreeBSD 8.0-STABLE #1: Sun Dec  6 11:34:44 CET 2009     acheron@skarabrae:/usr/obj/usr/src/sys/GENERIC  amd64

I tried this a 2nd time in the console and I didn't see a thing, it just freezes and I have to press the power button.
 
Tried it two times to get something useful. 2nd crash followed after 50s uptime.

Code:
Dec  6 13:38:23 skarabrae kernel: Fatal trap 12: page fault while in kernel mode
Dec  6 13:38:23 skarabrae kernel: cpuid = 0; apic id = 00
Dec  6 13:38:23 skarabrae kernel: fault virtual address = 0x28
Dec  6 13:38:23 skarabrae kernel: fault code            = supervisor write data, page not present
Dec  6 13:38:23 skarabrae kernel: instruction pointer   = 0x20:0xffffffff80849f95
Dec  6 13:38:23 skarabrae kernel: stack pointer         = 0x28:0xffffff8075b4aa90
Dec  6 13:38:23 skarabrae kernel: frame pointer         = 0x28:0xffffff8075b4aac0
Dec  6 13:38:23 skarabrae kernel: code segment          = base 0x0, limit 0xfffff, type 0x1b
Dec  6 13:38:23 skarabrae kernel: = DPL 0, pres 1, long 1, def32 0, gran 1
Dec  6 13:38:23 skarabrae kernel: processor eflags      = interrupt enabled, resume, IOPL = 0
Dec  6 13:38:23 skarabrae kernel: current process               = 12 (irq258: iwn0)
Dec  6 13:38:23 skarabrae kernel: trap number           = 12
Dec  6 13:38:23 skarabrae kernel: panic: page fault
Dec  6 13:38:23 skarabrae kernel: cpuid = 0
Dec  6 13:38:23 skarabrae kernel: Uptime: 50s


core.txt.0

http://bsdpaste.bsdgroup.de/9097
 
Well it works ... sort of. At least I see no panic, but the connection transmits garbage only. I can see this with elinks, Firefox stops working at once, if I try to load something.
 
I just found out that a driver for the Intel 5300 AGN is availible. I've read the thread and I'm a little unsure on the installation. The driver that comes with 8.0-RELEASE does not load so it's clear I'll have to get it from somewhere. My machine is a DELL Latitude 6500 with the above WiFi card. I'm using a usb wifi a the moment and it would be great to be able to use the built in Intel card. Thanks for any hints :)
 
LesJen said:
I just found out that a driver for the Intel 5300 AGN is availible. I've read the thread and I'm a little unsure on the installation. The driver that comes with 8.0-RELEASE does not load so it's clear I'll have to get it from somewhere. My machine is a DELL Latitude 6500 with the above WiFi card. I'm using a usb wifi a the moment and it would be great to be able to use the built in Intel card. Thanks for any hints :)


http://forums.freebsd.org/showpost.php?p=47627&postcount=16
 
Thank you!

It works fine. Had to configure the wlan0 in rc.conf, then it connected.

Thanks to bschmidt for the driver :)

If I can provide information or other feedback, Please let me know.
 
Update! I've had two reboots since installing the iwn driver. It starts with the PC getting unresponsive, the wifi lamp/indicator flashes, it's usually on, and then the computer reboots. Another thing I've noticed is that the xfce's wavelan indicator in the beginning shows low signal strenght but after 10 - 15 minutes it's indicating full level strenght. This is without moving the computer. Any comments?
 
LesJen said:
Update! I've had two reboots since installing the iwn driver. It starts with the PC getting unresponsive, the wifi lamp/indicator flashes, it's usually on, and then the computer reboots.

More input please. Check your /var/log/messages if there is something about a panic.

LesJen said:
Another thing I've noticed is that the xfce's wavelan indicator in the beginning shows low signal strenght but after 10 - 15 minutes it's indicating full level strenght. This is without moving the computer. Any comments?

On initial connect the rate is set to 36Mbit/s after the first few packets go through the rate control algo ups it to 54Mbit/s. That is probably what you are seeing.
 
I get panics shortly after a reboot (50-60s) or sometimes after about 10 minutes. Are there any special flags to set e.g. in wpa_supplicant.conf or something else to consider?
 
Back
Top