pcmcia card insertion not detected (kernels since 2.6.15 up to 2.6.22)

Bug #27892 reported by Václav Šmilauer
18
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Hi,

I already filed a bug in malone
(https://launchpad.net/distros/ubuntu/+source/pcmciautils/+bug/6150) and put it
here as well since noone answered (the bug there is a little different, though).

I have a ralink 2500 based wifi card. When I insert it, frequently it does not
show up until I say `pccardctl insert`. After that, it is no initialized
correctly. dmesg says:

[4294944.563000] pccard: CardBus card inserted into slot 1
[4294944.565000] PCI: 0000:05:00.0 has unsupported PM cap regs version (7)
[4294944.565000] ACPI: PCI Interrupt 0000:05:00.0[A] -> Link [LNKB] -> GSI 9
(level, low) -> IRQ 9
[4294944.565000] PCI: Setting latency timer of device 0000:05:00.0 to 64
[4294944.566000] rt2500pci->rt2x00_dev_probe: Error - ioremap failed.
[4294944.566000] rt2x00core->rt2x00_core_probe: Error - device probe failed.
[4294944.566000] rt2500pci->rt2x00_pci_probe: Error - net_device allocation failed.
[4294944.567000] ACPI: PCI interrupt for device 0000:05:00.0 disabled
[4294944.567000] rt2500pci: probe of 0000:05:00.0 failed with error -12

According to http://rt2x00.serialmonkey.com/phpBB2/viewtopic.php?t=195, the
failing ioremap means a problem with the PCMCIA bus driver. ATM I have no other
PCMCIA card to try but if it might be useful, I will get several of them and try
them out. Do not hesistate to ask for more information. The machine is Fujitsu
Siemens Lifebook 2161.

Regards,

Vaclav Smilauer

----

falx:~# lspci
0000:00:00.0 Host bridge: Intel Corp. 82440MX Host Bridge (rev 01)
0000:00:00.1 Multimedia audio controller: Intel Corp. 82440MX AC'97 Audio Controller
0000:00:00.2 Modem: Intel Corp. 82440MX AC'97 Modem Controller
0000:00:07.0 Bridge: Intel Corp. 82440MX ISA Bridge (rev 01)
0000:00:07.1 IDE interface: Intel Corp. 82440MX EIDE Controller
0000:00:07.2 USB Controller: Intel Corp. 82440MX USB Universal Host Controller
0000:00:07.3 Bridge: Intel Corp. 82440MX Power Management Controller
0000:00:12.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
RTL-8139/8139C/8139C+ (rev 10)
0000:00:13.0 CardBus bridge: O2 Micro, Inc. OZ6933 Cardbus Controller (rev 02)
0000:00:13.1 CardBus bridge: O2 Micro, Inc. OZ6933 Cardbus Controller (rev 02)
0000:00:14.0 VGA compatible controller: ATI Technologies Inc Rage Mobility P/M
(rev 64)
0000:05:00.0 Network controller: RaLink Ralink RT2500 802.11 Cardbus Reference
Card (rev 01)

falx:~# dpkg -l | grep '^ii' | grep -e 'pcmcia' -e 'udev' -e 'linux-image'
ii linux-image-2.6.15-10-686 2.6.15-10.15
Linux kernel image for version 2.6.15 on PPro/Celeron/PII/PIII/P
ii pcmciautils 012-1ubuntu1
PCMCIA utilities for Linux 2.6
ii udev 077-0ubuntu5
rule-based device node and kernel event manager

falx:~# lsmod
Module Size Used by
rt2500pci 24416 0
rt2x00core 61316 1 rt2500pci
ipt_state 2016 1
ip_conntrack 54136 1 ipt_state
nfnetlink 6808 1 ip_conntrack
iptable_filter 3104 1
ip_tables 23744 2 ipt_state,iptable_filter
ieee80211 35848 1 rt2x00core
ieee80211_crypt 6528 1 ieee80211
af_packet 24520 2
ipv6 286400 26
video 16324 0
tc1100_wmi 6884 0
sony_acpi 5516 0
pcc_acpi 11136 0
hotkey 11492 0
dev_acpi 11236 0
button 6704 0
battery 9668 0
container 4608 0
ac 4932 0
nls_cp437 5888 1
isofs 38496 1
loop 18536 2
ext2 74184 1
sd_mod 20448 0
dm_mod 63224 0
cpufreq_ondemand 7752 1
acpi_cpufreq 6724 0
freq_table 4928 1 acpi_cpufreq
snd_pcm_oss 56448 0
snd_mixer_oss 20544 3 snd_pcm_oss
r128 49088 0
drm 77972 1 r128
agpgart 36784 1 drm
usb_storage 79488 0
scsi_mod 145352 2 sd_mod,usb_storage
8139cp 24032 0
i810_audio 39540 0
ac97_codec 20524 1 i810_audio
8139too 29056 0
mii 6176 2 8139cp,8139too
psmouse 39972 0
pcmcia 41916 0
uhci_hcd 35408 0
serio_raw 7748 0
i2c_piix4 9168 0
usbcore 137700 3 usb_storage,uhci_hcd
snd_intel8x0m 18636 0
snd_intel8x0 35452 2
snd_ac97_codec 99520 2 snd_intel8x0m,snd_intel8x0
snd_ac97_bus 2400 1 snd_ac97_codec
i2c_core 22848 1 i2c_piix4
snd_pcm 96644 4
snd_pcm_oss,snd_intel8x0m,snd_intel8x0,snd_ac97_codec
snd_timer 26884 1 snd_pcm
snd 59972 7
snd_pcm_oss,snd_mixer_oss,snd_intel8x0m,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer
soundcore 10784 4 i810_audio,snd
snd_page_alloc 11304 3 snd_intel8x0m,snd_intel8x0,snd_pcm
yenta_socket 29548 3
rsrc_nonstatic 14624 1 yenta_socket
pcmcia_core 45272 3 pcmcia,yenta_socket,rsrc_nonstatic
evdev 10176 1
ext3 148104 2
jbd 65876 1 ext3
ide_generic 1504 0
ide_disk 19200 5
piix 11460 1
generic 5124 0
thermal 13768 0
processor 26344 2 acpi_cpufreq,thermal
fan 4836 0
fbcon 43904 0
tileblit 2784 1 fbcon
font 8320 1 fbcon
bitblit 6464 1 fbcon
softcursor 2304 1 bitblit
capability 4968 0
commoncap 7328 1 capability

Revision history for this message
Colin Watson (cjwatson) wrote :

Looks like a kernel-side bug to me, but keep me posted ...

(Indeed, default bug contacts aren't set up yet in Malone, so in general
nobody's reading bugs filed there on packages in Ubuntu main yet.)

Revision history for this message
Václav Šmilauer (eudoxos) wrote :

I forgot to mention that the card worked perfectly with 2.6.10 & pcmcia-cs
previously. I will try different PCMCIA card to exclude the possiblity of rt2x00
driver bug and post here.

Regards, VS

Revision history for this message
Ben Collins (ben-collins) wrote :

(In reply to comment #2)
> I forgot to mention that the card worked perfectly with 2.6.10 & pcmcia-cs
> previously. I will try different PCMCIA card to exclude the possiblity of rt2x00
> driver bug and post here.

Can you attach output of "lspci -vv"?

Revision history for this message
Václav Šmilauer (eudoxos) wrote :
Download full text (8.3 KiB)

Meanwhile, I tried PCMCIA IDE controller with CDROM, which worked without any
problem (except for the `pccardctl insert` necessity), it is set to operate in
PCMCIA (16bit) mode, not CardBus, though.

The aformentioned Ralink wifi card does not work with ndiswrapper either, as it
used to with 2.6.12. The device wlan0 appears but does not work (no connection).
Inserted when running lspci -vv:

falx:~# lspci -vv
0000:00:00.0 Host bridge: Intel Corporation 82440MX Host Bridge (rev 01)
        Subsystem: Fujitsu Limited.: Unknown device 107f
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort+ >SERR- <PERR-
        Latency: 64

0000:00:00.1 Multimedia audio controller: Intel Corporation 82440MX AC'97 Audio
Controller
        Subsystem: Fujitsu Limited. QSound_SigmaTel Stac97 PCI Audio
        Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
        Latency: 0
        Interrupt: pin B routed to IRQ 9
        Region 0: I/O ports at 1000 [size=256]
        Region 1: I/O ports at 1400 [size=64]

0000:00:00.2 Modem: Intel Corporation 82440MX AC'97 Modem Controller (prog-if 00
[Generic])
        Subsystem: Fujitsu Limited.: Unknown device 10d1
        Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
        Latency: 0
        Interrupt: pin B routed to IRQ 9
        Region 0: I/O ports at 1800 [size=256]
        Region 1: I/O ports at 1480 [size=128]

0000:00:07.0 Bridge: Intel Corporation 82440MX ISA Bridge (rev 01)
        Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 0

0000:00:07.1 IDE interface: Intel Corporation 82440MX EIDE Controller (prog-if
80 [Master])
        Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 64
        Region 4: I/O ports at 1460 [size=16]

0000:00:07.2 USB Controller: Intel Corporation 82440MX USB Universal Host
Controller (prog-if 00 [UHCI])
        Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 64
        Interrupt: pin D routed to IRQ 15
        Region 4: I/O ports at 1440 [size=32]

0000:00:07.3 Bridge: Intel Corporation 82440MX Power Management Controller
        Control: I/O+ Mem+ BusMaster- SpecCycle+ MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-

0000:00:12.0 Ethernet controller: Realtek Se...

Read more...

Matt Zimmerman (mdz)
Changed in linux-source-2.6.15:
status: Needs Info → Unconfirmed
Revision history for this message
Václav Šmilauer (eudoxos) wrote :

The problem still exists in kernel 2.6.17 from current edgy.

It seems to be yenta-socket kernel-side bug, since neither of the drivers for the card inquestion (the ralink's one shipped with kernel and the CVS development from http://rt2x00.serialmonkey.com (packaged by http://ubuntu.lupine.me.uk/)) work.

As said, card-insertion is not recognized either, contrary to what used to be with older kernels. I tried "acpi=noirq" and "irqpoll" kernel options as suggested on some forums but it did not help.

There seem to be similar bugs (e.g. Malone #56251, which BTW mentions things being OK with 2.6.8) but apparently affect realtively few people.

Simon Law (sfllaw)
Changed in linux-source-2.6.15:
status: Unconfirmed → Confirmed
Revision history for this message
Václav Šmilauer (eudoxos) wrote :

I retitled the bug to state more precisely the current (gutsy) status: I have to say sudo pccardctl insert so that the card is detected. Cards seem to work as expected afterwards, though.

Revision history for this message
Launchpad Janitor (janitor) wrote : This bug is now reported against the 'linux' package

Beginning with the Hardy Heron 8.04 development cycle, all open Ubuntu kernel bugs need to be reported against the "linux" kernel package. We are automatically migrating this linux-source-2.6.15 kernel bug to the new "linux" package. We appreciate your patience and understanding as we make this transition. Also, if you would be interested in testing the upcoming Intrepid Ibex 8.10 release, it is available at http://www.ubuntu.com/testing . Please let us know your results. Thanks!

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

The Ubuntu Kernel Team is planning to move to the 2.6.27 kernel for the upcoming Intrepid Ibex 8.10 release. As a result, the kernel team would appreciate it if you could please test this newer 2.6.27 Ubuntu kernel. There are one of two ways you should be able to test:

1) If you are comfortable installing packages on your own, the linux-image-2.6.27-* package is currently available for you to install and test.

--or--

2) The upcoming Alpha5 for Intrepid Ibex 8.10 will contain this newer 2.6.27 Ubuntu kernel. Alpha5 is set to be released Thursday Sept 4. Please watch http://www.ubuntu.com/testing for Alpha5 to be announced. You should then be able to test via a LiveCD.

Please let us know immediately if this newer 2.6.27 kernel resolves the bug reported here or if the issue remains. More importantly, please open a new bug report for each new bug/regression introduced by the 2.6.27 kernel and tag the bug report with 'linux-2.6.27'. Also, please specifically note if the issue does or does not appear in the 2.6.26 kernel. Thanks again, we really appreicate your help and feedback.

Revision history for this message
kernel-janitor (kernel-janitor) wrote :

This bug report was marked as Confirmed a while ago but has not had any updated comments for quite some time. Please let us know if this issue remains in the current Ubuntu release, http://www.ubuntu.com/getubuntu/download . If the issue remains, click on the current status under the Status column and change the status back to "New". Thanks.

[This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

tags: added: kj-triage
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Jeremy Foshee (jeremyfoshee) wrote :

Unassigned from Ben Collins. Marked Invalid due to several years passing with no response. Please open a new bug with apport data if this is experienced in newer releases.

-JFo

Changed in linux (Ubuntu):
assignee: Ben Collins (ben-collins) → nobody
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.