From owner-freebsd-arm@FreeBSD.ORG Fri Aug 23 13:11:37 2013 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 3C88A8A3 for ; Fri, 23 Aug 2013 13:11:37 +0000 (UTC) (envelope-from ian@FreeBSD.org) Received: from mho-01-ewr.mailhop.org (mho-03-ewr.mailhop.org [204.13.248.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 140BA2648 for ; Fri, 23 Aug 2013 13:11:36 +0000 (UTC) Received: from c-24-8-230-52.hsd1.co.comcast.net ([24.8.230.52] helo=damnhippie.dyndns.org) by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1VCr9L-0004oj-Sm for freebsd-arm@FreeBSD.org; Fri, 23 Aug 2013 13:11:36 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id r7NDBXAX047783 for ; Fri, 23 Aug 2013 07:11:33 -0600 (MDT) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 24.8.230.52 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX19gI8L++B0SJjoFvZwB6rwU Subject: Heads-up: new mmc/sd driver for BeagleBone From: Ian Lepore To: freebsd-arm Content-Type: text/plain; charset="us-ascii" Date: Fri, 23 Aug 2013 07:11:33 -0600 Message-ID: <1377263493.1111.63.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Aug 2013 13:11:37 -0000 FYI, a few days ago (as of r254559) I checked in a new mmc/sd driver for BeagleBone (White and Black). We now use the standard sdhci driver, and performance is noticibly better. The new driver supports 8-bit mode for MMC cards. Right now it uses PIO mode only (but still performs better even so). I intend to add DMA support soon. The old driver is still available, and if for some reason you suspect trouble with the new driver, you can quickly switch back by editing src/sys/arm/ti/am335x/files.am335x, comment out the ti_sdhci line and uncomment ti_mmchs and rebuild your kernel. These numbers were with a Lexar class-6 8gb SD card... ti_mmchs driver: root@bb:~ # dd if=/dev/mmcsd0s2b of=/dev/null bs=128k count=100 13107200 bytes transferred in 6.178682 secs (2121359 bytes/sec) root@bb:~ # dd of=/dev/mmcsd0s2b if=/dev/zero bs=128k count=100 13107200 bytes transferred in 59.523976 secs (220200 bytes/sec) ti_sdhci driver: root@bb:~ # dd if=/dev/mmcsd0s2b of=/dev/null bs=128k count=100 13107200 bytes transferred in 0.847354 secs (15468389 bytes/sec) root@bb:~ # dd of=/dev/mmcsd0s2b if=/dev/zero bs=128k count=100 13107200 bytes transferred in 1.287745 secs (10178413 bytes/sec) -- Ian