Bug 42621

Summary: Dell Inspiron 5000e hangs when using Orinoco or Cisco WLAN cards
Product: Base System Reporter: hsu <hsu>
Component: kernAssignee: Warner Losh <imp>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.5-STABLE   
Hardware: Any   
OS: Any   

Description hsu 2002-09-10 05:50:04 UTC
When inserting originoco silver or cisco aironet 340 WLAN cards, the
computer hangs up after initializing the card:

kernel: pccard: card inserted, slot 0
syslog: pccardd[47]: Card "Lucent Technologies"("WaveLAN/IEEE") [Version 01.01] []
syslog: matched "Lucent Technologies" ("WaveLAN/IEEE") [(null)] [(null)]
syslog: pccardd[47]: Using I/O addr 0x240, size 64
syslog: pccardd[47]: Setting config reg at offs 0x3e0 to 0x41, Reset time = 50 ms
syslog: pccardd[47]: Assigning I/O window 0, start 0x240, size 0x40 flags 0x5
syslog: pccardd[47]: Assign wi0, io 0x240-0x27f, mem 0x0, 0 bytes, irq 11, flags 0
kernel: wi0 at port 0x240-0x27f irq 11 slot 0 on pccard0
kernel: wi0 802.11 address: 00:xx:xx:xx:xx:xx

And the system locks up at this point.

Assuming this could be irq problem, I tried removing all other irqs
except 10 from pccard.conf, but pccardd insist on using 11.  -i 10 on
command like does change the situation.

I have tried kernel options listed in wi manual page, with no help (other
than messing up the kernel more).

On windows, lucent (orinoco) card shows at I/O 1080-10BF, irq 10, and
works fine.  In windows IRQ 10 seems to be the only one actually
available, all the others are assigned to something.

3com 3C574 (ep) works fine, it also gets irq 11 assigned for it. 

I have used GENERIC kernel from 4.6.2, and -stable from 6th september
with my own kernel config and dell inspiron 5000e config I found in
FreeBSD laptop compatibility page, neither helped, same problem.

It cannot be wi only, as cisco aironet card uses an driver.

It cannot be for all pcmcia cards as 3c574 works.

How-To-Repeat: 
Plug in the card, it initializes and dies, hard reset is the only
option I have found.
Comment 1 Kris Kennaway freebsd_committer freebsd_triage 2003-07-13 10:54:57 UTC
Responsible Changed
From-To: freebsd-bugs->imp

Assign to wi maintainer
Comment 2 John Baldwin freebsd_committer freebsd_triage 2005-03-23 21:05:18 UTC
Does this problem still persist?  I have been running current with NEWCARD on 
a 5000e with wi(4) for years without any problems.

-- 
John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org
Comment 3 hsu 2005-03-24 14:41:38 UTC
John Baldwin wrote:
> Does this problem still persist?  I have been running current with NEWCARD on 
> a 5000e with wi(4) for years without any problems.

I do not have a 5000e any more.  I think I get a panic or hangup if I 
insert lucent or prism card into a compaq N620c, but I have to check 
this, as it was couple of months ago when I tested, and I'm currently 
using a card with atheros chipset.
Comment 4 John Baldwin freebsd_committer freebsd_triage 2005-03-24 15:46:29 UTC
On Thursday 24 March 2005 09:41 am, Heikki Suonsivu wrote:
> John Baldwin wrote:
> > Does this problem still persist?  I have been running current with
> > NEWCARD on a 5000e with wi(4) for years without any problems.
>
> I do not have a 5000e any more.  I think I get a panic or hangup if I
> insert lucent or prism card into a compaq N620c, but I have to check
> this, as it was couple of months ago when I tested, and I'm currently
> using a card with atheros chipset.

Is it ok to close the PR then?

-- 
John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org
Comment 5 heikki.suonsivu 2005-03-25 13:43:59 UTC
John Baldwin wrote:

