1180:0822 Dell Precision M6300 SD Card Reader (Ricoh R5C592 memory stick) Will Not Mount After Upgrade To 10.10

Bug #670181 reported by gldickens3
72
This bug affects 12 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Medium
Unassigned

Bug Description

I have a Dell Precision M6300 Laptop on which I have been running Ubuntu for over 2 years. I ran 8.04 Hardy for two years and then 10.04 Lucid for the past 6 months. Everything worked great including the SD card reader on both 8.04 and 10.04 until two days ago when I performed a distribution upgrade to 10.10 Maverick. Now, after the upgrade, the SD card reader will not mount. Dmesg gives the following dialog when I insert an SD card:

[ 120.602656] r852: detected xD writeable card in slot
[ 120.910163] No NAND device found.

Prior to installing 10.10, the SD card would mount and a dialog would begin automatically when I inserted a SD card. Now, nothing happens.

The SD card reader does not show up when running "sudo fdisk -lu" from the command line. I have tried two different SD cards that worked in the past and that currently work from the Windows partition. Neither work with the Ubuntu 10.10 distribution upgrade. I have a dual boot machine and Windows mounts the card(s) without a problem so I am fairly certain that its not a hardware problem.

The SD card reader is an internal reader that came with my Dell Precision M6300. The command, lspci, lists the SD card reader as follows:

03:01.2 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 12)
03:01.3 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 12)

In researching this problem, I decided to try to mount the SD card reader from Ubuntu installation CDs to confirm that the problem wasn't related to my specific Ubuntu installation or the distribution upgrade that I performed. So, I booted both 32 bit and 64 bit versions of the Ubuntu Live CDs of 10.10 and found that the 32 bit version worked where the SD card would indeed mount. However, when booting from the 64 bit version of the 10.10 installation CD, the SD card would not mount. So, I have determined that this is a 64 bit problem only.

I am filing this bug report from my computer while running the 64 bit installation CD. Attached is a spider report that I ran from the installation CD.

The kernal version is:

Linux ubuntu 2.6.35-22-generic #33-Ubuntu SMP Sun Sep 19 20:32:27 UTC 2010 x86_64 GNU/Linux

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: linux-image-2.6.35-22-generic 2.6.35-22.33
Regression: Yes
Reproducible: Yes
ProcVersionSignature: Ubuntu 2.6.35-22.33-generic 2.6.35.4
Uname: Linux 2.6.35-22-generic x86_64
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23.
Architecture: amd64
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:
 Cannot stat file /proc/4519/fd/41: Stale NFS file handle
                      USER PID ACCESS COMMAND
 /dev/snd/controlC0: ubuntu 3043 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xf6ffc000 irq 47'
   Mixer name : 'SigmaTel STAC9205'
   Components : 'HDA:838476a0,102801f8,00100204 HDA:14f12c06,14f1000f,00100000'
   Controls : 18
   Simple ctrls : 11
Date: Tue Nov 2 23:54:08 2010
LiveMediaBuild: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
MachineType: Dell Inc. Precision M6300
ProcCmdLine: file=/cdrom/preseed/hostname.seed boot=casper initrd=/casper/initrd.lz quiet splash -- maybe-ubiquity
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
RelatedPackageVersions: linux-firmware 1.38
SourcePackage: linux
dmi.bios.date: 01/04/2010
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A13
dmi.board.name: 0JM680
dmi.board.vendor: Dell Inc.
dmi.chassis.type: 8
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvrA13:bd01/04/2010:svnDellInc.:pnPrecisionM6300:pvr:rvnDellInc.:rn0JM680:rvr:cvnDellInc.:ct8:cvr:
dmi.product.name: Precision M6300
dmi.sys.vendor: Dell Inc.

Revision history for this message
gldickens3 (gordon-dickens) wrote :
Revision history for this message
gldickens3 (gordon-dickens) wrote :

I fixed this SD card reader problem by installing the current development kernel:

linux-headers-2.6.37-999-generic_2.6.37-999.201011041120_amd64.deb

from the daily builds here:

