2003-02-21 22:08:54

by Joshua Kwan

[permalink] [raw]
Subject: 2.5 weirdness

Hi,

I was wondering if any people might know what is going on here. This
happens in 2.5.62, using CardBus pcmcia support within my kernel and
the latest pcmcia-cs snapshot.

Just to clarify, I have only one wifi card - wlan0.

cardmgr[99]: starting, version is 3.2.4
cs: memory probe 0xa0000000-0xa0ffffff: clean.
cardmgr[99]: socket 0: U.S. Robotics IEEE 802.11b PC-CARD
cardmgr[99]: executing: 'modprobe hostap_crypt'
cardmgr[99]: executing: 'modprobe hostap'
cardmgr[99]: executing: 'modprobe hostap_cs'
hostap_cs: 0.0.0 CVS (Jouni Malinen <[email protected]>)
hostap_cs: index 0x01: Vcc 5.0, irq 3, io 0x0100-0x013f
hostap_cs: Registered netdevice wlan0
wlan0: NIC: id=0x8002 v1.0.0
wlan0: PRI: id=0x15 v0.3.0
wlan0: STA: id=0x1f v1.4.9
cardmgr[99]: executing: './network start wlan0'
Setting up IP spoofing protection: rp_filter.
Configuring network interfaces... spurious 8259A interrupt: IRQ7.
cardmgr[99]: + Debian network setup
done.
cardmgr[99]: + /sbin/pump -i wlan0
cardmgr[99]: + /sbin/ifup wlan0
cardmgr[99]: + /sbin/ifup: interface wlan0 already configured
cardmgr[99]: socket 1: U.S. Robotics IEEE 802.11b PC-CARD
wlan0: Interrupt, but SWSUPPORT0 does not match: FFFF != 8A32 - card removed?
hostap_cs: index 0x01: Vcc 5.0, irq 5, io 0x0180-0x01bf
hostap_cs: wlan0: resetting card
wlan0: hfa384x_cmd - timeout - reg=0xffff
hostap_cs: first command failed - is the card compatible?
hostap_cs: Initialization failed
hostap_cs: Registered netdevice wlan1
wlan1: NIC: id=0x8002 v1.0.0
wlan1: PRI: id=0x15 v0.3.0
wlan1: STA: id=0x1f v1.4.9
cardmgr[99]: executing: './network start wlan1'
cardmgr[99]: + Debian network setup
cardmgr[99]: + /sbin/pump -i wlan1

It worked well in 2.5.61, I think. What changed? (Actually, in 2.5.60, it
had a different kind of problem, it would recognize the card as a memory_cs
device, but that was fixed.)

Regards
Josh
--
New PGP public key: 0x27AFC3EE


Attachments:
(No filename) (1.86 kB)
(No filename) (189.00 B)
Download all attachments

2003-02-21 23:14:57

by David Hinds

[permalink] [raw]
Subject: Re: 2.5 weirdness

On Fri, Feb 21, 2003 at 02:18:14PM -0800, Joshua Kwan wrote:
>
> I was wondering if any people might know what is going on here. This
> happens in 2.5.62, using CardBus pcmcia support within my kernel and
> the latest pcmcia-cs snapshot.
>
> Just to clarify, I have only one wifi card - wlan0.

It appears that someone broke the code for keeping track of sockets,
since the PCMCIA drivers are telling cardmgr that the same card is
inserted twice.

-- Dave

2003-02-23 19:32:24

by John Weber

[permalink] [raw]
Subject: Re: 2.5 weirdness

David Hinds wrote:
> On Fri, Feb 21, 2003 at 02:18:14PM -0800, Joshua Kwan wrote:
>
>>I was wondering if any people might know what is going on here. This
>>happens in 2.5.62, using CardBus pcmcia support within my kernel and
>>the latest pcmcia-cs snapshot.
>>
>>Just to clarify, I have only one wifi card - wlan0.
>
>
> It appears that someone broke the code for keeping track of sockets,
> since the PCMCIA drivers are telling cardmgr that the same card is
> inserted twice.
>
> -- Dave

The problem is a little stranger than that. On my system, cardmgr only
"believes" a card is inserted twice if a card is in the pccard slot when
cardmgr is intially run. Otherwise, cardmgr and the drivers appear to
function correctly. Josh, can you try this?

I posted a message about this earlier, but I didn't receive a response
so I still don't understand what's going on.

Subject: PCMCIA: cardmgr setting up two interfaces for one card?

If you need any more information, please let me know.

(o- j o h n e w e b e r
//\ [email protected]
v_/_ aim/yahoo/msn: worldwidwebers

2003-02-23 19:43:05

by Joshua Kwan

[permalink] [raw]
Subject: Re: 2.5 weirdness

On Sun, Feb 23, 2003 at 02:42:41PM -0500, John Weber wrote:
> The problem is a little stranger than that. On my system, cardmgr only
> "believes" a card is inserted twice if a card is in the pccard slot when
> cardmgr is intially run. Otherwise, cardmgr and the drivers appear to
> function correctly. Josh, can you try this?

This was true.

Dominik's patch which is attached has fixed that for me, at least. This
applies with some offset to 2.5.62, but it works.

Regards
Josh

--
New PGP public key: 0x27AFC3EE


Attachments:
(No filename) (0.00 B)
(No filename) (189.00 B)
Download all attachments

2003-02-23 19:50:11

by Russell King

[permalink] [raw]
Subject: Re: 2.5 weirdness

On Sun, Feb 23, 2003 at 11:52:00AM -0800, Joshua Kwan wrote:
> On Sun, Feb 23, 2003 at 02:42:41PM -0500, John Weber wrote:
> > The problem is a little stranger than that. On my system, cardmgr only
> > "believes" a card is inserted twice if a card is in the pccard slot when
> > cardmgr is intially run. Otherwise, cardmgr and the drivers appear to
> > function correctly. Josh, can you try this?
>
> This was true.
>
> Dominik's patch which is attached has fixed that for me, at least. This
> applies with some offset to 2.5.62, but it works.

This is his old patch which has issues with cardbus cards. If you use
this, you also need to add the patch Dominik just posted:

Date: Sun, 23 Feb 2003 20:52:07 +0100
From: Dominik Brodowski <[email protected]>
Subject: [PATCH] pcmcia: cs.c bugfix (Russell King)
Message-ID: <[email protected]>

Or just use his second patch in the same thread this patch came from.

Date: Sun, 23 Feb 2003 13:15:53 +0100
From: Dominik Brodowski <[email protected]>
Subject: [UPDATED PATCH] pcmcia: add socket_offset for multiple pci_sockets,
correct suspend&resume
Message-ID: <[email protected]>

--
Russell King ([email protected]) The developer of ARM Linux
http://www.arm.linux.org.uk/personal/aboutme.html