From owner-freebsd-arm@FreeBSD.ORG Thu Nov 6 15:37:31 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 779D51065679; Thu, 6 Nov 2008 15:37:31 +0000 (UTC) (envelope-from lars.engels@0x20.net) Received: from mail.0x20.net (mail.0x20.net [IPv6:2001:aa8:fffb::3]) by mx1.freebsd.org (Postfix) with ESMTP id C5B548FC2F; Thu, 6 Nov 2008 15:37:30 +0000 (UTC) (envelope-from lars.engels@0x20.net) Received: from mail.0x20.net (mail.0x20.net [217.69.67.217]) by mail.0x20.net (Postfix) with ESMTP id 9D6533A581; Thu, 6 Nov 2008 16:37:29 +0100 (CET) Received: from i011-63.fin-nrw.de (i011-63.fin-nrw.de [193.109.238.130]) by 0x20.net (Horde MIME library) with HTTP; Thu, 06 Nov 2008 16:37:29 +0100 Message-ID: <20081106163729.clcw2eulgk0k4w0c@0x20.net> X-Priority: 3 (Normal) Date: Thu, 06 Nov 2008 16:37:29 +0100 From: Lars Engels To: Alexander Motin References: <48DEA8E7.2080503@FreeBSD.org> <20081106153059.1sf731434swc84so@0x20.net> <49130918.5030904@FreeBSD.org> In-Reply-To: <49130918.5030904@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=_41zuzoapmtc0"; protocol="application/pgp-signature"; micalg="pgp-sha1" Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) Cc: freebsd-arm@FreeBSD.org, freebsd-current@freebsd.org, imp@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: Thu, 06 Nov 2008 15:37:31 -0000 This message is in MIME format and has been PGP signed. --=_41zuzoapmtc0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Quoting Alexander Motin : > Lars Engels wrote: >> I just tried your latest version of mmc + sdhci but it does not detect >> any SD Card inserted: >> >> sdhci0: mem 0xe4003000-0xe40030ff irq 19 at device 6.3 >> on pci2 >> >> Nothing happens when I insert a card. >> >> The hardware is: >> sdhci0@pci0:2:6:3: class=3D0x080500 card=3D0x30c3103c chip=3D0x08221= 180 >> rev=3D0x20 hdr=3D0x00 >> vendor =3D 'Ricoh Company, Ltd.' >> device =3D 'R5C832, R5C843 SDA Standard Compliant SD Host Control= ler' >> class =3D base peripheral >> none2@pci0:2:6:4: class=3D0x088000 card=3D0x30c3103c chip=3D0x08431= 180 >> rev=3D0x10 hdr=3D0x00 >> vendor =3D 'Ricoh Company, Ltd.' >> device =3D 'unknown Ricoh MMC Host Controller' >> class =3D base peripheral >> none3@pci0:2:6:5: class=3D0x088000 card=3D0x30c3103c chip=3D0x05921= 180 >> rev=3D0x10 hdr=3D0x00 >> vendor =3D 'Ricoh Company, Ltd.' >> device =3D '13871043 Ricoh Memory Stick Host Controller' >> class =3D base peripheral >> none4@pci0:2:6:6: class=3D0x088000 card=3D0x30c3103c chip=3D0x08521= 180 >> rev=3D0x10 hdr=3D0x00 >> vendor =3D 'Ricoh Company, Ltd.' >> device =3D 'unknown Ricoh xD-Picture Card Host Controller' >> class =3D base peripheral > > Looks like there is two MMC/SD controllers (first two devices) in your > chip while only one is detected as SD host controller. This thread looks > related to your problem: > http://list.drzeus.cx/pipermail/sdhci-devel/2007-September/002023.html > > 1. You may try to tune PCI configuration registers referred in that post. > 2. Or (just an idea) you may try to power down unsupported devices with > setting hw.pci.do_power_nodriver=3D3 into the device.hints. > 3. Or (it works fine for my ENE CB714 chip) you may try to add > 0x08431180 chip ID into the list of supported SD controllers like it is > done for 0x08221180. They may be compatible enough. > > If you try it, report please about results. Alexander, thanks for the quick response! 1. How can I tune the PCI configuration? With pciconf -w or so? 2. Unfortunately the sysctl did not change a thing with regard to the =20 Card reader. 3. I added the chip ID and the second device is now recognized as a =20 sdhci device but still does not see any card inserted: Nov 6 16:32:20 NB0117232 kernel: sdhci0: mem =20 0xe4003000-0xe40030ff irq 19 at device 6.3 on pci2 Nov 6 16:32:20 NB0117232 kernel: sdhci0: 1 slot(s) allocated Nov 6 16:32:20 NB0117232 kernel: sdhci0: [ITHREAD] Nov 6 16:32:20 NB0117232 kernel: sdhci1: mem =20 0xe4004000-0xe40040ff irq 19 at device 6.4 on pci2 Nov 6 16:32:20 NB0117232 kernel: sdhci1: Hardware doesn't specify =20 base clock frequency. Nov 6 16:32:20 NB0117232 kernel: sdhci1: Hardware doesn't specify =20 timeout clock frequency. Nov 6 16:32:20 NB0117232 kernel: sdhci1: Hardware doesn't report any =20 support voltages. Nov 6 16:32:20 NB0117232 kernel: sdhci1: 1 slot(s) allocated Nov 6 16:32:20 NB0117232 kernel: sdhci1: [ITHREAD] Nov 6 16:32:31 NB0117232 kernel: mmc0: on sdhci1 sdhci1@pci0:2:6:4: class=3D0x088000 card=3D0x30c3103c chip=3D0x08431180= =20 rev=3D0x10 hdr=3D0x00 vendor =3D 'Ricoh Company, Ltd.' device =3D 'unknown Ricoh MMC Host Controller' class =3D base peripheral --=_41zuzoapmtc0 Content-Type: application/pgp-signature Content-Description: Digitale PGP-Unterschrift Content-Disposition: inline Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEABECAAYFAkkTDzkACgkQKc512sD3afg4PwCgycgCK5dhPLarn5tYE+XG//8w 8YAAn3F1LurybzALvpvICJS3/356PN2c =V1Yz -----END PGP SIGNATURE----- --=_41zuzoapmtc0--