http://kernel.ubuntu.com/~kernel-ppa/mainline/daily/2010-11-04-maverick/

Everything appears to be working perfectly.

So, as far as I am concerned, this bug is fixed in the newer kernels.

Also, this bug is a duplicate of bug 238208 here:

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/238208/+index?comments=all

Please mark it as such.

Thanks,

Gordon

Revision history for this message
gldickens3 (gordon-dickens) wrote :

It turns out that the Ricoh reader bug is not completely fixed yet. That is, with the new kernel, the SD reader will work for about 5-10 minutes after you boot the computer and then it will stop working again. So, while this situation is better, its not totally fixed yet.

Revision history for this message
gldickens3 (gordon-dickens) wrote :

I tried the 2010-11-09 kernel from here:

http://kernel.ubuntu.com/~kernel-ppa/mainline/daily/2010-11-09-maverick/

However, this new kernel does not solve the problem. The SD reader continues not to work reliably.

Changed in linux (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Jeremy Foshee (jeremyfoshee) wrote :

gldickens3,
     The team and I would like a bit of clarification on this issue. You indicated that you were using an xD is that the case? When you attempt to use an SD card is this behavior reproducible? When you look at the lspci for the SD card, do you see the same two lines?

Thanks!

~JFo

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

sorry, my previous confused even me. :-)

What I mean is:

If you are using an xD card, could you use an SD?
Do you see the same output for lspci for both types of cards?
if you have not tried a regular SD card, and you don't mind testing one, is the behavior seen the same?

Apologies for the confusion. :-)

~Jfo

Revision history for this message
gldickens3 (gordon-dickens) wrote :

I am using SD cards and I actually do not own any xD cards. Sorry for the confusion.

I am using the following kernel with which the SD cards sometimes works and sometimes doesn't work:

2.6.37-999-generic #201011091338 SMP Tue Nov 9 13:42:35 UTC 2010 x86_64 GNU/Linux

The SD cards appear to work much better and much more often with the 2.6.37-999 kernels than with the 2.6.35-22 kernel. With the 2.6.37-999 kernels, it usually will work properly for a couple of mounts following a reboot but it then will quit working altogether after multiple mounts until you reboot again. Whereas it seldom would work at all with the 2.6.35-22 kernel.

I am currently running 10.10 and the problem appears to have begun with 10.10 since the SD card reader worked without issues in 8.04 as well as 10.04.

I hope that this helps.

Thanks!

Gordon

Revision history for this message
GeorgeDunlap (dunlapg) wrote :

FWIW I'm using the default 10.10 kernel:

$ uname -a
Linux silas 2.6.35-22-generic #35-Ubuntu SMP Sat Oct 16 20:36:48 UTC 2010 i686 GNU/Linux

And I have a Ricoh host controller:
03:01.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller
03:01.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 19)
03:01.2 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 0a)
03:01.3 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 05)

I see the same messages above, even when using a normal 2G SD card.

One thing that's a bit strange: the messages are posted when I *partially* insert the card into the reader, not when I actually push it all the way in. It's like the driver got the "There's something partly into the slot" signal mixed up with the "There's something definitely in the slot, try to mount it"; and so it tries to access it before it's fully inserted, only to find that there's nothing there ("No NAND device found").

The SD card definitely worked on Friday, when I was running 10.04.

Revision history for this message
gldickens3 (gordon-dickens) wrote :

I received the following kernel update:

2.6.35-23-generic #40-Ubuntu SMP Wed Nov 17 22:14:33 UTC 2010 x86_64 GNU/Linux

I could not get the SD card reader to work with this new kernel at all.

As I have previously stated, the card reader will work for a brief while with following development kernel:

2.6.37-999-generic #201011091338 SMP Tue Nov 9 13:42:35 UTC 2010 x86_64 GNU/Linux

However, after a few mounts it will also quit working.

FYI,

Gordon

Revision history for this message
steff (stefan-neupert-gmail) wrote :

Same problem on my Dell Inspiron 6400 and a SanDisk 512MB SD-Card - both well-tried...

Linux dell 2.6.35-23-generic #40-Ubuntu SMP Wed Nov 17 22:15:35 UTC 2010 i686 GNU/Linux

