From owner-freebsd-small@FreeBSD.ORG Thu Jul 21 09:16:37 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 331D616A423 for ; Thu, 21 Jul 2005 09:16:37 +0000 (GMT) (envelope-from NKoch@demig.de) Received: from server.absolute-media.de (server.absolute-media.de [213.239.231.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id E84E243D64 for ; Thu, 21 Jul 2005 09:16:32 +0000 (GMT) (envelope-from NKoch@demig.de) Received: from localhost (unknown [127.0.0.1]) by server.absolute-media.de (Postfix) with ESMTP id BDC8B8B1E1; Thu, 21 Jul 2005 11:16:30 +0200 (CEST) Received: from server.absolute-media.de ([127.0.0.1]) by localhost (server [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20416-05; Thu, 21 Jul 2005 11:16:26 +0200 (CEST) Received: from firewall.demig (p50839136.dip0.t-ipconnect.de [80.131.145.54]) by server.absolute-media.de (Postfix) with ESMTP id E790C897ED; Thu, 21 Jul 2005 11:16:25 +0200 (CEST) Received: from ws-ew-3 (ws-ew-3.w2kdemig [192.168.1.72]) by firewall.demig (8.13.4/8.13.1) with SMTP id j6L9CpGj017631; Thu, 21 Jul 2005 11:12:51 +0200 (CEST) (envelope-from NKoch@demig.de) From: "Norbert Koch" To: "Warner Losh" Date: Thu, 21 Jul 2005 11:12:50 +0200 Message-ID: <000201c58dd4$5e114360$4801a8c0@ws-ew-3.W2KDEMIG> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 In-Reply-To: <20050721.020703.41710119.imp@bsdimp.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2120.0 Importance: Normal X-Virus-Scanned: by amavisd-new X-Virus-Scanned: by amavisd-new at absolute-media.de Cc: 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:16:37 -0000 > > 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). Ok, I understand. But you can't do that selectively on a per-device basis, can you? Norbert