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

bschmidt said:
What does reset mean? Your computer is rebooting? Connection drops? Firmware errors? Look into /var/log/messages for some messages.

Sorry, I meant 'reset' similar to pulling the power cord.
 
Sounds like a panic. You've been in X when the issue occurred I guess? Can you try and reproduce it while X is not running so you see what's actually going on?
 
bschmidt said:
Sounds like a panic. You've been in X when the issue occurred I guess? Can you try and reproduce it while X is not running so you see what's actually going on?

Once it happened while fetching the sources with csup (but I couldn't reproduce it), later while building Xorg.

Code:
Nov 18 22:04:26 skarabrae kernel: Fatal trap 12: page fault while in kernel mode
Nov 18 22:04:26 skarabrae kernel: cpuid = 1; apic id = 01
Nov 18 22:04:26 skarabrae kernel: fault virtual address = 0x1c
Nov 18 22:04:26 skarabrae kernel: fault code            = supervisor read data, page not present
Nov 18 22:04:26 skarabrae kernel: instruction pointer   = 0x20:0xffffffff80848af0
Nov 18 22:04:26 skarabrae kernel: stack pointer         = 0x28:0xffffff8075b4d900
Nov 18 22:04:26 skarabrae kernel: frame pointer         = 0x28:0xffffff8075b4d910
Nov 18 22:04:26 skarabrae kernel: code segment          = base 0x0, limit 0xfffff, type 0x1b
Nov 18 22:04:26 skarabrae kernel: = DPL 0, pres 1, long 1, def32 0, gran 1
Nov 18 22:04:26 skarabrae kernel: processor eflags      = interrupt enabled, resume, IOPL = 0
Nov 18 22:04:26 skarabrae kernel: current process               = 0 (iwn0 taskq)
Nov 18 22:04:26 skarabrae kernel: trap number           = 12
Nov 18 22:04:26 skarabrae kernel: panic: page fault
Nov 18 22:04:26 skarabrae kernel: cpuid = 1
Nov 18 22:04:26 skarabrae kernel: Uptime: 5m14s
Nov 18 22:04:26 skarabrae kernel: Cannot dump. Device not defined or unavailable.
Nov 18 22:04:26 skarabrae kernel: Automatic reboot in 15 seconds - press a key on the console to abort
Nov 18 22:04:26 skarabrae kernel: Rebooting...

Did some tests with heavy network load and rum0 device without any problems. Just to be sure ...

Later I saw this:

Code:
Nov 18 22:50:20 skarabrae kernel: iwn0: iwn_config: could not configure valid TX chains, error 35
Nov 18 22:50:20 skarabrae kernel: firmware error log:
Nov 18 22:50:20 skarabrae kernel: error type      = "SYSASSERT" (0x00000005)
Nov 18 22:50:20 skarabrae kernel: program counter = 0x00001E28
Nov 18 22:50:20 skarabrae kernel: source line     = 0x00000696
Nov 18 22:50:20 skarabrae kernel: error data      = 0x0000000100000696
Nov 18 22:50:20 skarabrae kernel: branch link     = 0x000008FA000008FA
Nov 18 22:50:20 skarabrae kernel: interrupt link  = 0x000008B200000000
Nov 18 22:50:20 skarabrae kernel: time            = 3978916211
Nov 18 22:50:20 skarabrae kernel: driver status:
Nov 18 22:50:20 skarabrae kernel: tx ring  0: qid=0  cur=174 queued=18 
Nov 18 22:50:20 skarabrae kernel: tx ring  1: qid=1  cur=0   queued=0  
Nov 18 22:50:20 skarabrae kernel: tx ring  2: qid=2  cur=0   queued=0  
Nov 18 22:50:20 skarabrae kernel: tx ring  3: qid=3  cur=8   queued=0  
Nov 18 22:50:20 skarabrae kernel: tx ring  4: qid=4  cur=154 queued=0  
Nov 18 22:50:20 skarabrae kernel: tx ring  5: qid=5  cur=0   queued=0  
Nov 18 22:50:20 skarabrae kernel: tx ring  6: qid=6  cur=0   queued=0  
Nov 18 22:50:20 skarabrae kernel: tx ring  7: qid=7  cur=0   queued=0  
Nov 18 22:50:20 skarabrae kernel: tx ring  8: qid=8  cur=0   queued=0  
Nov 18 22:50:20 skarabrae kernel: tx ring  9: qid=9  cur=0   queued=0  
Nov 18 22:50:20 skarabrae kernel: tx ring 10: qid=10 cur=0   queued=0  
Nov 18 22:50:20 skarabrae kernel: tx ring 11: qid=11 cur=0   queued=0  
Nov 18 22:50:20 skarabrae kernel: tx ring 12: qid=12 cur=0   queued=0  
Nov 18 22:50:20 skarabrae kernel: tx ring 13: qid=13 cur=0   queued=0  
Nov 18 22:50:20 skarabrae kernel: tx ring 14: qid=14 cur=0   queued=0  
Nov 18 22:50:20 skarabrae kernel: tx ring 15: qid=15 cur=0   queued=0  
Nov 18 22:50:20 skarabrae kernel: tx ring 16: qid=16 cur=0   queued=0  
Nov 18 22:50:20 skarabrae kernel: tx ring 17: qid=17 cur=0   queued=0  
Nov 18 22:50:20 skarabrae kernel: tx ring 18: qid=18 cur=0   queued=0  
Nov 18 22:50:20 skarabrae kernel: tx ring 19: qid=19 cur=0   queued=0  
Nov 18 22:50:20 skarabrae kernel: rx ring: cur=26
 
Ah! we're getting closer. Can you now do # wlandebug 0xffffffff before the crash, so I get a clue where in the code this does happen?
 
Code:
Nov 19 15:42:43 skarabrae kernel: wlan0: received beacon from 00:1f:3f:d1:d6:e6 rssi 41
Nov 19 15:42:43 skarabrae kernel: wlan0: received beacon from 00:1f:3f:d1:d6:e6 rssi 42
Nov 19 15:43:35 skarabrae syslogd: kernel boot file is /boot/kernel/kernel
Nov 19 15:43:35 skarabrae kernel: wlan0: received beacon from 00:1f:3f:d1:d6:e6 rssi 39
Nov 19 15:43:35 skarabrae kernel: wlan0: received beacon from 00:1f:3f:d1:d6:e6 rssi 42
Nov 19 15:43:35 skarabrae kernel: wlan0: ieee80211_bg_scan: active scan, ticks 310880 duration 150
Nov 19 15:43:35 skarabrae kernel: wlan0: [00:1f:3f:d1:d6:e6] sta power save mode on
Nov 19 15:43:35 skarabrae kernel: wlan0: [00:1f:3f:d1:d6:e6] send QoS null data frame on channel 6, pwr mgt ena
Nov 19 15:43:35 skarabrae kernel: wlan0: scan_task: chan   6g ->   1g [active, dwell min 20ms max 150ms]
Nov 19 15:43:35 skarabrae kernel: 
Nov 19 15:43:35 skarabrae kernel: 
Nov 19 15:43:35 skarabrae kernel: Fatal trap 12: page fault while in kernel mode
Nov 19 15:43:35 skarabrae kernel: cpuid = 1; apic id = 01
Nov 19 15:43:35 skarabrae kernel: fault virtual address = 0x1c
Nov 19 15:43:35 skarabrae kernel: fault code            = supervisor read data, page not present
Nov 19 15:43:35 skarabrae kernel: instruction pointer   = 0x20:0xffffffff80848af0
Nov 19 15:43:35 skarabrae kernel: stack pointer         = 0x28:0xffffff8075b4d900
Nov 19 15:43:35 skarabrae kernel: frame pointer         = 0x28:0xffffff8075b4d910
Nov 19 15:43:35 skarabrae kernel: code segment          = base 0x0, limit 0xfffff, type 0x1b
Nov 19 15:43:35 skarabrae kernel: = DPL 0, pres 1, long 1, def32 0, gran 1
Nov 19 15:43:35 skarabrae kernel: processor eflags      = interrupt enabled, resume, IOPL = 0
Nov 19 15:43:35 skarabrae kernel: current process               = 0 (iwn0 taskq)
Nov 19 15:43:35 skarabrae kernel: trap number           = 12
Nov 19 15:43:35 skarabrae kernel: panic: page fault
Nov 19 15:43:35 skarabrae kernel: cpuid = 1
Nov 19 15:43:35 skarabrae kernel: Uptime: 5m13s
Nov 19 15:43:35 skarabrae kernel: Cannot dump. Device not defined or unavailable.
Nov 19 15:43:35 skarabrae kernel: Automatic reboot in 15 seconds - press a key on the console to abort

Well have a look at the uptime, it's almost the same time.
 
Yep.. 300secs, that is the interval bgscan takes place. Strange though, that does not happen one my test system.

As a workaround, add -bgscan to your ifconfig_wlan0 line in rc.conf. That disables background scan completely.
 
So the system is now 37 minutes up and running without any problems (-bgscan). Did some huge downloads and I hope it stays so ;-) Btw. thanks for this drivers.
 
