From owner-freebsd-arm@FreeBSD.ORG Sat Oct 18 17:01:10 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 6F2ED10656A1 for ; Sat, 18 Oct 2008 17:01:10 +0000 (UTC) (envelope-from jacques.fourie@gmail.com) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.184]) by mx1.freebsd.org (Postfix) with ESMTP id E48578FC21 for ; Sat, 18 Oct 2008 17:01:09 +0000 (UTC) (envelope-from jacques.fourie@gmail.com) Received: by mu-out-0910.google.com with SMTP id i2so1039381mue.3 for ; Sat, 18 Oct 2008 10:01:08 -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=DXE3bYnLuUQZ0UaaOgF3ZiIGuT6k+QW9fO/kcKgM4I0=; b=A78AWWsPhP3JXvcIshwp6SGc3zPrqHHnsUAK1kpOHg8oHjkCgfxY2aMOjJBKafXWAQ 6F8/Hl4bDMdjZLC4/rv7bnF76oGDBJDtQjlcs4zMO9uZ3TkTdlrWbictjC19HPrE2CIG D/jEzIcBcEUeo8Ts9PvBcy0Xuo4AmZfK+OdIg= 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=RY54QQJFA/PZTk5mxe8imSUlSs+qmZppdu4K7Pdc90blyQwxDBVP3OaRXnbZNLOri/ cQReSrn8jm6VW7VezkkJN8KBMhfMb++LzWcXAqq0APqTkIw/YIuLAUbuLj57dLnrSqbv +oOVAO9eUHqe0O2hZgFX/048eR6djlwg0iyZg= Received: by 10.103.169.1 with SMTP id w1mr350118muo.41.1224349268150; Sat, 18 Oct 2008 10:01:08 -0700 (PDT) Received: by 10.103.17.17 with HTTP; Sat, 18 Oct 2008 10:01:07 -0700 (PDT) Message-ID: Date: Sat, 18 Oct 2008 19:01:07 +0200 From: "Jacques Fourie" To: "M. Warner Losh" In-Reply-To: <20081018.095703.-135512205.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48DEA8E7.2080503@FreeBSD.org> <48F11087.20403@FreeBSD.org> <20081018.095703.-135512205.imp@bsdimp.com> 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-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: Sat, 18 Oct 2008 17:01:10 -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 > My controller reports 3 slots, with the third one being sd. Jacques