>On Thursday 24 March 2005 09:41 am, Heikki Suonsivu wrote:
>  
>
>>John Baldwin wrote:
>>    
>>
>>>Does this problem still persist?  I have been running current with
>>>NEWCARD on a 5000e with wi(4) for years without any problems.
>>>      
>>>
>>I do not have a 5000e any more.  I think I get a panic or hangup if I
>>insert lucent or prism card into a compaq N620c, but I have to check
>>this, as it was couple of months ago when I tested, and I'm currently
>>using a card with atheros chipset.
>>    
>>
>
>Is it ok to close the PR then?
>
>  
>
It still does not seem to work, though it just fails, without lockup.

pcib2: device pccard0 requested decoded memory range 0x90000000-0x901fffff
pccard0: CIS version PC Card Standard 5.0
pccard0: CIS info: Lucent Technologies, WaveLAN/IEEE, Version 01.01,
pccard0: Manufacturer code 0x156, product 0x2
pccard0: function 0: network adapter, ccr addr 3e0 mask 1
pccard0: function 0, config table entry 1: I/O card; irq mask ffff; 
iomask 6, iospace 0-3f; io16 irqpulse irqlevel
pcib2: device pccard0 requested decoded memory range 0x90000000-0x901fffff
wi0: <Lucent Technologies WaveLAN/IEEE> at port 0x100-0x13f irq 10 
function 0 config 1 on pccard0
wi0: [MPSAFE]
wi0: timeout in wi_cmd 0x0000; event status 0x8000
wi0: timeout in wi_cmd 0x0000; event status 0x8000
wi0: timeout in wi_cmd 0x0000; event status 0x8000
: init failed
device_attach: wi0 attach returned 6
pcib2: device cardbus0 requested decoded memory range 0x90000000-0x901fffff
pcib2: device cardbus0 requested decoded memory range 0x90000000-0x901fffff
found-> vendor=0x168c, dev=0x0013, revid=0x01
        bus=3, slot=0, func=0
        class=02-00-00, hdrtype=0x00, mfdev=0
        cmdreg=0x0000, statreg=0x0290, cachelnsz=8 (dwords)
        lattimer=0xa8 (5040 ns), mingnt=0x0a (2500 ns), maxlat=0x1c 
(7000 ns)
        intpin=a, irq=10
        powerspec 2  supports D0 D3  current D0
ath0: <Atheros 5212> mem 0x90010000-0x9001ffff irq 10 at device 0.0 on 
cardbus0
pcib2: device ath0 requested decoded memory range 0x90010000-0x9001ffff
ath0: [MPSAFE]
ath0: mac 5.9 phy 4.3 5ghz radio 4.6
ath0: bpf attached
ath0: Ethernet address: 00:0f:3d:87:1c:df
ath0: bpf attached
ath0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
ath0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 
24Mbps 36Mbps 48Mbps 54Mbps
ath0: bpf attached
Comment 6 John Baldwin freebsd_committer freebsd_triage 2005-03-25 20:04:11 UTC
On Friday 25 March 2005 08:43 am, Heikki Suonsivu wrote:
> John Baldwin wrote:
> >On Thursday 24 March 2005 09:41 am, Heikki Suonsivu wrote:
> >>John Baldwin wrote:
> >>>Does this problem still persist?  I have been running current with
> >>>NEWCARD on a 5000e with wi(4) for years without any problems.
> >>
> >>I do not have a 5000e any more.  I think I get a panic or hangup if I
> >>insert lucent or prism card into a compaq N620c, but I have to check
> >>this, as it was couple of months ago when I tested, and I'm currently
> >>using a card with atheros chipset.
> >
> >Is it ok to close the PR then?
>
> It still does not seem to work, though it just fails, without lockup.
>
> pcib2: device pccard0 requested decoded memory range 0x90000000-0x901fffff
> pccard0: CIS version PC Card Standard 5.0
> pccard0: CIS info: Lucent Technologies, WaveLAN/IEEE, Version 01.01,
> pccard0: Manufacturer code 0x156, product 0x2
> pccard0: function 0: network adapter, ccr addr 3e0 mask 1
> pccard0: function 0, config table entry 1: I/O card; irq mask ffff;
> iomask 6, iospace 0-3f; io16 irqpulse irqlevel
> pcib2: device pccard0 requested decoded memory range 0x90000000-0x901fffff
> wi0: <Lucent Technologies WaveLAN/IEEE> at port 0x100-0x13f irq 10
> function 0 config 1 on pccard0
> wi0: [MPSAFE]
> wi0: timeout in wi_cmd 0x0000; event status 0x8000
> wi0: timeout in wi_cmd 0x0000; event status 0x8000
> wi0: timeout in wi_cmd 0x0000; event status 0x8000
>
> : init failed
>
> device_attach: wi0 attach returned 6

