[Dell Latitude E5520/E5520M/E6520] SD card is not detected

Bug #777321 reported by Marc Legris on 2011-05-04
74
This bug affects 12 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
High
Ayan George
Natty
High
Ayan George

Bug Description

Inserting an SD card, or a SDHC card, is not detected by the system and not automounted. This issue is seen by multiple different sd cards from different manufacturers.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: linux-image-2.6.38-8-generic 2.6.38-8.42
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic i686
NonfreeKernelModules: wl
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23.
Architecture: i386
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: u 1228 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xf6afc000 irq 48'
   Mixer name : 'Intel Cantiga HDMI'
   Components : 'HDA:111d76e7,102804ec,00100102 HDA:14f12c06,14f1000f,00100000 HDA:80862802,80860101,00100000'
   Controls : 19
   Simple ctrls : 11
Date: Wed May 4 14:22:31 2011
HibernationDevice: RESUME=UUID=a7079be0-3f2d-428e-9dda-34e2bfa699c3
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
MachineType: Dell Inc. Latitude E5520m
ProcEnviron:
 LANGUAGE=en_US:en
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.38-8-generic root=UUID=ce41d73c-4918-4713-9b23-d0f129f43019 ro quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-2.6.38-8-generic N/A
 linux-backports-modules-2.6.38-8-generic N/A
 linux-firmware 1.52
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 01/26/2011
dmi.bios.vendor: Dell Inc.
dmi.bios.version: X10
dmi.board.name: K5E3C1
dmi.board.vendor: Dell Inc.
dmi.chassis.type: 8
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvrX10:bd01/26/2011:svnDellInc.:pnLatitudeE5520m:pvr:rvnDellInc.:rnK5E3C1:rvr:cvnDellInc.:ct8:cvr:
dmi.product.name: Latitude E5520m
dmi.sys.vendor: Dell Inc.

Brad Figg (brad-figg) on 2011-05-04
Changed in linux (Ubuntu):
status: New → Confirmed
Changed in linux (Ubuntu Natty):
assignee: nobody → Chris Van Hoof (vanhoof)
Chris Van Hoof (vanhoof) wrote :

@marc -- this O2 micro card is supported, but I am curious as to the firewire messages I'm seeing in CurrentDmesg. I saw a bug on another platform where the sd card would not be recognized as long as a firewire device was connected. Can you reboot without firewire attached, and test out the sd card slot again?

Cheers,
Chris

Changed in linux (Ubuntu Natty):
assignee: Chris Van Hoof (vanhoof) → Marc Legris (maaarc)
Changed in linux (Ubuntu):
assignee: nobody → Chris Van Hoof (vanhoof)
Changed in linux (Ubuntu Natty):
importance: Undecided → High
Changed in linux (Ubuntu):
importance: Undecided → High

@Chris

Rebooted and tried a couple of cards, none of them are working and I don't see any related messages in dmesg

Chris Van Hoof (vanhoof) wrote :

Note that the this machine is using a o2micro sd card controller, as well as a firewire controller, both of which are reporting failures in Natty:

firewire bug: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/777310

Support for a few o2micro devices was brought into 2.6.37, we'll need to see if sdhci-pci can properly support this device:

08:00.0 FireWire (IEEE 1394) [0c00]: O2 Micro, Inc. Device [1217:13f7] (rev 05) (prog-if 10 [OHCI])
 Subsystem: Dell Device [1028:04ec]
 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx+
 Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx+
 Latency: 0, Cache Line Size: 64 bytes
 Interrupt: pin A routed to IRQ 46
 Region 0: Memory at f65ff000 (32-bit, non-prefetchable) [size=4K]
 Capabilities: <access denied>
 Kernel driver in use: firewire_ohci
 Kernel modules: firewire-ohci

08:00.1 SD Host controller [0805]: O2 Micro, Inc. Device [1217:8321] (rev 05) (prog-if 01)
 Subsystem: Dell Device [1028:04ec]
 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
 Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
 Latency: 0, Cache Line Size: 64 bytes
 Interrupt: pin B routed to IRQ 16
 Region 0: Memory at f65fe600 (32-bit, non-prefetchable) [size=512]
 Capabilities: <access denied>
 Kernel driver in use: sdhci-pci
 Kernel modules: sdhci-pci

