Ricoh e822 SD-Card reader doesn't work

Bug #660088 reported by Dominik
36
This bug affects 7 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

I got a Dell E6410 with a built in SD-Card reader. This reader doesn't work on my current up to date Ubuntu 10.10

$lspci -v:
03:00.0 SD Host controller: Ricoh Co Ltd Device e822 (rev 03) (prog-if 01)
 Subsystem: Dell Device 040a
 Flags: bus master, fast devsel, latency 0, IRQ 19
 Memory at f2c40000 (32-bit, non-prefetchable) [size=256]
 Capabilities: <access denied>
 Kernel driver in use: sdhci-pci
 Kernel modules: sdhci-pci

$dmesg (after loading sdhci-pci):
[14104.426847] sdhci-pci 0000:03:00.0: PCI INT B disabled
[14115.662665] sdhci: Secure Digital Host Controller Interface driver
[14115.662671] sdhci: Copyright(c) Pierre Ossman
[14115.665815] sdhci-pci 0000:03:00.0: SDHCI controller found [1180:e822] (rev 3)
[14115.665858] sdhci-pci 0000:03:00.0: PCI INT B -> GSI 19 (level, low) -> IRQ 19
[14115.667392] mmc0: Unknown controller version (2). You may experience problems.
[14115.667442] sdhci-pci 0000:03:00.0: setting latency timer to 64
[14115.667759] Registered led device: mmc0::
[14115.667989] mmc0: SDHCI controller on PCI [0000:03:00.0] using ADMA

$dmesg (after plugging in a card)
[14150.560629] mmc0: ADMA error
[14150.562689] mmc0: Got data interrupt 0x02100000 even though no data operation was in progress.
[14150.562694] sdhci: ============== REGISTER DUMP ==============
[14150.562702] sdhci: Sys addr: 0x00000000 | Version: 0x00000402
[14150.562709] sdhci: Blk size: 0x00007008 | Blk cnt: 0x00000001
[14150.562717] sdhci: Argument: 0x00000000 | Trn mode: 0x00000013
[14150.562724] sdhci: Present: 0x01ff0000 | Host ctl: 0x00000011
[14150.562731] sdhci: Power: 0x0000000f | Blk gap: 0x00000000
[14150.562738] sdhci: Wake-up: 0x00000000 | Clock: 0x00004007
[14150.562745] sdhci: Timeout: 0x0000000a | Int stat: 0x00000000
[14150.562752] sdhci: Int enab: 0x02ff00cb | Sig enab: 0x02ff00cb
[14150.562759] sdhci: AC12 err: 0x00000000 | Slot int: 0x00000000
[14150.562767] sdhci: Caps: 0x21e832b2 | Max curr: 0x00000040
[14150.562774] sdhci: ADMA Err: 0x00000001 | ADMA Ptr: 0xae09d018
[14150.562776] sdhci: ===========================================
[14150.563805] mmc0: error -5 whilst initialising SD card

$uname -a
Linux USSKelvin 2.6.35-22-generic #34-Ubuntu SMP Sun Oct 10 09:26:05 UTC 2010 x86_64 GNU/Linux

Revision history for this message
Halkola (halkola) wrote :

I have the same problem after updating from 10.04 to 10.10 on HP dv6544eo. The card mounts properly but the data is corrrupt.

07:05.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 22)
 Subsystem: Hewlett-Packard Company Device 30cf
 Flags: bus master, medium devsel, latency 64, IRQ 7
 Memory at f2100800 (32-bit, non-prefetchable) [size=256]
 Capabilities: <access denied>
 Kernel driver in use: sdhci-pci
 Kernel modules: sdhci-pci

Revision history for this message
Dominik (dominik-dbruhn) wrote :

I don't think that this is the same Bug, you neither got the same Controler, nor the same machine. Also the Bug was there on 10.04 for me, I tested that. Perhaps you want to open another report and also provide a dmesg log.

Revision history for this message
Jeremy Foshee (jeremyfoshee) wrote :

Hi Dominik,

Please be sure to confirm this issue exists with the latest development release of Ubuntu. ISO CD images are available from http://cdimage.ubuntu.com/daily/current/ . If the issue remains, please run the following command from a Terminal (Applications->Accessories->Terminal). It will automatically gather and attach updated debug information to this report.

apport-collect -p linux 660088

Also, if you could test the latest upstream kernel available that would be great. It will allow additional upstream developers to examine the issue. Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag. This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text. Please let us know your results.

Thanks in advance.

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

tags: added: needs-kernel-logs
tags: added: needs-upstream-testing
tags: added: kj-triage
Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Dominik (dominik-dbruhn) wrote :

I downloaded the 'linux-image-2.6.36-999-generic_2.6.36-999.201010180905_amd64.deb' from the MainlineBuilds and installed it. I got a uname of '2.6.36-999-generic #201010180905 SMP Mon Oct 18 09:09:44 UTC 2010 x86_64 GNU/Linux'. With this kernel, everything works regarding the SD-Card-Reader.

What should I test further, please tell me how I can help to get this bugfix into Ubuntu stable asap.

Revision history for this message
Fromzy (fromzy) wrote :

Laptop Dell Latitude E6510
SD Card Reader does not work on Ubuntu 10.10
.Tested latest MainlineBuilds : linux-image-2.6.36-999-generic_2.6.36-999.201010180905_amd64.deb
.SD Card works with this syslog output :

Oct 20 00:01:13 stef kernel: [ 54.458310] mmc0: new SDHC card at address 313d
Oct 20 00:01:13 stef kernel: [ 54.463766] mmcblk0: mmc0:313d SD08G 7.50 GiB
Oct 20 00:01:13 stef kernel: [ 54.464593] mmcblk0: p1

Regards

--
Stephane

Fromzy (fromzy)
description: updated
tags: removed: needs-upstream-testing
Revision history for this message
Fromzy (fromzy) wrote :

With last update :
$ uname -a
Linux stef 2.6.35-22-generic #35-Ubuntu SMP Sat Oct 16 20:45:36 UTC 2010 x86_64 GNU/Linux

I know have this errors in dmesg
mmc0: ADMA error
mmc0: error -5 whilst initialising SD card

If I follow recommendations given in bug 605043 (removing adma) then sd card reader works fine
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/605043

specificaly by adding a new conf file in /etc/modprobe.d with this line :
options sdhci debug_quirks=0x40

Then rmmod sdhci_pci and rmmod sdhci
and then modprobe sdhci

that makes the sd reader working immediately

Revision history for this message
JL (vwyodapink) wrote :

Linux 2.6.35-23-generic #36-Ubuntu SMP Tue Oct 26 17:13:06 UTC 2010 x86_64 GNU/Linux

I was having the same error of:
mmc0: ADMA error
mmc0: error -5 whilst initializing SD card

SD Host controller: O2 Micro, Inc. Device 8120 (rev 01)
Toshiba x505-886

Doing the above work around solved my issue the only thing I had to do after modprobe sdhci was then also to modprobe sdhci_pci and now works. Though have not rebooted but I am sure will continue. Will report back if not.

Revision history for this message
JL (vwyodapink) wrote :

For some reason for mine its not staying in the reboot just realized that. :P But works until then. So maybe not totally related bugs.

Revision history for this message
cacula (cacula) wrote :

to make the patch persistent you need to update your initramfs to make your config change apply to the module which is loaded during boot:

sudo update-initramfs -u

see also https://bugs.launchpad.net/ubuntu/+source/linux/+bug/605043/comments/24

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

Other bug subscribers

Related questions

Remote bug watches

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