Compact flash (with PCMCIA adaptor) does not mount

Bug #87951 reported by Andrew Hunter
12
Affects Status Importance Assigned to Milestone
linux-source-2.6.20 (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: linux-source-2.6.20

Erratic behavior on the mouting of a compact flash card. Here is the dmesg output for when I does not work:

[68253.308000] pccard: PCMCIA card inserted into slot 0
[68253.308000] cs: memory probe 0xb0100000-0xb01fffff: excluding 0xb0100000-0xb011ffff
[68253.316000] pcmcia: registering new device pcmcia0.0
[68253.756000] ata3: PATA max PIO0 cmd 0x3100 ctl 0x310E bmdma 0x0 irq 3
[68253.756000] scsi2 : pata_pcmcia
[68253.928000] ata3.00: CFA, max PIO4, 2003904 sectors: LBA
[68253.928000] ata3.00: ata3: dev 0 multi count 0
[68253.936000] BUG: unable to handle kernel NULL pointer dereference at virtual address 0000004d
[68253.936000] printing eip:
[68253.936000] e010c76d
[68253.936000] *pde = 00000000
[68253.936000] Oops: 0000 [#1]
[68253.936000] SMP
[68253.936000] Modules linked in: pata_pcmcia i915 drm rfcomm l2cap bluetooth ppdev container battery button video dock sbs i2c_ec i2c_core ac asus_acpi backlight ipv6 dm_crypt dm_mod p4_clockmod speedstep_lib freq_table fuse parport_pc lp parport snd_intel8x0 snd_ac97_codec tsdev ac97_bus snd_pcm_oss snd_mixer_oss snd_pcm joydev snd_seq_dummy snd_seq_oss wlan_scan_sta ath_rate_sample pcmcia snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer snd_seq_device snd ath_pci iTCO_wdt iTCO_vendor_support intel_agp yenta_socket rsrc_nonstatic pcmcia_core soundcore psmouse serio_raw agpgart snd_page_alloc af_packet wlan ath_hal(P) evdev ext3 jbd mbcache sg sr_mod sd_mod cdrom piix generic ata_piix 8139too ata_generic libata scsi_mod 8139cp mii ehci_hcd uhci_hcd usbcore thermal processor fan fbcon tileblit font bitblit softcursor vesafb capability commoncap
[68253.936000] CPU: 0
[68253.936000] EIP: 0060:[<e010c76d>] Tainted: P VLI
[68253.936000] EFLAGS: 00010293 (2.6.20-8-generic #2)
[68253.936000] EIP is at ata_acpi_exec_tfs+0xfd/0x9e0 [libata]
[68253.936000] eax: 00000001 ebx: 00000000 ecx: c7cd8470 edx: cb0f3e3c
[68253.936000] esi: c7cd82e8 edi: cb0f3e84 ebp: 000d000c esp: dc2b5bdc
[68253.936000] ds: 007b es: 007b ss: 0068
[68253.936000] Process scsi_eh_2 (pid: 19958, ti=dc2b4000 task=db8a9030 task.ti=dc2b4000)
[68253.936000] Stack: dc2b5c24 00000200 c7cda1e4 00000246 e0102e84 00000000 df436d10 00000000
[68253.936000] d7e23c80 c7cda1f4 dc2b5cc0 c7cd8470 00000000 c7cda1e4 fafbfcfd 00000000
[68253.936000] 00000000 c7cd8470 00000000 00000000 00000000 ffffffff 00000000 00000000
[68253.936000] Call Trace:
[68253.936000] [<e0102e84>] ata_exec_internal_sg+0x354/0x3e0 [libata]
[68253.936000] [<e0102f98>] ata_exec_internal+0x88/0xd0 [libata]
[68253.936000] [<c01f06c6>] __delay+0x6/0x10
[68253.936000] [<e0102351>] ata_dev_configure+0x51/0x830 [libata]
[68253.936000] [<e01030d3>] ata_dev_read_id+0xf3/0x310 [libata]
[68253.936000] [<c012fdb7>] try_to_del_timer_sync+0x47/0x50
[68253.936000] [<e0100c17>] ata_id_c_string+0x27/0x90 [libata]
[68253.936000] [<e01033de>] ata_dev_revalidate+0xee/0x2a0 [libata]
[68253.936000] [<c01eb9f2>] __next_cpu+0x12/0x20
[68253.936000] [<c01370e8>] flush_workqueue+0x58/0x70
[68253.936000] [<e0103a01>] ata_set_mode+0x471/0x600 [libata]
[68253.936000] [<e010a4e9>] ata_do_eh+0x919/0x1960 [libata]
[68253.936000] [<c011e051>] __activate_task+0x21/0x40
[68253.936000] [<c0120416>] try_to_wake_up+0x46/0x480
[68253.936000] [<e00ff960>] ata_std_softreset+0x0/0xe0 [libata]
[68253.936000] [<e0104410>] ata_std_prereset+0x0/0x180 [libata]
[68253.936000] [<c0102236>] __switch_to+0xc6/0x1f0
[68253.936000] [<c013705d>] flush_cpu_workqueue+0x8d/0xc0
[68253.936000] [<c013a9c0>] autoremove_wake_function+0x0/0x50
[68253.936000] [<e0109001>] ata_bmdma_drive_eh+0xf1/0x180 [libata]
[68253.936000] [<e00ff960>] ata_std_softreset+0x0/0xe0 [libata]
[68253.936000] [<e01090c3>] ata_bmdma_error_handler+0x33/0x40 [libata]
[68253.936000] [<e01020a0>] ata_std_postreset+0x0/0xd0 [libata]
[68253.936000] [<e010bb46>] ata_scsi_error+0x1a6/0x5a0 [libata]
[68253.936000] [<e00dddc6>] scsi_error_handler+0xa6/0xb40 [scsi_mod]
[68253.936000] [<c011e2c0>] complete+0x40/0x60
[68253.936000] [<e00ddd20>] scsi_error_handler+0x0/0xb40 [scsi_mod]
[68253.936000] [<c013a80a>] kthread+0xba/0xf0
[68253.936000] [<c013a750>] kthread+0x0/0xf0
[68253.936000] [<c01044a7>] kernel_thread_helper+0x7/0x10
[68253.936000] =======================
[68253.936000] Code: 00 f6 46 0e 80 0f 85 12 07 00 00 83 7e 78 05 0f 84 51 03 00 00 8d 57 b8 c7 44 24 54 ff ff ff ff c7 44 24 58 00 00 00 00 8b 42 10 <0f> b6 40 4c 88 44 24 3f 8b 47 74 8b 5a 20 8d 54 24 54 8b af 40
[68253.936000] EIP: [<e010c76d>] ata_acpi_exec_tfs+0xfd/0x9e0 [libata] SS:ESP 0068:dc2b5bdc
[68253.936000] <5>pccard: card ejected from slot 0

Revision history for this message
Cristian Aravena Romero (caravena) wrote :

Thanks for taking the time to report this bug. Unfortunately we can't fix it, because your description didn't include enough information.

Please include the information requested from https://wiki.ubuntu.com/DebuggingRemovableDevices as separate attachments.

Changed in linux-source-2.6.20:
assignee: nobody → caravena
status: Unconfirmed → Needs Info
Revision history for this message
Andrew Hunter (rexbron) wrote :

I will do that, but having the card in causes the laptop to hang at boot. I removed splash and quiet to see what was happening and the same error came up.

I will post the required info soon.

Revision history for this message
Andrew Hunter (rexbron) wrote :
Revision history for this message
Andrew Hunter (rexbron) wrote :
Revision history for this message
Andrew Hunter (rexbron) wrote :

The udevmonitor outputs an empty file. Note that I am using Kubuntu.

Revision history for this message
K.Mandla (k.mandla) wrote :

I get the same error and dmesg output, almost to the letter, with a Sandisk CF card adapter and a Lexar CF card on a Dell Inspiron 8000. I don't use hal so I don't have an lshal output, and udevmonitor simply waits without reporting anything. Either way, here's my dmesg output. Cheers.

Revision history for this message
K.Mandla (k.mandla) wrote :

I did a full shutdown and restart after the 2.6.20-10-386 update on 03/13 and reran udevmonitor. The output is attached here.

Revision history for this message
Stian Jordet (stian-web) wrote :

I have the exact same error on two very different computers. It doesn't seem like pcmcia cards with ata works at all. I have tried several different cards with the same result in both computers.

Changed in linux-source-2.6.20:
assignee: caravena → ubuntu-kernel-team
Revision history for this message
Ben Collins (ben-collins) wrote :

Bugs assigned to the kernel team should only be Confirmed. Needs Info should be assigned to person that requested the info.

Changed in linux-source-2.6.20:
importance: Undecided → Medium
status: Needs Info → Confirmed
Revision history for this message
David Tansey (djtansey) wrote :

I have the same error. I have attached the requested files. If you need anything else, let me know.

Revision history for this message
Andrew Hunter (rexbron) wrote :

This seemes to be fixed in 2.6.20-12 for me? anyone else?

Note: I am also using a San Disk adaptor and Lexar media.

Revision history for this message
Andrew Hunter (rexbron) wrote :

This is the relevent output of dmesg now:

[ 4652.296000] pccard: PCMCIA card inserted into slot 0
[ 4652.296000] cs: memory probe 0xb0100000-0xb01fffff: excluding 0xb0100000-0xb011ffff
[ 4652.304000] pcmcia: registering new device pcmcia0.0
[ 4652.960000] ata3: PATA max PIO0 cmd 0x00013100 ctl 0x0001310e bmdma 0x00000000 irq 3
[ 4652.960000] scsi2 : pata_pcmcia
[ 4653.132000] ata3.00: CFA: LEXAR ATA FLASH, V2.02, max PIO4
[ 4653.132000] ata3.00: 2003904 sectors, multi 0: LBA
[ 4653.140000] ata3.00: configured for PIO0
[ 4653.140000] scsi 2:0:0:0: Direct-Access ATA LEXAR ATA FLASH V2.0 PQ: 0 ANSI: 5
[ 4653.140000] SCSI device sdb: 2003904 512-byte hdwr sectors (1026 MB)
[ 4653.140000] sdb: Write Protect is off
[ 4653.140000] sdb: Mode Sense: 00 3a 00 00
[ 4653.140000] SCSI device sdb: write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 4653.140000] SCSI device sdb: 2003904 512-byte hdwr sectors (1026 MB)
[ 4653.140000] sdb: Write Protect is off
[ 4653.140000] sdb: Mode Sense: 00 3a 00 00
[ 4653.140000] SCSI device sdb: write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 4653.140000] sdb: sdb1
[ 4653.144000] sd 2:0:0:0: Attached scsi removable disk sdb
[ 4653.144000] sd 2:0:0:0: Attached scsi generic sg2 type 0

Revision history for this message
Stian Jordet (stian-web) wrote :

Indeed, fixed now :)