Dec 1 18:04:47 dell kernel: [ 766.056079] r852: detected xD writeable card in slot
Dec 1 18:04:47 dell kernel: [ 766.360078] No NAND device found.

Revision history for this message
jhoechtl (johann-hoechtl) wrote :

I have the same problem (same controller as reported, lspci -v) but I consider the importance as very high.

I inserted my 4GB card today, and only part of the directory entries was shown (digital camera pictures), those shown could not be opended (read error). I re-inserted the card AND LINUX 10.10 AMD64 HARD CRASHED.

After reboot I re-inserted the card again and it did not get recognized as a new mount. I went over to two other Windows laptops, AND THE SAME. Seems like this bug actually destroyed my precious card with pics of partens, kids, family, holiday .. OF ALMOST A YEAR!

Same card worked flawless on 10.04. (OT: Anybody recommends a very good recovery tool? I am willing to pay money)

Revision history for this message
GeorgeDunlap (dunlapg) wrote :

Just to add a new data point:

I noticed today that I had a bunch of kernels from 10.04 lying around my /boot. Since it worked perfectly the very day I upgraded (several weeks ago), I thought maybe going back to an earlier kernel version would do it. So I added the last 10.04 kernel to grub, booted, and it still doesn't work.

The kernel version I booted was this one: 2.6.32-25-generic #45-Ubuntu SMP Sat Oct 16 19:48:22 UTC 2010

Is it possible this is actually a bug in the userspace tools -- udev, or udev rules?

Found the following in my /var/log/kernel.log (under 2.6.32-25):
Dec 6 21:48:37 silas kernel: [ 95.709963] mmc0: Got command interrupt 0x00030000 even though no command operation was in progress.
Dec 6 21:48:37 silas kernel: [ 95.709966] sdhci: ============== REGISTER DUMP ==============
Dec 6 21:48:37 silas kernel: [ 95.709971] sdhci: Sys addr: 0x00000000 | Version: 0x00000200
Dec 6 21:48:37 silas kernel: [ 95.709975] sdhci: Blk size: 0x00000000 | Blk cnt: 0x00000000
Dec 6 21:48:37 silas kernel: [ 95.709980] sdhci: Argument: 0x00000000 | Trn mode: 0x00000000
Dec 6 21:48:37 silas kernel: [ 95.709984] sdhci: Present: 0x01ff0000 | Host ctl: 0x00000000
Dec 6 21:48:37 silas kernel: [ 95.709989] sdhci: Power: 0x0000000f | Blk gap: 0x00000000
Dec 6 21:48:37 silas kernel: [ 95.709994] sdhci: Wake-up: 0x00000000 | Clock: 0x00004007
Dec 6 21:48:37 silas kernel: [ 95.709999] sdhci: Timeout: 0x0000000e | Int stat: 0x00000000
Dec 6 21:48:37 silas kernel: [ 95.710003] sdhci: Int enab: 0x00ff00c3 | Sig enab: 0x00ff00c3
Dec 6 21:48:37 silas kernel: [ 95.710008] sdhci: AC12 err: 0x00000000 | Slot int: 0x00000000
Dec 6 21:48:37 silas kernel: [ 95.710012] sdhci: Caps: 0x01e021a1 | Max curr: 0x00000040
Dec 6 21:48:37 silas kernel: [ 95.710014] sdhci: ===========================================

Revision history for this message
steff (stefan-neupert-gmail) wrote :

Hey! Something must have changed though the kernel version remains the same! It's working fine again. Thank's a lot!

Revision history for this message
gldickens3 (gordon-dickens) wrote :

Unfortunately, I am not seeing the results that steff reported in post #13. My SD card is now not working with any kernal, including the 2.6.37-999 kernel which was sometimes working before or the 2.6.35-23 kernel which is the current standard kernel version for Ubuntu 10.10. My SD card appears to now be always inoperable regardless of which kernel that I use.

Revision history for this message
jhoechtl (johann-hoechtl) wrote :

