wi0 (pcmcia0): system freeze after pulling card out

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

wi0 (pcmcia0): system freeze after pulling card out

Vladas Urbonas
Hi all,

In hostap mode, machine freezes after pulling card out.
Keyboard still reacts in Caps or NumLock but terminal
does not accept any input; the following gets repeated:

wi0: wi_mgnt_xmit: xmit failed
wi0: init failed

Besides that, card works well (tested only hostap mode).
Also, there is no diff if card gets inserted before boot or
into running system - JustWorks(TM):

How to enable WIDEBUG in if_wi.c (or where else?) ?
Simply placing #define WIDEBUG resulted in compile errs.

wi0 at pcmcia0 function 0 " , IEEE 802.11 Wireless LAN/PC Card, " port 0xc000/64
wi0: PRISM2 HWB3163 rev.A (0x8002), Firmware 0.3.0 (primary), 0.8.3
(station), address 00:60:b3:6f:73:e2

inet 192.168.1.1 255.255.255.0 NONE media autoselect \
        mediaopt hostap nwid my_net2 chan 11

lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33208
        groups: lo
        inet 127.0.0.1 netmask 0xff000000
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
rl0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:00:e2:56:a4:34
        media: Ethernet autoselect
        status: no carrier
rl1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:0a:79:05:fe:1b
        media: Ethernet autoselect
        status: no carrier
enc0: flags=0<> mtu 1536
wi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:60:b3:6f:73:e2
        media: IEEE802.11 autoselect hostap (DS2)
        status: active
        ieee80211: nwid my_net2 chan 11 bssid 00:60:b3:6f:73:e2 8dBm (auto)
        inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255
        inet6 fe80::260:b3ff:fe6f:73e2%wi0 prefixlen 64 scopeid 0x5