Thank you for the updated driver, I can get connection using WPA2. But a few minutes ago I got a panic, the laptop rebooted suddenly. I will report if it happens again.
 
FYI: bgscan issues have been addressed.

dinoex@ said:
Trying on amd64 I get a panic when "Raidio" is on after a few seconds.

Cash does not happen when "Radio" is off.
When "Radio" is off on loading if_iwn the firmware is not loaded.

Can you verify that RF kill switch now works as its supposed to? You should be able to toggle the cards status.
 
Hi,

Thanks for the driver :). I have a problem, when I load if_iwn not at boot me, I have this error:

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

When I am connected to WPA2 network, my connection freezes after 20~ min. I turn off RF switch and I turn on and I have this:

Code:
iwn0: iwn_config: could not add broadcast
iwn0: iwn_init_locked: could not configure hardware, error 35

Only reboot is the option for use the card again

I am using sources from svn.
 
Thanks bschmidt,

Here, information about my laptop:

pciconf -lv without load module at boot time

Code:
hostb0@pci0:0:0:0:	class=0x060000 card=0x3a0017aa chip=0x2a408086 rev=0x07 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Mobile Memory Controller Hub'
    class      = bridge
    subclass   = HOST-PCI
vgapci0@pci0:0:2:0:	class=0x030000 card=0x3a0217aa chip=0x2a428086 rev=0x07 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Intel Mobile Graphic (Mobile Intel 4 Series Chipset Family)'
    class      = display
    subclass   = VGA
