From owner-freebsd-mobile@FreeBSD.ORG Sat Oct 18 15:58:42 2008 Return-Path: Delivered-To: freebsd-mobile@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 12F9910656A2; Sat, 18 Oct 2008 15:58:42 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id A62BD8FC0A; Sat, 18 Oct 2008 15:58:41 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m9IFu1o7064732; Sat, 18 Oct 2008 09:56:01 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sat, 18 Oct 2008 09:57:03 -0600 (MDT) Message-Id: <20081018.095703.-135512205.imp@bsdimp.com> To: jacques.fourie@gmail.com From: "M. Warner Losh" In-Reply-To: References: <48DEA8E7.2080503@FreeBSD.org> <48F11087.20403@FreeBSD.org> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: mav@FreeBSD.org, freebsd-current@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-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Oct 2008 15:58:42 -0000 In message: "Jacques Fourie" writes: : > Alexander Motin wrote: : >> : >> I would like to present initial revision of my generic PCI SD Host : >> Controller driver (sdhci). It support PCI devices with class 8 and subclass : >> 5 according to SD Host Controller Specification. : >> Latest patches against 8-CURRENT (mostly fit 7-STABLE) may be found at: : >> http://people.freebsd.org/~mav/sdhci/ : > : > For those who are not tracking actively, I would like to report that most of : > original driver's child illnesses are now healed. : > : > Driver now supports both PIO and DMA modes. Because of some special tunings : > DMA works fine even on almost broken ENE chips. I am reaching 15MB/s : > transfer (maximum for my controller's bus) with only about 1% of CPU load. : > Implemented 4 bits bus width and high speed timing modes support for high : > data rates up to 52MHz. Cards hot insertion/removing is now working. : > Together with in-tree mmc/mmcsd drivers improvements most of card types (SD, : > SDHC, standard and high capacity MMC) are now supported. : > : > -- : > Alexander Motin : > _______________________________________________ : > freebsd-arm@freebsd.org mailing list : > http://lists.freebsd.org/mailman/listinfo/freebsd-arm : > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" : > : : The device in my HP nw8240 notebook is a Texas Instruments 7621. This : device is a multi-function PCI device with a CardBus, firewire, Flash : Media and SD controller. The only way that I could get this driver to : work for me is to disable SD card detection on the Flash Media : controller, which is function 3 : : : pcitweak -w 02:06:03 -b 0x4c 0x02 I have patches to mav's sdhci driver to do this. However, I can't get the driver to work. It detects the cards are inserted, but then all commands that require a response from the card fail. How many slots does your controller report? Which one is sd? Warner