Compact flash in PCMCIA adaptor does not work

Bug #116613 reported by Michael Vogt
8
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Incomplete
Undecided
Unassigned
linux-source-2.6.20 (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Binary package hint: linux-source-2.6.20

When I insert my CF card with a pcmcia adapter into my ibm t60 the kernel does not detect it. Here is the dmesg output:
[ 73.200000] ata7.00: qc timeout (cmd 0x91)
[ 73.200000] ata7.00: failed to IDENTIFY (INIT_DEV_PARAMS failed, err_mask=0x4)
[ 103.860000] ata7.00: qc timeout (cmd 0x91)
[ 103.860000] ata7.00: failed to IDENTIFY (INIT_DEV_PARAMS failed, err_mask=0x4)
[ 103.860000] ata7.00: limiting speed to UDMA7:PIO5
[ 134.520000] ata7.00: qc timeout (cmd 0x91)
[ 134.520000] ata7.00: failed to IDENTIFY (INIT_DEV_PARAMS failed, err_mask=0x4)

$ sudo pccardctl ident
Socket 0:
  product info: "SanDisk", "SDP", "5/3 0.6", ""
  manfid: 0x0045, 0x0401
  function: 4 (fixed disk)

It looks like this is a known issue: http://lkml.org/lkml/2007/5/15/231 is a thread with various patches.

Revision history for this message
MsK` (msk-lywenn) wrote :

Doesn't work for me too, but it's a bit different

IBM T43p 2668-G4G

[ 702.732000] pccard: PCMCIA card inserted into slot 0
[ 702.732000] cs: memory probe 0xd0000000-0xd7ffffff: excluding 0xd0000000-0xd7ffffff
[ 702.732000] cs: memory probe 0xa8400000-0xb7ffffff: excluding 0xa8400000-0xa8bfffff 0xabc00000-0xb03fffff
[ 702.748000] pcmcia: registering new device pcmcia0.0
[ 702.936000] ata3: PATA max PIO0 cmd 0x00015100 ctl 0x0001510e bmdma 0x00000000 irq 3
[ 702.936000] scsi2 : pata_pcmcia
[ 703.100000] ata3.00: CFA: SanDisk SDCFH-128, FhDA0145, max PIO4
[ 703.100000] ata3.00: 250880 sectors, multi 0: LBA
[ 733.100000] ata3.00: qc timeout (cmd 0xef)
[ 733.100000] ata3.00: failed to set xfermode (err_mask=0x4)
[ 733.100000] ata3: failed to recover some devices, retrying in 5 secs
[ 768.268000] ata3.00: qc timeout (cmd 0xef)
[ 768.268000] ata3.00: failed to set xfermode (err_mask=0x4)
[ 768.268000] ata3: failed to recover some devices, retrying in 5 secs
[ 803.436000] ata3.00: qc timeout (cmd 0xef)
[ 803.436000] ata3.00: failed to set xfermode (err_mask=0x4)
[ 803.436000] ata3.00: disabled
 $ sudo pccardctl ident
Socket 0:
  product info: "SanDisk", "SDP", "5/3 0.6", ""
  manfid: 0x0045, 0x0401
  function: 4 (fixed disk)
 $

Revision history for this message
David Huggins-Daines (dhuggins) wrote :

Also does not work here on an X31 (2672-5KU), with kernel version is 2.6.20-16-generic 2.6.20-16.28.

dmesg says:

[ 753.084000] pccard: PCMCIA card inserted into slot 1
[ 753.084000] pcmcia: registering new device pcmcia1.0
[ 753.124000] ata4: PATA max PIO0 cmd 0x00014100 ctl 0x0001410e bmdma 0x00000000 irq 3
[ 753.124000] scsi3 : pata_pcmcia
[ 783.288000] ata4.00: qc timeout (cmd 0x91)
[ 783.288000] ata4.00: failed to IDENTIFY (INIT_DEV_PARAMS failed, err_mask=0x4)
[ 813.956000] ata4.00: qc timeout (cmd 0x91)
[ 813.956000] ata4.00: failed to IDENTIFY (INIT_DEV_PARAMS failed, err_mask=0x4)
[ 813.956000] ata4.00: limiting speed to UDMA7:PIO5
[ 844.624000] ata4.00: qc timeout (cmd 0x91)
[ 844.624000] ata4.00: failed to IDENTIFY (INIT_DEV_PARAMS failed, err_mask=0x4)

dhuggins@slim:~$ sudo pccardctl ident
Socket 0:
  no product info available
Socket 1:
  product info: "SunDisk", "SDP", "5/3 0.6", ""
  manfid: 0x0045, 0x0401
  function: 4 (fixed disk)

However, It does seem to work on a different X31 (2672-JAU) with both 2.6.20-15 and 2.6.20-16, same card. The only hardware differences between the two machines as far as I can tell are that the working machine has a 1.4GHz processor and 1.25GB of RAM whereas the non-working one has a 1.7GHz processor (same stepping, both are Pentium M Banias) and 768MB of RAM.

Maybe it is some kind of subtle timing issue... Another thing to note is that the non-working machine was booted without AC power, so it was running at 600MHz.

Revision history for this message
Torrey Hoffman (thoffman) wrote :

Same thing here with a 512 MB compact flash -- no adapter, plugged directly into my ThinkPad's PCMCIA/CF socket. I get the same kernel messages.

Revision history for this message
Torrey Hoffman (thoffman) wrote :

I should have been a little more specific. I have an IBM Thinkpad X22 with a PCMCIA/CF socket.

# sudo pccardctl ident

Socket 0:
  no product info available
Socket 1:
  product info: "M-Systems", "CF300", "", ""
  manfid: 0x000a, 0x0000
  function: 4 (fixed disk)

The end of my dmesg looks like this:

[ 1247.516000] pccard: PCMCIA card inserted into slot 1
[ 1247.516000] pcmcia: registering new device pcmcia1.0
[ 1247.576000] ata4: PATA max PIO0 cmd 0x00013100 ctl 0x0001310e bmdma 0x00000000 irq 3
[ 1247.576000] scsi3 : pata_pcmcia
[ 1307.756000] ata4.00: qc timeout (cmd 0x91)
[ 1307.756000] ata4.00: failed to IDENTIFY (INIT_DEV_PARAMS failed, err_mask=0x4)
[ 1368.440000] ata4.00: qc timeout (cmd 0x91)
[ 1368.440000] ata4.00: failed to IDENTIFY (INIT_DEV_PARAMS failed, err_mask=0x4)
[ 1368.440000] ata4.00: limiting speed to UDMA7:PIO5
[ 1429.124000] ata4.00: qc timeout (cmd 0x91)
[ 1429.124000] ata4.00: failed to IDENTIFY (INIT_DEV_PARAMS failed, err_mask=0x4)

Revision history for this message
David Huggins-Daines (dhuggins) wrote :

Still present in Tribe 4. This seems like a pretty important bug to me, but maybe people don't actually use CF cards on Thinkpads anymore? Who knows...

Revision history for this message
MsK` (msk-lywenn) wrote :

I want to use my CF with pcmcia adapter ! :/

Revision history for this message
frost242 (frosties) wrote :

It worked with kernel 2.6.20-15, but fails with 2.6.20-16.

Revision history for this message
msar (msar2020) wrote :

I get a similar problem with a Sandisk 6-in-1

Results of dmesg give:

cs: pcmcia_socket0: time out after reset.
cs: pcmcia_socket0: time out after reset.

Results of lspci:
00:0a.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev aa)
00:0a.1 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev aa)

