SD card reader in Macbook does not work

Bug #801034 reported by Jussi Pakkanen
32
This bug affects 5 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

The SD card reader in my Macbook Pro workes only when an ethernet cable is connected. When the cable is not connected, inserting an SD card causes the following to be printed in dmesg.

[ 245.886482] mmc0: Timeout waiting for hardware interrupt.
[ 245.886494] sdhci: =========== REGISTER DUMP (mmc0)===========
[ 245.886538] sdhci: Sys addr: 0x00000000 | Version: 0x00001502
[ 245.886550] sdhci: Blk size: 0x00000000 | Blk cnt: 0x00000000
[ 245.886561] sdhci: Argument: 0x00000000 | Trn mode: 0x00000000
[ 245.886571] sdhci: Present: 0x1eff0001 | Host ctl: 0x00000001
[ 245.886583] sdhci: Power: 0x0000000f | Blk gap: 0x00000000
[ 245.886594] sdhci: Wake-up: 0x00000000 | Clock: 0x00004e47
[ 245.886604] sdhci: Timeout: 0x00000000 | Int stat: 0x00000000
[ 245.886615] sdhci: Int enab: 0x00ff00c3 | Sig enab: 0x00ff00c3
[ 245.886635] sdhci: AC12 err: 0x00000000 | Slot int: 0x00000000
[ 245.886641] sdhci: Caps: 0x176ec8b0 | Caps_1: 0x03002177
[ 245.886646] sdhci: Cmd: 0x00000502 | Max curr: 0x00000000
[ 245.886662] sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x00000000
[ 245.886665] sdhci: ===========================================
[ 249.822867] [drm:intel_crtc_cursor_set],
[ 249.822870] [drm:intel_crtc_cursor_set], cursor off
[ 255.896340] mmc0: Timeout waiting for hardware interrupt.
[ 255.896354] sdhci: =========== REGISTER DUMP (mmc0)===========
[ 255.896396] sdhci: Sys addr: 0x00000000 | Version: 0x00001502
[ 255.896405] sdhci: Blk size: 0x00000000 | Blk cnt: 0x00000000
[ 255.896413] sdhci: Argument: 0x00000000 | Trn mode: 0x00000000
[ 255.896421] sdhci: Present: 0x1eff0001 | Host ctl: 0x00000001
[ 255.896429] sdhci: Power: 0x0000000f | Blk gap: 0x00000000
[ 255.896437] sdhci: Wake-up: 0x00000000 | Clock: 0x00004e47
[ 255.896445] sdhci: Timeout: 0x00000000 | Int stat: 0x00000000
[ 255.896454] sdhci: Int enab: 0x00ff00c3 | Sig enab: 0x00ff00c3
[ 255.896462] sdhci: AC12 err: 0x00000000 | Slot int: 0x00000000
[ 255.896472] sdhci: Caps: 0x176ec8b0 | Caps_1: 0x03002177
[ 255.896480] sdhci: Cmd: 0x00000502 | Max curr: 0x00000000
[ 255.896488] sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x00000000
[ 255.896492] sdhci: ===========================================
[ 260.528745] [drm:intel_crtc_cursor_set],
[ 265.906292] mmc0: Timeout waiting for hardware interrupt.
[ 265.906303] sdhci: =========== REGISTER DUMP (mmc0)===========
[ 265.906343] sdhci: Sys addr: 0x00000000 | Version: 0x00001502
[ 265.906351] sdhci: Blk size: 0x00000000 | Blk cnt: 0x00000000
[ 265.906359] sdhci: Argument: 0x00000000 | Trn mode: 0x00000000
[ 265.906368] sdhci: Present: 0x1fff0001 | Host ctl: 0x00000001
[ 265.906375] sdhci: Power: 0x0000000f | Blk gap: 0x00000000
[ 265.906383] sdhci: Wake-up: 0x00000000 | Clock: 0x00004e47
[ 265.906391] sdhci: Timeout: 0x00000000 | Int stat: 0x00000000
[ 265.906399] sdhci: Int enab: 0x00ff00c3 | Sig enab: 0x00ff00c3
[ 265.906407] sdhci: AC12 err: 0x00000000 | Slot int: 0x00000000
[ 265.906415] sdhci: Caps: 0x176ec8b0 | Caps_1: 0x03002177
[ 265.906423] sdhci: Cmd: 0x00000502 | Max curr: 0x00000000
[ 265.906432] sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x00000000
[ 265.906435] sdhci: ===========================================
[ 267.956769] [drm:intel_crtc_cursor_set],
[ 267.956778] [drm:intel_crtc_cursor_set], cursor off
---
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23.
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: jpakkane 1714 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'PCH'/'HDA Intel PCH at 0xa0900000 irq 47'
   Mixer name : 'Intel CougarPoint HDMI'
   Components : 'HDA:10134206,106b1c00,00100302 HDA:80862805,80860101,00100000'
   Controls : 34
   Simple ctrls : 16
