From owner-freebsd-arm@FreeBSD.ORG Sun Sep 28 06:12:28 2008 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 45C271065694 for ; Sun, 28 Sep 2008 06:12:28 +0000 (UTC) (envelope-from unixmania@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.156]) by mx1.freebsd.org (Postfix) with ESMTP id BF9DC8FC25 for ; Sun, 28 Sep 2008 06:12:26 +0000 (UTC) (envelope-from unixmania@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so1046943fgb.35 for ; Sat, 27 Sep 2008 23:12:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=991V+WFZ1CX6jyaUnhG3r+LO7ZFnmBDRS32bbsYf4JU=; b=E1Ku6v85EzqfssWrnSrjx9xb+E2syeB3clnKxGfEg83NY8/uw04E6/8zTPC3DnQO0O R0OR2Z3plPSsH2LxKge3B/1waia0g5v9FG2qlt19CMtS5OsE0/I8wg1Nm38tjVyvP4Ph yuAjBT9dSpYqsK6FPxDXx5sA8+K68KdVt1NdI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=I8eJB/0pCItoeOXCrbchDs7X2BgiNEhPQ8gOWnsL0M7CvI/yt0jjFXKDvQlEcAqPIt jmfY617n4vyy5WRRsXbqbZeDJ99htwxy4pGGoGiy5YZeuUMo4yAll9X5TvwLK7UfORud FVJS3cNr+JLEU+0vj0/8Sgkqolms1d1F/EbZo= Received: by 10.103.199.16 with SMTP id b16mr2536214muq.5.1222582345648; Sat, 27 Sep 2008 23:12:25 -0700 (PDT) Received: by 10.103.231.14 with HTTP; Sat, 27 Sep 2008 23:12:25 -0700 (PDT) Message-ID: Date: Sun, 28 Sep 2008 03:12:25 -0300 From: "Carlos A. M. dos Santos" To: "Oleksandr Tymoshenko" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48DEA8E7.2080503@FreeBSD.org> <48DEA4EC.3030300@bluezbox.com> Cc: Alexander Motin , freebsd-current@freebsd.org, imp@freebsd.org, freebsd-arm@freebsd.org, freebsd-mobile@freebsd.org Subject: Re: RFC: PCI SD host controller driver & mmc/mmcsd modules improvements X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Sep 2008 06:12:28 -0000 On Sun, Sep 28, 2008 at 2:35 AM, Carlos A. M. dos Santos wrote: > On Sat, Sep 27, 2008 at 6:26 PM, Oleksandr Tymoshenko > wrote: >> Alexander Motin wrote: >>> >>> Hi. >> >>> >>> Latest patches against 8-CURRENT (should also fit 7-STABLE) may be found >>> at: >>> http://people.freebsd.org/~mav/sdhci/ >> >> Thanks! That's just what I was looking for about three weeks ago :) >>> >>> I will be grateful for any feedbacks, comments and support. >> >> 7.1 requires s/kproc/kthread/ but otherwise works fine: >> >> sdhci0: mem 0xff9fb800-0xff9fb8ff irq 9 at device 1.2 on >> pci2 >> sdhci0: 1 slot(s) allocated >> sdhci0: [ITHREAD] >> >> mmc0: on sdhci0 >> mmc0: SD card: 507379712 bytes >> mmcsd0: 483MB (read-only) at mmc0 >> mmc0: setting transfer rate to 30.000MHz >> mmc0: setting bus width to 4 bits >> GEOM_LABEL: Label for provider mmcsd0s1 is msdosfs/SD. > > It did not detect the hardware on my Compaq 6910p: > > none2@pci0:2:6:3: class=0x080500 card=0x30be103c chip=0x08221180 > rev=0x20 hdr=0x00 > vendor = 'Ricoh Company, Ltd.' > device = 'R5C832, R5C843 SDA Standard Compliant SD Host Controller' > class = base peripheral > none3@pci0:2:6:4: class=0x088000 card=0x30be103c chip=0x08431180 > rev=0x10 hdr=0x00 > vendor = 'Ricoh Company, Ltd.' > device = 'unknown Ricoh MMC Host Controller' > class = base peripheral > > Suggestions are welcome. :-) Here goes a good suggestion: do not forget to load the module, you dumb ass! Now I got this: sdhci0: mem 0xe4103000-0xe41030ff irq 19 at device 6.3 on pci2 sdhci0: Reserved 0x100 bytes for rid 0x10 type 3 at 0xe4103000 sdhci0: 1 slot(s) allocated sdhci0: [MPSAFE] sdhci0: [ITHREAD] mmc0: on sdhci0 mmc0: Reset 0x6 never completed - 0x6. mmc0: ============== REGISTER DUMP ============== mmc0: Sys addr: 0x00000000 | Version: 0x00000400 mmc0: Blk size: 0x00000000 | Blk cnt: 0x00000000 mmc0: Argument: 0x00000000 | Trn mode: 0x00000000 mmc0: Present: 0x01f20000 | Host ctl: 0x00000000 mmc0: Power: 0x0000000f | Blk gap: 0x00000000 mmc0: Wake-up: 0x00000000 | Clock: 0x00008007 mmc0: Timeout: 0x00000000 | Int stat: 0x00000000 mmc0: Int enab: 0x00ff00fb | Sig enab: 0x00ff00fb mmc0: AC12 err: 0x00000000 | Slot int: 0x00000000 mmc0: Caps: 0x018021a1 | Max curr: 0x00000040 mmc0: =========================================== mmc0: Reset 0x6 never completed - 0x6. mmc0: ============== REGISTER DUMP ============== mmc0: Sys addr: 0x00000000 | Version: 0x00000400 mmc0: Blk size: 0x00000000 | Blk cnt: 0x00000000 mmc0: Argument: 0x00000000 | Trn mode: 0x00000000 mmc0: Present: 0x01f20000 | Host ctl: 0x00000000 mmc0: Power: 0x0000000f | Blk gap: 0x00000000 mmc0: Wake-up: 0x00000000 | Clock: 0x00008007 mmc0: Timeout: 0x00000000 | Int stat: 0x00000000 mmc0: Int enab: 0x00ff00fb | Sig enab: 0x00ff00fb mmc0: AC12 err: 0x00000000 | Slot int: 0x00000000 mmc0: Caps: 0x018021a1 | Max curr: 0x00000040 mmc0: =========================================== mmc0: setting transfer rate to 33.000MHz mmc0: Reset 0x6 never completed - 0x6. mmc0: ============== REGISTER DUMP ============== mmc0: Sys addr: 0x00000000 | Version: 0x00000400 mmc0: Blk size: 0x00000000 | Blk cnt: 0x00000000 mmc0: Argument: 0x00000000 | Trn mode: 0x00000000 mmc0: Present: 0x01f20000 | Host ctl: 0x00000000 mmc0: Power: 0x0000000f | Blk gap: 0x00000000 mmc0: Wake-up: 0x00000000 | Clock: 0x00000007 mmc0: Timeout: 0x00000000 | Int stat: 0x00000000 mmc0: Int enab: 0x00ff00fb | Sig enab: 0x00ff00fb mmc0: AC12 err: 0x00000000 | Slot int: 0x00000000 mmc0: Caps: 0x018021a1 | Max curr: 0x00000040 mmc0: =========================================== Much better. However, I got a system crash and reboot attempting to unload the module. -- cd /usr/ports/sysutils/life make clean