From owner-freebsd-arm@FreeBSD.ORG Sun Oct 5 20:40:25 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 70452106568E; Sun, 5 Oct 2008 20:40:25 +0000 (UTC) (envelope-from jhay@meraka.csir.co.za) Received: from zibbi.meraka.csir.co.za (zibbi.meraka.csir.co.za [IPv6:2001:4200:7000:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id B078B8FC0C; Sun, 5 Oct 2008 20:40:24 +0000 (UTC) (envelope-from jhay@meraka.csir.co.za) Received: by zibbi.meraka.csir.co.za (Postfix, from userid 3973) id CE3A633C9C; Sun, 5 Oct 2008 22:40:22 +0200 (SAST) Date: Sun, 5 Oct 2008 22:40:22 +0200 From: John Hay To: freebsd-arm@freebsd.org Message-ID: <20081005204022.GA58869@zibbi.meraka.csir.co.za> References: <48DEEB8D.8020201@errno.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48DEEB8D.8020201@errno.com> User-Agent: Mutt/1.4.2.1i Cc: Andrew Thompson Subject: boot2 for avila 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: Sun, 05 Oct 2008 20:40:25 -0000 Hi Guys, I have put the latest code at http://people.freebsd.org/~jhay/ixp425-boot-20081005.tgz I have included most of Sam's stuff and also the patches I got from Andrew Thompson. I have tried to make it autodetect the partitioning schemes mostly used, so that we do not need to use compile options for that. It should now handle slices+bsdlabel+partions, slices-only and also bsdlabel+partitions (without slices). It should also handle the various ROOTDEVNAME options used: ufs:ad0s1a, ufs:ad0s1, ufs:ad0a and also ufs:ROOTDEVNAME if you have FIXUP_BOOT_DRV defined (which is the default). I think it is ready for commit. Anybody want to look at it or try it to make sure your stuff still works before I commit it? John -- John Hay -- John.Hay@meraka.csir.co.za / jhay@FreeBSD.org From owner-freebsd-arm@FreeBSD.ORG Sun Oct 5 23:37:12 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 F33371065750; Sun, 5 Oct 2008 23:37:10 +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 520478FC14; Sun, 5 Oct 2008 23:37:10 +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 m95NYnWO032486; Sun, 5 Oct 2008 17:34:49 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sun, 05 Oct 2008 17:35:44 -0600 (MDT) Message-Id: <20081005.173544.-432815076.imp@bsdimp.com> To: jhay@meraka.org.za From: "M. Warner Losh" In-Reply-To: <20081005204022.GA58869@zibbi.meraka.csir.co.za> References: <48DEEB8D.8020201@errno.com> <20081005204022.GA58869@zibbi.meraka.csir.co.za> 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: freebsd-arm@freebsd.org, thompsa@freebsd.org Subject: Re: boot2 for avila 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: Sun, 05 Oct 2008 23:37:12 -0000 In message: <20081005204022.GA58869@zibbi.meraka.csir.co.za> John Hay writes: : Hi Guys, : : I have put the latest code at : http://people.freebsd.org/~jhay/ixp425-boot-20081005.tgz : : I have included most of Sam's stuff and also the patches I got from : Andrew Thompson. I have tried to make it autodetect the partitioning : schemes mostly used, so that we do not need to use compile options : for that. It should now handle slices+bsdlabel+partions, slices-only : and also bsdlabel+partitions (without slices). : : It should also handle the various ROOTDEVNAME options used: ufs:ad0s1a, : ufs:ad0s1, ufs:ad0a and also ufs:ROOTDEVNAME if you have FIXUP_BOOT_DRV : defined (which is the default). : : I think it is ready for commit. Anybody want to look at it or try it : to make sure your stuff still works before I commit it? Since this doesn't change the at91/boot2 stuff at all, the stuff I care most about will still work. I'd like to merge these two files, since I didn't see anything in the diffs that can't be resolved between the two systems... I wouldn't block commits based on this, but these two files are very similar... Warner From owner-freebsd-arm@FreeBSD.ORG Mon Oct 6 05:57:23 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 3DD3D1065688 for ; Mon, 6 Oct 2008 05:57:23 +0000 (UTC) (envelope-from zbeeble@gmail.com) Received: from mail-gx0-f21.google.com (mail-gx0-f21.google.com [209.85.217.21]) by mx1.freebsd.org (Postfix) with ESMTP id D80258FC08 for ; Mon, 6 Oct 2008 05:57:22 +0000 (UTC) (envelope-from zbeeble@gmail.com) Received: by gxk14 with SMTP id 14so4444838gxk.19 for ; Sun, 05 Oct 2008 22:57:22 -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:references; bh=w2DW89kUVJw+TuZHjwOeKoFHQmoiXgkt1zscxjtTqBw=; b=E5Q6ajLrvUwNQmBTZq9s0iKlP33E2whpTnadyJ0qCInEw2pSovcZNI2ZwEgEEXetKz MLEV4RTPyU0qD1n9ZF3gCzkElS8NSNIkX9ZD5RICKstpqus8iacia3af+ek0j9NTbdSN fzAfAmPxoeYiklVnnwrHZmlXEk8DsZNX0kfRI= 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:references; b=gTTg+nj5BjeA9AypaFYWLM1J/HXIuLl5mklNy0kZvX4JgDwmxwy9hwEMk3hyruGF9R 1h1v2g433rOJCPjLeAIeIjtIX6H4YC9+NqUYeVn44sJDexNHVBPljEUS55E0AWaNnQSp I5xLPz+gBebkwCAxKkQMmaT5wD64CTMPcF2J4= Received: by 10.150.58.5 with SMTP id g5mr6956440yba.134.1223270779773; Sun, 05 Oct 2008 22:26:19 -0700 (PDT) Received: by 10.150.137.11 with HTTP; Sun, 5 Oct 2008 22:26:19 -0700 (PDT) Message-ID: <5f67a8c40810052226k3070a11ah463a819c677f6307@mail.gmail.com> Date: Mon, 6 Oct 2008 01:26:19 -0400 From: "Zaphod Beeblebrox" To: "Alexander Motin" In-Reply-To: <48DEA8E7.2080503@FreeBSD.org> MIME-Version: 1.0 References: <48DEA8E7.2080503@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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: Mon, 06 Oct 2008 05:57:23 -0000 On Sat, Sep 27, 2008 at 5:43 PM, 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 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). Most 4G cards are SDHC that I've seen. The notes on this that I've read talk about the fact that you can have a 4G regular SD card but that many (most) devices don't support it because of the need for a larger FAT to support 4G. I have two laptops with these controllers, but I have only SDHC media (4 and 8 gig cards). From owner-freebsd-arm@FreeBSD.ORG Mon Oct 6 07:01:22 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 ABD461065686; Mon, 6 Oct 2008 07:01:22 +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 688868FC14; Mon, 6 Oct 2008 07:01:22 +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 m966wSfp036318; Mon, 6 Oct 2008 00:58:28 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Mon, 06 Oct 2008 00:58:28 -0600 (MDT) Message-Id: <20081006.005828.104066981.imp@bsdimp.com> To: zbeeble@gmail.com From: Warner Losh In-Reply-To: <5f67a8c40810052226k3070a11ah463a819c677f6307@mail.gmail.com> References: <48DEA8E7.2080503@FreeBSD.org> <5f67a8c40810052226k3070a11ah463a819c677f6307@mail.gmail.com> X-Mailer: Mew version 3.3 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-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: Mon, 06 Oct 2008 07:01:22 -0000 From: "Zaphod Beeblebrox" Subject: Re: RFC: PCI SD host controller driver & mmc/mmcsd modules improvements Date: Mon, 6 Oct 2008 01:26:19 -0400 > On Sat, Sep 27, 2008 at 5:43 PM, 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 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). > > > Most 4G cards are SDHC that I've seen. The notes on this that I've read > talk about the fact that you can have a 4G regular SD card but that many > (most) devices don't support it because of the need for a larger FAT to > support 4G. s/many/a few/g. 4GB SD cards work fine in every device I've tried them in... > I have two laptops with these controllers, but I have only SDHC media (4 and > 8 gig cards). Yes. The SDHC isolation protocol and media decoding stuff isn't written yet. Warner From owner-freebsd-arm@FreeBSD.ORG Mon Oct 6 08:20:38 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 DA3D51065689; Mon, 6 Oct 2008 08:20:38 +0000 (UTC) (envelope-from tom.hurst@clara.net) Received: from spork.qfe3.net (spork.qfe3.net [212.13.207.101]) by mx1.freebsd.org (Postfix) with ESMTP id 9940F8FC15; Mon, 6 Oct 2008 08:20:38 +0000 (UTC) (envelope-from tom.hurst@clara.net) Received: from [81.104.123.28] (helo=voi.aagh.net) by spork.qfe3.net with esmtp (Exim 4.66 (FreeBSD)) (envelope-from ) id 1Kmkxn-000IZs-Ot; Mon, 06 Oct 2008 08:57:07 +0100 Received: from freaky by voi.aagh.net with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1Kmkxn-0002Cl-7e; Mon, 06 Oct 2008 08:57:07 +0100 Date: Mon, 6 Oct 2008 08:57:07 +0100 From: Thomas Hurst To: Alexander Motin Message-ID: <20081006075707.GA76333@voi.aagh.net> Mail-Followup-To: Alexander Motin , freebsd-arm@FreeBSD.org, freebsd-mobile@FreeBSD.org, freebsd-current@freebsd.org, imp@FreeBSD.org References: <48DEA8E7.2080503@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48DEA8E7.2080503@FreeBSD.org> Organization: Not much. User-Agent: Mutt/1.5.18 (2008-05-17) Sender: Thomas Hurst 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: Mon, 06 Oct 2008 08:20:39 -0000 * Alexander Motin (mav@FreeBSD.org) 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. With some > limitations it successfully works on my Acer TM6292 notebook with ENE > CB714 card reader. RELENG_7_0, Sony TX1XP: sdhci0: mem 0xb0107000-0xb01070ff,0xb0106c00-0xb0106cff,0xb0106800-0xb01068ff irq 21 at device 5.4 on pci6 sdhci0: 3 slot(s) allocated none2@pci0:6:5:3: class=0x018000 card=0x81e2104d chip=0x8033104c rev=0x00 hdr=0x00 vendor = 'Texas Instruments (TI)' device = 'PCIxx11/21 Integrated FlashMedia Controller' class = mass storage sdhci0@pci0:6:5:4: class=0x080500 card=0x00000000 chip=0x8034104c rev=0x00 hdr=0x00 vendor = 'Texas Instruments (TI)' device = '10981734 SDA Standard Compliant SD Host Controller' class = base peripheral This is an integrated SD and MemoryStick reader; sadly it doesn't actually attach any usable devices. -- Thomas 'Freaky' Hurst http://hur.st/ From owner-freebsd-arm@FreeBSD.ORG Mon Oct 6 09:13:20 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 8493D1065688; Mon, 6 Oct 2008 09:13:20 +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 EA9FA8FC0C; Mon, 6 Oct 2008 09:13:18 +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 mavbook.mavhome.dp.ua) by cmail.optima.ua (CommuniGate Pro SMTP 5.1.14) with ESMTPSA id 223687663; Mon, 06 Oct 2008 12:13:17 +0300 Message-ID: <48E9D6AD.8010202@FreeBSD.org> Date: Mon, 06 Oct 2008 12:13:17 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.16 (X11/20080726) MIME-Version: 1.0 To: Alexander Motin , freebsd-arm@FreeBSD.org, freebsd-mobile@FreeBSD.org, freebsd-current@freebsd.org, imp@FreeBSD.org References: <48DEA8E7.2080503@FreeBSD.org> <20081006075707.GA76333@voi.aagh.net> In-Reply-To: <20081006075707.GA76333@voi.aagh.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: 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: Mon, 06 Oct 2008 09:13:20 -0000 Thomas Hurst wrote: > * Alexander Motin (mav@FreeBSD.org) 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. With some >> limitations it successfully works on my Acer TM6292 notebook with ENE >> CB714 card reader. > > RELENG_7_0, Sony TX1XP: > > sdhci0: mem > 0xb0107000-0xb01070ff,0xb0106c00-0xb0106cff,0xb0106800-0xb01068ff irq 21 > at device 5.4 on pci6 > sdhci0: 3 slot(s) allocated > > none2@pci0:6:5:3: class=0x018000 card=0x81e2104d chip=0x8033104c rev=0x00 hdr=0x00 > vendor = 'Texas Instruments (TI)' > device = 'PCIxx11/21 Integrated FlashMedia Controller' > class = mass storage > sdhci0@pci0:6:5:4: class=0x080500 card=0x00000000 chip=0x8034104c rev=0x00 hdr=0x00 > vendor = 'Texas Instruments (TI)' > device = '10981734 SDA Standard Compliant SD Host Controller' > class = base peripheral > > This is an integrated SD and MemoryStick reader; sadly it doesn't > actually attach any usable devices. At this moment driver creates mmc bus only on card insert and destroyes on remove. Have you tried to insert something there? Do you have any reaction on card insert? -- Alexander Motin From owner-freebsd-arm@FreeBSD.ORG Mon Oct 6 10:42: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 32CE51065686; Mon, 6 Oct 2008 10:42:48 +0000 (UTC) (envelope-from tom.hurst@clara.net) Received: from spork.qfe3.net (spork.qfe3.net [212.13.207.101]) by mx1.freebsd.org (Postfix) with ESMTP id 9D3DB8FC15; Mon, 6 Oct 2008 10:42:47 +0000 (UTC) (envelope-from tom.hurst@clara.net) Received: from [81.104.123.28] (helo=voi.aagh.net) by spork.qfe3.net with esmtp (Exim 4.66 (FreeBSD)) (envelope-from ) id 1KmnY6-000Khr-0W; Mon, 06 Oct 2008 11:42:46 +0100 Received: from freaky by voi.aagh.net with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1KmnY5-0008KP-Og; Mon, 06 Oct 2008 11:42:45 +0100 Date: Mon, 6 Oct 2008 11:42:45 +0100 From: Thomas Hurst To: Alexander Motin Message-ID: <20081006104245.GA24462@voi.aagh.net> Mail-Followup-To: Alexander Motin , freebsd-arm@FreeBSD.org, freebsd-mobile@FreeBSD.org, freebsd-current@freebsd.org, imp@FreeBSD.org References: <48DEA8E7.2080503@FreeBSD.org> <20081006075707.GA76333@voi.aagh.net> <48E9D6AD.8010202@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48E9D6AD.8010202@FreeBSD.org> Organization: Not much. User-Agent: Mutt/1.5.18 (2008-05-17) Sender: Thomas Hurst 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: Mon, 06 Oct 2008 10:42:48 -0000 * Alexander Motin (mav@FreeBSD.org) wrote: > > This is an integrated SD and MemoryStick reader; sadly it doesn't > > actually attach any usable devices. > > At this moment driver creates mmc bus only on card insert and > destroyes on remove. Have you tried to insert something there? Do you > have any reaction on card insert? Yup, I've tried a 1GB and 2GB SD card and a 1GB and 64MB MS with two different adaptors. No combination of inserting, reloading mmc, or sdhci seems to make any usable device nodes. I note it doesn't appear to be allocating any IRQ's according to vmstat -i. Is it supposed to? -- Thomas 'Freaky' Hurst http://hur.st/ From owner-freebsd-arm@FreeBSD.ORG Mon Oct 6 10:50:11 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 533D61065699; Mon, 6 Oct 2008 10:50:11 +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 AB3EA8FC08; Mon, 6 Oct 2008 10:50:09 +0000 (UTC) (envelope-from mav@FreeBSD.org) X-Spam-Flag: SKIP X-Spam-Yversion: Spamooborona-2.1.0 Received: from orphanage.alkar.net (account mav@alkar.net [212.86.226.11] verified) by cmail.optima.ua (CommuniGate Pro SMTP 5.1.14) with ESMTPA id 223701220; Mon, 06 Oct 2008 13:50:08 +0300 Message-ID: <48E9ED5F.1060102@FreeBSD.org> Date: Mon, 06 Oct 2008 13:50:07 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.14 (X11/20080612) MIME-Version: 1.0 To: freebsd-arm@FreeBSD.org, freebsd-mobile@FreeBSD.org, freebsd-current@freebsd.org, imp@FreeBSD.org References: <48DEA8E7.2080503@FreeBSD.org> <20081006075707.GA76333@voi.aagh.net> <48E9D6AD.8010202@FreeBSD.org> <20081006104245.GA24462@voi.aagh.net> In-Reply-To: <20081006104245.GA24462@voi.aagh.net> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: 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: Mon, 06 Oct 2008 10:50:11 -0000 Thomas Hurst wrote: >>> This is an integrated SD and MemoryStick reader; sadly it doesn't >>> actually attach any usable devices. >> At this moment driver creates mmc bus only on card insert and >> destroyes on remove. Have you tried to insert something there? Do you >> have any reaction on card insert? > > Yup, I've tried a 1GB and 2GB SD card and a 1GB and 64MB MS with two > different adaptors. No combination of inserting, reloading mmc, or > sdhci seems to make any usable device nodes. > > I note it doesn't appear to be allocating any IRQ's according to vmstat > -i. Is it supposed to? SD host should provide one IRQ and 256 bytes memory range per each slot. -- Alexander Motin From owner-freebsd-arm@FreeBSD.ORG Tue Oct 7 12:53:34 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 C30BD1065690; Tue, 7 Oct 2008 12:53:34 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id E3C268FC13; Tue, 7 Oct 2008 12:53:33 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id m97CrQW9089670 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 7 Oct 2008 14:53:27 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by cicely5.cicely.de (8.14.2/8.14.2) with ESMTP id m97CrLJJ035771 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 7 Oct 2008 14:53:21 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.14.2/8.14.2) with ESMTP id m97CrKrg026359; Tue, 7 Oct 2008 14:53:20 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id m97CrKZr026358; Tue, 7 Oct 2008 14:53:20 +0200 (CEST) (envelope-from ticso) Date: Tue, 7 Oct 2008 14:53:20 +0200 From: Bernd Walter To: Warner Losh Message-ID: <20081007125320.GD25586@cicely7.cicely.de> References: <48DEA8E7.2080503@FreeBSD.org> <5f67a8c40810052226k3070a11ah463a819c677f6307@mail.gmail.com> <20081006.005828.104066981.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081006.005828.104066981.imp@bsdimp.com> X-Operating-System: FreeBSD cicely7.cicely.de 7.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-4.3 required=5.0 tests=ALL_TRUSTED=-1.8, AWL=0.070, BAYES_00=-2.599 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on spamd.cicely.de Cc: mav@freebsd.org, zbeeble@gmail.com, freebsd-arm@freebsd.org, freebsd-mobile@freebsd.org, freebsd-current@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 Reply-To: ticso@cicely.de List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Oct 2008 12:53:34 -0000 On Mon, Oct 06, 2008 at 12:58:28AM -0600, Warner Losh wrote: > From: "Zaphod Beeblebrox" > Subject: Re: RFC: PCI SD host controller driver & mmc/mmcsd modules improvements > Date: Mon, 6 Oct 2008 01:26:19 -0400 > > > On Sat, Sep 27, 2008 at 5:43 PM, 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 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). > > > > > > Most 4G cards are SDHC that I've seen. The notes on this that I've read > > talk about the fact that you can have a 4G regular SD card but that many > > (most) devices don't support it because of the need for a larger FAT to > > support 4G. > > s/many/a few/g. 4GB SD cards work fine in every device I've tried > them in... You are quite lucky then. 4G-SD are non standard and I have a few devices where they don't work with. Sadly I even own a USB reader, which is still being sold, that doen't work with 2G cards - it just truncates them at 1G - sigh. -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. From owner-freebsd-arm@FreeBSD.ORG Wed Oct 8 07:54:49 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 117CF1065697; Wed, 8 Oct 2008 07:54:49 +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 85B488FC0A; Wed, 8 Oct 2008 07:54:47 +0000 (UTC) (envelope-from mav@FreeBSD.org) X-Spam-Flag: SKIP X-Spam-Yversion: Spamooborona-2.1.0 Received: from orphanage.alkar.net (account mav@alkar.net [212.86.226.11] verified) by cmail.optima.ua (CommuniGate Pro SMTP 5.1.14) with ESMTPA id 224036699; Wed, 08 Oct 2008 10:54:46 +0300 Message-ID: <48EC6745.8020404@FreeBSD.org> Date: Wed, 08 Oct 2008 10:54:45 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.14 (X11/20080612) MIME-Version: 1.0 To: Ilya Bakulin References: <48DEA8E7.2080503@FreeBSD.org> <5f67a8c40810052226k3070a11ah463a819c677f6307@mail.gmail.com> <20081008113848.c9b44354.webmaster@kibab.com> In-Reply-To: <20081008113848.c9b44354.webmaster@kibab.com> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org, Zaphod Beeblebrox , imp@freebsd.org, freebsd-mobile@freebsd.org, freebsd-current@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: Wed, 08 Oct 2008 07:54:49 -0000 Ilya Bakulin wrote: > I have another SD card, 2 Gb size, in my camera. It's from Kingston. It doesn't work: > > sdhci0-slot0: Card inserted > mmc0: on sdhci0 > sdhci0-slot0: Command error 1 (opcode 2 arg 0 flags 103 dlen 0 dflags 0) > mmc0: setting transfer rate to 50.000MHz > > ... and no new storage devices appear. Theoretically it may be an SDHC card. They are not responding to incompatible host with alike symptoms. I have already implemented MMC and SDHC support and going to publish it soon. -- Alexander Motin From owner-freebsd-arm@FreeBSD.ORG Wed Oct 8 08:58:23 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 CF5501065691; Wed, 8 Oct 2008 08:58:23 +0000 (UTC) (envelope-from webmaster@kibab.com) Received: from smtp.ht-systems.ru (mr0.ht-systems.ru [78.110.50.55]) by mx1.freebsd.org (Postfix) with ESMTP id 790FE8FC24; Wed, 8 Oct 2008 08:58:23 +0000 (UTC) (envelope-from webmaster@kibab.com) Received: from [85.140.151.168] (helo=kibab-nb) by smtp.ht-systems.ru with esmtpa (Exim 4.62) (envelope-from ) id 1KnUs9-0002IW-HV; Wed, 08 Oct 2008 12:58:21 +0400 Date: Wed, 8 Oct 2008 12:58:20 +0400 From: Ilya Bakulin To: Alexander Motin Message-Id: <20081008125820.64e72352.webmaster@kibab.com> In-Reply-To: <48EC6745.8020404@FreeBSD.org> References: <48DEA8E7.2080503@FreeBSD.org> <5f67a8c40810052226k3070a11ah463a819c677f6307@mail.gmail.com> <20081008113848.c9b44354.webmaster@kibab.com> <48EC6745.8020404@FreeBSD.org> Organization: HT-Systems X-Mailer: Sylpheed 2.5.0 (GTK+ 2.12.11; i386-portbld-freebsd7.1) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Wed__8_Oct_2008_12_58_20_+0400_O4mBWNkDFWrKS_OB" Cc: freebsd-arm@freebsd.org, Zaphod Beeblebrox , imp@freebsd.org, freebsd-current@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: Wed, 08 Oct 2008 08:58:24 -0000 --Signature=_Wed__8_Oct_2008_12_58_20_+0400_O4mBWNkDFWrKS_OB Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, 08 Oct 2008 10:54:45 +0300 Alexander Motin wrote: > Theoretically it may be an SDHC card. They are not responding to > incompatible host with alike symptoms. I have already implemented MMC > and SDHC support and going to publish it soon. >=20 > --=20 > Alexander Motin It's not SDHC, because none of my home card readers understand SDHC, and th= is card can be read in all of them. Under Windows (installed on the same la= ptop) this card can be read. If you need any further information about this card - just say what you nee= d :-) I also have micro SDHC card (not mine), it responds exactly as that 2 Gb SD= ... But it can't be read in all my home equipment either :) --=20 Ilya Bakulin --Signature=_Wed__8_Oct_2008_12_58_20_+0400_O4mBWNkDFWrKS_OB Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkjsdjAACgkQo9vlj1oadwiVvgCfS4hZ6oPt4hfEzL28Jj/vyM19 /OgAn1kmI74WDGEpCLE5eyA0YC2kID6T =LFFR -----END PGP SIGNATURE----- --Signature=_Wed__8_Oct_2008_12_58_20_+0400_O4mBWNkDFWrKS_OB-- From owner-freebsd-arm@FreeBSD.ORG Wed Oct 8 16:58:51 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 ADD1410656B7; Wed, 8 Oct 2008 16:58:51 +0000 (UTC) (envelope-from webmaster@kibab.com) Received: from smtp.ht-systems.ru (mr0.ht-systems.ru [78.110.50.55]) by mx1.freebsd.org (Postfix) with ESMTP id 5ED518FC3C; Wed, 8 Oct 2008 16:58:51 +0000 (UTC) (envelope-from webmaster@kibab.com) Received: from [85.140.151.168] (helo=kibab-nb) by smtp.ht-systems.ru with esmtpa (Exim 4.62) (envelope-from ) id 1KnTdC-0007fG-Hk; Wed, 08 Oct 2008 11:38:50 +0400 Date: Wed, 8 Oct 2008 11:38:48 +0400 From: Ilya Bakulin To: "Zaphod Beeblebrox" Message-Id: <20081008113848.c9b44354.webmaster@kibab.com> In-Reply-To: <5f67a8c40810052226k3070a11ah463a819c677f6307@mail.gmail.com> References: <48DEA8E7.2080503@FreeBSD.org> <5f67a8c40810052226k3070a11ah463a819c677f6307@mail.gmail.com> Organization: HT-Systems X-Mailer: Sylpheed 2.5.0 (GTK+ 2.12.11; i386-portbld-freebsd7.1) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Wed__8_Oct_2008_11_38_48_+0400_9.Z3D3MtL6iCT7wi" Cc: Alexander Motin , freebsd-current@freebsd.org, imp@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: Wed, 08 Oct 2008 16:58:51 -0000 --Signature=_Wed__8_Oct_2008_11_38_48_+0400_9.Z3D3MtL6iCT7wi Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, 6 Oct 2008 01:26:19 -0400 "Zaphod Beeblebrox" wrote: > Most 4G cards are SDHC that I've seen. The notes on this that I've read > talk about the fact that you can have a 4G regular SD card but that many > (most) devices don't support it because of the need for a larger FAT to > support 4G. >=20 > I have two laptops with these controllers, but I have only SDHC media (4 = and > 8 gig cards). I have 4G SD card (not SDHC), this driver works perfectly with it.=20 Card is Transcend 4Gb 150x. Output from dmesg:=20 sdhci0-slot0: Card inserted mmc0: on sdhci0 mmcsd0: 3926MB at mmc0 mmc0: setting transfer rate to 30.000MHz mmc0: setting bus width to 4 bits GEOM_LABEL: Label for provider mmcsd0 is msdosfs/WM_ILYA. I've been able to copy large file (diablo jdk 1.6) to and from this card, w= ith no file corruption. I have another SD card, 2 Gb size, in my camera. It's from Kingston. It doe= sn't work: sdhci0-slot0: Card inserted mmc0: on sdhci0 sdhci0-slot0: Command error 1 (opcode 2 arg 0 flags 103 dlen 0 dflags 0) mmc0: setting transfer rate to 50.000MHz ... and no new storage devices appear. --=20 Ilya Bakulin --Signature=_Wed__8_Oct_2008_11_38_48_+0400_9.Z3D3MtL6iCT7wi Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkjsY40ACgkQo9vlj1oadwjNBACeNVxxNOVZ5u3FUHqtX3PxV1GW ZJwAoJQUgXFZaONfuMJBY5+NhqJ7ZXHi =QZxx -----END PGP SIGNATURE----- --Signature=_Wed__8_Oct_2008_11_38_48_+0400_9.Z3D3MtL6iCT7wi-- From owner-freebsd-arm@FreeBSD.ORG Fri Oct 10 09:46:44 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 9A8D1106568B for ; Fri, 10 Oct 2008 09:46:44 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from semihalf.com (semihalf.com [206.130.101.55]) by mx1.freebsd.org (Postfix) with ESMTP id 65EE68FC21 for ; Fri, 10 Oct 2008 09:46:44 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from mail.semihalf.com (mail.semihalf.com [83.15.139.206]) by semihalf.com (8.13.1/8.13.1) with ESMTP id m9A9kgs0010429 for ; Fri, 10 Oct 2008 03:46:43 -0600 Message-ID: <48EF2481.2010307@semihalf.com> Date: Fri, 10 Oct 2008 11:46:41 +0200 From: Rafal Jaworowski Organization: Semihalf MIME-Version: 1.0 To: freebsd-arm@freebsd.org References: <48DA31B3.5040906@semihalf.com> In-Reply-To: <48DA31B3.5040906@semihalf.com> Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 7bit Subject: Re: FreeBSD/arm support for Marvell chips -- please review 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: Fri, 10 Oct 2008 09:46:44 -0000 Rafal Jaworowski wrote: > All, > With the recent series of submits in P4's arm-devel branch, I have completed > import of FreeBSD/arm support for three families of Marvell integrated > systems-on-chip built on ARMv5TE-compliant core. Orion support has been around > for a while already, and recently added were extensions for Kirkwood and > Discovery support, new drivers for integrated peripherals and other improvements. > > I'd like to merge this with SVN within the coming weeks, so would like to ask > everyone to review the code and let me know about any comments or notes: I haven't received much feedback, are people still reviewing this? Rafal From owner-freebsd-arm@FreeBSD.ORG Fri Oct 10 09:56:53 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 DDE36106569D for ; Fri, 10 Oct 2008 09:56:53 +0000 (UTC) (envelope-from stas@ht-systems.ru) Received: from smtp.ht-systems.ru (mr0.ht-systems.ru [78.110.50.55]) by mx1.freebsd.org (Postfix) with ESMTP id 8D3B38FC12 for ; Fri, 10 Oct 2008 09:56:52 +0000 (UTC) (envelope-from stas@ht-systems.ru) Received: from [78.110.49.49] (helo=quasar.ht-systems.ru) by smtp.ht-systems.ru with esmtpa (Exim 4.62) (envelope-from ) id 1KoEjp-0004n4-9n; Fri, 10 Oct 2008 13:56:49 +0400 Received: by quasar.ht-systems.ru (Postfix, from userid 1024) id F125674CE5; Fri, 10 Oct 2008 13:56:47 +0400 (MSD) Date: Fri, 10 Oct 2008 13:56:42 +0400 From: Stanislav Sedov To: Rafal Jaworowski Message-Id: <20081010135642.9e4b3449.stas@FreeBSD.org> In-Reply-To: <48EF2481.2010307@semihalf.com> References: <48DA31B3.5040906@semihalf.com> <48EF2481.2010307@semihalf.com> Organization: The FreeBSD Project X-XMPP: ssedov@jabber.ru X-Voice: +7 916 849 20 23 X-PGP-Fingerprint: F21E D6CC 5626 9609 6CE2 A385 2BF5 5993 EB26 9581 X-Mailer: carrier-pigeon Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Fri__10_Oct_2008_13_56_42_+0400_p3YeEOUQBj_yieEH" Cc: freebsd-arm@freebsd.org Subject: Re: FreeBSD/arm support for Marvell chips -- please review 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: Fri, 10 Oct 2008 09:56:53 -0000 --Signature=_Fri__10_Oct_2008_13_56_42_+0400_p3YeEOUQBj_yieEH Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, 10 Oct 2008 11:46:41 +0200 Rafal Jaworowski mentioned: >=20 > I haven't received much feedback, are people still reviewing this? >=20 Yeah, but there're still nothing to say except the code is great:-). Though, I still have some parts to look into. --=20 Stanislav Sedov ST4096-RIPE --Signature=_Fri__10_Oct_2008_13_56_42_+0400_p3YeEOUQBj_yieEH Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkjvJt8ACgkQK/VZk+smlYFDywCffYPuQP7Mw5Wav6SpHDXRjDiS y0cAniJcR5pKEfWtXPllu2Q8bCHl4PFJ =OCFi -----END PGP SIGNATURE----- --Signature=_Fri__10_Oct_2008_13_56_42_+0400_p3YeEOUQBj_yieEH-- From owner-freebsd-arm@FreeBSD.ORG Fri Oct 10 16:27:29 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 54F2A10656A2 for ; Fri, 10 Oct 2008 16:27:29 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from semihalf.com (semihalf.com [206.130.101.55]) by mx1.freebsd.org (Postfix) with ESMTP id 2218D8FC17 for ; Fri, 10 Oct 2008 16:27:28 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from mail.semihalf.com (mail.semihalf.com [83.15.139.206]) by semihalf.com (8.13.1/8.13.1) with ESMTP id m9AGRRjS007552; Fri, 10 Oct 2008 10:27:28 -0600 Message-ID: <48EF826E.2050005@semihalf.com> Date: Fri, 10 Oct 2008 18:27:26 +0200 From: Rafal Jaworowski Organization: Semihalf MIME-Version: 1.0 To: Marcel Moolenaar References: <48DA31B3.5040906@semihalf.com> <48EF2481.2010307@semihalf.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org Subject: Re: FreeBSD/arm support for Marvell chips -- please review 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: Fri, 10 Oct 2008 16:27:29 -0000 Marcel Moolenaar wrote: > Just my $0.02: > > I personally don't like the deep nesting of directories, > but other than that: it looks and works great. Yea, this dirs hierarchy is best what we could come up with given multiple SOCs, cores, and integrated peripherals in play, sharing the functionality/code in some N:M fashion depending on revisions :-) I'm all for making it more clever, if you see a way. > I have some tweaks to add later. For example: > FPA support on little endian ARM (FPA has the words in > big-endian, irrespective of the byte order). We have > 4 places where we define the IEEE representation and > where we need to account for this. Sure, all improvements and extension more than welcome. Rafal From owner-freebsd-arm@FreeBSD.ORG Fri Oct 10 16:49:35 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 51B7B106568F for ; Fri, 10 Oct 2008 16:49:35 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout021.mac.com (asmtpout021.mac.com [17.148.16.96]) by mx1.freebsd.org (Postfix) with ESMTP id 40B3A8FC15 for ; Fri, 10 Oct 2008 16:49:35 +0000 (UTC) (envelope-from xcllnt@mac.com) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Received: from macbook-pro.jnpr.net (natint3.juniper.net [66.129.224.36]) by asmtp021.mac.com (Sun Java(tm) System Messaging Server 6.3-7.03 (built Aug 7 2008; 32bit)) with ESMTPSA id <0K8J001C85A9ZD32@asmtp021.mac.com> for freebsd-arm@freebsd.org; Fri, 10 Oct 2008 08:49:22 -0700 (PDT) Message-id: From: Marcel Moolenaar To: Rafal Jaworowski In-reply-to: <48EF2481.2010307@semihalf.com> Date: Fri, 10 Oct 2008 08:49:21 -0700 References: <48DA31B3.5040906@semihalf.com> <48EF2481.2010307@semihalf.com> X-Mailer: Apple Mail (2.929.2) Cc: freebsd-arm@freebsd.org Subject: Re: FreeBSD/arm support for Marvell chips -- please review 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: Fri, 10 Oct 2008 16:49:35 -0000 On Oct 10, 2008, at 2:46 AM, Rafal Jaworowski wrote: > Rafal Jaworowski wrote: >> All, >> With the recent series of submits in P4's arm-devel branch, I have >> completed >> import of FreeBSD/arm support for three families of Marvell >> integrated >> systems-on-chip built on ARMv5TE-compliant core. Orion support has >> been around >> for a while already, and recently added were extensions for >> Kirkwood and >> Discovery support, new drivers for integrated peripherals and other >> improvements. >> >> I'd like to merge this with SVN within the coming weeks, so would >> like to ask >> everyone to review the code and let me know about any comments or >> notes: > > I haven't received much feedback, are people still reviewing this? Just my $0.02: I personally don't like the deep nesting of directories, but other than that: it looks and works great. I have some tweaks to add later. For example: FPA support on little endian ARM (FPA has the words in big-endian, irrespective of the byte order). We have 4 places where we define the IEEE representation and where we need to account for this. FYI, -- Marcel Moolenaar xcllnt@mac.com From owner-freebsd-arm@FreeBSD.ORG Fri Oct 10 17:13:22 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 37FC01065691 for ; Fri, 10 Oct 2008 17:13:22 +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 E88E38FC32 for ; Fri, 10 Oct 2008 17:13:21 +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 m9AHAF0V077064; Fri, 10 Oct 2008 11:10:15 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Fri, 10 Oct 2008 11:11:20 -0600 (MDT) Message-Id: <20081010.111120.-1704377131.imp@bsdimp.com> To: xcllnt@mac.com From: "M. Warner Losh" In-Reply-To: References: <48DA31B3.5040906@semihalf.com> <48EF2481.2010307@semihalf.com> 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: freebsd-arm@freebsd.org Subject: Re: FreeBSD/arm support for Marvell chips -- please review 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: Fri, 10 Oct 2008 17:13:22 -0000 In message: Marcel Moolenaar writes: : : On Oct 10, 2008, at 2:46 AM, Rafal Jaworowski wrote: : : > Rafal Jaworowski wrote: : >> All, : >> With the recent series of submits in P4's arm-devel branch, I have : >> completed : >> import of FreeBSD/arm support for three families of Marvell : >> integrated : >> systems-on-chip built on ARMv5TE-compliant core. Orion support has : >> been around : >> for a while already, and recently added were extensions for : >> Kirkwood and : >> Discovery support, new drivers for integrated peripherals and other : >> improvements. : >> : >> I'd like to merge this with SVN within the coming weeks, so would : >> like to ask : >> everyone to review the code and let me know about any comments or : >> notes: : > : > I haven't received much feedback, are people still reviewing this? : : Just my $0.02: : : I personally don't like the deep nesting of directories, : but other than that: it looks and works great. I don't have a problem with the deep nesting of these directories. It seems a good balance. The mips32/ extra layer in the mips port, however, was just gratuitous. The xscale stuff isn't too bad either, but sometimes feels a little deep. Each time I've looked at it, however, I can't come up with anything better... : I have some tweaks to add later. For example: : FPA support on little endian ARM (FPA has the words in : big-endian, irrespective of the byte order). We have : 4 places where we define the IEEE representation and : where we need to account for this. FPA? : FYI, : : -- : Marcel Moolenaar : xcllnt@mac.com : : : : _______________________________________________ : 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" : : From owner-freebsd-arm@FreeBSD.ORG Fri Oct 10 17:39:18 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 42F211065686 for ; Fri, 10 Oct 2008 17:39:18 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout019.mac.com (asmtpout019.mac.com [17.148.16.94]) by mx1.freebsd.org (Postfix) with ESMTP id 31FA48FC16 for ; Fri, 10 Oct 2008 17:39:18 +0000 (UTC) (envelope-from xcllnt@mac.com) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed Received: from macbook-pro.jnpr.net (natint3.juniper.net [66.129.224.36]) by asmtp019.mac.com (Sun Java(tm) System Messaging Server 6.3-7.03 (built Aug 7 2008; 32bit)) with ESMTPSA id <0K8J00EZPADG6O20@asmtp019.mac.com> for freebsd-arm@freebsd.org; Fri, 10 Oct 2008 10:39:18 -0700 (PDT) Message-id: From: Marcel Moolenaar To: "M. Warner Losh" In-reply-to: <20081010.111120.-1704377131.imp@bsdimp.com> Date: Fri, 10 Oct 2008 10:39:16 -0700 References: <48DA31B3.5040906@semihalf.com> <48EF2481.2010307@semihalf.com> <20081010.111120.-1704377131.imp@bsdimp.com> X-Mailer: Apple Mail (2.929.2) Cc: freebsd-arm@freebsd.org Subject: Re: FreeBSD/arm support for Marvell chips -- please review 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: Fri, 10 Oct 2008 17:39:18 -0000 On Oct 10, 2008, at 10:11 AM, M. Warner Losh wrote: > : I have some tweaks to add later. For example: > : FPA support on little endian ARM (FPA has the words in > : big-endian, irrespective of the byte order). We have > : 4 places where we define the IEEE representation and > : where we need to account for this. > > FPA? The original FP format used by some ARM processors. Obsoleted by VFP AFAICT. VFP is like FPA, except that VFP has the words of a double in the native byte order. FPA always has the words in big-endian order. -- Marcel Moolenaar xcllnt@mac.com From owner-freebsd-arm@FreeBSD.ORG Sat Oct 11 13:22:13 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 703391065698 for ; Sat, 11 Oct 2008 13:22:13 +0000 (UTC) (envelope-from sniperpr@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.156]) by mx1.freebsd.org (Postfix) with ESMTP id C51F08FC15 for ; Sat, 11 Oct 2008 13:22:12 +0000 (UTC) (envelope-from sniperpr@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so628991fgb.35 for ; Sat, 11 Oct 2008 06:22:11 -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:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=hpGjS7mpZrMtMJnsyPaejZ9NfimfVh31JNXVgEUQ3hc=; b=M3ma7lgljOeC/bnzo7a04QtH+wyeBum1IK5/gkOhX4PLWdFdg9tcf/PgQ82PuALL+r e6zLAU0/HjSXD1Osi9yRKUfZqEatmXjh78yzSDKHVG/SVYH8iIQClT0gxe2pPauHU8hg M+V2EsRM625GVjginMvbkaVVz2GXmPsLiXRFc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Jyf6B7u2ovK4VQfxUwclI4wvg17bJHtNCUn1QKXkK6gHz8c8+O7uhc9g63+xpCiR4s jppE8GtiHDubeWeCOYxEPK3kQiJSEQQWq2FGqiuIwBZH0dDHsQd/nLAq9WxZfNqwYRA7 A+V/Hq/bCl1+QYLRv5i11yXT62SV3mR1kRyh4= Received: by 10.181.48.13 with SMTP id a13mr2849359bkk.97.1223729660933; Sat, 11 Oct 2008 05:54:20 -0700 (PDT) Received: by 10.180.252.6 with HTTP; Sat, 11 Oct 2008 05:54:20 -0700 (PDT) Message-ID: <82f887e20810110554k7032a368hbc42f9bab73c923f@mail.gmail.com> Date: Sat, 11 Oct 2008 20:54:20 +0800 From: linux_pro To: freebsd-arm@freebsd.org In-Reply-To: <20081011120012.6549D10656BE@hub.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Content-Disposition: inline References: <20081011120012.6549D10656BE@hub.freebsd.org> Subject: Re: freebsd-arm Digest, Vol 134, Issue 5 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, 11 Oct 2008 13:22:13 -0000 SGksIDopCgppIGhhdmUgYSBtc3MgaWnvvIwgbXNzIGlpIGlzIGFybSwgQVJNdjVURQoKTVNTIElJ IGhhdmUgYSBTQVRBIC4KCmkgd2FudCBpbnN0YWxsIHBmc2Vuc2UgaW4gbXkgbXNzaWkuCgoyMDA4 LzEwLzExLCBmcmVlYnNkLWFybS1yZXF1ZXN0QGZyZWVic2Qub3JnIDxmcmVlYnNkLWFybS1yZXF1 ZXN0QGZyZWVic2Qub3JnPjoKPiBTZW5kIGZyZWVic2QtYXJtIG1haWxpbmcgbGlzdCBzdWJtaXNz aW9ucyB0bwo+IAlmcmVlYnNkLWFybUBmcmVlYnNkLm9yZwo+Cj4gVG8gc3Vic2NyaWJlIG9yIHVu c3Vic2NyaWJlIHZpYSB0aGUgV29ybGQgV2lkZSBXZWIsIHZpc2l0Cj4gCWh0dHA6Ly9saXN0cy5m cmVlYnNkLm9yZy9tYWlsbWFuL2xpc3RpbmZvL2ZyZWVic2QtYXJtCj4gb3IsIHZpYSBlbWFpbCw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tdW5zdWJzY3JpYmVAZnJl ZWJzZC5vcmciCj4KPgo+IEVuZCBvZiBmcmVlYnNkLWFybSBEaWdlc3QsIFZvbCAxMzQsIElzc3Vl IDUKPiAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqCj4KCgotLSAK Zm9yIHRoZSBsaW51eAo= From owner-freebsd-arm@FreeBSD.ORG Sat Oct 11 20:46:03 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 7308C1065693; Sat, 11 Oct 2008 20:46:03 +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 6C9458FC1D; Sat, 11 Oct 2008 20:46:02 +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 mavbook.mavhome.dp.ua) by cmail.optima.ua (CommuniGate Pro SMTP 5.1.14) with ESMTPSA id 224565171; Sat, 11 Oct 2008 23:46:01 +0300 Message-ID: <48F11087.20403@FreeBSD.org> Date: Sat, 11 Oct 2008 23:45:59 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.16 (X11/20080726) MIME-Version: 1.0 To: freebsd-arm@FreeBSD.org, freebsd-mobile@FreeBSD.org, freebsd-current@freebsd.org References: <48DEA8E7.2080503@FreeBSD.org> In-Reply-To: <48DEA8E7.2080503@FreeBSD.org> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: 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, 11 Oct 2008 20:46:03 -0000 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