From owner-freebsd-arm@FreeBSD.ORG Sat Sep 27 23:25:48 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 7790B106568B for ; Sat, 27 Sep 2008 23:25:48 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by mx1.freebsd.org (Postfix) with ESMTP id 033E68FC1B for ; Sat, 27 Sep 2008 23:25:47 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: by ug-out-1314.google.com with SMTP id m2so154823uge.39 for ; Sat, 27 Sep 2008 16:25:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:references:message-id:to :in-reply-to:content-type:content-transfer-encoding:x-mailer :mime-version:subject:date:cc:from:sender; bh=MisK+0IjqFwDBUzwm3/2/8jAhy0EWNoVIdUqw3fV/wg=; b=bZ9Cg7zccNqijrJhUk94ATotUp9J2+WVgsZn1FiyJG00kZkWrXfyFtHRjP5JPkSEbu A0jdW8nVX3Mxu/af3gm/mzMKbI/G5QPPVls1Zekdz0Ost7XnJ88lUMa+cV+TLOoe+qvU w738hqbYqKNnEXGZ300spp1s3oTRFjrv7URJM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=references:message-id:to:in-reply-to:content-type :content-transfer-encoding:x-mailer:mime-version:subject:date:cc :from:sender; b=d16NKjvgInxtbXIeXrZvadDjYjFnbu9d8+Z2Mnp+HhmlRfPTRZEtf/z4JjKpLKb2qT l3mVVASC0VaH+oH6OJvyPwZO1bTe38VBux51Sd74TGNbkNtiSqlPRRPBJAw3TdWiCPwa WQ271kqAeBSLvSryPEzbkYfn430QI/w6GFZjA= Received: by 10.210.87.14 with SMTP id k14mr3806217ebb.7.1222556351614; Sat, 27 Sep 2008 15:59:11 -0700 (PDT) Received: from ?10.0.1.4? ([89.214.188.107]) by mx.google.com with ESMTPS id q9sm867075gve.5.2008.09.27.15.59.05 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 27 Sep 2008 15:59:10 -0700 (PDT) References: <48DEA8E7.2080503@FreeBSD.org> Message-Id: <9D33158B-B28D-4D22-B3BF-A7CE376FCAD1@freebd.org> To: Alexander Motin In-Reply-To: <48DEA8E7.2080503@FreeBSD.org> Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Mailer: iPod Mail (5F137) Mime-Version: 1.0 (iPod Mail 5F137) Date: Sat, 27 Sep 2008 23:58:56 +0100 From: Rui Paulo Sender: Rui Paulo 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: Sat, 27 Sep 2008 23:25:48 -0000 On 27 Sep 2008, at 22:43, Alexander Motin wrote: > Hi. > > 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. With some > limitations it successfully works on my Acer TM6292 notebook with > ENE CB714 card reader. > > Things that are working now: > - PIO mode single and multiple block read and write, > - 1 and 4 bits bus width support. > > In PIO mode with 4GB SD card on 30MHz 4bit bus I have reached about > 3.5MB/s (limited by CPU) linear read and 7MB/s (limited by card) > linear write. Small blocks read/write performance limited by card. > > Things that are not working yet: > - DMA modes (code is written, but as my controller looks like has > broken DMA I have no ability to debug it), > - card insert/remove detection (need more thinking), you should > reload mmc module to rescan cards, > - SDHC and MMC cards (have no such cards now to debug that code), > only standard capacity SD Memory cards up to 4GB size are supported > now, > - high speed (double rate) bus mode (need more thinking and DMA > support). > > Also to get such results I have improved existing mmc and mmcsd > drivers a bit. mmc driver got: > - 4 bit bus width support, > - write protection switch support, > - cards with more then 2GB capacity support. > mmcsd driver got: > - multiple block read and write support, > - cards with more then 2GB capacity support, > - I/O error reporting, > - write protection switch support. > > Latest patches against 8-CURRENT (should also fit 7-STABLE) may be > found at: > http://people.freebsd.org/~mav/sdhci/ > > I will be grateful for any feedbacks, comments and support. Well, here's my support: Great work! :-) -- Rui Paulo