Hmm, maybe Warner can look at this.  It looks like it is getting close though, 
since if the I/O ports weren't mapped it would return 0xffff rather than 
0x8000.

-- 
John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org
Comment 7 M. Warner Losh 2005-03-25 20:23:04 UTC
In message: <200503251504.11612.jhb@FreeBSD.org>
            John Baldwin <jhb@FreeBSD.org> writes:
: On Friday 25 March 2005 08:43 am, Heikki Suonsivu wrote:
: > John Baldwin wrote:
: > >On Thursday 24 March 2005 09:41 am, Heikki Suonsivu wrote:
: > >>John Baldwin wrote:
: > >>>Does this problem still persist?  I have been running current with
: > >>>NEWCARD on a 5000e with wi(4) for years without any problems.
: > >>
: > >>I do not have a 5000e any more.  I think I get a panic or hangup if I
: > >>insert lucent or prism card into a compaq N620c, but I have to check
: > >>this, as it was couple of months ago when I tested, and I'm currently
: > >>using a card with atheros chipset.
: > >
: > >Is it ok to close the PR then?
: >
: > It still does not seem to work, though it just fails, without lockup.
: >
: > pcib2: device pccard0 requested decoded memory range 0x90000000-0x901fffff
: > pccard0: CIS version PC Card Standard 5.0
: > pccard0: CIS info: Lucent Technologies, WaveLAN/IEEE, Version 01.01,
: > pccard0: Manufacturer code 0x156, product 0x2
: > pccard0: function 0: network adapter, ccr addr 3e0 mask 1
: > pccard0: function 0, config table entry 1: I/O card; irq mask ffff;
: > iomask 6, iospace 0-3f; io16 irqpulse irqlevel
: > pcib2: device pccard0 requested decoded memory range 0x90000000-0x901fffff
: > wi0: <Lucent Technologies WaveLAN/IEEE> at port 0x100-0x13f irq 10
: > function 0 config 1 on pccard0
: > wi0: [MPSAFE]
: > wi0: timeout in wi_cmd 0x0000; event status 0x8000
: > wi0: timeout in wi_cmd 0x0000; event status 0x8000
: > wi0: timeout in wi_cmd 0x0000; event status 0x8000
: >
: > : init failed
: >
: > device_attach: wi0 attach returned 6
: 
: Hmm, maybe Warner can look at this.  It looks like it is getting close though, 
: since if the I/O ports weren't mapped it would return 0xffff rather than 
: 0x8000.

The card isn't coming up, for reasons unknown. :-(

