end_request: I/O error, dev mmcblk0

Bug #956042 reported by yonib
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Medium
Unassigned

Bug Description

when trying to access my sandisk 2Gb SD card using a Dell Latitude E5420 laptop.

ubintu version:

Description: Ubuntu 11.10
Release: 11.10

from dmesg:

Ubuntu 3.0.0-16.29-generic-pae 3.0.20
...
[ 2.336754] sdhci-pci 0000:09:00.1: SDHCI controller found [1217:8321] (rev 5)
[ 2.336781] sdhci-pci 0000:09:00.1: PCI INT B -> GSI 18 (level, low) -> IRQ 18
[ 2.336831] sdhci-pci 0000:09:00.1: Invalid iomem size. You may experience problems.
[ 2.336881] sdhci-pci 0000:09:00.1: setting latency timer to 64
[ 2.336916] mmc0: no vmmc regulator found
[ 2.336968] Registered led device: mmc0::
[ 2.337012] mmc0: SDHCI controller on PCI [0000:09:00.1] using DMA
...
after inserting SD:

[ 44.539351] mmc0: new SD card at address e624
[ 44.541027] mmcblk0: mmc0:e624 SD02G 1.84 GiB
[ 44.556239] mmcblk0:
[ 99.721689] mmcblk0: error -110 transferring data, sector 23360, nr 85, card status 0xc00
[ 99.722203] end_request: I/O error, dev mmcblk0, sector 23388
...
[ 110.372035] sdhci: =========== REGISTER DUMP (mmc0)===========
[ 110.372059] sdhci: Sys addr: 0x2b090800 | Version: 0x0000c001
[ 110.372067] sdhci: Blk size: 0x00007200 | Blk cnt: 0x0000007c
[ 110.372075] sdhci: Argument: 0x00000000 | Trn mode: 0x00000023
[ 110.372083] sdhci: Present: 0x01ef0000 | Host ctl: 0x00000003
[ 110.372091] sdhci: Power: 0x0000000f | Blk gap: 0x00000000
[ 110.372099] sdhci: Wake-up: 0x00000000 | Clock: 0x00000007
[ 110.372107] sdhci: Timeout: 0x0000000e | Int stat: 0x00000000
[ 110.372115] sdhci: Int enab: 0x02ff00cb | Sig enab: 0x02ff00cb
[ 110.372123] sdhci: AC12 err: 0x00000000 | Slot int: 0x00000000
[ 110.372132] sdhci: Caps: 0x21e608b2 | Caps_1: 0x00002077
[ 110.372139] sdhci: Cmd: 0x00000c1b | Max curr: 0x00000064
[ 110.372146] sdhci: Host ctl2: 0x00000000
[ 110.372148] sdhci: ===========================================

