Skip to contentSkip to conversation

SDHCI: mmc0: Unexpected interrupt 0x00008000.

DISCUSSION Jeremy Fitzhardinge 2 participants 2 messages Jul 19, 2007 – Jul 20, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

I'm getting this with current GIT kernels when I plug an SD card into the side of my machine. It appears to see the filesystem OK anyway, but for some reason all the hal/gnome desktop stuff isn't seeing it. Was working last week.

The message is:

mmc0: Unexpected interrupt 0x00008000.
sdhci: ============== REGISTER DUMP ==============
sdhci: Sys addr: 0x2d7d4600 | Version: 0x00000200
sdhci: Blk size: 0x00007200 | Blk cnt: 0x00000000
sdhci: Argument: 0x000001aa | Trn mode: 0x00000033
sdhci: Present: 0x01ff0001 | Host ctl: 0x00000001
sdhci: Power: 0x0000000f | Blk gap: 0x00000000
sdhci: Wake-up: 0x00000000 | Clock: 0x00008007
sdhci: Timeout: 0x00000009 | Int stat: 0x00000000
sdhci: Int enab: 0x00ff00fb | Sig enab: 0x00ff00fb
sdhci: AC12 err: 0x00000000 | Slot int: 0x00000000
sdhci: Caps: 0x018021a1 | Max curr: 0x00000040
sdhci: ===========================================
PM: Adding info for mmc:mmc0:b368
mmcblk0: mmc0:b368 LEXAR 999936KiB
mmcblk0: p1

The machine is a Thinkpad X60, and the SD device is:

15:00.2 Generic system peripheral [0805]: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 18)
Subsystem: Lenovo Thinkpad X60s
Flags: bus master, medium devsel, latency 64, IRQ 22
Memory at e4301800 (32-bit, non-prefetchable) [size=256]
Capabilities: [80] Power Management version 2

Seems to work OK if I manually mount it. To be honest, I don't know if this message was always appearing or not; I only checked because it didn't seem to be working.

J

#1 lore raw
Quoted 5 lines · On Thu, 19 Jul 2007 12:15:34 -0700 Jeremy Fitzhardinge <[email protected]> wrote:

I'm getting this with current GIT kernels when I plug an SD card into the side of my machine. It appears to see the filesystem OK anyway, but for some reason all the hal/gnome desktop stuff isn't seeing it. Was working last week.

This appeared because we fixed another bug. Try the included patch.

Rgds

Signature · 5 lines
     -- Pierre Ossman

  Linux kernel, MMC maintainer        http://www.kernel.org
  PulseAudio, core developer          http://pulseaudio.org
  rdesktop, core developer          http://www.rdesktop.org

commit 0668da722a0c48e8629d697fa354e23a02548093

Author: Pierre Ossman <[email protected]>
Date:   Fri Jul 20 18:20:36 2007 +0200

sdhci: make sure to clear the error interrupt

The controller has a bit indicating that one of the higher bits (the error bits) are set. A previous bug caused this bit to be masked, but since that bug has been fixed we have to clear it explicictly.

drivers/mmc/host/sdhci.c +2 -0
index 10d15c3..4a24db0 100644
@@ -1024,6 +1024,8 @@ static irqreturn_t sdhci_irq(int irq, void *dev_id)
 
 	intmask &= ~(SDHCI_INT_CMD_MASK | SDHCI_INT_DATA_MASK);
 
+	intmask &= ~SDHCI_INT_ERROR;
+
 	if (intmask & SDHCI_INT_BUS_POWER) {
 		printk(KERN_ERR "%s: Card is consuming too much power!\n",
 			mmc_hostname(host->mmc));
drivers/mmc/host/sdhci.h +1 -0
index 7400f4b..a6c8704 100644
@@ -107,6 +107,7 @@
 #define  SDHCI_INT_CARD_INSERT	0x00000040
 #define  SDHCI_INT_CARD_REMOVE	0x00000080
 #define  SDHCI_INT_CARD_INT	0x00000100
+#define  SDHCI_INT_ERROR	0x00008000
 #define  SDHCI_INT_TIMEOUT	0x00010000
 #define  SDHCI_INT_CRC		0x00020000
 #define  SDHCI_INT_END_BIT	0x00040000