Changed in linux (Ubuntu):
assignee: Chris Van Hoof (vanhoof) → Ayan George (ayan)
Changed in linux (Ubuntu Natty):
assignee: Marc Legris (maaarc) → Ayan George (ayan)
status: New → Confirmed
tags: added: hwe-blocker

E6520 has the same issue with the same 02 micro card

summary: - [Dell Latitude E5520M] SD card is not detected
+ [Dell Latitude E5520M/E6520] SD card is not detected
Chris Van Hoof (vanhoof) on 2011-06-14
summary: - [Dell Latitude E5520M/E6520] SD card is not detected
+ [Dell Latitude E5520/E5520M/E6520] SD card is not detected
Chris Van Hoof (vanhoof) wrote :

Marc -- This should have been fixed with this patch:

http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-natty.git;a=commitdiff;h=26daa1ed40c6b31b4220581431982814c47c608a

... which was included in 2.6.37

Can you try this:

Create /etc/modprobe.d/test

add the following to the file:
options sdhci debug_quirks=0x40

then:
rmmod sdhci_pci
rmmod sdhci
modprobe sdhci_pci

See if that changes the sdcard behaviour

Changed in linux (Ubuntu Natty):
status: Confirmed → Incomplete
assignee: Ayan George (ayan) → Marc Legris (maaarc)

Chris -- After trying the steps above, I was still unable to mount the sd card.

Changed in linux (Ubuntu Natty):
status: Incomplete → Confirmed
assignee: Marc Legris (maaarc) → Ayan George (ayan)
Kent Baxley (kentb) wrote :

Same here.

I'm attaching a syslog from Krug-15. Grep for sdhci for the errors.

Kent Baxley (kentb) wrote :

lspci output from afflicted system.

The SD card reader on the 6320 (a smaller version of the systems mentioned above) works just fine under Natty. It is also an O2 Micro card reader. The only difference seems to be that its device id is 8221 and has no firewire component, whereas the 15-inch models mentioned in this ticket use an SD-Card / Firewire combo with device id's of 8321 and 8331, repsectively.

Kent Baxley (kentb) wrote :

On one of the affected machines (the 6520) I went into the BIOS and changed the configuration so that *ONLY* the SD card was enabled. In other words, the firewire was turned off.

Once again, the card was not mounted. I did however, get a register dump in dmesg (see attached).

For grins, I also tried the old workaround again (the modprobe.d quirk), but, this also did not make a difference.

aa-hcl (aa-hcl) wrote :

Hi,

I have Dell E6520, ubuntu 11.04, and I confirm the same problem with the SD card. My previous laptop E5510 also had SD card, but as mentioned in #9, it had different ID and no firewire, that is why the fix described in #6 did work on E5510.

On E6520 I also have the O2 fireware controller and O2 SD card reader:

(from lspci output)
0b:00.0 FireWire (IEEE 1394): O2 Micro, Inc. Device 13f7 (rev 05)
0b:00.1 SD Host controller: O2 Micro, Inc. Device 8321 (rev 05)
0b:00.2 Mass storage controller: O2 Micro, Inc. Device 8331 (rev 05)

It was also previously mentioned in https://answers.launchpad.net/ubuntu-certification/+question/160447, on E6520 there is a problem with firewire drives, but i did not check it yet.

It would be really nice to get it all fixed!

I confirm this problem still exists on Dell E6520 with A05 BIOS. Also Fedora 15 with latest updates has the same issue. Has anyone opened a bug for the kernel team?

Chris Van Hoof (vanhoof) wrote :

@aa-hcl @RoundSparrow:
Can you give the test[0] outlined in Bug #801719 a try on the E6520:

[0] -- https://bugs.launchpad.net/ubuntu/+source/linux/+bug/801719/comments/3

Changed in linux (Ubuntu Natty):
status: Confirmed → Incomplete
François Rey (fmjrey) wrote :

Chris,

The workaround from bug #801719 worked for me on my E6520.
More precisely:

sudo modprobe -r firewire-ohci
sudo modprobe firewire-ohci quirks=0x10 debug=0xf

So how can we make this persistent after reboot?

Thanks

Laurentj (ljouanneau) wrote :