Revision history for this message
Andrew Hunter (rexbron) wrote :

Marking as fixed, if this bug still occurs, please reopen.

Changed in linux-source-2.6.20:
status: Confirmed → Fix Released
Revision history for this message
David Tansey (djtansey) wrote :

It was working for me for a while but it is no longer working. I am running kernel 386 2.6.20-13.21. I get the same error when putting my CF card in:
[ 209.880000] pcmcia: registering new device pcmcia0.0
[ 210.204000] ata3: PATA max PIO0 cmd 0x00013100 ctl 0x0001310e bmdma 0x00000000 irq 3
[ 210.204000] scsi2 : pata_pcmcia
[ 221.912000] ath0: no IPv6 routers present
[ 240.368000] ata3.00: qc timeout (cmd 0x91)
[ 240.368000] ata3.00: failed to IDENTIFY (INIT_DEV_PARAMS failed, err_mask=0x4)
[ 271.036000] ata3.00: qc timeout (cmd 0x91)
[ 271.036000] ata3.00: failed to IDENTIFY (INIT_DEV_PARAMS failed, err_mask=0x4)
[ 271.036000] ata3.00: limiting speed to UDMA7:PIO5
[ 301.704000] ata3.00: qc timeout (cmd 0x91)
[ 301.704000] ata3.00: failed to IDENTIFY (INIT_DEV_PARAMS failed, err_mask=0x4)