Result of pccardctl ls
Socket 0 Bridge: [yenta_cardbus] (bus ID: 0000:00:0a.0)
Socket 1 Bridge: [yenta_cardbus] (bus ID: 0000:00:0a.1)

Result of pccardctl status (even though sandisk card is inserted)
Socket 0:
  no card
Socket 1:
  no card

Is there anything else I can try?

Revision history for this message
Liken Otsoa (liken) wrote :

Same problem in thinkpad X41, Ubuntu Hardy uptodate, kernel 2.6.24-11-generic.

_______________________________

[ 130.944355] pccard: PCMCIA card inserted into slot 0
[ 130.944379] cs: memory probe 0xd0000000-0xd7ffffff: excluding 0xd0000000-0xd7ffffff
[ 130.944431] cs: memory probe 0xa0200000-0xafffffff: excluding 0xa0200000-0xa11fffff 0xa1a00000-0xa21fffff 0xa2a00000-0xa31fffff 0xa3a00000-0xa81fffff 0xa8a00000-0xa91fffff 0xa9a00000-0xaa1fffff 0xaaa00000-0xab1fffff 0xaba00000-0xac1fffff 0xaca00000-0xad1fffff 0xada00000-0xae1fffff 0xaea00000-0xaf1fffff 0xafa00000-0xb01fffff
[ 130.956771] pcmcia: registering new device pcmcia0.0
[ 131.391278] scsi2 : pata_pcmcia
[ 131.392520] ata3: PATA max PIO0 cmd 0x3100 ctl 0x310e irq 3
[ 165.451163] ata3.00: qc timeout (cmd 0x91)
[ 165.451183] ata3.00: failed to IDENTIFY (INIT_DEV_PARAMS failed, err_mask=0x4)
[ 165.451191] ata3: failed to recover some devices, retrying in 5 secs
[ 216.252931] ata3.00: qc timeout (cmd 0x91)
[ 216.252944] ata3.00: failed to IDENTIFY (INIT_DEV_PARAMS failed, err_mask=0x4)
[ 216.252953] ata3: failed to recover some devices, retrying in 5 secs
[ 113.349215] ata3.00: qc timeout (cmd 0x91)
[ 113.349227] ata3.00: failed to IDENTIFY (INIT_DEV_PARAMS failed, err_mask=0x4)
[ 113.349231] ata3: failed to recover some devices, retrying in 5 secs
________________________

pccardctl ident (Tested with various compact flash memories)
____________________
Socket 0:
  product info: "TOSHIBA THNCF032MBA ", "", "", ""
  manfid: 0x0098, 0x0000
  function: 4 (fixed disk)
________________________

I am looking this thread to see what's the problem:

http://lkml.org/lkml/2008/2/2/81

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 bug to the new "linux" package. However, development has already began for the upcoming Intrepid Ibex 8.10 release. It would be helpful if you could test the upcoming release and verify if this is still an issue - http://www.ubuntu.com/testing . If the issue still exists, please update this report by changing the Status of the "linux" task from "Incomplete" to "New". We appreciate your patience and understanding as we make this transition. Thanks!

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.