From owner-freebsd-small@FreeBSD.ORG Thu Jul 21 09:21:52 2005 Return-Path: X-Original-To: freebsd-small@freebsd.org Delivered-To: freebsd-small@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 95E1A16A422 for ; Thu, 21 Jul 2005 09:21:52 +0000 (GMT) (envelope-from michael@staff.openaccess.org) Received: from smtp.openaccess.org (smtp.openaccess.org [66.165.52.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9DD0B43D73 for ; Thu, 21 Jul 2005 09:21:50 +0000 (GMT) (envelope-from michael@staff.openaccess.org) Received: from [192.168.1.242] (internal.valleyint.com [216.57.214.98]) by smtp.openaccess.org (Postfix) with ESMTP id 77A176D42CD; Thu, 21 Jul 2005 02:20:51 -0700 (PDT) In-Reply-To: <20050721.020703.41710119.imp@bsdimp.com> References: <20050721020028.6398.qmail@web53301.mail.yahoo.com> <001e01c58dbe$f6739600$4801a8c0@ws-ew-3.W2KDEMIG> <20050721.020703.41710119.imp@bsdimp.com> Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Michael DeMan Date: Thu, 21 Jul 2005 02:21:49 -0700 To: Warner Losh X-Mailer: Apple Mail (2.622) Cc: NKoch@demig.de, freebsd-small@freebsd.org, non_secure@yahoo.com Subject: Re: DMA disable for sandisk CF cards ? X-BeenThere: freebsd-small@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jul 2005 09:21:52 -0000 I presume this would also work for non-booting devices too? Like our dev boxes where we burn cards and see numerous nasty log entries about device timeouts and sometimes the flashcard burn works, and other times it doesn't? Michael F. DeMan Director of Technology OpenAccess Network Services Bellingham, WA 98225 michael@staff.openaccess.org 360-647-0785 On Jul 21, 2005, at 1:07 AM, Warner Losh wrote: >> May be, I miss the point. Why do you want to disable >> dma on the cf card, when you can instruct FreeBSD >> to just not use dma (atacontrol(8)) ? > > Because newer CF cards, like the SanDisk, negotiate DMA with the > controller. However, most of the IDE <-> CF Adapters aren't properly > wired for this, as they only implement CF 1.5 and not CF 2.0. So, > when FreeBSD goes to access the device, you get all kinds of timeout > errors. If you are lucky, ata will failback to PIO mode. Most of the > time it has bitten me, I've not been lucky :-(. > > hw.ata.ata_dma=0 is the magic. You can set it at the boot loader > prompt, or you can add it to /boot/loader.conf. atacontrol is way too > late, since this disabling must be done prior to geom's scan for root > (or the moral equivalent in 4.x). > > Warner > _______________________________________________ > freebsd-small@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-small > To unsubscribe, send any mail to > "freebsd-small-unsubscribe@freebsd.org" >