DistroRelease: Ubuntu 11.04
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Beta amd64 (20110413)
MachineType: Apple Inc. MacBookPro8,1
Package: linux (not installed)
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/zsh
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.38-10-generic root=UUID=2ee94f0e-11b3-42a2-a009-1a9b94b11fc9 ro quiet splash drm.debug=0xe vt.handoff=7
ProcVersionSignature: Ubuntu 2.6.38-10.46-generic 2.6.38.7
RelatedPackageVersions:
 linux-restricted-modules-2.6.38-10-generic N/A
 linux-backports-modules-2.6.38-10-generic N/A
 linux-firmware 1.52.1
Tags: natty
Uname: Linux 2.6.38-10-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
dmi.bios.date: 04/22/11
dmi.bios.vendor: Apple Inc.
dmi.bios.version: MBP81.88Z.0047.B0E.1104221557
dmi.board.asset.tag: Base Board Asset Tag#
dmi.board.name: Mac-94245B3640C91C81
dmi.board.vendor: Apple Inc.
dmi.board.version: MacBookPro8,1
dmi.chassis.type: 10
dmi.chassis.vendor: Apple Inc.
dmi.chassis.version: Mac-94245B3640C91C81
dmi.modalias: dmi:bvnAppleInc.:bvrMBP81.88Z.0047.B0E.1104221557:bd04/22/11:svnAppleInc.:pnMacBookPro8,1:pvr1.0:rvnAppleInc.:rnMac-94245B3640C91C81:rvrMacBookPro8,1:cvnAppleInc.:ct10:cvrMac-94245B3640C91C81:
dmi.product.name: MacBookPro8,1
dmi.product.version: 1.0
dmi.sys.vendor: Apple Inc.

Revision history for this message
Jussi Pakkanen (jpakkane) wrote :

I also just found this other kind of error message in dmesg:

[ 678.049247] mmc0: Got command interrupt 0x00000001 even though no command operation was in progress.
[ 678.049252] sdhci: =========== REGISTER DUMP (mmc0)===========
[ 678.049291] sdhci: Sys addr: 0x00000000 | Version: 0x00001502
[ 678.049299] sdhci: Blk size: 0x00000000 | Blk cnt: 0x00000000
[ 678.049308] sdhci: Argument: 0x00000000 | Trn mode: 0x00000000
[ 678.049316] sdhci: Present: 0x1fff0000 | Host ctl: 0x00000001
[ 678.049323] sdhci: Power: 0x0000000f | Blk gap: 0x00000000
[ 678.049331] sdhci: Wake-up: 0x00000000 | Clock: 0x0000fa07
[ 678.049340] sdhci: Timeout: 0x00000000 | Int stat: 0x00000000
[ 678.049349] sdhci: Int enab: 0x00ff00c3 | Sig enab: 0x00ff00c3
[ 678.049357] sdhci: AC12 err: 0x00000000 | Slot int: 0x00000000
[ 678.049364] sdhci: Caps: 0x176ec8b0 | Caps_1: 0x03002177
[ 678.049372] sdhci: Cmd: 0x00000000 | Max curr: 0x00000000
[ 678.049380] sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x00000000
[ 678.049384] sdhci: ===========================================

Revision history for this message
Jussi Pakkanen (jpakkane) wrote :

I discovered that the the SD card works if my wired ethernet is connected. If I take out my network cable and then plug in the SD card, it will not work. Taking out the card, replugging ethernet and then plugging the SD card makes it work again.

I tested this several times over and the result was always the same.

description: updated
Revision history for this message
Jussi Pakkanen (jpakkane) wrote :

Testing with a kernel that had ethernet disabled did not cause any change.

Revision history for this message
Jussi Pakkanen (jpakkane) wrote :