1. This is a widespread controller
2. I can remember that these problems appeared maybe a year back and more, but got reliably fixed
3. As such it seems like a regression.
4. Can somebody dig throught the commit logs? Unfortunaltey the problem seems more complex but a failing driver as reverting to an older kernel doesn't work
5. Which suggests that is is a user-space problem or a combination of both.
6. Bump

Revision history for this message
jhoechtl (johann-hoechtl) wrote :

No change since latest kernel update. Rocket science?

Revision history for this message
GeorgeDunlap (dunlapg) wrote :

FWIW, I'm an OS developer in my real life; don't generally do coding in my off time, but I'm going to take a look at this over my Christmas holidays and see if I can sort out what the problem is.

Revision history for this message
gldickens3 (gordon-dickens) wrote :

George, that would be great. I hope that you can solve the problem!

Revision history for this message
GeorgeDunlap (dunlapg) wrote :

I just downloaded the most recent ubuntu update (2.6.35-24) and the sd card works! There goes my holiday kernel hacking project... :-)

Revision history for this message
gldickens3 (gordon-dickens) wrote :

Yes!!! That's great news! Thanks for heads up George. I just updated to 2.6.35-24 and the SD card is indeed now working.

Gordon

Revision history for this message
jhoechtl (johann-hoechtl) wrote :

Well I already upgraded to 2.6.35-24 five days ago and it's not working for me. The error message of dmesg is corrupted FAT file system.

This controller
Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter
worked with all kinds of SD cards without any glitches under all vanilla kernels of Ubuntu 10.04 and 9.10

Johann

Revision history for this message
gldickens3 (gordon-dickens) wrote :

Our celebration appears to have been premature. My SD card now appears to work immediately after booting, however, it then will stop working at some point thereafter. That is, with the 2.6.35-24 kernel, my installation works properly for a couple of mounts following a reboot but it then will quit working altogether at some point until you reboot again. So, it ain't completely fixed yet.

Revision history for this message
Ivan (trurl-master) wrote :

Same problem. 2.6.35-24 didn't help. Last time i've used SD Card it's worked fine and it was maverick few weeks ago.

Revision history for this message
jhoechtl (johann-hoechtl) wrote :

2.6.35-25 is also not working. Waiting for a kernel update without action is fruitless btw. And I think nobody of canonical made a statement about this. So I guess we have to wait for 11.04.

Revision history for this message
Gaby Schilders (gaby-schilders) wrote :

I have the same problem but I only found out today as that was the first time I was trying to use this slot on my Dell Latitude E6500 I'll attach the "dmesg | egrep 'sdhci|mmc'" as a file.

For the record: dell latitude e6500 has been nothing but trouble for me in combination with Ubuntu and other Linux versions. This includes but is not limited to spurious WiFi problems (still no new firmware, despite promises by Dell,) suspend-resume failing every few times, the laptop spontaneously waking from power-off with the lid closed, etc. etc. etc.

Revision history for this message
jhoechtl (johann-hoechtl) wrote :

2.6.35-27 - no change. SD slot not working. Was working fine with 10.04 and 9.10

Revision history for this message
jhoechtl (johann-hoechtl) wrote :

2.6.35-28 - no change. SD cards mount but directory listing is garbled. Has anybody tried this controller with an alpha of Natty?

Revision history for this message
Peter Rhone (prhone-gmail) wrote :

Just tried the 11.04 Kernel: 2.6.38-020638rc8-generic #201103081151 SMP Tue Mar 8 11:57:03 UTC 2011 x86_64 GNU/Linux - still no recognition of an SD card.

There seems to be a working driver whose author (Maxim Levitsky) is trying to get it included in 2.6.39. If that happens, it still won't be of much use to Natty users unless they install a custom kernel. You could always patch the current kernel yourself, but that has disadvantages as well (i.e. no security updates without repatching, etc., binary drivers, etc...).

Revision history for this message
jhoechtl (johann-hoechtl) wrote :

Has anybody deeper insight why this driver is not working any longer? Is it a regression or was it removed for legal resons / licensing?

Revision history for this message
jhoechtl (johann-hoechtl) wrote :