Warner
Comment 8 John Baldwin freebsd_committer freebsd_triage 2005-03-25 20:51:17 UTC
On Friday 25 March 2005 03:23 pm, M. Warner Losh wrote:
> In message: <200503251504.11612.jhb@FreeBSD.org>
>
>             John Baldwin <jhb@FreeBSD.org> writes:
> : On Friday 25 March 2005 08:43 am, Heikki Suonsivu wrote:
> : > John Baldwin wrote:
> : > >On Thursday 24 March 2005 09:41 am, Heikki Suonsivu wrote:
> : > >>John Baldwin wrote:
> : > >>>Does this problem still persist?  I have been running current with
> : > >>>NEWCARD on a 5000e with wi(4) for years without any problems.
> : > >>
> : > >>I do not have a 5000e any more.  I think I get a panic or hangup if I
> : > >>insert lucent or prism card into a compaq N620c, but I have to check
> : > >>this, as it was couple of months ago when I tested, and I'm currently
> : > >>using a card with atheros chipset.
> : > >
> : > >Is it ok to close the PR then?
> : >
> : > It still does not seem to work, though it just fails, without lockup.
> : >
> : > pcib2: device pccard0 requested decoded memory range
> : > 0x90000000-0x901fffff pccard0: CIS version PC Card Standard 5.0
> : > pccard0: CIS info: Lucent Technologies, WaveLAN/IEEE, Version 01.01,
> : > pccard0: Manufacturer code 0x156, product 0x2
> : > pccard0: function 0: network adapter, ccr addr 3e0 mask 1
> : > pccard0: function 0, config table entry 1: I/O card; irq mask ffff;
> : > iomask 6, iospace 0-3f; io16 irqpulse irqlevel
> : > pcib2: device pccard0 requested decoded memory range
> : > 0x90000000-0x901fffff wi0: <Lucent Technologies WaveLAN/IEEE> at port
> : > 0x100-0x13f irq 10 function 0 config 1 on pccard0
> : > wi0: [MPSAFE]
> : > wi0: timeout in wi_cmd 0x0000; event status 0x8000
> : > wi0: timeout in wi_cmd 0x0000; event status 0x8000
> : > wi0: timeout in wi_cmd 0x0000; event status 0x8000
> : >
> : > : init failed
> : >
> : > device_attach: wi0 attach returned 6
> :
> : Hmm, maybe Warner can look at this.  It looks like it is getting close
> : though, since if the I/O ports weren't mapped it would return 0xffff
> : rather than 0x8000.
>
> The card isn't coming up, for reasons unknown. :-(

Does this card work ok in other laptops?

-- 
John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org
Comment 9 M. Warner Losh 2005-03-25 21:32:54 UTC
In message: <200503251551.17741.jhb@FreeBSD.org>
            John Baldwin <jhb@FreeBSD.org> writes:
: On Friday 25 March 2005 03:23 pm, M. Warner Losh wrote:
: > In message: <200503251504.11612.jhb@FreeBSD.org>
: >
: >             John Baldwin <jhb@FreeBSD.org> writes:
: > : On Friday 25 March 2005 08:43 am, Heikki Suonsivu wrote:
: > : > John Baldwin wrote:
: > : > >On Thursday 24 March 2005 09:41 am, Heikki Suonsivu wrote:
: > : > >>John Baldwin wrote:
: > : > >>>Does this problem still persist?  I have been running current with
: > : > >>>NEWCARD on a 5000e with wi(4) for years without any problems.
: > : > >>
: > : > >>I do not have a 5000e any more.  I think I get a panic or hangup if I
: > : > >>insert lucent or prism card into a compaq N620c, but I have to check
: > : > >>this, as it was couple of months ago when I tested, and I'm currently
: > : > >>using a card with atheros chipset.
: > : > >
: > : > >Is it ok to close the PR then?
: > : >
: > : > It still does not seem to work, though it just fails, without lockup.
: > : >
: > : > pcib2: device pccard0 requested decoded memory range
: > : > 0x90000000-0x901fffff pccard0: CIS version PC Card Standard 5.0
: > : > pccard0: CIS info: Lucent Technologies, WaveLAN/IEEE, Version 01.01,
: > : > pccard0: Manufacturer code 0x156, product 0x2
: > : > pccard0: function 0: network adapter, ccr addr 3e0 mask 1
: > : > pccard0: function 0, config table entry 1: I/O card; irq mask ffff;
: > : > iomask 6, iospace 0-3f; io16 irqpulse irqlevel
: > : > pcib2: device pccard0 requested decoded memory range
: > : > 0x90000000-0x901fffff wi0: <Lucent Technologies WaveLAN/IEEE> at port
: > : > 0x100-0x13f irq 10 function 0 config 1 on pccard0
: > : > wi0: [MPSAFE]
: > : > wi0: timeout in wi_cmd 0x0000; event status 0x8000
: > : > wi0: timeout in wi_cmd 0x0000; event status 0x8000
: > : > wi0: timeout in wi_cmd 0x0000; event status 0x8000
: > : >
: > : > : init failed
: > : >
: > : > device_attach: wi0 attach returned 6
: > :
: > : Hmm, maybe Warner can look at this.  It looks like it is getting close
: > : though, since if the I/O ports weren't mapped it would return 0xffff
: > : rather than 0x8000.
: >
: > The card isn't coming up, for reasons unknown. :-(
: 
: Does this card work ok in other laptops?