Revision history for this message
Stian Jordet (stian-web) wrote :

Still works fine for me with the latest kernel... :)

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

Indeed, it works again for me. The kernel is the same as when I tried it earlier in the week and it didn't work (2.6.20-13.21) -- I don't know if there are versions between the two 13.21s I have. I'll respond should I have a problem again.

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

I just (re)installed feisty with the final release CD. When I booted up the LiveCD my CF card was mounted automatically and was on the desktop. When I rebooted after the installation, it was not. I ejected it and reinserted it and received this dmesg error:

[ 250.524000] pccard: PCMCIA card inserted into slot 0
[ 250.524000] pcmcia: registering new device pcmcia0.0
[ 250.564000] ata4: PATA max PIO0 cmd 0x00013100 ctl 0x0001310e bmdma 0x00000000 irq 3
[ 250.564000] scsi3 : pata_pcmcia
[ 280.728000] ata4.00: qc timeout (cmd 0x91)
[ 280.728000] ata4.00: failed to IDENTIFY (INIT_DEV_PARAMS failed, err_mask=0x4)

In short, this is still an issue. Let me know what you need from me.

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

Man this bug is frustrating/confusing! I haven't touched my computer for the past 24 hours except to install libdvdcss2 and totem-xine. When I ejected and reinserted my CF card again, it worked. My memory might be failing me, but I really don't think I did anything else.