Not working after update to 2.6.35-28-generic #50-Ubuntu SMP Fri Mar 18 18:42:20 UTC 2011

Revision history for this message
CoolDreamZ (chris-thompson-stormfolio) wrote :

I have the same problem on my Dell Precision M6300, I am running Linux Mint 11 (Kernel 2.6.38-8-generic #42-Ubuntu).

I can get the card reader to work if I reboot the laptop with an SD card already in the reader. However, once I remove the card it no longer works when I (re)insert a card.

Revision history for this message
petit-prince (petit-prince) wrote :

Can you try
sudo modprobe -r r852 ; sudo modprobe -r sdhci_pci ; sudo modprobe r852 ; sudo modprobe sdhci_pci
This was suggested in post #39 of bug #604122 and sounds like it might be worth a try.

Revision history for this message
penalvch (penalvch) wrote :

gldickens3, thank you for reporting this and helping make Ubuntu better. Maverick reached EOL on April 10, 2012.
Please see this document for currently supported Ubuntu releases:
https://wiki.ubuntu.com/Releases

We were wondering if this is still an issue in a supported release? If so, could you please test for this with the latest development release of Ubuntu? ISO CD images are available from http://cdimage.ubuntu.com/daily-live/current/ .

If it remains an issue, could you please run the following command in the development release from a Terminal (Applications->Accessories->Terminal), as it will automatically gather and attach updated debug information to this report:

apport-collect -p linux <replace-with-bug-number>

Also, could you please test the latest upstream kernel available following https://wiki.ubuntu.com/KernelMainlineBuilds ? It will allow additional upstream developers to examine the issue. Please do not test the kernel in the mainline kernels archive directory daily folder. Once you've tested the upstream kernel, please comment on which kernel version specifically you tested. If this bug is fixed in the mainline kernel, please add the following tags:
kernel-fixed-upstream
kernel-fixed-upstream-VERSION-NUMBER

where VERSION-NUMBER is the version number of the kernel you tested. For example:
kernel-fixed-upstream-v3.8-rc3

This can be done by clicking on the yellow circle with a black pencil icon next to the word Tags located at the bottom of the bug description. As well, please remove the tag:
needs-upstream-testing

If the mainline kernel does not fix this bug, please add the following tags:
kernel-bug-exists-upstream
kernel-bug-exists-upstream-VERSION-NUMBER

As well, please remove the tag:
needs-upstream-testing

If you are unable to test the mainline kernel, please comment as to why specifically you were unable to test it and add the following tags:
kernel-unable-to-test-upstream
kernel-unable-to-test-upstream-VERSION-NUMBER

Once testing of the upstream kernel is complete, please mark this bug's Status as Confirmed. Please let us know your results. Thank you for your understanding.

Helpful bug reporting tips:
https://help.ubuntu.com/community/ReportingBugs

summary: - Dell Precision M6300 SD Card Reader (Ricoh R5C592 memory stick) Will Not
- Mount After Upgrade To 10.10
+ 1180:0822 Dell Precision M6300 SD Card Reader (Ricoh R5C592 memory
+ stick) Will Not Mount After Upgrade To 10.10
Changed in linux (Ubuntu):
status: Triaged → Incomplete
tags: added: bios-outdated
Revision history for this message
gldickens3 (gordon-dickens) wrote :

Hi Christopher Penalver,

I no longer use Ubuntu since I switched to OpenSUSE/KDE upon the introduction of the Unity interface which I strongly dislike. However, I will report that this same bug occurs in OpenSUSE 12.2 with the 3.4.11 kernel. Therefore, I am quite sure that this is an upstream bug in the kernel. As an FYI, my /proc/version reads:

Linux version 3.4.11-2.16-desktop (geeko@buildhost) (gcc version 4.7.1 20120723 [gcc-4_7-branch revision 189773] (SUSE Linux) ) #1 SMP PREEMPT Wed Sep 26 17:05:00 UTC 2012 (259fc87)

This bug exists in this kernel too on OpenSUSE 12.2.

I hope that this helps.

Thanks,

Gordon

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

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
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.