pcmcia lockup inserting or removing cards in 2.4.5-ac{13,22}
Quoted 6 lines · Trevor Hemsley
Somewhere between 2.4.2 and 2.4.5-ac13, PCMCIA card insertion and removal appears to have broken on my Toshiba Libretto. On 2.4.2 all was fine. On both 2.4.5-ac13 and ac22 it's broken. The whole machine freezes solid, no SAK-s, SAK-u, SAK-b, no Ctrl-Alt-Fn to switch VC's. No messages are issued. Problem occurs when inserting/removing any of YE-Data PCMCIA floppy, TDK Smartmedia adapter (
ide_cs), or 3c589 ethernet card.
[large snip]
OK, I've done quite a lot more work on this. It isn't 2.4.5, I'd compiled USB support in when I went to 2.4.5 and it's that that causes the problems. I backed out all changes made between 2.4.2 and 2.4.5 in drivers/pcmcia and that made no difference to the lockup so then I went back to the .config file from 2.4.2 and that worked.
My best guess is that the USB support is using IRQ 11 and that the PCMCIA card sockets are wired to use that as well. I have a bypass for now - if I set the Toshiba BIOS up to use the slots in PCIC mode then it assigns them IRQ 15. In cardbus mode they get assigned IRQ 11 in Win9x but dmesg reports
Linux Kernel Card Services 3.1.22
options: [pci] [cardbus] [pm]
PCI: No IRQ known for interrupt pin A of device 00:06.0. Please try using pci=biosirq.
PCI: No IRQ known for interrupt pin B of device 00:06.1. Please try using pci=biosirq.
and
Yenta IRQ list 0eb8, PCI irq0
Socket status: 30000007
Yenta IRQ list 0eb8, PCI irq0
Socket status: 30000007
Using pci=biosirq makes no difference when in cardbus mode.
Ah, got it, flipping the PCMCIA setup in the BIOS from "Auto-detect" to "Cardbus/16 bit" fixes it. lspci -vv now lists the cardbus ports as having IRQ 11 assigned (instead of 0 before). Everything (famous last words) appears to be working.
Signature · 2 lines
Trevor Hemsley, Brighton, UK. [email protected]
Quoted 5 lines · Trevor Hemsley
OK, I've done quite a lot more work on this. It isn't 2.4.5, I'd compiled USB support in when I went to 2.4.5 and it's that that causes the problems. I backed out all changes made between 2.4.2 and 2.4.5 in
drivers/pcmciaand that made no difference to the lockup so then I went back to the .config file from 2.4.2 and that worked.
Hmm, Cardbus and USB problems... you probably have both Cardbus and i82365 support in your kernel configuration. Your .config file should have this:
#
# PCMCIA/CardBus support
#CONFIG_PCMCIA=yCONFIG_CARDBUS=y
# CONFIG_I82365 is not set
# CONFIG_TCIC is not set
That fixed it for me for at least three laptops.
Erik
Signature · 5 lines
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department of Electrical Engineering, Faculty of Information Technology and Systems, Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands Phone: +31-15-2783635 Fax: +31-15-2781843 Email: [email protected] WWW: http://www-ict.its.tudelft.nl/~erik/