From owner-freebsd-mobile@FreeBSD.ORG Sun Oct 12 11:48:54 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 0AC2C106569D for ; Sun, 12 Oct 2008 11:48:54 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from cmail.optima.ua (cmail.optima.ua [195.248.191.121]) by mx1.freebsd.org (Postfix) with ESMTP id 0DC8C8FC16 for ; Sun, 12 Oct 2008 11:48:52 +0000 (UTC) (envelope-from mav@FreeBSD.org) X-Spam-Flag: SKIP X-Spam-Yversion: Spamooborona-2.1.0 Received: from [212.86.226.226] (account mav@alkar.net HELO [192.168.3.2]) by cmail.optima.ua (CommuniGate Pro SMTP 5.1.14) with ESMTPA id 224603844; Sun, 12 Oct 2008 14:48:51 +0300 Message-ID: <48F1E423.1000606@FreeBSD.org> Date: Sun, 12 Oct 2008 14:48:51 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Henry Hu References: <48DEA8E7.2080503@FreeBSD.org> <48F11087.20403@FreeBSD.org> <53a1e0710810120339g66180c86n239c35bf2abf9467@mail.gmail.com> In-Reply-To: <53a1e0710810120339g66180c86n239c35bf2abf9467@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: 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: Sun, 12 Oct 2008 11:48:54 -0000 Henry Hu wrote: > I've tried your driver, and it worked fine at my laptop. > I have a Samsung R70, with built-in SD card reader(in fact, it can > read many cards, and there are 4 unknown devices related to it).The > transfer speed with dd bs=512 is almost 800KB/s, which I think is > fairly fast. bs=512 is a quite ineffective for any modern storage. With bigger bs you should get much bigger performance I think. > I'm testing it with a transcend 2G mini SD card, with SD-miniSD adapter. > I'm using 7-STABLE, so I changed kproc_create to kthread_create to > compile the mmcsd module. > There are errors, but the transfer completed normally. > sdhci0-slot0: Card inserted > mmc0: on sdhci0 > sdhci0-slot0: Command error 1 (opcode 8 arg 426 flags 101 dlen 0 dflags 0) > sdhci0-slot0: Command error 1 (opcode 8 arg 426 flags 101 dlen 0 dflags 0) This is not a problem. It means that your card does not support SDHC CMD8 command as it is not an SDHC actually. > mmcsd0: 1950MB at mmc0 16MHz/4bit It means that top performance of this card on this controller is about 8MB/s. I expect that you may reach it on read operations if your card is not very old. -- Alexander Motin