Yes.  At least other similar cards do.

Warner
Comment 10 John Baldwin freebsd_committer freebsd_triage 2005-03-28 20:16:42 UTC
On Friday 25 March 2005 04:32 pm, M. Warner Losh wrote:
> In message: <200503251551.17741.jhb@FreeBSD.org>
>
>             John Baldwin <jhb@FreeBSD.org> writes:
> : On Friday 25 March 2005 03:23 pm, M. Warner Losh wrote:
> : > In message: <200503251504.11612.jhb@FreeBSD.org>
> : >
> : >             John Baldwin <jhb@FreeBSD.org> writes:
> : > : On Friday 25 March 2005 08:43 am, Heikki Suonsivu wrote:
> : > : > John Baldwin wrote:
> : > : > >On Thursday 24 March 2005 09:41 am, Heikki Suonsivu wrote:
> : > : > >>John Baldwin wrote:
> : > : > >>>Does this problem still persist?  I have been running current
> : > : > >>> with NEWCARD on a 5000e with wi(4) for years without any
> : > : > >>> problems.
> : > : > >>
> : > : > >>I do not have a 5000e any more.  I think I get a panic or hangup
> : > : > >> if I insert lucent or prism card into a compaq N620c, but I have
> : > : > >> to check this, as it was couple of months ago when I tested, and
> : > : > >> I'm currently using a card with atheros chipset.
> : > : > >
> : > : > >Is it ok to close the PR then?
> : > : >
> : > : > It still does not seem to work, though it just fails, without
> : > : > lockup.
> : > : >
> : > : > pcib2: device pccard0 requested decoded memory range
> : > : > 0x90000000-0x901fffff pccard0: CIS version PC Card Standard 5.0
> : > : > pccard0: CIS info: Lucent Technologies, WaveLAN/IEEE, Version
> : > : > 01.01, pccard0: Manufacturer code 0x156, product 0x2
> : > : > pccard0: function 0: network adapter, ccr addr 3e0 mask 1
> : > : > pccard0: function 0, config table entry 1: I/O card; irq mask ffff;
> : > : > iomask 6, iospace 0-3f; io16 irqpulse irqlevel
> : > : > pcib2: device pccard0 requested decoded memory range
> : > : > 0x90000000-0x901fffff wi0: <Lucent Technologies WaveLAN/IEEE> at
> : > : > port 0x100-0x13f irq 10 function 0 config 1 on pccard0
> : > : > wi0: [MPSAFE]
> : > : > wi0: timeout in wi_cmd 0x0000; event status 0x8000
> : > : > wi0: timeout in wi_cmd 0x0000; event status 0x8000
> : > : > wi0: timeout in wi_cmd 0x0000; event status 0x8000
> : > : >
> : > : > : init failed
> : > : >
> : > : > device_attach: wi0 attach returned 6
> : > :
> : > : Hmm, maybe Warner can look at this.  It looks like it is getting
> : > : close though, since if the I/O ports weren't mapped it would return
> : > : 0xffff rather than 0x8000.
> : >
> : > The card isn't coming up, for reasons unknown. :-(
> :
> : Does this card work ok in other laptops?
>
> Yes.  At least other similar cards do.

I mean this physical card.  I have two wi(4) cards that both work fine in my 
5000e.  I'm curious if this physical card has a hardware problem of some 
sort.

-- 
John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org
Comment 11 Warner Losh freebsd_committer freebsd_triage 2011-05-13 21:06:22 UTC
State Changed
From-To: open->closed

Too old.  So many things have changed tht this likely is no longer 
relevant.  Refile if it is.