From: Ricoh Subject: Re: SDHC ADMA Problem Date: Tue, 24 Aug 2010 00:15:46 +0000 (UTC) Message-ID: References: <20100823081919.GA6034@pengutronix.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from lo.gmane.org ([80.91.229.12]:47380 "EHLO lo.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751423Ab0HXAP5 (ORCPT ); Mon, 23 Aug 2010 20:15:57 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OnhBD-00053m-G6 for linux-mmc@vger.kernel.org; Tue, 24 Aug 2010 02:15:56 +0200 Received: from proxy.ricoh.co.jp ([202.248.73.112]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 24 Aug 2010 02:15:55 +0200 Received: from yadav.rajesh by proxy.ricoh.co.jp with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 24 Aug 2010 02:15:55 +0200 Sender: linux-mmc-owner@vger.kernel.org List-Id: linux-mmc@vger.kernel.org To: linux-mmc@vger.kernel.org Wolfram Sang pengutronix.de> writes: > > On Mon, Aug 23, 2010 at 06:05:24AM +0000, Ricoh wrote: > > For the ADMA enabled SD Host Controller, SDHCI driver is not working fine. > > sdhci device gets an error "mmc0: unexpected interrupt" when an sdhc card is > > inserted. > > > > This unexpected interrupt is the result of ADMA error. > > Refer the following dmesg informaion for more details. > > > > mmc0: Unexpected interrupt 0x02000000. > > sdhci: ============== REGISTER DUMP ============== > > sdhci: Sys addr: 0x00000000 | Version: 0x00000401 > > sdhci: Blk size: 0x00007008 | Blk cnt: 0x00000001 > > sdhci: Argument: 0x00000000 | Trn mode: 0x00000013 > > sdhci: Present: 0x01f70202 | Host ctl: 0x00000011 > > sdhci: Power: 0x0000000f | Blk gap: 0x00000000 > > sdhci: Wake-up: 0x00000000 | Clock: 0x00004007 > > sdhci: Timeout: 0x0000000a | Int stat: 0x02008008 > > sdhci: Int enab: 0x02ff00cb | Sig enab: 0x02ff00cb > > sdhci: AC12 err: 0x00000000 | Slot int: 0x00000001 > > sdhci: Caps: 0x21e832b2 | Max curr: 0x00000040 > > sdhci: ADMA Err: 0x00000001 | ADMA Ptr: 0x020003b4 > > sdhci: =========================================== > > > > Is there any updated information regarding to this issue?? > > We would need to know which kernel version you are using (it should be > as new as possible) and which SDHC controller. > > Kind regards, > > Wolfram > Hi Wolfram Thanks for considering it. The Kernel version 2.6.32 Controller is: Ricoh's SD host controller e822 To reproduce this issue, You need to make sure that the device is using ADMA for data transfer. You can confirm this by looking at the dmesg when the driver is loaded. If ADMA is used, dmesg should have a message like the following one "SDHCI controller on ..... using ADMA" Actually the driver looks at the PCI configuration space of the device that is set by the BIOS and if it do not find the proper settings for the ADMA, then it use simple DMA or PIO method which are going well. Rajesh