vgapci1@pci0:0:2:1:	class=0x038000 card=0x3a0217aa chip=0x2a438086 rev=0x07 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Intel Mobile Graphic (Mobile Intel 4 Series Chipset Family)'
    class      = display
uhci0@pci0:0:26:0:	class=0x0c0300 card=0x3a0a17aa chip=0x29378086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801IB/IR/IH (ICH9 Family) USB Universal Host Controller'
    class      = serial bus
    subclass   = USB
uhci1@pci0:0:26:1:	class=0x0c0300 card=0x3a0b17aa chip=0x29388086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801IB/IR/IH (ICH9 Family) USB Universal Host Controller'
    class      = serial bus
    subclass   = USB
uhci2@pci0:0:26:2:	class=0x0c0300 card=0x3a0917aa chip=0x29398086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801IB/IR/IH (ICH9 Family) USB Universal Host Controller'
    class      = serial bus
    subclass   = USB
ehci0@pci0:0:26:7:	class=0x0c0320 card=0x3a0c17aa chip=0x293c8086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801IB/IR/IH (ICH9 Family) USB2 Enhanced Host Controller'
    class      = serial bus
    subclass   = USB
hdac0@pci0:0:27:0:	class=0x040300 card=0x3a0d17aa chip=0x293e8086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801IB/IR/IH (ICH9 Family) HD Audio Controller'
    class      = multimedia
    subclass   = HDA
pcib1@pci0:0:28:0:	class=0x060400 card=0x3a0e17aa chip=0x29408086 rev=0x03 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = '82801IB/IR/IH (ICH9 Family) PCIe Root Port 1'
    class      = bridge
    subclass   = PCI-PCI
pcib2@pci0:0:28:1:	class=0x060400 card=0x3a0f17aa chip=0x29428086 rev=0x03 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = '82801IB/IR/IH (ICH9 Family) PCIe Root Port 2'
    class      = bridge
    subclass   = PCI-PCI
pcib3@pci0:0:28:2:	class=0x060400 card=0x3a1017aa chip=0x29448086 rev=0x03 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = '82801IB/IR/IH (ICH9 Family) PCIe Root Port 3'
    class      = bridge
    subclass   = PCI-PCI
