Skip to contentSkip to conversation

2.5.71 go boom

DISCUSSION Jaakko Niemi 4 participants 15 messages Jun 15, 2003 – Jun 25, 2003 Pcmcia

lore
Share & tools
lore
#0 lore raw

Hi,

I seem to be able to reproduce crash with 2.7.70-bk and .71. First, I tried getting dlink dwl-650 wlan card up on my thinkpad 570e, but orinoco_cs does not seem to want to even look at it. (any ideas what's the deal with that, btw?)

Ok, next I plugged in a edimax ep-4103dl nic, which is 8139c based cardbus card. 8139too claims that chip is not responding, so I pulled the card and re-inserted. 8139too finds it and looks happy. I brought up the interface and tried pinging the gw, and nothing goes through, so I pulled the card again and reinserted and got the first oops into log. Nothing after that except the rest 4 oopses after I ran shutdown.

log, log ran through ksymoops and config attached, please cc me as I'm not on the list.

               --j
#1 lore raw
Quoted 4 lines · Jaakko Niemi

I seem to be able to reproduce crash with 2.7.70-bk and .71. First, I tried getting dlink dwl-650 wlan card up on my thinkpad 570e, but orinoco_cs does not seem to want to even look at it. (any ideas what's the deal with that, btw?)

What happens if you plug in your cardbus card before the dlink wlan card? If that doesn't work, please repeat your procedure to cause the oops.

In either case, could you send the output of lspci -vv at the following points:

- directly after boot
- after you insert the cardbus card
- after you remove it
- after you re-insert (and get the oops)

Thanks.

Signature · 2 lines
Russell King ([email protected])                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html
#2 lore raw
Quoted 7 lines · Russell King
Quoted 4 lines · Jaakko Niemi

I seem to be able to reproduce crash with 2.7.70-bk and .71. First, I tried getting dlink dwl-650 wlan card up on my thinkpad 570e, but orinoco_cs does not seem to want to even look at it. (any ideas what's the deal with that, btw?)

What happens if you plug in your cardbus card before the dlink wlan card?

Same thing.

Quoted 1 line

If that doesn't work, please repeat your procedure to cause the oops.

If I boot without the card, I don't seem to be able to get any packets out at all, but if I boot with the card inserted, the driver loads normally and I can get the interface up. Still, if I remove it and reinsert few times, crash happens.

Looks like I now get repeatedly the oops when removing the card for the second time.

Quoted 4 lines

In either case, could you send the output of lspci -vv at the following points:

- directly after boot

lspci1.boot

Quoted 1 line

- after you insert the cardbus card

lspci2.inserted
lspci3.driver is after installing the driver

Quoted 1 line

- after you remove it

lspci4.removed
lspci5.reinserted is after reinsert

Quoted 1 line

- after you re-insert (and get the oops)

lspci segfaults after the oops.

dmesg.out and dmes.out.ksymoops have the latest oops.

                     --j
#3 lore raw
Quoted 10 lines · Jaakko Niemi
Quoted 7 lines · Russell King
Quoted 4 lines · Jaakko Niemi

I seem to be able to reproduce crash with 2.7.70-bk and .71. First, I tried getting dlink dwl-650 wlan card up on my thinkpad 570e, but orinoco_cs does not seem to want to even look at it. (any ideas what's the deal with that, btw?)

What happens if you plug in your cardbus card before the dlink wlan card?

Same thing.

Ok, I'm confused. I suspect that it may be something to do with two PCI device structures appearing for the same device, however I don't see that happening with the code which is in 2.5.7x.

Which kernel version first showed the problem? Which modules are you loading?
Which version of cardmgr are you using?
Are you using any modules from the pcmcia-cs package?

Signature · 2 lines
Russell King ([email protected])                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html
#4 lore raw
Quoted 8 lines · Russell King
Quoted 7 lines · Jaakko Niemi
Quoted 6 lines · Russell King
Quoted 4 lines · Jaakko Niemi

I seem to be able to reproduce crash with 2.7.70-bk and .71. First, I tried getting dlink dwl-650 wlan card up on my thinkpad 570e, but orinoco_cs does not seem to want to even look at it. (any ideas what's the deal with that, btw?)

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

What happens if you plug in your cardbus card before the dlink wlan card?

Same thing.

Ok, I'm confused. I suspect that it may be something to do with two PCI device structures appearing for the same device, however I don't see that happening with the code which is in 2.5.7x.

Hmm, that second instance was not there always. I'll try to get a crash without it.

Quoted 1 line

Which kernel version first showed the problem?

2.5.71-bk13 was the first I managed to notice this with, iirc. If you have some older version in mind, I can try that.

Quoted 1 line

Which modules are you loading?

Only those that come by default with this config:

snd, soundcore, usbkbd and usbcore

Quoted 1 line

Which version of cardmgr are you using?

3.2.2

Quoted 1 line

Are you using any modules from the pcmcia-cs package?

No.

                --j
#5 lore raw
Quoted 4 lines · Jaakko Niemi
Quoted 1 line

Which kernel version first showed the problem?

2.5.71-bk13 was the first I managed to notice this with, iirc. If you have some older version in mind, I can try that.

Which was the latest kernel version which didn't show the problem? There doesn't seem to be any PCI, PCMCIA or driver model changes from 2.5.70-bk12 to 2.5.70-bk13.

There are changes in:

	-bk11 (pci)
	-bk10 (pci)
	-bk9 (driver model)
	-bk4 (pci)
	-bk2 (pcmcia)
Signature · 2 lines
Russell King ([email protected])                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html
#6 lore raw
Quoted 7 lines · Russell King
Quoted 4 lines · Jaakko Niemi
Quoted 1 line

Which kernel version first showed the problem?

2.5.71-bk13 was the first I managed to notice this with, iirc. If you have some older version in mind, I can try that.

Which was the latest kernel version which didn't show the problem?

No idea, as 2.5.69 did not boot, and 2.5.70 had other problems with nic drivers.

Quoted 10 lines

There doesn't seem to be any PCI, PCMCIA or driver model changes from 2.5.70-bk12 to 2.5.70-bk13.

There are changes in:

	-bk11 (pci)
	-bk10 (pci)
	-bk9 (driver model)
	-bk4 (pci)
	-bk2 (pcmcia)

I just booted 2.5.70 with patch to Makefiles go get around the crc library issue with 8139too and got it also to ooops with few re-inserts, so this is not a new issue, unless there are several overlapping. At least the oops looks different.

                         --j
#7 lore raw
In reply to Russell King
Quoted 5 lines · Russell King

Which was the latest kernel version which didn't show the problem? There doesn't seem to be any PCI, PCMCIA or driver model changes from 2.5.70-bk12 to 2.5.70-bk13.

Quoted 7 lines

There are changes in:

	-bk11 (pci)
	-bk10 (pci)
	-bk9 (driver model)
	-bk4 (pci)
	-bk2 (pcmcia)

I get the same problems: cardbus works only if I boot with the card inserted. If I insert the card later I get two PCI device entries for the device, and can't get any interrupts from the card (sometimes the driver complains about the chip not responding (8139too)). Tested with the following versions (exactly the same behaviour):
2.5.69-bk10
2.5.70
2.5.70-bk2
2.5.70-bk5
2.5.70-bk18
2.5.71

2.5.69-bk9 was OK.

/peter

#8 lore raw

Perhaps the changes to network hotplug are related. Did you see this?

Quoted 13 lines

This patch causes an external script API change.
Because network device go through the standard path, the action passed to the script is no longer register or unregister but is now "add" or "remove" like other devices. This is a good thing. When testing (at least on RHAT) just change /etc/hotplug/net.agent case statement:

case $ACTION in
add|register)
# Don't do anything if the network is stopped
if [ ! -f /var/lock/subsys/network ]; then
exit 0
fi

#9 lore raw
In reply to Peter Lundkvist
Quoted 4 lines · Peter Lundkvist

Tested with the following versions (exactly the same behaviour):

   2.5.69-bk10

2.5.69-bk9 was OK.

Great, this helps a lot. While I remove the bullet from my foot, could you test this patch please?

drivers/pcmcia/cs.c renamed from drivers/pcmcia/cs.c.old +2 -1
@@ -817,7 +817,8 @@
 				if ((skt->state & SOCKET_PRESENT) &&
 				     !(status & SS_DETECT))
 					socket_shutdown(skt);
-				if (status & SS_DETECT)
+				if (!(skt->state & SOCKET_PRESENT) &&
+				    status & SS_DETECT)
 					socket_insert(skt);
 			}
 			if (events & SS_BATDEAD)
Signature · 2 lines
Russell King ([email protected])                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html
#10 lore raw
Quoted 6 lines · Russell King

Great, this helps a lot. While I remove the bullet from my foot, could you test this patch please?

drivers/pcmcia/cs.c line 824

Quoted 9 lines
drivers/pcmcia/cs.c renamed from drivers/pcmcia/cs.c.old +2 -1
@@ -817,7 +817,8 @@
 				if ((skt->state & SOCKET_PRESENT) &&
 				     !(status & SS_DETECT))
 					socket_shutdown(skt);
-				if (status & SS_DETECT)
+				if (!(skt->state & SOCKET_PRESENT) &&
+				    status & SS_DETECT)
 					socket_insert(skt);
 			}
 			if (events & SS_BATDEAD)

A quick test with this patch against 2.5.71: Works OK now!

Thank you

Peter

#11 lore raw
Quoted 4 lines · Peter Lundkvist
Quoted 3 lines · Russell King

Great, this helps a lot. While I remove the bullet from my foot, could you test this patch please?

Quoted 14 lines

drivers/pcmcia/cs.c line 824

Quoted 12 lines
drivers/pcmcia/cs.c renamed from drivers/pcmcia/cs.c.old +2 -1
@@ -817,7 +817,8 @@
 				if ((skt->state & SOCKET_PRESENT) &&
 				     !(status & SS_DETECT))
 					socket_shutdown(skt);
-				if (status & SS_DETECT)
+				if (!(skt->state & SOCKET_PRESENT) &&
+				    status & SS_DETECT)
 					socket_insert(skt);
 			}
 			if (events & SS_BATDEAD)

A quick test with this patch against 2.5.71: Works OK now!

Confirmation. Booted 2.5.72 with this patch and tried swapping and switching cards about 50 times, and things look stable.

Next, how to get my d-link dwl-650 wlan card up and running. If I insert it, link light on it lights up, and cardctl sees it in socket. However the drivers do not find it, and there is no interface available. This happens at least with 2.5.70 to .72. Anyone got suggestions where to start looking?

Thanks.

                        --j
#12 lore raw
Quoted 5 lines · Jaakko Niemi

Next, how to get my d-link dwl-650 wlan card up and running. If I insert it, link light on it lights up, and cardctl sees it in socket. However the drivers do not find it, and there is no interface available. This happens at least with 2.5.70 to .72. Anyone got suggestions where to start looking?

Anything in /var/log/messages from cardmgr?

Signature · 2 lines
Russell King ([email protected])                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html
#13 lore raw
Quoted 8 lines · Russell King
Quoted 5 lines · Jaakko Niemi

Next, how to get my d-link dwl-650 wlan card up and running. If I insert it, link light on it lights up, and cardctl sees it in socket. However the drivers do not find it, and there is no interface available. This happens at least with 2.5.70 to .72. Anyone got suggestions where to start looking?

Anything in /var/log/messages from cardmgr?

Nothing whatsoever, only thing I get when unplugging and re-inserting the card is:

kernel: spurious 8259A interrupt: IRQ7.

                        --j
#14 lore raw
In reply to Russell King
Quoted 8 lines · Russell King
Quoted 5 lines · Jaakko Niemi

Next, how to get my d-link dwl-650 wlan card up and running. If I insert it, link light on it lights up, and cardctl sees it in socket. However the drivers do not find it, and there is no interface available. This happens at least with 2.5.70 to .72. Anyone got suggestions where to start looking?

Anything in /var/log/messages from cardmgr?

Solved, the card was in monitor mode after playing with Kismet. I took it back to normal mode and everything works great now.

It would be nice improvement to the driver to see the status.

Thanks.

                --j