In oneiric alpha 2 live ISO (64+mac) the behaviour is identical.

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

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

apport-collect 801034

and then change the status of the bug back to 'New'.

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
Revision history for this message
Jussi Pakkanen (jpakkane) wrote : AcpiTables.txt

apport information

tags: added: apport-collected natty
description: updated
Revision history for this message
Jussi Pakkanen (jpakkane) wrote : AlsaDevices.txt

apport information

Revision history for this message
Jussi Pakkanen (jpakkane) wrote : AplayDevices.txt

apport information

Revision history for this message
Jussi Pakkanen (jpakkane) wrote : ArecordDevices.txt

apport information

Revision history for this message
Jussi Pakkanen (jpakkane) wrote : BootDmesg.txt

apport information

Revision history for this message
Jussi Pakkanen (jpakkane) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
Jussi Pakkanen (jpakkane) wrote : Card0.Codecs.codec.0.txt

apport information

Revision history for this message
Jussi Pakkanen (jpakkane) wrote : Card0.Codecs.codec.3.txt

apport information

Revision history for this message
Jussi Pakkanen (jpakkane) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Jussi Pakkanen (jpakkane) wrote : IwConfig.txt

apport information

Revision history for this message
Jussi Pakkanen (jpakkane) wrote : Lspci.txt

apport information

Revision history for this message
Jussi Pakkanen (jpakkane) wrote : Lsusb.txt

apport information

Revision history for this message
Jussi Pakkanen (jpakkane) wrote : PciMultimedia.txt

apport information

Revision history for this message
Jussi Pakkanen (jpakkane) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Jussi Pakkanen (jpakkane) wrote : ProcCpuinfo_.txt

apport information

Revision history for this message
Jussi Pakkanen (jpakkane) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Jussi Pakkanen (jpakkane) wrote : ProcModules.txt

apport information

Revision history for this message
Jussi Pakkanen (jpakkane) wrote : RfKill.txt

apport information

Revision history for this message
Jussi Pakkanen (jpakkane) wrote : UdevDb.txt

apport information

Revision history for this message
Jussi Pakkanen (jpakkane) wrote : UdevLog.txt

apport information

Revision history for this message
Jussi Pakkanen (jpakkane) wrote : WifiSyslog.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → New
Brad Figg (brad-figg)
Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Jussi Pakkanen (jpakkane) wrote :

Today's daily build ISO has this bug, so it is also present in oneiric beta.

Revision history for this message
Zeth (zeth0) wrote :

Still happens on oneiric release.

Revision history for this message
penalvch (penalvch) wrote :

Jussi Pakkanen, thank you for reporting this bug and helping make Ubuntu better. This bug was reported a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue? If so, could you please attach all information noted in https://wiki.ubuntu.com/DebuggingHardwareDetection ? As well, can you try with the latest development release of Ubuntu? ISO CD images are available from http://cdimage.ubuntu.com/releases/ .

If it remains an issue, could you 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 <replace-with-bug-number>

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.

tags: added: needs-upstream-testing oneiric
Revision history for this message
Jussi Pakkanen (jpakkane) wrote :

In today's precise this bug has been fixed.

Changed in linux (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Steven Roose (stevenroose) wrote :

I have a Macbook Pro 2009-2010 and my SD card reader still doesn't do a thing either. Didn't try the ethernet trick but I doubt if that can change a thing. It had serious problems in OSX too, though..

Revision history for this message
penalvch (penalvch) wrote :

Steven Roose, could you please file a new report by executing the following in a terminal:
ubuntu-bug linux

For more on this, please see the Ubuntu Bug Control and Ubuntu Bug Squad article:
https://wiki.ubuntu.com/Bugs/BestPractices#X.2BAC8-Reporting.Focus_on_One_Issue

and Ubuntu Community article:
https://help.ubuntu.com/community/ReportingBugs#Bug_Reporting_Etiquette

When opening up the new report, please feel free to subscribe me to it. Thank you for your understanding.

Helpful Bug Reporting Links:
https://help.ubuntu.com/community/ReportingBugs#A3._Make_sure_the_bug_hasn.27t_already_been_reported
https://help.ubuntu.com/community/ReportingBugs#Adding_Apport_Debug_Information_to_an_Existing_Launchpad_Bug
https://help.ubuntu.com/community/ReportingBugs#Adding_Additional_Attachments_to_an_Existing_Launchpad_Bug

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.