Thinkpad X31 PCMCIA CF adaptor doesn't work on Feisty, did on Dapper

Bug #139859 reported by gcc
8
Affects Status Importance Assigned to Milestone
linux-source-2.6.20 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: linux-source-2.6.20

My IBM Thinkpad X31 includes a PCMCIA CF reader which is very useful. On Dapper (with standard or custom 2.6.19 kernel) it used to work, although reading made the machine almost unusable (perhaps #122198).

However in Feisty it seems that all IDE access is done by libata, which would be great if it worked for this device. Unfortunately it doesn't seem to:

Sep 15 23:41:36 rocio kernel: [400336.640000] pccard: PCMCIA card inserted into slot 1
Sep 15 23:41:36 rocio kernel: [400336.640000] cs: memory probe 0xe8000000-0xefffffff: excluding 0xe8000000-0xefffffff
Sep 15 23:41:36 rocio kernel: [400336.640000] cs: memory probe 0xc0200000-0xcfffffff: excluding 0xc0200000-0xc11fffff 0xc1a00000-0xc21fffff 0xc2a00000-0xc31fffff 0xc3a00000-0xcc1fffff 0xcca00000-0xcd1fffff 0xcda00000-0xce1fffff 0xcea00000-0xcf1fffff 0xcfa00000-0xd01fffff
Sep 15 23:41:36 rocio kernel: [400336.644000] pcmcia: registering new device pcmcia1.0
Sep 15 23:41:37 rocio kernel: [400336.940000] ata3: PATA max PIO0 cmd 0x00014100 ctl 0x0001410e bmdma 0x00000000 irq 3
Sep 15 23:41:37 rocio kernel: [400336.940000] scsi2 : pata_pcmcia
Sep 15 23:42:07 rocio kernel: [400367.096000] ata3.00: qc timeout (cmd 0x91)
Sep 15 23:42:07 rocio kernel: [400367.096000] ata3.00: failed to IDENTIFY (INIT_DEV_PARAMS failed, err_mask=0x4)

May be related to bug #119970 or #83471, although the exact kernel errors are different.

This seems to be an upstream kernel bug:

http://lkml.org/lkml/2007/5/15/231

At the end of this very long thread, the problem seemed to be almost resolved (the device works, but only using polling and not IRQ). Unfortunately I can't work out which patches I'd need to apply to the Ubuntu kernel from this thread.

Debugging log files to follow.

Revision history for this message
gcc (chris+ubuntu-qwirx) wrote :

chris@rocio:/tmp$ id
uid=1000(chris) gid=1000(chris) groups=4(adm),20(dialout),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev),104(lpadmin),105(scanner),106(admin),120(fuse),1000(chris)

chris@rocio:/tmp$ id hal
id: hal: No such user

chris@rocio:/tmp$ id haldaemon
uid=118(haldaemon) gid=118(haldaemon) groups=118(haldaemon),24(cdrom),25(floppy),46(plugdev),125(powerdev)

chris@rocio:/tmp$ uname -a
Linux rocio.int.aidworld.org 2.6.20-15-generic #2 SMP Sun Apr 15 07:36:31 UTC 2007 i686 GNU/Linux

Revision history for this message
gcc (chris+ubuntu-qwirx) wrote :
Revision history for this message
gcc (chris+ubuntu-qwirx) wrote :
Revision history for this message
gcc (chris+ubuntu-qwirx) wrote :
Revision history for this message
passerby (passerby) wrote :

I have the same problem with both feisty and the gutsy beta.

Revision history for this message
marcogoni (cogoni) wrote :

The problem has been solved in 2.6.22-13 and later upgrades.
My X31 works perfectly now with CF cards and it does not
behave in strange ways when transferring files to HD.
Maybe we should mark this bug as Fix Released?

Revision history for this message
gcc (chris+ubuntu-qwirx) wrote :

Seems to work in 2.6.20-16-generic as well. I guess we can close this bug.

Revision history for this message
MarkBrier (mark-brier) wrote :

Not fixed for me in this version on the kernel with my X31, so no, please don't close this bug

Revision history for this message
David Tansey (djtansey) wrote :

It was working for a little while. I currently have gusty and 2.6.22-14-generic and it doesn't work.

Don't close.

 pccard: PCMCIA card inserted into slot 0
[ 4258.840000] pcmcia: registering new device pcmcia0.0
[ 4258.880000] scsi4 : pata_pcmcia
[ 4258.880000] ata5: PATA max PIO0 cmd 0x00013100 ctl 0x0001310e bmdma 0x00000000 irq 3
[ 4289.044000] ata5.00: qc timeout (cmd 0x91)
[ 4289.044000] ata5.00: failed to IDENTIFY (INIT_DEV_PARAMS failed, err_mask=0x4)
[ 4319.720000] ata5.00: qc timeout (cmd 0x91)
[ 4319.720000] ata5.00: failed to IDENTIFY (INIT_DEV_PARAMS failed, err_mask=0x4)
[ 4319.720000] ata5.00: limiting speed to UDMA7:PIO5
[ 4350.388000] ata5.00: qc timeout (cmd 0x91)
[ 4350.388000] ata5.00: failed to IDENTIFY (INIT_DEV_PARAMS failed, err_mask=0x4)

Revision history for this message
marcogoni (cogoni) wrote :

I am marking this bug as fixed since on Hardy Beta it's working well on my Thinkpad X31.
If you notice the bug in Hardy beta please reopen!

Changed in linux-source-2.6.20:
status: New → Fix Released
Revision history for this message
b-rg (b-rg) wrote :

It still doesn't work in Hardy Heron (8.04).

uname -a
Linux **** 2.6.24-16-generic #1 SMP Thu Apr 10 13:23:42 UTC 2008 i686 GNU/Linux

dmesg
[ 717.101225] pccard: PCMCIA card inserted into slot 1
[ 717.101545] pcmcia: registering new device pcmcia1.0
[ 717.148353] scsi6 : pata_pcmcia
[ 717.149120] ata6: PATA max PIO0 cmd 0x4100 ctl 0x410e irq 3
[ 721.939292] ata6.00: qc timeout (cmd 0x91)
[ 721.939306] ata6.00: failed to IDENTIFY (INIT_DEV_PARAMS failed, err_mask=0x4)
[ 721.939315] ata6: failed to recover some devices, retrying in 5 secs

So this needs to be reopened and solved.. After all, as already said in this topic, the cf-reader would be really useful! :)

Does this problem have something to do with ide_cs module?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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