Hello team, got a thorny one.
I have an Acer Aspire with 8 gigs of ram running Ubuntu 12.10 (previously Mint 14) with 3.5.0-21-generic, which is set up like so,
Code:
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
00:16.0 Communication controller: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 1 (rev c4)
00:1c.1 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 (rev c4)
00:1c.2 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 3 (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation 7 Series Chipset Family LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 7 Series/C210 Series Chipset Family SMBus Controller (rev 04)
03:00.0 Network controller: Atheros Communications Inc. AR9485 Wireless Network Adapter (rev 01)
04:00.0 Ethernet controller: Broadcom Corporation NetLink BCM57785 Gigabit Ethernet PCIe (rev 10)
04:00.1 SD Host controller: Broadcom Corporation NetXtreme BCM57765 Memory Card Reader (rev 10)
See that last line? That is where I think my trouble lies. The problem is that when I have an SD card inserted, any change of state (wake from sleep) causes the machine to crash. Also, the act of inserting an SD card sometimes causes the machine to crash HARD. X crashes, I get a terminal screen full of errors, and everything locks up. This behavior occurs both in Mint 14 and Ubuntu 12.10.
I've been through syslog, the xorg log, and dmesg, but when crashes occur there doesn't seem to be anything recorded in the logs.
Closest I've gotten is this in dmesg
Code:
[ 1.312029] udevd[99]: starting version 175
[ 1.380010] sdhci: Secure Digital Host Controller Interface driver
[ 1.380015] sdhci: Copyright(c) Pierre Ossman
[ 1.383692] sdhci-pci 0000:04:00.1: >SDHCI controller found [14e4:16bc] (rev 10)
[ 1.383757] sdhci-pci 0000:04:00.1: >Invalid iomem size. You may experience problems.
[ 1.386256] mmc0: no vmmc regulator found
[ 1.386349] Registered led device: mmc0::
[ 1.416722] mmc0: SDHCI controller on PCI [0000:04:00.1] using ADMA
[ 1.416793] tg3.c:v3.123 (March 21, 2012)
"You may experience problems" indeed.
Here is the dmesg output from Mint 14 when I insert a card and it simply fails to read, but doesn't crash.
Code:
[ 2852.448195] sdhci: Timeout waiting for Buffer Read Ready interrupt during tuning procedure, falling back to fixed sampling clock
[ 2852.448234] mmc0: new ultra high speed SDR104 SDHC card at address 0007
[ 2852.476534] mmcblk0: mmc0:0007 SD16G 14.4 GiB
[ 2852.486945] mmc0: Controller never released inhibit bit(s).
[ 2862.494894] mmc0: Timeout waiting for hardware interrupt.
[ 2862.495064] mmcblk0: error -110 sending status command, retrying
[ 2862.546923] sdhci: Timeout waiting for Buffer Read Ready interrupt during tuning procedure, falling back to fixed sampling clock
[ 2872.573632] mmc0: Timeout waiting for hardware interrupt.
[ 2872.573776] mmcblk0: error -110 sending status command, retrying
[ 2872.575341] mmcblk0: unknown error -5 sending read/write command, card status 0x900
[ 2872.575352] end_request: I/O error, dev mmcblk0, sector 0
[ 2872.575359] Buffer I/O error on device mmcblk0, logical block 0
[ 2872.576221] mmcblk0: error -110 sending stop command, original cmd response 0x900, card status 0x900
[ 2872.576230] mmcblk0: error -84 transferring data, sector 0, nr 8, cmd response 0x900, card status 0x0
[ 2872.576234] mmcblk0: retrying using single block read
[ 2872.576704] mmcblk0: error -84 transferring data, sector 0, nr 8, cmd response 0x900, card status 0x0
[ 2872.576710] end_request: I/O error, dev mmcblk0, sector 0
[ 2872.577441] mmcblk0: error -84 transferring data, sector 1, nr 7, cmd response 0x900, card status 0x0
[ 2872.577450] end_request: I/O error, dev mmcblk0, sector 1
[ 2872.578558] mmcblk0: error -84 transferring data, sector 3, nr 5, cmd response 0x900, card status 0x0
[ 2872.578564] end_request: I/O error, dev mmcblk0, sector 3
[ 2872.579153] mmcblk0: error -84 transferring data, sector 4, nr 4, cmd response 0x900, card status 0x0
[ 2872.579157] end_request: I/O error, dev mmcblk0, sector 4
[ 2872.579730] mmcblk0: error -84 transferring data, sector 5, nr 3, cmd response 0x900, card status 0x0
[ 2872.579734] end_request: I/O error, dev mmcblk0, sector 5
[ 2872.580303] mmcblk0: error -84 transferring data, sector 6, nr 2, cmd response 0x900, card status 0x0
[ 2872.580307] end_request: I/O error, dev mmcblk0, sector 6
[ 2872.580868] mmcblk0: error -84 transferring data, sector 7, nr 1, cmd response 0x900, card status 0x0
[ 2872.580872] end_request: I/O error, dev mmcblk0, sector 7
[ 2872.580877] Buffer I/O error on device mmcblk0, logical block 0
[ 2882.588386] mmc0: Timeout waiting for hardware interrupt.
[ 2882.640471] sdhci: Timeout waiting for Buffer Read Ready interrupt during tuning procedure, falling back to fixed sampling clock
[ 2892.667183] mmc0: Timeout waiting for hardware interrupt.
[ 2892.667336] mmcblk0: error -110 sending status command, retrying
[ 2892.719235] sdhci: Timeout waiting for Buffer Read Ready interrupt during tuning procedure, falling back to fixed sampling clock
[ 2892.778663] mmc0: Card removed during transfer!
[ 2892.778673] mmc0: Resetting controller.
[ 2892.778715] mmcblk0: error -123 sending status command, retrying
[ 2892.778839] mmcblk0: error -123 sending status command, aborting
[ 2892.779309] ldm_validate_partition_table(): Disk read failed.
[ 2892.779386] Dev mmcblk0: unable to read RDB block 0
[ 2892.779911] mmcblk0: unable to read partition table
[ 2892.975231] mmc0: card 0007 removed
These issues were more severe on the same machine in Mint 14 64bit. I managed to break the system and ended up installing Ubuntu 12.10, where this problem has persisted.
It seems like a driver or even kernel level issue. My Slackware 14 system reads and switches out the same sd cards just fine. Anyone else having these sorts of problems?