thanks
yoni
---
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 1.23-0ubuntu4
Architecture: i386
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: PCH [HDA Intel PCH], device 0: STAC92xx Analog [STAC92xx Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: yoni 1813 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'PCH'/'HDA Intel PCH at 0xe3d40000 irq 43'
   Mixer name : 'Intel CougarPoint HDMI'
   Components : 'HDA:111d76e7,1028049b,00100102 HDA:80862805,80860101,00100000'
   Controls : 27
   Simple ctrls : 13
DistroRelease: Ubuntu 11.10
HibernationDevice: RESUME=UUID=29bdbe19-cb50-4fb6-9ca0-f8bb52fcacfe
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
MachineType: Dell Inc. Latitude E5420
Package: linux (not installed)
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.0.0-16-generic-pae root=UUID=a92ec2c6-3c85-4e9b-a23a-10c35867fbc0 ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 3.0.0-16.29-generic-pae 3.0.20
RelatedPackageVersions:
 linux-restricted-modules-3.0.0-16-generic-pae N/A
 linux-backports-modules-3.0.0-16-generic-pae N/A
 linux-firmware 1.60
StagingDrivers: mei zram
Tags: oneiric running-unity staging
Uname: Linux 3.0.0-16-generic-pae i686
UpgradeStatus: Upgraded to oneiric on 2012-01-24 (51 days ago)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
dmi.bios.date: 09/19/2011
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A03
dmi.board.name: 0H5TG2
dmi.board.vendor: Dell Inc.
dmi.board.version: A01
dmi.chassis.type: 9
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvrA03:bd09/19/2011:svnDellInc.:pnLatitudeE5420:pvr01:rvnDellInc.:rn0H5TG2:rvrA01:cvnDellInc.:ct9:cvr:
dmi.product.name: Latitude E5420
dmi.product.version: 01
dmi.sys.vendor: Dell Inc.

Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 956042

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
tags: added: oneiric
Revision history for this message
yonib (yonib) wrote : AcpiTables.txt

apport information

tags: added: apport-collected running-unity staging
description: updated
Revision history for this message
yonib (yonib) wrote : AlsaDevices.txt

apport information

Revision history for this message
yonib (yonib) wrote : AplayDevices.txt

apport information

Revision history for this message
yonib (yonib) wrote : BootDmesg.txt

apport information

Revision history for this message
yonib (yonib) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
yonib (yonib) wrote : Card0.Codecs.codec.0.txt

apport information

Revision history for this message
yonib (yonib) wrote : Card0.Codecs.codec.3.txt

apport information

Revision history for this message
yonib (yonib) wrote : CurrentDmesg.txt

apport information

Revision history for this message
yonib (yonib) wrote : IwConfig.txt

apport information

Revision history for this message
yonib (yonib) wrote : Lspci.txt

apport information

Revision history for this message
yonib (yonib) wrote : Lsusb.txt

apport information

Revision history for this message
yonib (yonib) wrote : PciMultimedia.txt

apport information

Revision history for this message
yonib (yonib) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
yonib (yonib) wrote : ProcEnviron.txt

apport information

Revision history for this message
yonib (yonib) wrote : ProcInterrupts.txt

apport information

Revision history for this message
yonib (yonib) wrote : ProcModules.txt

apport information

Revision history for this message
yonib (yonib) wrote : PulseSinks.txt

apport information

Revision history for this message
yonib (yonib) wrote : PulseSources.txt

apport information

Revision history for this message
yonib (yonib) wrote : RfKill.txt

apport information

Revision history for this message
yonib (yonib) wrote : UdevDb.txt

apport information

Revision history for this message
yonib (yonib) wrote : UdevLog.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
yonib (yonib) wrote : WifiSyslog.txt

apport information

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v3.3 kernel[1] (Not a kernel in the daily directory). Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag(Only that one tag, please leave the other tags). 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.

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

If you are unable to test the mainline kernel, for example it will not boot, please add the tag: 'kernel-unable-to-test-upstream'.
Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[1] http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.3-rc7-precise/

Changed in linux (Ubuntu):
importance: Undecided → Medium
tags: added: needs-upstream-testing
Revision history for this message
yonib (yonib) wrote :

dmesg when inserting Sandisk SDHC card (created by LG x140 ubuntu machine):

[ 51.607944] mmc0: new SDHC card at address e624
[ 51.656307] mmcblk0: mmc0:e624 SD04G 3.69 GiB
[ 51.664964] mmcblk0: p1 p2
[ 52.056485] mmcblk0: error -110 transferring data, sector 6436057, nr 32, cmd response 0x900, card status 0xc00
[ 52.058701] end_request: I/O error, dev mmcblk0, sector 6436057
[ 52.058704] Buffer I/O error on device mmcblk0p2, logical block 786434
[ 52.058706] lost page write due to I/O error on mmcblk0p2
[ 52.058709] end_request: I/O error, dev mmcblk0, sector 6436065
[ 52.058711] Buffer I/O error on device mmcblk0p2, logical block 786435
[ 52.058712] lost page write due to I/O error on mmcblk0p2
[ 52.058714] end_request: I/O error, dev mmcblk0, sector 6436073
[ 52.058715] Buffer I/O error on device mmcblk0p2, logical block 786436
[ 52.058717] lost page write due to I/O error on mmcblk0p2
[ 52.058718] end_request: I/O error, dev mmcblk0, sector 6436081
[ 52.058720] Buffer I/O error on device mmcblk0p2, logical block 786437
[ 52.058721] lost page write due to I/O error on mmcblk0p2
[ 52.078314] mmcblk0: error -84 transferring data, sector 1457185, nr 8, cmd response 0x900, card status 0xc00
[ 52.078416] end_request: I/O error, dev mmcblk0, sector 1457192
[ 52.078420] Buffer I/O error on device mmcblk0p2, logical block 164075
[ 52.078422] lost page write due to I/O error on mmcblk0p2
[ 52.087898] JBD: recovery failed
[ 52.087904] EXT3-fs (mmcblk0p2): error loading journal

tags: added: kernel-bug-exists-upstream
Revision history for this message
madbiologist (me-again) wrote :

Can you please try again with either kernel 3.4.11 from http://kernel.ubuntu.com/~kernel-ppa/mainline/ or with the Ubuntu 12.10 "Quantal Quetzal" beta 2 LiveCD which is based on the upstream 3.5 kernel.

The following patch was committed to the 3.4 kernel:

author Paul Walmsley
Mon, 12 Mar 2012 10:58:00 +0000 (04:58 -0600)
committer Chris Ball
Fri, 6 Apr 2012 00:32:34 +0000 (20:32 -0400)
commit 3bdc9ba892d6a294d16e9e6e0c4041926aa3d58c
tree 2b1ed75a8b3b5a40c01e8f80bc45242a3c2b35f0
parent 8c2fc8e413ecc2c96b696e28d4eb1bc6cee8dc84
mmc: use really long write timeout to deal with crappy cards

Several people have noticed that crappy SD cards take much longer to
complete multiple block writes than the 300ms that Linux specifies.
Try to work around this by using a three second write timeout instead.

This is a generalized version of a patch from Chase Maupin
<email address hidden>, whose patch description said:

* With certain SD cards timeouts like the following have been seen
  due to an improper calculation of the dto value:
    mmcblk0: error -110 transferring data, sector 4126233, nr 8,
    card status 0xc00
* By removing the dto calculation and setting the timeout value
  to the maximum specified by the SD card specification part A2
  section 2.2.15 these timeouts can be avoided.
* This change has been used by beagleboard users as well as the
  Texas Instruments SDK without a negative impact.
* There are multiple discussion threads about this but the most
  relevant ones are:
    * http://talk.maemo.org/showthread.php?p=1000707#post1000707
    * http://<email address hidden>/msg42213.html
* Original proposal for this fix was done by Sukumar Ghoral of
  Texas Instruments
* Tested using a Texas Instruments AM335x EVM

Signed-off-by: Paul Walmsley
Tested-by: Tony Lindgren
Signed-off-by: Chris Ball

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
tags: removed: kernel-bug-exists-upstream needs-upstream-testing
Revision history for this message
Collin O'Reilly (collin-o) wrote :

Ubuntu Gnome Remix 12.10.1 x64 DELL Precision laptop M4600

I have on boot...

Nov 2 07:17:27 gnome-m4600 kernel: [ 2.131398] sdhci: Secure Digital Host Controller Interface driver
Nov 2 07:17:27 gnome-m4600 kernel: [ 2.131401] sdhci: Copyright(c) Pierre Ossman
Nov 2 07:17:27 gnome-m4600 kernel: [ 2.131641] sdhci-pci 0000:0b:00.1: SDHCI controller found [1217:8320] (rev 5)
Nov 2 07:17:27 gnome-m4600 kernel: [ 2.131760] sdhci-pci 0000:0b:00.1: Invalid iomem size. You may experience problems.

SD Card DOES work after boot, can read/write... its just annoying, the message on boot... right after grub and prior to plymouth splash...

Messege on boot has persisted across these following kernels...

3.6.5
3.6.3
3.5.0

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.