Date: Thu, 17 Jan 2008 21:08:03 +0100 From: Frank Staals <frankstaals@gmx.net> To: Benjamin Close <Benjamin.Close@clearchain.com> Cc: freebsd-mobile@freebsd.org Subject: Re: wpi: "Radio transmitter is turned off" Message-ID: <478FB5A3.9010102@gmx.net> In-Reply-To: <478EA323.9040708@clearchain.com> References: <20080116144801.cbc5640d.wmoran@potentialtech.com> <478E6EA3.9010504@uni-paderborn.de> <478E7A2E.7050403@clearchain.com> <478E9F88.50209@gmx.net> <478EA323.9040708@clearchain.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Benjamin Close wrote: > Frank Staals wrote: >> Benjamin Close wrote: >> <snip> >> Hmm I was planning on starting a new thread on it but my problem is >> somewhat related: My laptop (Dell Latitude D630 running a 7.0 build >> from a week ago ) completely locks up when trying to configure my >> wlan card (which is using wpi ) when the hardware switch is turned >> off. I'll do some tests if I can find out at what specific point it >> goes wrong. Any other people having trouble with this ? >> >> >> Regards, >> > Can you please enable debug on wpi and send me your logs. > > sysctl debug.wpi=-2 > then: ifconfig wpi0 up > > Cheers, > Benjamin > _______________________________________________ > freebsd-mobile@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-mobile > To unsubscribe, send any mail to "freebsd-mobile-unsubscribe@freebsd.org" > Hmm the following seems to be the case. If I disable wlan with the hardware-switch and do a 'ifconfig wpi0 up' I get the message that the wpi0 adapter is turned off (full debug output below). However by default I use a small script to setup my wlan connection which immediately does 'ifconfig wpi0 <ip> ssid <ssid>' which causes a system crash. frank@Rena# uname -a FreeBSD Rena.FStaals.net 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #0: Mon Jan 7 12:28:45 CET 2008 frank@Rena.FStaals.net:/usr/obj/usr/src/sys/RENAKERNEL i386 Debug output in /var/log/messages when doing a "ifconfig wpi0 up" with switch off ( with debug.wpi=-2 ) Jan 17 20:49:53 Rena kernel: Disabling Firmware execution Jan 17 20:49:53 Rena kernel: NEWSTATE:INIT Jan 17 20:49:53 Rena kernel: Resetting the card - clearing any uploaded firmware Jan 17 20:49:53 Rena kernel: Attempting Loading Firmware from wpi_fw module Jan 17 20:49:53 Rena kernel: Firmware Version: Major 2, Minor 14, Driver 4, Jan 17 20:49:53 Rena kernel: runtime (text: 80524, data: 32768) init (text: 2668, data 32768) boot (text 900) Jan 17 20:49:53 Rena kernel: rtext 0xf802020 Jan 17 20:49:53 Rena kernel: rdata 0x0 Jan 17 20:49:53 Rena kernel: itext 0xf802020 Jan 17 20:49:53 Rena kernel: idata 0x0 Jan 17 20:49:53 Rena kernel: btext 0xf802020 Jan 17 20:49:53 Rena kernel: Loading microcode size 0x384 Jan 17 20:49:53 Rena kernel: firmware status=0xffff0000, val=0x40400000, result=0x40400000 Jan 17 20:49:53 Rena kernel: Status Match! - ntries = 0 Jan 17 20:49:53 Rena kernel: notify qid=80 idx=0 flags=0 type=1 len=36 Jan 17 20:49:53 Rena kernel: microcode alive notification version 10e02 alive 1 Jan 17 20:49:53 Rena kernel: notify qid=80 idx=0 flags=0 type=1 len=36 Jan 17 20:49:53 Rena kernel: microcode alive notification version 10e02 alive 1 Jan 17 20:49:53 Rena kernel: Firmware loaded to driver successfully Jan 17 20:49:53 Rena kernel: wpi0: Radio Transmitter is switched off Jan 17 20:49:53 Rena kernel: notify qid=80 idx=1 flags=0 type=161 len=8 Jan 17 20:49:53 Rena kernel: state changed to 1 Jan 17 20:49:53 Rena kernel: wpi0: Radio transmitter is switched off Relevant parts of my wlan-setup script: ================ wlannic=wpi0 ###################### general stuff ################# route flush ifconfig ${lannic} 192.168.200.2 ################ stuff for at home ################### if [ "$1" = "" ] ; then echo "Connecting to SSID \"SSID\"" ifconfig ${wlannic} 192.168.5.5 ssid SSID route add default 192.168.5.1 ifconfig ${wlannic} up testcon=0 fi ==================================== Output when running my script with switch off (debug.wpi=-2) after a reboot =============================== wpi0: Radio Transmitter is switched off kernel trap 12 with interrupts disabled Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual adress = 0x14 fault code = supervisor read, page not present instruction pointer = 0x20:0xc06e078e stack pointer = 0x28:0xe52e0b7c frame pointer = 0x28:0xe52e0b9c code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = resume, IOPL = 0 current process = 33 (irq17: wpi0 bge0+) [thread pid33 tid 100037 ] Stopped at propagate_priority+0x1ae: movl 0x14(%ebx),%eax db> db>bt Tracing pid 33 tid 100037 td 0xc4dc4c60 propagate_priority(c4dc4c60,c4cc1730,c0958b3b,2d8,e52e0c04,...) at propagate_priority+0x1ae turnstile_wait(c4cc1730,c52a5840,0,c4e4edc0,c4e49000,...) at turnstile_wait+0x2d8 _mtx_lock_sleep(c4e4a418,c4dc4c60,0,c0b69226,771,...) at _mtx_lock_sleep+0x10e _mtx_lock_flags(c4e4a18,0,c0b69226,771,1aee9e8,...) at_mtx_lock_flags+0x42 wpi_intr(c4e49000,0,c0953cf4,46b,0,...) at wpi_intr+0x22a ithread_loop(c4e5d610,e52e0d38,0,0,0,000) at ithread_loop+0x1ab fork_exit(c061690,c4e5d610,e52e0d38) at fork exit+0x99 fork_trampoline() at fork_trampoline+0x8 -- trap0, eip = 0, esp = 0xe52e0d70, ebp = 0 --- db> ============================= When I added a bit of debug to my script itself it seemed as if the kernel-crash occurs when doing the "ifconfig wpi0 192.168.5.5 ssid SSID", the script doesn't reach the part where it brings up the interface. Hope this information helps Regards, -- -Frank Staals
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?478FB5A3.9010102>