Revision history for this message
Ken (ken-waggies) wrote :

I have just upgraded from Edgy to Feisty to see if it would fix it but...
On an IBM laptop (does it matter?) I have a 1G CF card formatted FAT32 (ubuntu calls it vfat in mtab) in a 'Dazzle' PCMCIA adapter.
The card mounts (automatically) OK, and I can see the files on it. But I can't change permissions for files or directories, for group and other, from unreadable. I've tried from Nautilus and command-line with and without sudo.
Not the same bug? User error?
Seems to me if the card auto-mounts, then it should just work without further configuration!

Revision history for this message
passerby (passerby) wrote :

This has been such a huge annoyance for me in feisty. Can't use my sd cards in a PCMCIA adapter.

I have now tried the latest gutsy (tribe 5 alpha) and the problem is *still* unresolved. .

% pccardctl info
PRODID_1=""
PRODID_2=""
PRODID_3=""
PRODID_4=""
MANFID=0000,0000
FUNCID=255
PRODID_1="SanDisk"
PRODID_2="4-1 PC Card Adapter"
PRODID_3=""
PRODID_4=""
MANFID=0045,0401
FUNCID=4

% dmesg | tail -8
[ 71.840000] pccard: PCMCIA card inserted into slot 1
[ 71.840000] cs: memory probe 0xe8000000-0xefffffff: excluding 0xe8000000-0xefffffff
[ 71.840000] cs: memory probe 0xc0200000-0xcfffffff: excluding 0xc0200000-0xc11fffff 0xc1a00000-0xc21fffff 0xc2a00000-0xc31fffff 0xc3a00000-0xcc1fffff 0xcca00000-0xcd1fffff 0xcda00000-0xce1fffff 0xcea00000-0xcf1fffff 0xcfa00000-0xd01fffff
[ 71.844000] pcmcia: registering new device pcmcia1.0
[ 72.064000] scsi2 : pata_pcmcia
[ 72.068000] ata3: PATA max PIO0 cmd 0x00014100 ctl 0x0001410e bmdma 0x00000000 irq 3
[ 102.232000] ata3.00: qc timeout (cmd 0x91)
[ 102.232000] ata3.00: failed to IDENTIFY (INIT_DEV_PARAMS failed, err_mask=0x4

Revision history for this message
pfps (pfps) wrote :

If you are running on a Lenovo T60p (or related models), the qc timeout problem may be a BIOS bug (or at least that is the thinking of some Linux kernel people). If you are experiencing the problem on different hardware, it would probably be useful to find out, to scope the extent of the problem.

See the thread at http://lkml.org/lkml/2008/3/20/304 for more information.

Peter F. Patel-Schneider

Revision history for this message
Ken (ken-waggies) wrote : Re: [Bug 87951] Re: Compact flash (with PCMCIA adaptor) does not mount

Thanks for that Peter.

I have taken the easy way out and gone back to Windows XP for my IBM
laptop server. It and WAMP just works. I have wasted far too long on
linux.

Reading an Australian Personal Computer article on the next version of
ubuntu, it STILL doesn't cater for high resolution laptop screens. So
I would still have to patch it for my Dell Inspiron 6400.

Until linux can work for people as well as Windows does (I haven't
tried Vista yet), it will remain the playground of geeks.

I have been thinking of setting up a media centre. I briefly tried
myth on my Dell laptop. It was horrible -I was unable to see which
buttons were highlighted as active, and the settings were to my mind
unintuitive and unhelpful. If I do set up such a box, it will
probably run Vista.

Don't get me wrong, I would love to see linux make a huge dent in
Windows sales. But it isn't going to happen any time soon.

Regards,
Ken.

On 22/03/2008, pfps <email address hidden> wrote:
> If you are running on a Lenovo T60p (or related models), the qc timeout
> problem may be a BIOS bug (or at least that is the thinking of some
> Linux kernel people). If you are experiencing the problem on different
> hardware, it would probably be useful to find out, to scope the extent
> of the problem.
>
> See the thread at http://lkml.org/lkml/2008/3/20/304 for more
> information.
>
> Peter F. Patel-Schneider
>
>
> --
> Compact flash (with PCMCIA adaptor) does not mount
> https://bugs.launchpad.net/bugs/87951
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Launchpad Janitor (janitor) wrote : Kernel team bugs

Per a decision made by the Ubuntu Kernel Team, bugs will longer be assigned to the ubuntu-kernel-team in Launchpad as part of the bug triage process. The ubuntu-kernel-team is being unassigned from this bug report. Refer to https://wiki.ubuntu.com/KernelTeamBugPolicies for more information. 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.