uhci3@pci0:0:29:0:	class=0x0c0300 card=0x3a1417aa chip=0x29348086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801IB/IR/IH (ICH9 Family) USB Universal Host Controller'
    class      = serial bus
    subclass   = USB
uhci4@pci0:0:29:1:	class=0x0c0300 card=0x3a1517aa chip=0x29358086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801IB/IR/IH (ICH9 Family) USB Universal Host Controller'
    class      = serial bus
    subclass   = USB
uhci5@pci0:0:29:2:	class=0x0c0300 card=0x3a1617aa chip=0x29368086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801IB/IR/IH (ICH9 Family) USB Universal Host Controller'
    class      = serial bus
    subclass   = USB
ehci1@pci0:0:29:7:	class=0x0c0320 card=0x3a1717aa chip=0x293a8086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801IB/IR/IH (ICH9 Family) USB2 Enhanced Host Controller'
    class      = serial bus
    subclass   = USB
pcib4@pci0:0:30:0:	class=0x060401 card=0x383f17aa chip=0x24488086 rev=0x93 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = '82801 Family (ICH2/3/4/5/6/7/8/9-M) Hub Interface to PCI Bridge'
    class      = bridge
    subclass   = PCI-PCI
isab0@pci0:0:31:0:	class=0x060100 card=0x3a1917aa chip=0x29198086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'ICH9M LPC Interface Controller'
    class      = bridge
    subclass   = PCI-ISA
atapci0@pci0:0:31:2:	class=0x010601 card=0x3a1b17aa chip=0x29298086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801IB/IR/IH (ICH9 Family) Mobile SATA AHCI Controller'
    class      = mass storage
    subclass   = SATA
bge0@pci0:1:0:0:	class=0x020000 card=0x3d7e17aa chip=0x171314e4 rev=0x02 hdr=0x00
    vendor     = 'Broadcom Corporation'
    device     = 'Broadcom NetLink (TM) Fast Ethernet (BCM5906m)'
    class      = network
    subclass   = ethernet
none0@pci0:2:0:0:	class=0x028000 card=0x12118086 chip=0x42378086 rev=0x00 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Intel (R) WiFi Link 5100 AGN (5100 AGN)'
    class      = network
fwohci0@pci0:6:3:0:	class=0x0c0010 card=0x3d9417aa chip=0x08321180 rev=0x05 hdr=0x00
    vendor     = 'Ricoh Company, Ltd.'
    device     = 'IEEE 1394 (4 pin firewire) chip) (30CF103C)'
    class      = serial bus
    subclass   = FireWire
none1@pci0:6:3:1:	class=0x080500 card=0x3d9017aa chip=0x08221180 rev=0x22 hdr=0x00
    vendor     = 'Ricoh Company, Ltd.'
    device     = 'SDA Standard Compliant SD Host Controller (R5C832, R5C843)'
    class      = base peripheral
    subclass   = SD host controller
none2@pci0:6:3:2:	class=0x088000 card=0x3d9217aa chip=0x05921180 rev=0x12 hdr=0x00
    vendor     = 'Ricoh Company, Ltd.'
    device     = 'Ricoh Memory Stick Host Controller (13871043)'
    class      = base peripheral
none3@pci0:6:3:3:	class=0x088000 card=0x3d9117aa chip=0x08521180 rev=0x12 hdr=0x00
    vendor     = 'Ricoh Company, Ltd.'
    device     = 'Ricoh xD-Picture Card Host Controller (01cf1028)'
    class      = base peripheral

dmesg after:

kldload if_iwn
ifconfig wlan0 create wlandev iwn0
ifconfig wlan0 up
ifconfig wlan0 scan​

Code:
pci0: driver added
pci1: driver added
pci2: driver added
found->	vendor=0x8086, dev=0x4237, revid=0x00
	domain=0, bus=2, slot=0, func=0
	class=02-80-00, hdrtype=0x00, mfdev=0
	cmdreg=0x0006, statreg=0x0010, cachelnsz=16 (dwords)
	lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
	intpin=a, irq=17
	powerspec 3  supports D0 D3  current D0
	MSI supports 1 message, 64 bit