OpenBSD 4.1-current (GENERIC) #332: Sat Jul 21 14:17:12 MDT 2007
    [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Duron(tm) processor ("AuthenticAMD" 686-class, 64KB L2 cache) 901 MHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
real mem  = 116944896 (111MB)
avail mem = 105193472 (100MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 10/22/01, BIOS32 rev. 0 @
0xfa9b0, SMBIOS rev. 2.3 @ 0xf0000 (46 entries)
bios0: FUJITSU FMVCE8905
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 70102 dobusy 1 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf0000/0xdf94
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf00/144 (7 entries)
pcibios0: PCI Exclusive IRQs: 7 10 11
pcibios0: PCI Interrupt Router at 000:07:0 ("VIA VT82C596A ISA" rev 0x00)
pcibios0: PCI bus #3 is the last bus
bios0: ROM list: 0xc0000/0xc000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "VIA VT8363 Host" rev 0x81
ppb0 at pci0 dev 1 function 0 "VIA VT8363 AGP" rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "S3 ProSavage KM133" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 7 function 0 "VIA VT82C686 ISA" rev 0x22
pciide0 at pci0 dev 7 function 1 "VIA VT82C571 IDE" rev 0x10: ATA66,
channel 0 configured to compatibility, channel 1 configured to
compatibility
wd0 at pciide0 channel 0 drive 0: <FUJITSU MPC3064AT>
wd0: 16-sector PIO, LBA, 6187MB, 12672450 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 disabled (no drives)
uhci0 at pci0 dev 7 function 2 "VIA VT83C572 USB" rev 0x10: irq 10
uhci1 at pci0 dev 7 function 3 "VIA VT83C572 USB" rev 0x10: irq 10
viaenv0 at pci0 dev 7 function 4 "VIA VT82C686 SMBus" rev 0x30: HWM
disabled: 24-bit timer at 3579545Hz
auvia0 at pci0 dev 7 function 5 "VIA VT82C686 AC97" rev 0x20: irq 11
ac97: codec id 0x594d4800 (Yamaha YMF743-S)
ac97: codec features 18 bit DAC, No 3D Stereo
audio0 at auvia0
"VIA VT82C686 Modem" rev 0x20 at pci0 dev 7 function 6 not configured
"AT&T/Lucent FW322 1394" rev 0x04 at pci0 dev 11 function 0 not configured
rl0 at pci0 dev 12 function 0 "Realtek 8139" rev 0x10: irq 10, address
00:00:e2:56:a4:34
rlphy0 at rl0 phy 0: RTL internal PHY
cbb0 at pci0 dev 14 function 0 "Ricoh 5C476 CardBus" rev 0x80: irq 11
cbb1 at pci0 dev 14 function 1 "Ricoh 5C476 CardBus" rev 0x80: irq 10
rl1 at pci0 dev 16 function 0 "Realtek 8139" rev 0x10: irq 11, address
00:0a:79:05:fe:1b
rlphy1 at rl1 phy 0: RTL internal PHY
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
usb0 at uhci0: USB revision 1.0
uhub0 at usb0: VIA UHCI root hub, rev 1.00/1.00, addr 1
usb1 at uhci1: USB revision 1.0
uhub1 at usb1: VIA UHCI root hub, rev 1.00/1.00, addr 1
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 2 device 0 cacheline 0x0, lattimer 0x20
pcmcia0 at cardslot0
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 3 device 0 cacheline 0x0, lattimer 0x20
pcmcia1 at cardslot1
biomask fffd netmask fffd ttymask ffff
pctr: user-level cycle counter enabled
mtrr: Pentium Pro MTRR support
wi0 at pcmcia0 function 0 " , IEEE 802.11 Wireless LAN/PC Card, " port 0xc000/64
wi0: PRISM2 HWB3163 rev.A (0x8002), Firmware 0.3.0 (primary), 0.8.3
(station), address 00:60:b3:6f:73:e2
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a swap on wd0b dump on wd0b


vladas

Reply | Threaded
Open this post in threaded view
|

Re: wi0 (pcmcia0): system freeze after pulling card out

Johnny Vestergaard
On Jul 25, 2007, at 12:13 , vladas wrote:

> In hostap mode, machine freezes after pulling card out.
> Keyboard still reacts in Caps or NumLock but terminal
> does not accept any input; the following gets repeated:

A while ago i had the same problem(kinda), the "solution" was to  
issue a 'ifconfig wi0 down' before changing the card's configuration,
if i remember correctly i had to do the same before i pulled the card  
out.

/jkv

Reply | Threaded
Open this post in threaded view
|

Re: wi0 (pcmcia0): system freeze after pulling card out

Nick Guenther
On 7/24/07, jkv <[hidden email]> wrote:

> On Jul 25, 2007, at 12:13 , vladas wrote:
>
> > In hostap mode, machine freezes after pulling card out.
> > Keyboard still reacts in Caps or NumLock but terminal
> > does not accept any input; the following gets repeated:
>
> A while ago i had the same problem(kinda), the "solution" was to
> issue a 'ifconfig wi0 down' before changing the card's configuration,
> if i remember correctly i had to do the same before i pulled the card
> out.

Yeah... wireless is flaaaakey. It's the only thing that routinely
crashes my zaurus, and today my laptop paniced when I plugged it's
ath(4) in and tried to use it too fast.

-Nick

Reply | Threaded
Open this post in threaded view
|

Re: wi0 (pcmcia0): system freeze after pulling card out

Travers Buda-2
In reply to this post by Vladas Urbonas
* vladas <[hidden email]> [2007-07-25 07:13:18]:

> Hi all,
>
> In hostap mode, machine freezes after pulling card out.
> Keyboard still reacts in Caps or NumLock but terminal
> does not accept any input; the following gets repeated:
>
> wi0: wi_mgnt_xmit: xmit failed
> wi0: init failed
>

Yeah this sort of thing happens a lot with that carbus, pcmcia
stuff.  Not much you can do about it.  I'd suspect that your card
is actually talking straight to the PCI bus or something along those
lines...  so yanking it would be like yanking any other PCI card...
x86-esque sucks.  (And here I am on amd64...  starting to understand
Miod...  maybe it's time to hook up the station 20.) Whatever the
real reason, it's a design flaw in the bus, perhaps in the card
too, maybe both.

--
Travers Buda

Reply | Threaded
Open this post in threaded view
|

Re: wi0 (pcmcia0): system freeze after pulling card out

Vladas Urbonas
In reply to this post by Johnny Vestergaard
On 7/25/07, jkv wrote:
> On Jul 25, 2007, at 12:13 , vladas wrote:

> A while ago i had the same problem(kinda), the "solution" was to
> issue a 'ifconfig wi0 down' before changing the card's configuration,
> if i remember correctly i had to do the same before i pulled the card
> out.

jkv,

Thank you, it helped.



On 7/25/07, Travers Buda wrote:

Travers,

> Yeah this sort of thing happens a lot with that carbus, pcmcia
> stuff.  Not much you can do about it.  I'd suspect that your card
> is actually talking straight to the PCI bus or something along those
> lines...  so yanking it would be like yanking any other PCI card...

Sorry I did not mention in the first place:
hw.vendor=FUJITSU
hw.product=FMVCE8905

Thank you for the explanation.


vladas

Reply | Threaded
Open this post in threaded view
|

Re: wi0 (pcmcia0): system freeze after pulling card out

Johnny Vestergaard
On Jul 25, 2007, at 2:05 , vladas wrote:



>> A while ago i had the same problem(kinda), the "solution" was to
>> issue a 'ifconfig wi0 down' before changing the card's configuration,
>> if i remember correctly i had to do the same before i pulled the card
>> out.
>>
>>
>
> jkv,
>
> Thank you, it helped.
>
>

Your welcome.

I remember i found out why it behaved like this, but i cant remember  
sorry.

/jkv