@François

in a new file /etc/modprobe.d/cardreader-firewire.conf (the file name is an example, choose what you want), add these instructions

options firewire-ohci quirks=0x10

(the module doesn't want the debug parameter on my e6520/natty 64bits)

Then launch
sudo update-initramfs -u

reboot and it should be ok. At least it works for me.

François Rey (fmjrey) wrote :

Thanks Laurentj!

Is there going to be a bug fix somewhere?
Just wondering how long we need this workaround.

We probably need to mark this bug as a duplicate of bug #801719.

Nathan Dykhuis (ndykhuis) wrote :

Confirm that this fix (#14) also works on a Dell Latitude E5420. Thanks!

Woonjas (woonjas) wrote :

Tried the fix and now it does detect the fact that I'm inserting a card, but it returns an error:

[ 2275.008785] mmc0: Timeout waiting for hardware interrupt.
[ 2275.008797] sdhci: =========== REGISTER DUMP (mmc0)===========
[ 2275.008806] sdhci: Sys addr: 0x00000000 | Version: 0x0000c001
[ 2275.008814] sdhci: Blk size: 0x00000000 | Blk cnt: 0x00000000
[ 2275.008821] sdhci: Argument: 0x00000000 | Trn mode: 0x00000000
[ 2275.008829] sdhci: Present: 0x010f0000 | Host ctl: 0x00000001
[ 2275.008836] sdhci: Power: 0x00000000 | Blk gap: 0x00000000
[ 2275.008844] sdhci: Wake-up: 0x00000000 | Clock: 0x00000000
[ 2275.008851] sdhci: Timeout: 0x00000000 | Int stat: 0x00000000
[ 2275.008859] sdhci: Int enab: 0x00ff00c3 | Sig enab: 0x00ff00c3
[ 2275.008867] sdhci: AC12 err: 0x00000000 | Slot int: 0x00000000
[ 2275.008875] sdhci: Caps: 0x21e608b2 | Caps_1: 0x00002077
[ 2275.008883] sdhci: Cmd: 0x00000102 | Max curr: 0x00000064
[ 2275.008887] sdhci: ===========================================
[ 2275.352091] mmc0: error -110 whilst initialising SD card

skrhendel (skrhendel) wrote :

Also 11.10 with Dell E6520 is affected, the fix in #14 didn't fix mine

dmesg | tail
[ 2694.856625] end_request: I/O error, dev mmcblk0, sector 5
[ 2694.858667] mmcblk0: error -110 sending read/write command, response 0x0, card status 0x800b00
[ 2694.858669] end_request: I/O error, dev mmcblk0, sector 6
[ 2694.862702] mmcblk0: error -110 sending status command
[ 2694.862705] mmcblk0: error -110 sending read/write command, response 0x0, card status 0x0
[ 2694.862707] end_request: I/O error, dev mmcblk0, sector 7
[ 2705.333103] firewire_ohci: IRQ 00200000 cycle64Seconds
[ 2769.313083] firewire_ohci: IRQ 00200000 cycle64Seconds
[ 2833.293051] firewire_ohci: IRQ 00200000 cycle64Seconds
[ 2897.273048] firewire_ohci: IRQ 00200000 cycle64Seconds

lspci
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (rev 04)
00:1a.0 USB Controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b4)
00:1c.1 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 (rev b4)
00:1c.2 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 3 (rev b4)
00:1c.3 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 (rev b4)
00:1c.5 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 6 (rev b4)
00:1d.0 USB Controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation QM67 Express Chipset Family LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller (rev 04)
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 04)
01:00.0 VGA compatible controller: nVidia Corporation GF108 [Quadro NVS 4200M] (rev a1)
01:00.1 Audio device: nVidia Corporation HDMI Audio stub (rev a1)
03:00.0 Network controller: Intel Corporation Centrino Ultimate-N 6300 (rev 35)
0b:00.0 FireWire (IEEE 1394): O2 Micro, Inc. Device 13f7 (rev 05)
0b:00.1 SD Host controller: O2 Micro, Inc. Device 8321 (rev 05)
0b:00.2 Mass storage controller: O2 Micro, Inc. O2 Flash Memory Card (rev 05)

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

Other bug subscribers