pci0:2:0:0: reprobing on driver added
iwn0: <Intel(R) PRO/Wireless 5100> mem 0xd1400000-0xd1401fff irq 17 at device 0.0 on pci2
iwn0: Reserved 0x2000 bytes for rid 0x10 type 3 at 0xd1400000
iwn0: attempting to allocate 1 MSI vectors (1 supported)
msi: routing MSI IRQ 258 to local APIC 1 vector 53
iwn0: using IRQ 258 for MSI
iwn0: MIMO 1T2R, MoW, address 00:22:fa:9d:79:48
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 48Mbps 54Mbps
pci3: driver added
pci6: driver added
found->	vendor=0x1180, dev=0x0822, revid=0x22
	domain=0, bus=6, slot=3, func=1
	class=08-05-00, hdrtype=0x00, mfdev=1
	cmdreg=0x0006, statreg=0x0210, cachelnsz=16 (dwords)
	lattimer=0x20 (960 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
	intpin=b, irq=21
	powerspec 2  supports D0 D1 D2 D3  current D0
pci0:6:3:1: reprobing on driver added
found->	vendor=0x1180, dev=0x0592, revid=0x12
	domain=0, bus=6, slot=3, func=2
	class=08-80-00, hdrtype=0x00, mfdev=1
	cmdreg=0x0006, statreg=0x0210, cachelnsz=16 (dwords)
	lattimer=0x20 (960 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
	intpin=b, irq=21
	powerspec 2  supports D0 D1 D2 D3  current D0
pci0:6:3:2: reprobing on driver added
found->	vendor=0x1180, dev=0x0852, revid=0x12
	domain=0, bus=6, slot=3, func=3
	class=08-80-00, hdrtype=0x00, mfdev=1
	cmdreg=0x0006, statreg=0x0210, cachelnsz=16 (dwords)
	lattimer=0x20 (960 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
	intpin=b, irq=21
	powerspec 2  supports D0 D1 D2 D3  current D0
pci0:6:3:3: reprobing on driver added
wlan0: bpf attached
wlan0: bpf attached
wlan0: Ethernet address: 00:22:fa:9d:79:48
firmware: 'iwn5000fw' version 0: 353240 bytes loaded at 0xffffffff810380b0
interrupt reg1=8000000 reg2=1
interrupt reg1=8000000 reg2=1
interrupt reg1=8000000 reg2=1
interrupt reg1=8000000 reg2=1
interrupt reg1=80000001 reg2=40010000
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
interrupt reg1=80000000 reg2=0
iwn_notif_intr: qid 0 idx 0 flags 0 type 0(UNKNOWN INTR NOTIF/CMD) len 0
interrupt reg1=10000000 reg2=0
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
 
Hi all,
I did this commands:

Code:
$ cd /usr/src/syssvn co [url]http://svn.techwires.net/svn/projects/freebsd[/url]
$ cd freebsd/sys/modules/iwnfw
$ make
$ make install
$ cd ../iwn
$ env CFLAGS=-I$PWD/../../ make
$ make install

After that I built the kernel.

Code:
$ ifconfig wlan0 create wlandev iwn0
$ ifconfig wlan0 scan
$ ifconfig wlan0 bgscan
$ wpa_supplicant -Dbsd -iwlan0 -c/etc/wpa_supplicant.conf -ddt
I have FreeBSD 8.0-Release, x86, CPU IntelCoreDuo, Intel Pro 5300.

This is my wpa_supplicant.conf

Code:
ctrl_interface=/var/run/wpa_supplicant
#ap_scan=2

network={
       ssid="my"
       scan_ssid=1
       proto=WPA
       key_mgmt=WPA-PSK
       pairwise=TKIP
       psk=my_psk
}

Can you help me, pls?
 
jogi said:
Sorry, I didn't write my problem. :) Still automatic restart when I switch off my AP.

Switch to console, enable debugging
Code:
wlandebug 0xffffffff
sysctl dev.iwn.0.debug=0xffffffff

and post the output please.
 
bschmidt said:
Switch to console, enable debugging
Code:
wlandebug 0xffffffff
sysctl dev.iwn.0.debug=0xffffffff

and post the output please.

Thanks for reply, bschmidt. I lost all data on my hard disc drive and I had to change my partitions too, so I reinstalled OS and it's fully working now. I'm very sorry and thank you for your time.
 
Back
Top